tx · 3KuQPEvX3PEFBAezXhZ8ZaU6S1GegnTJAb9tGKrCBFj8 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.02600000 Waves 2023.02.03 07:12 [2432941] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "3KuQPEvX3PEFBAezXhZ8ZaU6S1GegnTJAb9tGKrCBFj8", "fee": 2600000, "feeAssetId": null, "timestamp": 1675396356495, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "5pATMPy5es4Xvis3FQjw9rHG3gCYthqYw97LZWcirJbuvmLK18hCfRJYP8DFxQb6BAdA1p2cSHzW5PB9AuBBHQz6" ], "script": "base64:BgJfCAISBAoCCAgSEAoOCAgICAgICAgICAgIAQgSDwoNCAgICAgICAgICAgBCBIGCgQICAgIEgQKAggIEggKBggBAQgBCBIECgIICBIECgIICBIGCgQICAgIEgYKBAgICAhQAAdWRVJTSU9OAgYxLjEuMTABDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgAACHVuaXRUZXN0BwAJb3JhY2xlRmVlCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeUtleQECD2NvbmZfb3JhY2xlX2ZlZQAIc2lnbkRhcHAJAQV2YWx1ZQEJAKYIAQkBDmdldFN0cmluZ0J5S2V5AQIRY29uZl9zaWdud2ViX2RhcHAAC2ZlZVJlY2VpdmVyCQEOZ2V0U3RyaW5nQnlLZXkBAhFjb25mX2ZlZV9yZWNlaXZlcgAIdXNlckRhcHADBQh1bml0VGVzdAkBBXZhbHVlAQkApggBAiMzTXQ0UkdNRXlqU1dZQW9jVFBxZDU1d2RIUVFCM1BVMlVDbQkBBXZhbHVlAQkApggBCQEOZ2V0U3RyaW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AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5EKL6Pg==", "height": 2432941, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5vjAnsL7J8xXk5hvPcnWpjerCnWuHxAkaiFGQ9LJN8vF Next: BW71ipLmS71GkHjYi2zbxNroaXp21YwkfoaGfZeM7gUG Diff:
Old | New | Differences | |
---|---|---|---|
487 | 487 | else false) | |
488 | 488 | then (height > isWhitelisted) | |
489 | 489 | else false) | |
490 | - | then fraction(amount, agentShare, | |
490 | + | then fraction(amount, agentShare, 10000) | |
491 | 491 | else 0 | |
492 | 492 | let amountForPublicAgent = if (if (if ((publicAgent != feeReceiver)) | |
493 | 493 | then (publicAgentShare > 0) | |
494 | 494 | else false) | |
495 | 495 | then (height > isWhitelisted) | |
496 | 496 | else false) | |
497 | - | then fraction(amount, publicAgentShare, | |
497 | + | then fraction(amount, publicAgentShare, 10000) | |
498 | 498 | else 0 | |
499 | 499 | let amountForCreator = (amount - amountForSign) | |
500 | 500 | if ((amountSold == maxCanSell)) | |
571 | 571 | ||
572 | 572 | @Callable(i) | |
573 | 573 | func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = { | |
574 | - | let $ | |
575 | - | let artId = $ | |
576 | - | let caller = $ | |
577 | - | let date = $ | |
578 | - | let isSponsored = $ | |
574 | + | let $t01980219875 = idCallerDateSponsored(i, pubKey) | |
575 | + | let artId = $t01980219875._1 | |
576 | + | let caller = $t01980219875._2 | |
577 | + | let date = $t01980219875._3 | |
578 | + | let isSponsored = $t01980219875._4 | |
579 | 579 | if (!(validateHash(sha256Hash))) | |
580 | 580 | then throw("Hash should be 64 characters maximum") | |
581 | 581 | else { | |
582 | - | let $ | |
583 | - | let licenceCID = $ | |
584 | - | let licenceHash = $ | |
582 | + | let $t01997620045 = setLIcence(cidLicence, sha256Licence) | |
583 | + | let licenceCID = $t01997620045._1 | |
584 | + | let licenceHash = $t01997620045._2 | |
585 | 585 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
586 | 586 | if ((validateArtwork != "")) | |
587 | 587 | then throw("Something went wrong!") | |
588 | 588 | else { | |
589 | 589 | let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0) | |
590 | - | let $ | |
590 | + | let $t02034420428 = if (whitelisted_drop) | |
591 | 591 | then $Tuple2(0, signID) | |
592 | 592 | else validatePayment(i) | |
593 | - | let amount = $ | |
594 | - | let assetId = $ | |
593 | + | let amount = $t02034420428._1 | |
594 | + | let assetId = $t02034420428._2 | |
595 | 595 | if (!(isDefined(amount))) | |
596 | 596 | then throw("Something went wrong") | |
597 | 597 | else { | |
632 | 632 | func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning)) | |
633 | 633 | then throw(maintenanceMSG) | |
634 | 634 | else { | |
635 | - | let $ | |
636 | - | let id = $ | |
637 | - | let caller = $ | |
638 | - | let date = $ | |
639 | - | let isSponsored = $ | |
640 | - | let $ | |
641 | - | let licenceCID = $ | |
642 | - | let licenceHash = $ | |
635 | + | let $t02346223532 = idCallerDateSponsored(i, pubKey) | |
636 | + | let id = $t02346223532._1 | |
637 | + | let caller = $t02346223532._2 | |
638 | + | let date = $t02346223532._3 | |
639 | + | let isSponsored = $t02346223532._4 | |
640 | + | let $t02354223611 = setLIcence(cidLicence, sha256Licence) | |
641 | + | let licenceCID = $t02354223611._1 | |
642 | + | let licenceHash = $t02354223611._2 | |
643 | 643 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
644 | 644 | if ((validateArtwork != "")) | |
645 | 645 | then throw("Something went wrong!") | |
667 | 667 | ||
668 | 668 | @Callable(i) | |
669 | 669 | func flagArtwork (artId,addr,flag,note) = { | |
670 | - | let $ | |
671 | - | let id = $ | |
672 | - | let caller = $ | |
670 | + | let $t02523825272 = idCallerDate(i) | |
671 | + | let id = $t02523825272._1 | |
672 | + | let caller = $t02523825272._2 | |
673 | 673 | if (containsElement([chris, toString(this)], caller)) | |
674 | 674 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
675 | 675 | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)] | |
681 | 681 | ||
682 | 682 | @Callable(i) | |
683 | 683 | func deleteArtwork (artId,addr) = { | |
684 | - | let $ | |
685 | - | let id = $ | |
686 | - | let caller = $ | |
684 | + | let $t02570825742 = idCallerDate(i) | |
685 | + | let id = $t02570825742._1 | |
686 | + | let caller = $t02570825742._2 | |
687 | 687 | let addrToUse = if (containsElement([chris, toString(this)], caller)) | |
688 | 688 | then addr | |
689 | 689 | else caller | |
716 | 716 | ||
717 | 717 | @Callable(i) | |
718 | 718 | func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = { | |
719 | - | let $ | |
720 | - | let id = $ | |
721 | - | let caller = $ | |
722 | - | let date = $ | |
723 | - | let isSponsored = $ | |
719 | + | let $t02857828648 = idCallerDateSponsored(i, pubKey) | |
720 | + | let id = $t02857828648._1 | |
721 | + | let caller = $t02857828648._2 | |
722 | + | let date = $t02857828648._3 | |
723 | + | let isSponsored = $t02857828648._4 | |
724 | 724 | let artworkName = getStringByKey(keyName(caller, artId)) | |
725 | 725 | if ((artworkName == "")) | |
726 | 726 | then throw("This art doesn't match your account") | |
794 | 794 | ||
795 | 795 | @Callable(i) | |
796 | 796 | func setBid (artId,issuer) = { | |
797 | - | let $ | |
798 | - | let id = $ | |
799 | - | let caller = $ | |
800 | - | let date = $ | |
801 | - | let $ | |
802 | - | let payment = $ | |
803 | - | let amount = $ | |
797 | + | let $t03102631066 = idCallerDate(i) | |
798 | + | let id = $t03102631066._1 | |
799 | + | let caller = $t03102631066._2 | |
800 | + | let date = $t03102631066._3 | |
801 | + | let $t03107131107 = isPayment(i) | |
802 | + | let payment = $t03107131107._1 | |
803 | + | let amount = $t03107131107._2 | |
804 | 804 | let assetId = if (!(isDefined(payment.assetId))) | |
805 | 805 | then "WAVES" | |
806 | 806 | else toBase58String(value(payment.assetId)) | |
831 | 831 | ||
832 | 832 | @Callable(i) | |
833 | 833 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
834 | - | let $ | |
835 | - | let id = $ | |
836 | - | let caller = $ | |
837 | - | let date = $ | |
834 | + | let $t03226532305 = idCallerDate(i) | |
835 | + | let id = $t03226532305._1 | |
836 | + | let caller = $t03226532305._2 | |
837 | + | let date = $t03226532305._3 | |
838 | 838 | if ((caller != issuer)) | |
839 | 839 | then throw("You cannot do this action") | |
840 | 840 | else buyMint(i, artId, issuer, bidId, bidOwner) | |
844 | 844 | ||
845 | 845 | @Callable(i) | |
846 | 846 | func cancelBid (artId,issuer,bidId,bidOwner) = { | |
847 | - | let $ | |
848 | - | let id = $ | |
849 | - | let caller = $ | |
850 | - | let date = $ | |
847 | + | let $t03253132592 = idCallerDate(i) | |
848 | + | let id = $t03253132592._1 | |
849 | + | let caller = $t03253132592._2 | |
850 | + | let date = $t03253132592._3 | |
851 | 851 | if (if ((caller != bidOwner)) | |
852 | 852 | then (caller != issuer) | |
853 | 853 | 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.10" | |
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 keyPrimaryShareAgent (artistAddr) = ("artist_agent_primary_" + artistAddr) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func keyArtistPublicAgentAddr (artistAddr) = ("artist_public_agent_" + artistAddr) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func keyPrimarySharePublicAgent (artistAddr) = ("artist_public_agent_primary_" + artistAddr) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func keyidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func validateAllCID (cidDisplay,cidExport,cidLicence) = if (!(validateCID(cidDisplay))) | |
183 | 183 | then throw("Wrong Display CID") | |
184 | 184 | else if (!(validateCID(cidExport))) | |
185 | 185 | then throw("Wrong Export CID") | |
186 | 186 | else if (if ((cidLicence != "")) | |
187 | 187 | then !(validateCID(cidLicence)) | |
188 | 188 | else false) | |
189 | 189 | then throw("Wrong Licence CID") | |
190 | 190 | else true | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func validateAllHash (sha256Export,sha256Licence) = if (!(validateHash(sha256Export))) | |
194 | 194 | then throw("Export Hash 64 char. max") | |
195 | 195 | else if (!(validateHash(sha256Licence))) | |
196 | 196 | then throw("Licence Hash 64 char. max") | |
197 | 197 | else true | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func validateString (str,max) = if ((size(str) == 0)) | |
201 | 201 | then throw("Field cannot be is empty") | |
202 | 202 | else if ((size(str) > max)) | |
203 | 203 | then throw((str + " is too long")) | |
204 | 204 | else true | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func validateUser (caller) = { | |
208 | 208 | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
209 | 209 | if (if ((userStatus == userUnregistered)) | |
210 | 210 | then true | |
211 | 211 | else (userStatus == userAllowed)) | |
212 | 212 | then "Register this account first with \"Account\" tab" | |
213 | 213 | else if ((userStatus == userSuspended)) | |
214 | 214 | then "Account suspended" | |
215 | 215 | else if ((userStatus == userRemoved)) | |
216 | 216 | then "Account removed" | |
217 | 217 | else "" | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func setLIcence (cidLicence,sha256Licence) = { | |
222 | 222 | let cid = if ((size(cidLicence) == 0)) | |
223 | 223 | then defaultLicence | |
224 | 224 | else cidLicence | |
225 | 225 | let hash = if ((size(sha256Licence) == 0)) | |
226 | 226 | then defaultHashLicence | |
227 | 227 | else sha256Licence | |
228 | 228 | $Tuple2(cid, hash) | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags,royalties) = { | |
233 | 233 | let checkUser = validateUser(caller) | |
234 | 234 | if ((checkUser != "")) | |
235 | 235 | then throw(checkUser) | |
236 | 236 | else if ((size(cidDisplay) == 0)) | |
237 | 237 | then throw("Display CID cannot be empty") | |
238 | 238 | else if (!(validateAllCID(cidDisplay, cidExport, licenceCID))) | |
239 | 239 | then throw("Problem with CID") | |
240 | 240 | else if (!(validateAllHash(sha256Export, licenceHash))) | |
241 | 241 | then throw("Problem with Hashes") | |
242 | 242 | else if (!(validateString(name, 100))) | |
243 | 243 | then throw("100 Char. max name") | |
244 | 244 | else if (!(validateString(description, 1000))) | |
245 | 245 | then throw("1000 Char. max description") | |
246 | 246 | else if (if ((0 > royalties)) | |
247 | 247 | then true | |
248 | 248 | else (royalties > 1000)) | |
249 | 249 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
250 | 250 | else if ((size(split(tags, ",")) > 5)) | |
251 | 251 | then throw("5 tags max.") | |
252 | 252 | else "" | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func isPayment (i) = if ((size(i.payments) == 0)) | |
257 | 257 | then throw("No payment attached") | |
258 | 258 | else { | |
259 | 259 | let payment = value(i.payments[0]) | |
260 | 260 | let amount = value(payment.amount) | |
261 | 261 | $Tuple2(payment, amount) | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func validatePayment (i) = { | |
266 | 266 | let $t091809216 = isPayment(i) | |
267 | 267 | let payment = $t091809216._1 | |
268 | 268 | let amount = $t091809216._2 | |
269 | 269 | let assetId = if (if (isDefined(payment.assetId)) | |
270 | 270 | then (payment.assetId == signAssetId) | |
271 | 271 | else false) | |
272 | 272 | then payment.assetId | |
273 | 273 | else throw("Only SIGN token accepted as transaction fee") | |
274 | 274 | if ((amount != currentCertificationPrice)) | |
275 | 275 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
276 | 276 | else $Tuple2(amount, assetId) | |
277 | 277 | } | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) { | |
281 | 281 | case b: Int => | |
282 | 282 | if ((b != 0)) | |
283 | 283 | then true | |
284 | 284 | else false | |
285 | 285 | case _ => | |
286 | 286 | false | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
291 | 291 | let $t098049840 = isPayment(i) | |
292 | 292 | let payment = $t098049840._1 | |
293 | 293 | let amount = $t098049840._2 | |
294 | 294 | let assetId = if (!(isDefined(payment.assetId))) | |
295 | 295 | then unit | |
296 | 296 | else if (if ((size(priceAssetId) > 0)) | |
297 | 297 | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
298 | 298 | else false) | |
299 | 299 | then payment.assetId | |
300 | 300 | else throw("Wrong asset id") | |
301 | 301 | if (if ((assetId == unit)) | |
302 | 302 | then (priceAssetId != "") | |
303 | 303 | else false) | |
304 | 304 | then throw("Wrong asset id") | |
305 | 305 | else if ((artworkPrice != amount)) | |
306 | 306 | then throw("Payment don't match") | |
307 | 307 | else $Tuple2(amount, assetId) | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | func acceptedAssetIds (assetId) = if (if (if (if (if ((assetId != toBase58String(signAssetId))) | |
312 | 312 | then (assetId != toBase58String(wavesAssetId)) | |
313 | 313 | else false) | |
314 | 314 | then (assetId != "WAVES") | |
315 | 315 | else false) | |
316 | 316 | then (assetId != toBase58String(usdnAssetId)) | |
317 | 317 | else false) | |
318 | 318 | then (assetId != toBase58String(usdtAssetId)) | |
319 | 319 | else false) | |
320 | 320 | then throw("Only SIGN, USDN,USDT or WAVES accepted") | |
321 | 321 | else true | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | func validateMinSell (assetId,price) = { | |
325 | 325 | let minSellWaves = if (unitTest) | |
326 | 326 | then 10 | |
327 | 327 | else getIntegerByKeyFromOracle("waves_min_sell") | |
328 | 328 | let minSellUsdn = 1000000 | |
329 | 329 | let minSellSign = if (unitTest) | |
330 | 330 | then 1 | |
331 | 331 | else (currentCertificationPrice * 2) | |
332 | 332 | if (if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
333 | 333 | then (minSellUsdn > price) | |
334 | 334 | else false) | |
335 | 335 | then (price != 0) | |
336 | 336 | else false) | |
337 | 337 | then true | |
338 | 338 | else if (if ((assetId == toBase58String(usdtAssetId))) | |
339 | 339 | then (minSellUsdn > price) | |
340 | 340 | else false) | |
341 | 341 | then (price != 0) | |
342 | 342 | else false) | |
343 | 343 | then true | |
344 | 344 | else if (if ((assetId == toBase58String(signAssetId))) | |
345 | 345 | then (minSellSign > price) | |
346 | 346 | else false) | |
347 | 347 | then (price != 0) | |
348 | 348 | else false) | |
349 | 349 | then true | |
350 | 350 | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
351 | 351 | then true | |
352 | 352 | else (assetId == "WAVES")) | |
353 | 353 | then (minSellWaves > price) | |
354 | 354 | else false) | |
355 | 355 | then (price != 0) | |
356 | 356 | else false) | |
357 | 357 | then throw("Wrong minimum sell price") | |
358 | 358 | else true | |
359 | 359 | } | |
360 | 360 | ||
361 | 361 | ||
362 | 362 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
363 | 363 | then unit | |
364 | 364 | else fromBase58String(assetId) | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | func getPriceAssetIdFromBid (bidDataKey) = { | |
368 | 368 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
369 | 369 | if ((bidData == "")) | |
370 | 370 | then throw("Bid not found") | |
371 | 371 | else { | |
372 | 372 | let bidDataArr = split(bidData, "_") | |
373 | 373 | let bidAmount = parseIntValue(bidDataArr[1]) | |
374 | 374 | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
375 | 375 | if ((0 >= bidAmount)) | |
376 | 376 | then throw("Wrong amount") | |
377 | 377 | else $Tuple2(bidAmount, bidAssetId) | |
378 | 378 | } | |
379 | 379 | } | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func idCallerDateSponsored (i,pubKey) = if (!(dappRunning)) | |
383 | 383 | then throw(maintenanceMSG) | |
384 | 384 | else { | |
385 | 385 | let isSponsored = if ((pubKey != "")) | |
386 | 386 | then valueOrElse(checkWhitelist((toString(addressFromPublicKey(fromBase58String(pubKey))) + "_free_txs")), 0) | |
387 | 387 | else 0 | |
388 | 388 | let caller = if (if ((toBase58String(i.caller.bytes) == toString(this))) | |
389 | 389 | then (isSponsored > 0) | |
390 | 390 | else false) | |
391 | 391 | then toString(addressFromPublicKey(fromBase58String(pubKey))) | |
392 | 392 | else toBase58String(i.caller.bytes) | |
393 | 393 | let get_sponsored_waves = if (if ((pubKey != "")) | |
394 | 394 | then (isSponsored > 0) | |
395 | 395 | else false) | |
396 | 396 | then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil) | |
397 | 397 | else unit | |
398 | 398 | if ((get_sponsored_waves == get_sponsored_waves)) | |
399 | 399 | then $Tuple4(toBase58String(i.transactionId), caller, lastBlock.timestamp, (isSponsored > 0)) | |
400 | 400 | else throw("Strict value is not equal to itself.") | |
401 | 401 | } | |
402 | 402 | ||
403 | 403 | ||
404 | 404 | func idCallerDate (i) = if (!(dappRunning)) | |
405 | 405 | then throw(maintenanceMSG) | |
406 | 406 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
410 | 410 | let $t01297713036 = idCallerDate(i) | |
411 | 411 | let id = $t01297713036._1 | |
412 | 412 | let caller = $t01297713036._2 | |
413 | 413 | let date = $t01297713036._3 | |
414 | 414 | let isBid = if (if (if ((caller == issuer)) | |
415 | 415 | then (bidOwner != "") | |
416 | 416 | else false) | |
417 | 417 | then (bidId != "") | |
418 | 418 | else false) | |
419 | 419 | then true | |
420 | 420 | else false | |
421 | 421 | let blockEnd = getIntegerByKey(keyEndSale(caller, artId)) | |
422 | 422 | if (if (if ((blockEnd != 0)) | |
423 | 423 | then (height >= blockEnd) | |
424 | 424 | else false) | |
425 | 425 | then !(isBid) | |
426 | 426 | else false) | |
427 | 427 | then throw("Sale ended.") | |
428 | 428 | else { | |
429 | 429 | let callerIsIssuer = (caller == issuer) | |
430 | 430 | let totalNFT = getIntegerByKey("total_nft_issued") | |
431 | 431 | let signID = getStringByKey(keySignID(issuer, artId)) | |
432 | 432 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
433 | 433 | if ((artworkName == "")) | |
434 | 434 | then throw("Art doesn't exist") | |
435 | 435 | else { | |
436 | 436 | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
437 | 437 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
438 | 438 | let artworkPrice = if (callerIsIssuer) | |
439 | 439 | then (currentCertificationPrice * 2) | |
440 | 440 | else getIntegerByKey(keyPrice(issuer, artId)) | |
441 | 441 | let priceAssetId = if (callerIsIssuer) | |
442 | 442 | then toBase58String(signAssetId) | |
443 | 443 | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
444 | 444 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
445 | 445 | if (if (if (!(isBid)) | |
446 | 446 | then !(callerIsIssuer) | |
447 | 447 | else false) | |
448 | 448 | then if (if ((0 >= artworkPrice)) | |
449 | 449 | then true | |
450 | 450 | else !(isOnSale)) | |
451 | 451 | then true | |
452 | 452 | else (0 >= maxCanSell) | |
453 | 453 | else false) | |
454 | 454 | then throw("Art not for sale") | |
455 | 455 | else if (if (if (!(isBid)) | |
456 | 456 | then callerIsIssuer | |
457 | 457 | else false) | |
458 | 458 | then (0 >= maxCanSell) | |
459 | 459 | else false) | |
460 | 460 | then throw("Max issuable not set") | |
461 | 461 | else { | |
462 | 462 | let checkUser = validateUser(issuer) | |
463 | 463 | if (if (isBid) | |
464 | 464 | then (checkUser != "") | |
465 | 465 | else false) | |
466 | 466 | then throw(checkUser) | |
467 | 467 | else { | |
468 | 468 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
469 | 469 | let $t01455514747 = if (isBid) | |
470 | 470 | then getPriceAssetIdFromBid(bidDataKey) | |
471 | 471 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
472 | 472 | let amount = $t01455514747._1 | |
473 | 473 | let assetId = $t01455514747._2 | |
474 | 474 | let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver) | |
475 | 475 | let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShareAgent(issuer)), 0) | |
476 | 476 | let publicAgent = valueOrElse(getString(userDapp, keyArtistPublicAgentAddr(issuer)), feeReceiver) | |
477 | 477 | let publicAgentShare = valueOrElse(getInteger(userDapp, keyPrimarySharePublicAgent(issuer)), 0) | |
478 | 478 | let isWhitelisted = checkWhitelist(issuer) | |
479 | 479 | let cut = if ((isWhitelisted > height)) | |
480 | 480 | then 0 | |
481 | 481 | else if ((assetId == signAssetId)) | |
482 | 482 | then signCut | |
483 | 483 | else usdnWaveCut | |
484 | 484 | let amountForSign = fraction(amount, cut, 100) | |
485 | 485 | let amountForAgent = if (if (if ((agent != feeReceiver)) | |
486 | 486 | then (agentShare > 0) | |
487 | 487 | else false) | |
488 | 488 | then (height > isWhitelisted) | |
489 | 489 | else false) | |
490 | - | then fraction(amount, agentShare, | |
490 | + | then fraction(amount, agentShare, 10000) | |
491 | 491 | else 0 | |
492 | 492 | let amountForPublicAgent = if (if (if ((publicAgent != feeReceiver)) | |
493 | 493 | then (publicAgentShare > 0) | |
494 | 494 | else false) | |
495 | 495 | then (height > isWhitelisted) | |
496 | 496 | else false) | |
497 | - | then fraction(amount, publicAgentShare, | |
497 | + | then fraction(amount, publicAgentShare, 10000) | |
498 | 498 | else 0 | |
499 | 499 | let amountForCreator = (amount - amountForSign) | |
500 | 500 | if ((amountSold == maxCanSell)) | |
501 | 501 | then throw("Art sold out") | |
502 | 502 | else { | |
503 | 503 | let newAmountSold = (amountSold + 1) | |
504 | 504 | let issueMeta = ((((((((((("Creator: " + issuer) + ", | |
505 | 505 | ArtID: ") + artId) + ", | |
506 | 506 | SignID: ") + signID) + ", | |
507 | 507 | Artwork name: ") + artworkName) + ", | |
508 | 508 | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
509 | 509 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
510 | 510 | let idNFT = calculateAssetId(issueNFT) | |
511 | 511 | let sellStatus = if (if ((newAmountSold == maxCanSell)) | |
512 | 512 | then true | |
513 | 513 | else !(isOnSale)) | |
514 | 514 | then false | |
515 | 515 | else true | |
516 | 516 | let receiveNFT = if (if (if ((caller == issuer)) | |
517 | 517 | then (bidOwner != "") | |
518 | 518 | else false) | |
519 | 519 | then (bidId != "") | |
520 | 520 | else false) | |
521 | 521 | then addressFromStringValue(bidOwner) | |
522 | 522 | else i.caller | |
523 | 523 | let assetIdBid = if (!(isDefined(assetId))) | |
524 | 524 | then "WAVES" | |
525 | 525 | else toBase58String(value(assetId)) | |
526 | 526 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
527 | 527 | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
528 | 528 | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
529 | 529 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
530 | 530 | let soldValue = if (!(isBid)) | |
531 | 531 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
532 | 532 | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT)) | |
533 | 533 | let soldData = StringEntry(soldKey, soldValue) | |
534 | 534 | let commissionsWithAgent = if ((amountForAgent != 0)) | |
535 | 535 | then [ScriptTransfer(Address(fromBase58String(feeReceiver)), (amountForSign - amountForAgent), assetId), ScriptTransfer(Address(fromBase58String(agent)), amountForAgent, assetId)] | |
536 | 536 | else [ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)] | |
537 | 537 | let commissionsWithPublicAgent = if ((amountForPublicAgent != 0)) | |
538 | 538 | then [ScriptTransfer(Address(fromBase58String(publicAgent)), amountForPublicAgent, assetId), ScriptTransfer(Address(fromBase58String(issuer)), (amountForCreator - amountForPublicAgent), assetId)] | |
539 | 539 | else [ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId)] | |
540 | 540 | 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) | |
541 | 541 | if (isBid) | |
542 | 542 | then [soldData, bidUpdate, bidDelOld] :: buyRes | |
543 | 543 | else soldData :: buyRes | |
544 | 544 | } | |
545 | 545 | } | |
546 | 546 | } | |
547 | 547 | } | |
548 | 548 | } | |
549 | 549 | } | |
550 | 550 | ||
551 | 551 | ||
552 | 552 | func asString (bv) = match bv { | |
553 | 553 | case bv0: String => | |
554 | 554 | bv0 | |
555 | 555 | case _ => | |
556 | 556 | throw("Sponsored Public Key String expected") | |
557 | 557 | } | |
558 | 558 | ||
559 | 559 | ||
560 | 560 | @Callable(invoke) | |
561 | 561 | func setConf (key,val) = { | |
562 | 562 | let caller = toString(invoke.caller) | |
563 | 563 | if (containsElement([chris, toString(this)], caller)) | |
564 | 564 | then if (contains(key, "conf_")) | |
565 | 565 | then [StringEntry(key, val)] | |
566 | 566 | else throw("Entries starting with conf_ only") | |
567 | 567 | else throw("You are not allowed to change this") | |
568 | 568 | } | |
569 | 569 | ||
570 | 570 | ||
571 | 571 | ||
572 | 572 | @Callable(i) | |
573 | 573 | func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = { | |
574 | - | let $ | |
575 | - | let artId = $ | |
576 | - | let caller = $ | |
577 | - | let date = $ | |
578 | - | let isSponsored = $ | |
574 | + | let $t01980219875 = idCallerDateSponsored(i, pubKey) | |
575 | + | let artId = $t01980219875._1 | |
576 | + | let caller = $t01980219875._2 | |
577 | + | let date = $t01980219875._3 | |
578 | + | let isSponsored = $t01980219875._4 | |
579 | 579 | if (!(validateHash(sha256Hash))) | |
580 | 580 | then throw("Hash should be 64 characters maximum") | |
581 | 581 | else { | |
582 | - | let $ | |
583 | - | let licenceCID = $ | |
584 | - | let licenceHash = $ | |
582 | + | let $t01997620045 = setLIcence(cidLicence, sha256Licence) | |
583 | + | let licenceCID = $t01997620045._1 | |
584 | + | let licenceHash = $t01997620045._2 | |
585 | 585 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
586 | 586 | if ((validateArtwork != "")) | |
587 | 587 | then throw("Something went wrong!") | |
588 | 588 | else { | |
589 | 589 | let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0) | |
590 | - | let $ | |
590 | + | let $t02034420428 = if (whitelisted_drop) | |
591 | 591 | then $Tuple2(0, signID) | |
592 | 592 | else validatePayment(i) | |
593 | - | let amount = $ | |
594 | - | let assetId = $ | |
593 | + | let amount = $t02034420428._1 | |
594 | + | let assetId = $t02034420428._2 | |
595 | 595 | if (!(isDefined(amount))) | |
596 | 596 | then throw("Something went wrong") | |
597 | 597 | else { | |
598 | 598 | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
599 | 599 | if ((entryExist != "")) | |
600 | 600 | then throw("You already added it") | |
601 | 601 | else { | |
602 | 602 | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
603 | 603 | if ((hashExist != "")) | |
604 | 604 | then throw("Hash already registered") | |
605 | 605 | else { | |
606 | 606 | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
607 | 607 | if (!(isSignCertified)) | |
608 | 608 | then throw("Sign Certificate not found for this address.") | |
609 | 609 | else { | |
610 | 610 | let decrease_whitelist_drop = if (whitelisted_drop) | |
611 | 611 | then invoke(whitelistDapp, "useFreeDrop", [caller], nil) | |
612 | 612 | else unit | |
613 | 613 | if ((decrease_whitelist_drop == decrease_whitelist_drop)) | |
614 | 614 | then { | |
615 | 615 | let txToCaller = if (isSponsored) | |
616 | 616 | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
617 | 617 | else nil | |
618 | 618 | ([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)] ++ txToCaller) | |
619 | 619 | } | |
620 | 620 | else throw("Strict value is not equal to itself.") | |
621 | 621 | } | |
622 | 622 | } | |
623 | 623 | } | |
624 | 624 | } | |
625 | 625 | } | |
626 | 626 | } | |
627 | 627 | } | |
628 | 628 | ||
629 | 629 | ||
630 | 630 | ||
631 | 631 | @Callable(i) | |
632 | 632 | func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning)) | |
633 | 633 | then throw(maintenanceMSG) | |
634 | 634 | else { | |
635 | - | let $ | |
636 | - | let id = $ | |
637 | - | let caller = $ | |
638 | - | let date = $ | |
639 | - | let isSponsored = $ | |
640 | - | let $ | |
641 | - | let licenceCID = $ | |
642 | - | let licenceHash = $ | |
635 | + | let $t02346223532 = idCallerDateSponsored(i, pubKey) | |
636 | + | let id = $t02346223532._1 | |
637 | + | let caller = $t02346223532._2 | |
638 | + | let date = $t02346223532._3 | |
639 | + | let isSponsored = $t02346223532._4 | |
640 | + | let $t02354223611 = setLIcence(cidLicence, sha256Licence) | |
641 | + | let licenceCID = $t02354223611._1 | |
642 | + | let licenceHash = $t02354223611._2 | |
643 | 643 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
644 | 644 | if ((validateArtwork != "")) | |
645 | 645 | then throw("Something went wrong!") | |
646 | 646 | else { | |
647 | 647 | let entryExist = getStringByKey(keyName(caller, txid)) | |
648 | 648 | if ((entryExist == "")) | |
649 | 649 | then throw("Entry not found") | |
650 | 650 | else { | |
651 | 651 | let flag = getStringByKey(keyFlag(caller, txid)) | |
652 | 652 | if ((flag == "ILLEGAL")) | |
653 | 653 | then throw("Cannot update ILLEGAL artwork") | |
654 | 654 | else if (!(isArtMinted(caller, txid))) | |
655 | 655 | then { | |
656 | 656 | let txToCaller = if (isSponsored) | |
657 | 657 | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
658 | 658 | else nil | |
659 | 659 | ([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) | |
660 | 660 | } | |
661 | 661 | else throw("Already minted") | |
662 | 662 | } | |
663 | 663 | } | |
664 | 664 | } | |
665 | 665 | ||
666 | 666 | ||
667 | 667 | ||
668 | 668 | @Callable(i) | |
669 | 669 | func flagArtwork (artId,addr,flag,note) = { | |
670 | - | let $ | |
671 | - | let id = $ | |
672 | - | let caller = $ | |
670 | + | let $t02523825272 = idCallerDate(i) | |
671 | + | let id = $t02523825272._1 | |
672 | + | let caller = $t02523825272._2 | |
673 | 673 | if (containsElement([chris, toString(this)], caller)) | |
674 | 674 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
675 | 675 | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)] | |
676 | 676 | else throw(("Unknow status " + flag)) | |
677 | 677 | else throw("You are not allowed") | |
678 | 678 | } | |
679 | 679 | ||
680 | 680 | ||
681 | 681 | ||
682 | 682 | @Callable(i) | |
683 | 683 | func deleteArtwork (artId,addr) = { | |
684 | - | let $ | |
685 | - | let id = $ | |
686 | - | let caller = $ | |
684 | + | let $t02570825742 = idCallerDate(i) | |
685 | + | let id = $t02570825742._1 | |
686 | + | let caller = $t02570825742._2 | |
687 | 687 | let addrToUse = if (containsElement([chris, toString(this)], caller)) | |
688 | 688 | then addr | |
689 | 689 | else caller | |
690 | 690 | let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address") | |
691 | 691 | if ((entryExist == "")) | |
692 | 692 | then throw("No art matching for this address") | |
693 | 693 | else { | |
694 | 694 | let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId)) | |
695 | 695 | if ((sha256Hash == "")) | |
696 | 696 | then throw("No art hash matching for this address") | |
697 | 697 | else { | |
698 | 698 | let signID = getStringByKey(keySignID(addrToUse, artId)) | |
699 | 699 | if ((signID == "")) | |
700 | 700 | then throw("No SIGN ID matching") | |
701 | 701 | else { | |
702 | 702 | 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))] | |
703 | 703 | if (!(isArtMinted(addrToUse, artId))) | |
704 | 704 | then if (!(dappRunning)) | |
705 | 705 | then throw(maintenanceMSG) | |
706 | 706 | else dataToDelete | |
707 | 707 | else if (containsElement([chris, toString(this)], caller)) | |
708 | 708 | then dataToDelete | |
709 | 709 | else throw("Art already minted, you cannot delete it") | |
710 | 710 | } | |
711 | 711 | } | |
712 | 712 | } | |
713 | 713 | } | |
714 | 714 | ||
715 | 715 | ||
716 | 716 | ||
717 | 717 | @Callable(i) | |
718 | 718 | func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = { | |
719 | - | let $ | |
720 | - | let id = $ | |
721 | - | let caller = $ | |
722 | - | let date = $ | |
723 | - | let isSponsored = $ | |
719 | + | let $t02857828648 = idCallerDateSponsored(i, pubKey) | |
720 | + | let id = $t02857828648._1 | |
721 | + | let caller = $t02857828648._2 | |
722 | + | let date = $t02857828648._3 | |
723 | + | let isSponsored = $t02857828648._4 | |
724 | 724 | let artworkName = getStringByKey(keyName(caller, artId)) | |
725 | 725 | if ((artworkName == "")) | |
726 | 726 | then throw("This art doesn't match your account") | |
727 | 727 | else { | |
728 | 728 | let flag = getStringByKey(keyFlag(caller, artId)) | |
729 | 729 | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
730 | 730 | then throw("Flagged artwork") | |
731 | 731 | else { | |
732 | 732 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
733 | 733 | if ((0 > blockEnd)) | |
734 | 734 | then throw("Negative end") | |
735 | 735 | else if (if ((blockEnd > 0)) | |
736 | 736 | then if ((maxMint != 1)) | |
737 | 737 | then true | |
738 | 738 | else (price != 0) | |
739 | 739 | else false) | |
740 | 740 | then throw("Timed offer only allowed for unique edition and offer only") | |
741 | 741 | else { | |
742 | 742 | let baseHeight = if ((blockEnd == 0)) | |
743 | 743 | then 0 | |
744 | 744 | else height | |
745 | 745 | if (!(acceptedAssetIds(assetId))) | |
746 | 746 | then throw("Something went wrong!") | |
747 | 747 | else if (!(validateMinSell(assetId, price))) | |
748 | 748 | then throw("Something went wrong!") | |
749 | 749 | else { | |
750 | 750 | let checkUser = validateUser(caller) | |
751 | 751 | if ((checkUser != "")) | |
752 | 752 | then throw(checkUser) | |
753 | 753 | else { | |
754 | 754 | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
755 | 755 | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
756 | 756 | if ((maxMint > 100)) | |
757 | 757 | then throw("100 editions max per artwork") | |
758 | 758 | else if (if ((amountSold != 0)) | |
759 | 759 | then (amountSold == maxCanSell) | |
760 | 760 | else false) | |
761 | 761 | then throw("Max edition reached.") | |
762 | 762 | else if (if ((amountSold > 0)) | |
763 | 763 | then (maxCanSell != maxMint) | |
764 | 764 | else false) | |
765 | 765 | then throw("Cannot change maximum issuable anymore") | |
766 | 766 | else if (if ((bidNbr > 0)) | |
767 | 767 | then (maxCanSell != maxMint) | |
768 | 768 | else false) | |
769 | 769 | then throw("Cannot change maximum issuable with active orders") | |
770 | 770 | else { | |
771 | 771 | let sellStatus = if (if ((price > 0)) | |
772 | 772 | then (maxMint > 0) | |
773 | 773 | else false) | |
774 | 774 | then true | |
775 | 775 | else false | |
776 | 776 | let txToCaller = if (isSponsored) | |
777 | 777 | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
778 | 778 | else nil | |
779 | 779 | ([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) | |
780 | 780 | } | |
781 | 781 | } | |
782 | 782 | } | |
783 | 783 | } | |
784 | 784 | } | |
785 | 785 | } | |
786 | 786 | } | |
787 | 787 | ||
788 | 788 | ||
789 | 789 | ||
790 | 790 | @Callable(i) | |
791 | 791 | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "") | |
792 | 792 | ||
793 | 793 | ||
794 | 794 | ||
795 | 795 | @Callable(i) | |
796 | 796 | func setBid (artId,issuer) = { | |
797 | - | let $ | |
798 | - | let id = $ | |
799 | - | let caller = $ | |
800 | - | let date = $ | |
801 | - | let $ | |
802 | - | let payment = $ | |
803 | - | let amount = $ | |
797 | + | let $t03102631066 = idCallerDate(i) | |
798 | + | let id = $t03102631066._1 | |
799 | + | let caller = $t03102631066._2 | |
800 | + | let date = $t03102631066._3 | |
801 | + | let $t03107131107 = isPayment(i) | |
802 | + | let payment = $t03107131107._1 | |
803 | + | let amount = $t03107131107._2 | |
804 | 804 | let assetId = if (!(isDefined(payment.assetId))) | |
805 | 805 | then "WAVES" | |
806 | 806 | else toBase58String(value(payment.assetId)) | |
807 | 807 | let blockEnd = getIntegerByKey(keyEndSale(issuer, artId)) | |
808 | 808 | if (if ((blockEnd != 0)) | |
809 | 809 | then (height >= blockEnd) | |
810 | 810 | else false) | |
811 | 811 | then throw("Sale ended.") | |
812 | 812 | else { | |
813 | 813 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
814 | 814 | if (!(acceptedAssetIds(assetId))) | |
815 | 815 | then throw("asset not accepted") | |
816 | 816 | else if (!(validateMinSell(assetId, amount))) | |
817 | 817 | then throw("Wrong min sell") | |
818 | 818 | else { | |
819 | 819 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
820 | 820 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
821 | 821 | if ((0 >= maxCanSell)) | |
822 | 822 | then throw("No max edition set for this artwork") | |
823 | 823 | else if ((amountSold >= maxCanSell)) | |
824 | 824 | then throw("Sold out, you cannot bid") | |
825 | 825 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))] | |
826 | 826 | } | |
827 | 827 | } | |
828 | 828 | } | |
829 | 829 | ||
830 | 830 | ||
831 | 831 | ||
832 | 832 | @Callable(i) | |
833 | 833 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
834 | - | let $ | |
835 | - | let id = $ | |
836 | - | let caller = $ | |
837 | - | let date = $ | |
834 | + | let $t03226532305 = idCallerDate(i) | |
835 | + | let id = $t03226532305._1 | |
836 | + | let caller = $t03226532305._2 | |
837 | + | let date = $t03226532305._3 | |
838 | 838 | if ((caller != issuer)) | |
839 | 839 | then throw("You cannot do this action") | |
840 | 840 | else buyMint(i, artId, issuer, bidId, bidOwner) | |
841 | 841 | } | |
842 | 842 | ||
843 | 843 | ||
844 | 844 | ||
845 | 845 | @Callable(i) | |
846 | 846 | func cancelBid (artId,issuer,bidId,bidOwner) = { | |
847 | - | let $ | |
848 | - | let id = $ | |
849 | - | let caller = $ | |
850 | - | let date = $ | |
847 | + | let $t03253132592 = idCallerDate(i) | |
848 | + | let id = $t03253132592._1 | |
849 | + | let caller = $t03253132592._2 | |
850 | + | let date = $t03253132592._3 | |
851 | 851 | if (if ((caller != bidOwner)) | |
852 | 852 | then (caller != issuer) | |
853 | 853 | else false) | |
854 | 854 | then throw("You cannot do this action") | |
855 | 855 | else { | |
856 | 856 | let returnMoneyTo = if ((caller == issuer)) | |
857 | 857 | then bidOwner | |
858 | 858 | else caller | |
859 | 859 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
860 | 860 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
861 | 861 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
862 | 862 | if ((bidData == "")) | |
863 | 863 | then throw("Bid not found") | |
864 | 864 | else { | |
865 | 865 | let bidDataArr = split(bidData, "_") | |
866 | 866 | let assetId = getBidAssetId(bidDataArr[0]) | |
867 | 867 | let bidStatus = "CANCELED" | |
868 | 868 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(returnMoneyTo)), parseIntValue(bidDataArr[1]), assetId)] | |
869 | 869 | } | |
870 | 870 | } | |
871 | 871 | } | |
872 | 872 | ||
873 | 873 | ||
874 | 874 | @Verifier(tx) | |
875 | 875 | func verifier () = match tx { | |
876 | 876 | case inv: InvokeScriptTransaction => | |
877 | 877 | if (if (if (if ((inv.function == "addArtwork")) | |
878 | 878 | then (inv.dApp == this) | |
879 | 879 | else false) | |
880 | 880 | then (inv.fee == 500000) | |
881 | 881 | else false) | |
882 | 882 | then (inv.feeAssetId == unit) | |
883 | 883 | else false) | |
884 | 884 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[13]))) | |
885 | 885 | else if (if (if (if ((inv.function == "updateArtwork")) | |
886 | 886 | then (inv.dApp == this) | |
887 | 887 | else false) | |
888 | 888 | then (inv.fee == 500000) | |
889 | 889 | else false) | |
890 | 890 | then (inv.feeAssetId == unit) | |
891 | 891 | else false) | |
892 | 892 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[12]))) | |
893 | 893 | else if (if (if (if ((inv.function == "sellArtwork")) | |
894 | 894 | then (inv.dApp == this) | |
895 | 895 | else false) | |
896 | 896 | then (inv.fee == 500000) | |
897 | 897 | else false) | |
898 | 898 | then (inv.feeAssetId == unit) | |
899 | 899 | else false) | |
900 | 900 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[5]))) | |
901 | 901 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
902 | 902 | case _ => | |
903 | 903 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
904 | 904 | } | |
905 | 905 |
github/deemru/w8io/026f985 107.28 ms ◑