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