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