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