tx · FEDWZ8CvQW1rjLrLEo9hdENiybMkqn9DKqTZSySELvYp 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.02400000 Waves 2023.01.19 10:12 [2411491] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "FEDWZ8CvQW1rjLrLEo9hdENiybMkqn9DKqTZSySELvYp", "fee": 2400000, "feeAssetId": null, "timestamp": 1674112345050, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "4PY3W4vaSpoLLm1BduNnKdSQMQ52fcGYphWKZ24T6QjrvpZ4JdzjXhsj2tSEgozhiBFm1RhkeXWjquYrMo9oS281" ], "script": "base64:BgJfCAISBAoCCAgSEAoOCAgICAgICAgICAgIAQgSDwoNCAgICAgICAgICAgBCBIGCgQICAgIEgQKAggIEggKBggBAQgBCBIECgIICBIECgIICBIGCgQICAgIEgYKBAgICAhOAAdWRVJTSU9OAgUxLjEuOQEOZ2V0U3RyaW5nQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAnQgCBQR0aGlzBQNrZXkCAAAIdW5pdFRlc3QHAAlvcmFjbGVGZWUJAQV2YWx1ZQEJAKYIAQkBDmdldFN0cmluZ0J5S2V5AQIPY29uZl9vcmFjbGVfZmVlAAhzaWduRGFwcAkBBXZhbHVlAQkApggBCQEOZ2V0U3RyaW5nQnlLZXkBAhFjb25mX3NpZ253ZWJfZGFwcAALZmVlUmVjZWl2ZXIJAQ5nZXRTdHJpbmdCeUtleQECEWNvbmZfZmVlX3JlY2VpdmVyAAh1c2VyRGFwcAMFCHVuaXRUZXN0CQEFdmFsdWUBCQCmCAECIzNNdDRSR01FeWpTV1lBb2NUUHFkNTV3ZEhRUUIzUFUyVUNtCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeU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AAJANkEAQkBCGFzU3RyaW5nAQkAkQMCCAUDaW52BGFyZ3MABQkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleZFuxfI=", "height": 2411491, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4PZCMKbLzsto62QD7YsB97XAXPfed12S7mBcYdSthEvf Next: Hmjh4UhnrxPUBCgF1D96MBPZBfQ1Qo2ihWgUm5N8XAgY Diff:
Old | New | Differences | |
---|---|---|---|
377 | 377 | ||
378 | 378 | func idCallerDateSponsored (i,pubKey) = if (!(dappRunning)) | |
379 | 379 | then throw(maintenanceMSG) | |
380 | - | else { | |
381 | - | let caller = if (if ((toBase58String(i.caller.bytes) == toString(this))) | |
382 | - | then !(isDefined(i.payments[0])) | |
383 | - | else false) | |
384 | - | then toString(addressFromPublicKey(fromBase58String(pubKey))) | |
385 | - | else toBase58String(i.caller.bytes) | |
386 | - | let get_sponsored_waves = if ((pubKey != "")) | |
387 | - | then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil) | |
388 | - | else unit | |
389 | - | if ((get_sponsored_waves == get_sponsored_waves)) | |
390 | - | then $Tuple3(toBase58String(i.transactionId), caller, lastBlock.timestamp) | |
391 | - | else throw("Strict value is not equal to itself.") | |
392 | - | } | |
380 | + | else if (!(isDefined(i.payments))) | |
381 | + | then throw("toto") | |
382 | + | else { | |
383 | + | let caller = if (if ((toBase58String(i.caller.bytes) == toString(this))) | |
384 | + | then !(isDefined(i.payments)) | |
385 | + | else false) | |
386 | + | then toString(addressFromPublicKey(fromBase58String(pubKey))) | |
387 | + | else toBase58String(i.caller.bytes) | |
388 | + | let get_sponsored_waves = if ((pubKey != "")) | |
389 | + | then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil) | |
390 | + | else unit | |
391 | + | if ((get_sponsored_waves == get_sponsored_waves)) | |
392 | + | then $Tuple3(toBase58String(i.transactionId), caller, lastBlock.timestamp) | |
393 | + | else throw("Strict value is not equal to itself.") | |
394 | + | } | |
393 | 395 | ||
394 | 396 | ||
395 | 397 | func idCallerDate (i) = if (!(dappRunning)) | |
398 | 400 | ||
399 | 401 | ||
400 | 402 | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
401 | - | let $ | |
402 | - | let id = $ | |
403 | - | let caller = $ | |
404 | - | let date = $ | |
403 | + | let $t01274512804 = idCallerDate(i) | |
404 | + | let id = $t01274512804._1 | |
405 | + | let caller = $t01274512804._2 | |
406 | + | let date = $t01274512804._3 | |
405 | 407 | let isBid = if (if (if ((caller == issuer)) | |
406 | 408 | then (bidOwner != "") | |
407 | 409 | else false) | |
457 | 459 | then throw(checkUser) | |
458 | 460 | else { | |
459 | 461 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
460 | - | let $ | |
462 | + | let $t01450714674 = if (isBid) | |
461 | 463 | then getPriceAssetIdFromBid(bidDataKey) | |
462 | 464 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
463 | - | let amount = $ | |
464 | - | let assetId = $ | |
465 | + | let amount = $t01450714674._1 | |
466 | + | let assetId = $t01450714674._2 | |
465 | 467 | let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver) | |
466 | 468 | let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShare(issuer)), 0) | |
467 | 469 | let isWhitelisted = checkWhitelist(issuer) | |
550 | 552 | ||
551 | 553 | @Callable(i) | |
552 | 554 | func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = { | |
553 | - | let $ | |
554 | - | let artId = $ | |
555 | - | let caller = $ | |
556 | - | let date = $ | |
555 | + | let $t01870718767 = idCallerDateSponsored(i, pubKey) | |
556 | + | let artId = $t01870718767._1 | |
557 | + | let caller = $t01870718767._2 | |
558 | + | let date = $t01870718767._3 | |
557 | 559 | if (true) | |
558 | 560 | then throw(caller) | |
559 | 561 | else if (!(validateHash(sha256Hash))) | |
560 | 562 | then throw("Hash should be 64 characters maximum") | |
561 | 563 | else { | |
562 | - | let $ | |
563 | - | let licenceCID = $ | |
564 | - | let licenceHash = $ | |
564 | + | let $t01889918968 = setLIcence(cidLicence, sha256Licence) | |
565 | + | let licenceCID = $t01889918968._1 | |
566 | + | let licenceHash = $t01889918968._2 | |
565 | 567 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
566 | 568 | if ((validateArtwork != "")) | |
567 | 569 | then throw("Something went wrong!") | |
568 | 570 | else { | |
569 | 571 | let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0) | |
570 | - | let $ | |
572 | + | let $t01926719351 = if (whitelisted_drop) | |
571 | 573 | then $Tuple2(0, signID) | |
572 | 574 | else validatePayment(i) | |
573 | - | let amount = $ | |
574 | - | let assetId = $ | |
575 | + | let amount = $t01926719351._1 | |
576 | + | let assetId = $t01926719351._2 | |
575 | 577 | if (!(isDefined(amount))) | |
576 | 578 | then throw("Something went wrong") | |
577 | 579 | else { | |
607 | 609 | func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning)) | |
608 | 610 | then throw(maintenanceMSG) | |
609 | 611 | else { | |
610 | - | let $ | |
611 | - | let id = $ | |
612 | - | let caller = $ | |
613 | - | let date = $ | |
614 | - | let $ | |
615 | - | let licenceCID = $ | |
616 | - | let licenceHash = $ | |
612 | + | let $t02229322350 = idCallerDateSponsored(i, pubKey) | |
613 | + | let id = $t02229322350._1 | |
614 | + | let caller = $t02229322350._2 | |
615 | + | let date = $t02229322350._3 | |
616 | + | let $t02236022429 = setLIcence(cidLicence, sha256Licence) | |
617 | + | let licenceCID = $t02236022429._1 | |
618 | + | let licenceHash = $t02236022429._2 | |
617 | 619 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
618 | 620 | if ((validateArtwork != "")) | |
619 | 621 | then throw("Something went wrong!") | |
636 | 638 | ||
637 | 639 | @Callable(i) | |
638 | 640 | func flagArtwork (artId,addr,flag,note) = { | |
639 | - | let $ | |
640 | - | let id = $ | |
641 | - | let caller = $ | |
641 | + | let $t02393023964 = idCallerDate(i) | |
642 | + | let id = $t02393023964._1 | |
643 | + | let caller = $t02393023964._2 | |
642 | 644 | if (containsElement([chris, toString(this)], caller)) | |
643 | 645 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
644 | 646 | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)] | |
650 | 652 | ||
651 | 653 | @Callable(i) | |
652 | 654 | func deleteArtwork (artId,addr) = { | |
653 | - | let $ | |
654 | - | let id = $ | |
655 | - | let caller = $ | |
655 | + | let $t02440024434 = idCallerDate(i) | |
656 | + | let id = $t02440024434._1 | |
657 | + | let caller = $t02440024434._2 | |
656 | 658 | let addrToUse = if (containsElement([chris, toString(this)], caller)) | |
657 | 659 | then addr | |
658 | 660 | else caller | |
685 | 687 | ||
686 | 688 | @Callable(i) | |
687 | 689 | func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = { | |
688 | - | let $ | |
689 | - | let id = $ | |
690 | - | let caller = $ | |
690 | + | let $t02727027321 = idCallerDateSponsored(i, pubKey) | |
691 | + | let id = $t02727027321._1 | |
692 | + | let caller = $t02727027321._2 | |
691 | 693 | let artworkName = getStringByKey(keyName(caller, artId)) | |
692 | 694 | if ((artworkName == "")) | |
693 | 695 | then throw("This art doesn't match your account") | |
758 | 760 | ||
759 | 761 | @Callable(i) | |
760 | 762 | func setBid (artId,issuer) = { | |
761 | - | let $ | |
762 | - | let id = $ | |
763 | - | let caller = $ | |
764 | - | let date = $ | |
765 | - | let $ | |
766 | - | let payment = $ | |
767 | - | let amount = $ | |
763 | + | let $t02957829618 = idCallerDate(i) | |
764 | + | let id = $t02957829618._1 | |
765 | + | let caller = $t02957829618._2 | |
766 | + | let date = $t02957829618._3 | |
767 | + | let $t02962329659 = isPayment(i) | |
768 | + | let payment = $t02962329659._1 | |
769 | + | let amount = $t02962329659._2 | |
768 | 770 | let assetId = if (!(isDefined(payment.assetId))) | |
769 | 771 | then "WAVES" | |
770 | 772 | else toBase58String(value(payment.assetId)) | |
795 | 797 | ||
796 | 798 | @Callable(i) | |
797 | 799 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
798 | - | let $ | |
799 | - | let id = $ | |
800 | - | let caller = $ | |
801 | - | let date = $ | |
800 | + | let $t03081730857 = idCallerDate(i) | |
801 | + | let id = $t03081730857._1 | |
802 | + | let caller = $t03081730857._2 | |
803 | + | let date = $t03081730857._3 | |
802 | 804 | if ((caller != issuer)) | |
803 | 805 | then throw("You cannot do this action") | |
804 | 806 | else buyMint(i, artId, issuer, bidId, bidOwner) | |
808 | 810 | ||
809 | 811 | @Callable(i) | |
810 | 812 | func cancelBid (artId,issuer,bidId,bidOwner) = { | |
811 | - | let $ | |
812 | - | let id = $ | |
813 | - | let caller = $ | |
814 | - | let date = $ | |
813 | + | let $t03108331144 = idCallerDate(i) | |
814 | + | let id = $t03108331144._1 | |
815 | + | let caller = $t03108331144._2 | |
816 | + | let date = $t03108331144._3 | |
815 | 817 | if (if ((caller != bidOwner)) | |
816 | 818 | then (caller != issuer) | |
817 | 819 | else false) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let VERSION = "1.1.9" | |
5 | 5 | ||
6 | 6 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | let unitTest = false | |
10 | 10 | ||
11 | 11 | let oracleFee = value(addressFromString(getStringByKey("conf_oracle_fee"))) | |
12 | 12 | ||
13 | 13 | let signDapp = value(addressFromString(getStringByKey("conf_signweb_dapp"))) | |
14 | 14 | ||
15 | 15 | let feeReceiver = getStringByKey("conf_fee_receiver") | |
16 | 16 | ||
17 | 17 | let userDapp = if (unitTest) | |
18 | 18 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
19 | 19 | else value(addressFromString(getStringByKey("conf_users_dapp"))) | |
20 | 20 | ||
21 | 21 | let whitelistDapp = value(addressFromString(getStringByKey("conf_whitelist_dapp"))) | |
22 | 22 | ||
23 | 23 | let signAssetId = fromBase58String(getStringByKey("conf_accepted_asset_SIGN")) | |
24 | 24 | ||
25 | 25 | let usdnAssetId = fromBase58String(getStringByKey("conf_accepted_asset_USDN")) | |
26 | 26 | ||
27 | 27 | let usdtAssetId = fromBase58String(getStringByKey("conf_accepted_asset_USDT")) | |
28 | 28 | ||
29 | 29 | let wavesAssetId = base58'' | |
30 | 30 | ||
31 | 31 | let chris = getStringByKey("conf_admin_1") | |
32 | 32 | ||
33 | 33 | func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func checkWhitelist (key) = valueOrElse(getInteger(whitelistDapp, key), 0) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | let signCut = 7 | |
46 | 46 | ||
47 | 47 | let usdnWaveCut = 10 | |
48 | 48 | ||
49 | 49 | let defaultLicence = getStringByKey("conf_default_licence") | |
50 | 50 | ||
51 | 51 | let defaultHashLicence = getStringByKey("conf_default_licence_hash") | |
52 | 52 | ||
53 | 53 | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
54 | 54 | ||
55 | 55 | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
56 | 56 | ||
57 | 57 | let userSuspended = "SUSPENDED" | |
58 | 58 | ||
59 | 59 | let userRemoved = "REMOVED" | |
60 | 60 | ||
61 | 61 | let userUnregistered = "UNREGISTERED" | |
62 | 62 | ||
63 | 63 | let userAllowed = "ALLOWED" | |
64 | 64 | ||
65 | 65 | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
66 | 66 | ||
67 | 67 | func getArtworkRoyalties (key) = valueOrElse(getInteger(this, key), 1000) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) { | |
71 | 71 | case a: String => | |
72 | 72 | if (contains(a, sha256Hash)) | |
73 | 73 | then true | |
74 | 74 | else false | |
75 | 75 | case _ => | |
76 | 76 | false | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func validateCID (cid) = if (contains(cid, "/")) | |
81 | 81 | then if (if ((76 > size(cid))) | |
82 | 82 | then (size(split(cid, "/")[0]) == 59) | |
83 | 83 | else false) | |
84 | 84 | then (16 > size(split(cid, "/")[1])) | |
85 | 85 | else false | |
86 | 86 | else false | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func validateHash (hash) = (size(hash) == 64) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func keyUserStatus (caller) = ("user_status_" + caller) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func keyExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func keySignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func keyLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func keyLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func keyNote (caller,artId) = ((("art_note_" + artId) + "_") + caller) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func keyCrawler (caller,artId) = ((("art_crawler_cid_" + artId) + "_") + caller) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func keyRoyalties (caller,artId) = ((("art_royalties_" + artId) + "_") + caller) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func keyEndSale (caller,artId) = ((("art_endsale_" + artId) + "_") + caller) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func keyFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func keyArtistAgentAddr (artistAddr) = ("artist_agent_" + artistAddr) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func keyPrimaryShare (artistAddr) = ("artist_agent_primary_" + artistAddr) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func keyidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func validateAllCID (cidDisplay,cidExport,cidLicence) = if (!(validateCID(cidDisplay))) | |
177 | 177 | then throw("Wrong Display CID") | |
178 | 178 | else if (!(validateCID(cidExport))) | |
179 | 179 | then throw("Wrong Export CID") | |
180 | 180 | else if (if ((cidLicence != "")) | |
181 | 181 | then !(validateCID(cidLicence)) | |
182 | 182 | else false) | |
183 | 183 | then throw("Wrong Licence CID") | |
184 | 184 | else true | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func validateAllHash (sha256Export,sha256Licence) = if (!(validateHash(sha256Export))) | |
188 | 188 | then throw("Export Hash 64 char. max") | |
189 | 189 | else if (!(validateHash(sha256Licence))) | |
190 | 190 | then throw("Licence Hash 64 char. max") | |
191 | 191 | else true | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func validateString (str,max) = if ((size(str) == 0)) | |
195 | 195 | then throw("Field cannot be is empty") | |
196 | 196 | else if ((size(str) > max)) | |
197 | 197 | then throw((str + " is too long")) | |
198 | 198 | else true | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func validateUser (caller) = if (true) | |
202 | 202 | then throw(caller) | |
203 | 203 | else { | |
204 | 204 | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
205 | 205 | if (if ((userStatus == userUnregistered)) | |
206 | 206 | then true | |
207 | 207 | else (userStatus == userAllowed)) | |
208 | 208 | then "Register this account first with \"Account\" tab" | |
209 | 209 | else if ((userStatus == userSuspended)) | |
210 | 210 | then "Account suspended" | |
211 | 211 | else if ((userStatus == userRemoved)) | |
212 | 212 | then "Account removed" | |
213 | 213 | else "" | |
214 | 214 | } | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func setLIcence (cidLicence,sha256Licence) = { | |
218 | 218 | let cid = if ((size(cidLicence) == 0)) | |
219 | 219 | then defaultLicence | |
220 | 220 | else cidLicence | |
221 | 221 | let hash = if ((size(sha256Licence) == 0)) | |
222 | 222 | then defaultHashLicence | |
223 | 223 | else sha256Licence | |
224 | 224 | $Tuple2(cid, hash) | |
225 | 225 | } | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags,royalties) = { | |
229 | 229 | let checkUser = validateUser(caller) | |
230 | 230 | if ((checkUser != "")) | |
231 | 231 | then throw(checkUser) | |
232 | 232 | else if ((size(cidDisplay) == 0)) | |
233 | 233 | then throw("Display CID cannot be empty") | |
234 | 234 | else if (!(validateAllCID(cidDisplay, cidExport, licenceCID))) | |
235 | 235 | then throw("Problem with CID") | |
236 | 236 | else if (!(validateAllHash(sha256Export, licenceHash))) | |
237 | 237 | then throw("Problem with Hashes") | |
238 | 238 | else if (!(validateString(name, 100))) | |
239 | 239 | then throw("100 Char. max name") | |
240 | 240 | else if (!(validateString(description, 1000))) | |
241 | 241 | then throw("1000 Char. max description") | |
242 | 242 | else if (if ((0 > royalties)) | |
243 | 243 | then true | |
244 | 244 | else (royalties > 1000)) | |
245 | 245 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
246 | 246 | else if ((size(split(tags, ",")) > 5)) | |
247 | 247 | then throw("5 tags max.") | |
248 | 248 | else "" | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func isPayment (i) = if ((size(i.payments) == 0)) | |
253 | 253 | then throw("No payment attached") | |
254 | 254 | else { | |
255 | 255 | let payment = value(i.payments[0]) | |
256 | 256 | let amount = value(payment.amount) | |
257 | 257 | $Tuple2(payment, amount) | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func validatePayment (i) = { | |
262 | 262 | let $t089108946 = isPayment(i) | |
263 | 263 | let payment = $t089108946._1 | |
264 | 264 | let amount = $t089108946._2 | |
265 | 265 | let assetId = if (if (isDefined(payment.assetId)) | |
266 | 266 | then (payment.assetId == signAssetId) | |
267 | 267 | else false) | |
268 | 268 | then payment.assetId | |
269 | 269 | else throw("Only SIGN token accepted as transaction fee") | |
270 | 270 | if ((amount != currentCertificationPrice)) | |
271 | 271 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
272 | 272 | else $Tuple2(amount, assetId) | |
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) { | |
277 | 277 | case b: Int => | |
278 | 278 | if ((b != 0)) | |
279 | 279 | then true | |
280 | 280 | else false | |
281 | 281 | case _ => | |
282 | 282 | false | |
283 | 283 | } | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
287 | 287 | let $t095349570 = isPayment(i) | |
288 | 288 | let payment = $t095349570._1 | |
289 | 289 | let amount = $t095349570._2 | |
290 | 290 | let assetId = if (!(isDefined(payment.assetId))) | |
291 | 291 | then unit | |
292 | 292 | else if (if ((size(priceAssetId) > 0)) | |
293 | 293 | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
294 | 294 | else false) | |
295 | 295 | then payment.assetId | |
296 | 296 | else throw("Wrong asset id") | |
297 | 297 | if (if ((assetId == unit)) | |
298 | 298 | then (priceAssetId != "") | |
299 | 299 | else false) | |
300 | 300 | then throw("Wrong asset id") | |
301 | 301 | else if ((artworkPrice != amount)) | |
302 | 302 | then throw("Payment don't match") | |
303 | 303 | else $Tuple2(amount, assetId) | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func acceptedAssetIds (assetId) = if (if (if (if (if ((assetId != toBase58String(signAssetId))) | |
308 | 308 | then (assetId != toBase58String(wavesAssetId)) | |
309 | 309 | else false) | |
310 | 310 | then (assetId != "WAVES") | |
311 | 311 | else false) | |
312 | 312 | then (assetId != toBase58String(usdnAssetId)) | |
313 | 313 | else false) | |
314 | 314 | then (assetId != toBase58String(usdtAssetId)) | |
315 | 315 | else false) | |
316 | 316 | then throw("Only SIGN, USDN,USDT or WAVES accepted") | |
317 | 317 | else true | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func validateMinSell (assetId,price) = { | |
321 | 321 | let minSellWaves = if (unitTest) | |
322 | 322 | then 10 | |
323 | 323 | else getIntegerByKeyFromOracle("waves_min_sell") | |
324 | 324 | let minSellUsdn = 1000000 | |
325 | 325 | let minSellSign = if (unitTest) | |
326 | 326 | then 1 | |
327 | 327 | else (currentCertificationPrice * 2) | |
328 | 328 | if (if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
329 | 329 | then (minSellUsdn > price) | |
330 | 330 | else false) | |
331 | 331 | then (price != 0) | |
332 | 332 | else false) | |
333 | 333 | then true | |
334 | 334 | else if (if ((assetId == toBase58String(usdtAssetId))) | |
335 | 335 | then (minSellUsdn > price) | |
336 | 336 | else false) | |
337 | 337 | then (price != 0) | |
338 | 338 | else false) | |
339 | 339 | then true | |
340 | 340 | else if (if ((assetId == toBase58String(signAssetId))) | |
341 | 341 | then (minSellSign > price) | |
342 | 342 | else false) | |
343 | 343 | then (price != 0) | |
344 | 344 | else false) | |
345 | 345 | then true | |
346 | 346 | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
347 | 347 | then true | |
348 | 348 | else (assetId == "WAVES")) | |
349 | 349 | then (minSellWaves > price) | |
350 | 350 | else false) | |
351 | 351 | then (price != 0) | |
352 | 352 | else false) | |
353 | 353 | then throw("Wrong minimum sell price") | |
354 | 354 | else true | |
355 | 355 | } | |
356 | 356 | ||
357 | 357 | ||
358 | 358 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
359 | 359 | then unit | |
360 | 360 | else fromBase58String(assetId) | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | func getPriceAssetIdFromBid (bidDataKey) = { | |
364 | 364 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
365 | 365 | if ((bidData == "")) | |
366 | 366 | then throw("Bid not found") | |
367 | 367 | else { | |
368 | 368 | let bidDataArr = split(bidData, "_") | |
369 | 369 | let bidAmount = parseIntValue(bidDataArr[1]) | |
370 | 370 | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
371 | 371 | if ((0 >= bidAmount)) | |
372 | 372 | then throw("Wrong amount") | |
373 | 373 | else $Tuple2(bidAmount, bidAssetId) | |
374 | 374 | } | |
375 | 375 | } | |
376 | 376 | ||
377 | 377 | ||
378 | 378 | func idCallerDateSponsored (i,pubKey) = if (!(dappRunning)) | |
379 | 379 | then throw(maintenanceMSG) | |
380 | - | else { | |
381 | - | let caller = if (if ((toBase58String(i.caller.bytes) == toString(this))) | |
382 | - | then !(isDefined(i.payments[0])) | |
383 | - | else false) | |
384 | - | then toString(addressFromPublicKey(fromBase58String(pubKey))) | |
385 | - | else toBase58String(i.caller.bytes) | |
386 | - | let get_sponsored_waves = if ((pubKey != "")) | |
387 | - | then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil) | |
388 | - | else unit | |
389 | - | if ((get_sponsored_waves == get_sponsored_waves)) | |
390 | - | then $Tuple3(toBase58String(i.transactionId), caller, lastBlock.timestamp) | |
391 | - | else throw("Strict value is not equal to itself.") | |
392 | - | } | |
380 | + | else if (!(isDefined(i.payments))) | |
381 | + | then throw("toto") | |
382 | + | else { | |
383 | + | let caller = if (if ((toBase58String(i.caller.bytes) == toString(this))) | |
384 | + | then !(isDefined(i.payments)) | |
385 | + | else false) | |
386 | + | then toString(addressFromPublicKey(fromBase58String(pubKey))) | |
387 | + | else toBase58String(i.caller.bytes) | |
388 | + | let get_sponsored_waves = if ((pubKey != "")) | |
389 | + | then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil) | |
390 | + | else unit | |
391 | + | if ((get_sponsored_waves == get_sponsored_waves)) | |
392 | + | then $Tuple3(toBase58String(i.transactionId), caller, lastBlock.timestamp) | |
393 | + | else throw("Strict value is not equal to itself.") | |
394 | + | } | |
393 | 395 | ||
394 | 396 | ||
395 | 397 | func idCallerDate (i) = if (!(dappRunning)) | |
396 | 398 | then throw(maintenanceMSG) | |
397 | 399 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
398 | 400 | ||
399 | 401 | ||
400 | 402 | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
401 | - | let $ | |
402 | - | let id = $ | |
403 | - | let caller = $ | |
404 | - | let date = $ | |
403 | + | let $t01274512804 = idCallerDate(i) | |
404 | + | let id = $t01274512804._1 | |
405 | + | let caller = $t01274512804._2 | |
406 | + | let date = $t01274512804._3 | |
405 | 407 | let isBid = if (if (if ((caller == issuer)) | |
406 | 408 | then (bidOwner != "") | |
407 | 409 | else false) | |
408 | 410 | then (bidId != "") | |
409 | 411 | else false) | |
410 | 412 | then true | |
411 | 413 | else false | |
412 | 414 | let blockEnd = getIntegerByKey(keyEndSale(caller, artId)) | |
413 | 415 | if (if (if ((blockEnd != 0)) | |
414 | 416 | then (height >= blockEnd) | |
415 | 417 | else false) | |
416 | 418 | then !(isBid) | |
417 | 419 | else false) | |
418 | 420 | then throw("Sale ended.") | |
419 | 421 | else { | |
420 | 422 | let callerIsIssuer = (caller == issuer) | |
421 | 423 | let totalNFT = getIntegerByKey("total_nft_issued") | |
422 | 424 | let signID = getStringByKey(keySignID(issuer, artId)) | |
423 | 425 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
424 | 426 | if ((artworkName == "")) | |
425 | 427 | then throw("Art doesn't exist") | |
426 | 428 | else { | |
427 | 429 | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
428 | 430 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
429 | 431 | let artworkPrice = if (callerIsIssuer) | |
430 | 432 | then (currentCertificationPrice * 2) | |
431 | 433 | else getIntegerByKey(keyPrice(issuer, artId)) | |
432 | 434 | let priceAssetId = if (callerIsIssuer) | |
433 | 435 | then toBase58String(signAssetId) | |
434 | 436 | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
435 | 437 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
436 | 438 | if (if (if (!(isBid)) | |
437 | 439 | then !(callerIsIssuer) | |
438 | 440 | else false) | |
439 | 441 | then if (if ((0 >= artworkPrice)) | |
440 | 442 | then true | |
441 | 443 | else !(isOnSale)) | |
442 | 444 | then true | |
443 | 445 | else (0 >= maxCanSell) | |
444 | 446 | else false) | |
445 | 447 | then throw("Art not for sale") | |
446 | 448 | else if (if (if (!(isBid)) | |
447 | 449 | then callerIsIssuer | |
448 | 450 | else false) | |
449 | 451 | then (0 >= maxCanSell) | |
450 | 452 | else false) | |
451 | 453 | then throw("Max issuable not set") | |
452 | 454 | else { | |
453 | 455 | let checkUser = validateUser(issuer) | |
454 | 456 | if (if (isBid) | |
455 | 457 | then (checkUser != "") | |
456 | 458 | else false) | |
457 | 459 | then throw(checkUser) | |
458 | 460 | else { | |
459 | 461 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
460 | - | let $ | |
462 | + | let $t01450714674 = if (isBid) | |
461 | 463 | then getPriceAssetIdFromBid(bidDataKey) | |
462 | 464 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
463 | - | let amount = $ | |
464 | - | let assetId = $ | |
465 | + | let amount = $t01450714674._1 | |
466 | + | let assetId = $t01450714674._2 | |
465 | 467 | let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver) | |
466 | 468 | let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShare(issuer)), 0) | |
467 | 469 | let isWhitelisted = checkWhitelist(issuer) | |
468 | 470 | let cut = if ((isWhitelisted > height)) | |
469 | 471 | then 0 | |
470 | 472 | else if ((assetId == signAssetId)) | |
471 | 473 | then signCut | |
472 | 474 | else usdnWaveCut | |
473 | 475 | let amountForSign = fraction(amount, cut, 100) | |
474 | 476 | let amountForAgent = if (if (if ((agent != feeReceiver)) | |
475 | 477 | then (agentShare > 0) | |
476 | 478 | else false) | |
477 | 479 | then (height > isWhitelisted) | |
478 | 480 | else false) | |
479 | 481 | then fraction(amount, agentShare, 100) | |
480 | 482 | else 0 | |
481 | 483 | let amountForCreator = (amount - amountForSign) | |
482 | 484 | if ((amountSold == maxCanSell)) | |
483 | 485 | then throw("Art sold out") | |
484 | 486 | else { | |
485 | 487 | let newAmountSold = (amountSold + 1) | |
486 | 488 | let issueMeta = ((((((((((("Creator: " + issuer) + ", | |
487 | 489 | ArtID: ") + artId) + ", | |
488 | 490 | SignID: ") + signID) + ", | |
489 | 491 | Artwork name: ") + artworkName) + ", | |
490 | 492 | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
491 | 493 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
492 | 494 | let idNFT = calculateAssetId(issueNFT) | |
493 | 495 | let sellStatus = if (if ((newAmountSold == maxCanSell)) | |
494 | 496 | then true | |
495 | 497 | else !(isOnSale)) | |
496 | 498 | then false | |
497 | 499 | else true | |
498 | 500 | let receiveNFT = if (if (if ((caller == issuer)) | |
499 | 501 | then (bidOwner != "") | |
500 | 502 | else false) | |
501 | 503 | then (bidId != "") | |
502 | 504 | else false) | |
503 | 505 | then addressFromStringValue(bidOwner) | |
504 | 506 | else i.caller | |
505 | 507 | let assetIdBid = if (!(isDefined(assetId))) | |
506 | 508 | then "WAVES" | |
507 | 509 | else toBase58String(value(assetId)) | |
508 | 510 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
509 | 511 | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
510 | 512 | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
511 | 513 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
512 | 514 | let soldValue = if (!(isBid)) | |
513 | 515 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
514 | 516 | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT)) | |
515 | 517 | let soldData = StringEntry(soldKey, soldValue) | |
516 | 518 | let commissions = if ((amountForAgent != 0)) | |
517 | 519 | then [ScriptTransfer(Address(fromBase58String(feeReceiver)), (amountForSign - amountForAgent), assetId), ScriptTransfer(Address(fromBase58String(agent)), amountForAgent, assetId)] | |
518 | 520 | else [ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)] | |
519 | 521 | let buyRes = ([IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), soldKey), IntegerEntry("total_nft_issued", (totalNFT + 1)), IntegerEntry(keyEndSale(issuer, artId), 0), BooleanEntry(keyOnSale(issuer, artId), sellStatus), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(receiveNFT, 1, idNFT)] ++ commissions) | |
520 | 522 | if (isBid) | |
521 | 523 | then [soldData, bidUpdate, bidDelOld] :: buyRes | |
522 | 524 | else soldData :: buyRes | |
523 | 525 | } | |
524 | 526 | } | |
525 | 527 | } | |
526 | 528 | } | |
527 | 529 | } | |
528 | 530 | } | |
529 | 531 | ||
530 | 532 | ||
531 | 533 | func asString (bv) = match bv { | |
532 | 534 | case bv0: String => | |
533 | 535 | bv0 | |
534 | 536 | case _ => | |
535 | 537 | throw("Sponsored Public Key String expected") | |
536 | 538 | } | |
537 | 539 | ||
538 | 540 | ||
539 | 541 | @Callable(invoke) | |
540 | 542 | func setConf (key,val) = { | |
541 | 543 | let caller = toString(invoke.caller) | |
542 | 544 | if (containsElement([chris, toString(this)], caller)) | |
543 | 545 | then if (contains(key, "conf_")) | |
544 | 546 | then [StringEntry(key, val)] | |
545 | 547 | else throw("Entries starting with conf_ only") | |
546 | 548 | else throw("You are not allowed to change this") | |
547 | 549 | } | |
548 | 550 | ||
549 | 551 | ||
550 | 552 | ||
551 | 553 | @Callable(i) | |
552 | 554 | func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = { | |
553 | - | let $ | |
554 | - | let artId = $ | |
555 | - | let caller = $ | |
556 | - | let date = $ | |
555 | + | let $t01870718767 = idCallerDateSponsored(i, pubKey) | |
556 | + | let artId = $t01870718767._1 | |
557 | + | let caller = $t01870718767._2 | |
558 | + | let date = $t01870718767._3 | |
557 | 559 | if (true) | |
558 | 560 | then throw(caller) | |
559 | 561 | else if (!(validateHash(sha256Hash))) | |
560 | 562 | then throw("Hash should be 64 characters maximum") | |
561 | 563 | else { | |
562 | - | let $ | |
563 | - | let licenceCID = $ | |
564 | - | let licenceHash = $ | |
564 | + | let $t01889918968 = setLIcence(cidLicence, sha256Licence) | |
565 | + | let licenceCID = $t01889918968._1 | |
566 | + | let licenceHash = $t01889918968._2 | |
565 | 567 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
566 | 568 | if ((validateArtwork != "")) | |
567 | 569 | then throw("Something went wrong!") | |
568 | 570 | else { | |
569 | 571 | let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0) | |
570 | - | let $ | |
572 | + | let $t01926719351 = if (whitelisted_drop) | |
571 | 573 | then $Tuple2(0, signID) | |
572 | 574 | else validatePayment(i) | |
573 | - | let amount = $ | |
574 | - | let assetId = $ | |
575 | + | let amount = $t01926719351._1 | |
576 | + | let assetId = $t01926719351._2 | |
575 | 577 | if (!(isDefined(amount))) | |
576 | 578 | then throw("Something went wrong") | |
577 | 579 | else { | |
578 | 580 | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
579 | 581 | if ((entryExist != "")) | |
580 | 582 | then throw("You already added it") | |
581 | 583 | else { | |
582 | 584 | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
583 | 585 | if ((hashExist != "")) | |
584 | 586 | then throw("Hash already registered") | |
585 | 587 | else { | |
586 | 588 | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
587 | 589 | if (!(isSignCertified)) | |
588 | 590 | then throw("Sign Certificate not found for this address.") | |
589 | 591 | else { | |
590 | 592 | let decrease_whitelist_drop = if (whitelisted_drop) | |
591 | 593 | then invoke(whitelistDapp, "useFreeDrop", [toBase58String(i.caller.bytes)], nil) | |
592 | 594 | else unit | |
593 | 595 | if ((decrease_whitelist_drop == decrease_whitelist_drop)) | |
594 | 596 | then [StringEntry(keyOwnerByHash(sha256Hash), caller), StringEntry(keyTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyExportCid(caller, artId), cidExport), StringEntry(keyExportHash(caller, artId), sha256Export), StringEntry(keyLicenceHash(caller, artId), licenceHash), StringEntry(keyLicenceCid(caller, artId), licenceCID), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), StringEntry(keySignID(caller, artId), signID), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyidBySignid(caller, signID), artId), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyCrawler(caller, artId), crawler), IntegerEntry(keyRoyalties(caller, artId), royalties), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, signAssetId)] | |
595 | 597 | else throw("Strict value is not equal to itself.") | |
596 | 598 | } | |
597 | 599 | } | |
598 | 600 | } | |
599 | 601 | } | |
600 | 602 | } | |
601 | 603 | } | |
602 | 604 | } | |
603 | 605 | ||
604 | 606 | ||
605 | 607 | ||
606 | 608 | @Callable(i) | |
607 | 609 | func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning)) | |
608 | 610 | then throw(maintenanceMSG) | |
609 | 611 | else { | |
610 | - | let $ | |
611 | - | let id = $ | |
612 | - | let caller = $ | |
613 | - | let date = $ | |
614 | - | let $ | |
615 | - | let licenceCID = $ | |
616 | - | let licenceHash = $ | |
612 | + | let $t02229322350 = idCallerDateSponsored(i, pubKey) | |
613 | + | let id = $t02229322350._1 | |
614 | + | let caller = $t02229322350._2 | |
615 | + | let date = $t02229322350._3 | |
616 | + | let $t02236022429 = setLIcence(cidLicence, sha256Licence) | |
617 | + | let licenceCID = $t02236022429._1 | |
618 | + | let licenceHash = $t02236022429._2 | |
617 | 619 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
618 | 620 | if ((validateArtwork != "")) | |
619 | 621 | then throw("Something went wrong!") | |
620 | 622 | else { | |
621 | 623 | let entryExist = getStringByKey(keyName(caller, txid)) | |
622 | 624 | if ((entryExist == "")) | |
623 | 625 | then throw("Entry not found") | |
624 | 626 | else { | |
625 | 627 | let flag = getStringByKey(keyFlag(caller, txid)) | |
626 | 628 | if ((flag == "ILLEGAL")) | |
627 | 629 | then throw("Cannot update ILLEGAL artwork") | |
628 | 630 | else if (!(isArtMinted(caller, txid))) | |
629 | 631 | then [StringEntry(keyName(caller, txid), name), StringEntry(keyDesc(caller, txid), description), StringEntry(keyDisplayCid(caller, txid), cidDisplay), StringEntry(keyExportCid(caller, txid), cidExport), StringEntry(keyExportHash(caller, txid), sha256Export), StringEntry(keyLicenceCid(caller, txid), licenceCID), StringEntry(keyLicenceHash(caller, txid), licenceHash), StringEntry(keyTags(caller, txid), tags), StringEntry(keyType(caller, txid), type), StringEntry(keyCrawler(caller, txid), crawler), IntegerEntry(keyRoyalties(caller, txid), royalties)] | |
630 | 632 | else throw("Already minted") | |
631 | 633 | } | |
632 | 634 | } | |
633 | 635 | } | |
634 | 636 | ||
635 | 637 | ||
636 | 638 | ||
637 | 639 | @Callable(i) | |
638 | 640 | func flagArtwork (artId,addr,flag,note) = { | |
639 | - | let $ | |
640 | - | let id = $ | |
641 | - | let caller = $ | |
641 | + | let $t02393023964 = idCallerDate(i) | |
642 | + | let id = $t02393023964._1 | |
643 | + | let caller = $t02393023964._2 | |
642 | 644 | if (containsElement([chris, toString(this)], caller)) | |
643 | 645 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
644 | 646 | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)] | |
645 | 647 | else throw(("Unknow status " + flag)) | |
646 | 648 | else throw("You are not allowed") | |
647 | 649 | } | |
648 | 650 | ||
649 | 651 | ||
650 | 652 | ||
651 | 653 | @Callable(i) | |
652 | 654 | func deleteArtwork (artId,addr) = { | |
653 | - | let $ | |
654 | - | let id = $ | |
655 | - | let caller = $ | |
655 | + | let $t02440024434 = idCallerDate(i) | |
656 | + | let id = $t02440024434._1 | |
657 | + | let caller = $t02440024434._2 | |
656 | 658 | let addrToUse = if (containsElement([chris, toString(this)], caller)) | |
657 | 659 | then addr | |
658 | 660 | else caller | |
659 | 661 | let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address") | |
660 | 662 | if ((entryExist == "")) | |
661 | 663 | then throw("No art matching for this address") | |
662 | 664 | else { | |
663 | 665 | let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId)) | |
664 | 666 | if ((sha256Hash == "")) | |
665 | 667 | then throw("No art hash matching for this address") | |
666 | 668 | else { | |
667 | 669 | let signID = getStringByKey(keySignID(addrToUse, artId)) | |
668 | 670 | if ((signID == "")) | |
669 | 671 | then throw("No SIGN ID matching") | |
670 | 672 | else { | |
671 | 673 | let dataToDelete = [DeleteEntry(keyDate(addrToUse, artId)), DeleteEntry(keyName(addrToUse, artId)), DeleteEntry(keyDesc(addrToUse, artId)), DeleteEntry(keyDisplayCid(addrToUse, artId)), DeleteEntry(keyExportCid(addrToUse, artId)), DeleteEntry(keyExportHash(addrToUse, artId)), DeleteEntry(keyLicenceHash(addrToUse, artId)), DeleteEntry(keyLicenceCid(addrToUse, artId)), DeleteEntry(keyType(addrToUse, artId)), DeleteEntry(keyTags(addrToUse, artId)), DeleteEntry(keyMaxMint(addrToUse, artId)), DeleteEntry(keySignID(addrToUse, artId)), DeleteEntry(keyIssued(addrToUse, artId)), DeleteEntry(keyOnSale(addrToUse, artId)), DeleteEntry(keyFlag(addrToUse, artId)), DeleteEntry(keyPrice(addrToUse, artId)), DeleteEntry(keyAssetIdAccepted(addrToUse, artId)), DeleteEntry(keyOwnerByHash(sha256Hash)), DeleteEntry(keyidBySignid(addrToUse, signID)), DeleteEntry(keyTxidByHashOwner(sha256Hash, addrToUse)), DeleteEntry(keyEndSale(addrToUse, artId)), DeleteEntry(keyNote(addrToUse, artId)), DeleteEntry(keyCrawler(addrToUse, artId)), DeleteEntry(keyRoyalties(addrToUse, artId))] | |
672 | 674 | if (!(isArtMinted(addrToUse, artId))) | |
673 | 675 | then if (!(dappRunning)) | |
674 | 676 | then throw(maintenanceMSG) | |
675 | 677 | else dataToDelete | |
676 | 678 | else if (containsElement([chris, toString(this)], caller)) | |
677 | 679 | then dataToDelete | |
678 | 680 | else throw("Art already minted, you cannot delete it") | |
679 | 681 | } | |
680 | 682 | } | |
681 | 683 | } | |
682 | 684 | } | |
683 | 685 | ||
684 | 686 | ||
685 | 687 | ||
686 | 688 | @Callable(i) | |
687 | 689 | func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = { | |
688 | - | let $ | |
689 | - | let id = $ | |
690 | - | let caller = $ | |
690 | + | let $t02727027321 = idCallerDateSponsored(i, pubKey) | |
691 | + | let id = $t02727027321._1 | |
692 | + | let caller = $t02727027321._2 | |
691 | 693 | let artworkName = getStringByKey(keyName(caller, artId)) | |
692 | 694 | if ((artworkName == "")) | |
693 | 695 | then throw("This art doesn't match your account") | |
694 | 696 | else { | |
695 | 697 | let flag = getStringByKey(keyFlag(caller, artId)) | |
696 | 698 | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
697 | 699 | then throw("Flagged artwork") | |
698 | 700 | else { | |
699 | 701 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
700 | 702 | if ((0 > blockEnd)) | |
701 | 703 | then throw("Negative end") | |
702 | 704 | else if (if ((blockEnd > 0)) | |
703 | 705 | then if ((maxMint != 1)) | |
704 | 706 | then true | |
705 | 707 | else (price != 0) | |
706 | 708 | else false) | |
707 | 709 | then throw("Timed offer only allowed for unique edition and offer only") | |
708 | 710 | else { | |
709 | 711 | let baseHeight = if ((blockEnd == 0)) | |
710 | 712 | then 0 | |
711 | 713 | else height | |
712 | 714 | if (!(acceptedAssetIds(assetId))) | |
713 | 715 | then throw("Something went wrong!") | |
714 | 716 | else if (!(validateMinSell(assetId, price))) | |
715 | 717 | then throw("Something went wrong!") | |
716 | 718 | else { | |
717 | 719 | let checkUser = validateUser(caller) | |
718 | 720 | if ((checkUser != "")) | |
719 | 721 | then throw(checkUser) | |
720 | 722 | else { | |
721 | 723 | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
722 | 724 | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
723 | 725 | if ((maxMint > 100)) | |
724 | 726 | then throw("100 editions max per artwork") | |
725 | 727 | else if (if ((amountSold != 0)) | |
726 | 728 | then (amountSold == maxCanSell) | |
727 | 729 | else false) | |
728 | 730 | then throw("Max edition reached.") | |
729 | 731 | else if (if ((amountSold > 0)) | |
730 | 732 | then (maxCanSell != maxMint) | |
731 | 733 | else false) | |
732 | 734 | then throw("Cannot change maximum issuable anymore") | |
733 | 735 | else if (if ((bidNbr > 0)) | |
734 | 736 | then (maxCanSell != maxMint) | |
735 | 737 | else false) | |
736 | 738 | then throw("Cannot change maximum issuable with active orders") | |
737 | 739 | else { | |
738 | 740 | let sellStatus = if (if ((price > 0)) | |
739 | 741 | then (maxMint > 0) | |
740 | 742 | else false) | |
741 | 743 | then true | |
742 | 744 | else false | |
743 | 745 | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId), IntegerEntry(keyEndSale(caller, artId), (baseHeight + blockEnd))] | |
744 | 746 | } | |
745 | 747 | } | |
746 | 748 | } | |
747 | 749 | } | |
748 | 750 | } | |
749 | 751 | } | |
750 | 752 | } | |
751 | 753 | ||
752 | 754 | ||
753 | 755 | ||
754 | 756 | @Callable(i) | |
755 | 757 | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "") | |
756 | 758 | ||
757 | 759 | ||
758 | 760 | ||
759 | 761 | @Callable(i) | |
760 | 762 | func setBid (artId,issuer) = { | |
761 | - | let $ | |
762 | - | let id = $ | |
763 | - | let caller = $ | |
764 | - | let date = $ | |
765 | - | let $ | |
766 | - | let payment = $ | |
767 | - | let amount = $ | |
763 | + | let $t02957829618 = idCallerDate(i) | |
764 | + | let id = $t02957829618._1 | |
765 | + | let caller = $t02957829618._2 | |
766 | + | let date = $t02957829618._3 | |
767 | + | let $t02962329659 = isPayment(i) | |
768 | + | let payment = $t02962329659._1 | |
769 | + | let amount = $t02962329659._2 | |
768 | 770 | let assetId = if (!(isDefined(payment.assetId))) | |
769 | 771 | then "WAVES" | |
770 | 772 | else toBase58String(value(payment.assetId)) | |
771 | 773 | let blockEnd = getIntegerByKey(keyEndSale(issuer, artId)) | |
772 | 774 | if (if ((blockEnd != 0)) | |
773 | 775 | then (height >= blockEnd) | |
774 | 776 | else false) | |
775 | 777 | then throw("Sale ended.") | |
776 | 778 | else { | |
777 | 779 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
778 | 780 | if (!(acceptedAssetIds(assetId))) | |
779 | 781 | then throw("asset not accepted") | |
780 | 782 | else if (!(validateMinSell(assetId, amount))) | |
781 | 783 | then throw("Wrong min sell") | |
782 | 784 | else { | |
783 | 785 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
784 | 786 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
785 | 787 | if ((0 >= maxCanSell)) | |
786 | 788 | then throw("No max edition set for this artwork") | |
787 | 789 | else if ((amountSold >= maxCanSell)) | |
788 | 790 | then throw("Sold out, you cannot bid") | |
789 | 791 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))] | |
790 | 792 | } | |
791 | 793 | } | |
792 | 794 | } | |
793 | 795 | ||
794 | 796 | ||
795 | 797 | ||
796 | 798 | @Callable(i) | |
797 | 799 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
798 | - | let $ | |
799 | - | let id = $ | |
800 | - | let caller = $ | |
801 | - | let date = $ | |
800 | + | let $t03081730857 = idCallerDate(i) | |
801 | + | let id = $t03081730857._1 | |
802 | + | let caller = $t03081730857._2 | |
803 | + | let date = $t03081730857._3 | |
802 | 804 | if ((caller != issuer)) | |
803 | 805 | then throw("You cannot do this action") | |
804 | 806 | else buyMint(i, artId, issuer, bidId, bidOwner) | |
805 | 807 | } | |
806 | 808 | ||
807 | 809 | ||
808 | 810 | ||
809 | 811 | @Callable(i) | |
810 | 812 | func cancelBid (artId,issuer,bidId,bidOwner) = { | |
811 | - | let $ | |
812 | - | let id = $ | |
813 | - | let caller = $ | |
814 | - | let date = $ | |
813 | + | let $t03108331144 = idCallerDate(i) | |
814 | + | let id = $t03108331144._1 | |
815 | + | let caller = $t03108331144._2 | |
816 | + | let date = $t03108331144._3 | |
815 | 817 | if (if ((caller != bidOwner)) | |
816 | 818 | then (caller != issuer) | |
817 | 819 | else false) | |
818 | 820 | then throw("You cannot do this action") | |
819 | 821 | else { | |
820 | 822 | let returnMoneyTo = if ((caller == issuer)) | |
821 | 823 | then bidOwner | |
822 | 824 | else caller | |
823 | 825 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
824 | 826 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
825 | 827 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
826 | 828 | if ((bidData == "")) | |
827 | 829 | then throw("Bid not found") | |
828 | 830 | else { | |
829 | 831 | let bidDataArr = split(bidData, "_") | |
830 | 832 | let assetId = getBidAssetId(bidDataArr[0]) | |
831 | 833 | let bidStatus = "CANCELED" | |
832 | 834 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(returnMoneyTo)), parseIntValue(bidDataArr[1]), assetId)] | |
833 | 835 | } | |
834 | 836 | } | |
835 | 837 | } | |
836 | 838 | ||
837 | 839 | ||
838 | 840 | @Verifier(tx) | |
839 | 841 | func verifier () = match tx { | |
840 | 842 | case inv: InvokeScriptTransaction => | |
841 | 843 | if (if ((inv.function == "addArtwork")) | |
842 | 844 | then (inv.dApp == this) | |
843 | 845 | else false) | |
844 | 846 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[13]))) | |
845 | 847 | else if (if ((inv.function == "updateArtwork")) | |
846 | 848 | then (inv.dApp == this) | |
847 | 849 | else false) | |
848 | 850 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[12]))) | |
849 | 851 | else if (if ((inv.function == "sellArtwork")) | |
850 | 852 | then (inv.dApp == this) | |
851 | 853 | else false) | |
852 | 854 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[5]))) | |
853 | 855 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
854 | 856 | case _ => | |
855 | 857 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
856 | 858 | } | |
857 | 859 |
github/deemru/w8io/169f3d6 103.61 ms ◑