tx · 36gPoHYT1KGjCrULn2cYA1yfrWY7onYDCjTgBGXSQ4mW 3NCVXMwHj1ZWFqRQiKQAE2uBTBrbU978x2N: -0.01400000 Waves 2021.04.09 13:02 [1474763] smart account 3NCVXMwHj1ZWFqRQiKQAE2uBTBrbU978x2N > SELF 0.00000000 Waves
{ "type": 13, "id": "36gPoHYT1KGjCrULn2cYA1yfrWY7onYDCjTgBGXSQ4mW", "fee": 1400000, "feeAssetId": null, "timestamp": 1617962561245, "version": 2, "chainId": 84, "sender": "3NCVXMwHj1ZWFqRQiKQAE2uBTBrbU978x2N", "senderPublicKey": "75BKo2ZDmZXyi4P2e5L2Wte97eaxhqo91Ba69jqkmMLa", "proofs": [ "gbSh81Vpvh6EQYjsHj83YicikDq3gG9pv3eoXeCsqAKotGd9mqKBgNUWuR1VwDLBGbmjwfyfRrwRAe53QyuShR9" ], "script": "base64:AAIEAAAAAAAAABcIAhIECgIBCBIDCgEIEgMKAQgSAwoBCAAAAB0AAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAAMYXJ0d29ya3NEYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQnluZmJYQzJLYXN0VXhodWtjTVVhRTU4SzljQmRCOVVZAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAACHVzZXJEYXBwAwUAAAAIdW5pdFRlc3QJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM010NFJHTUV5alNXWUFvY1RQcWQ1NXdkSFFRQjNQVTJVQ20JAQAAAAV2YWx1Z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IJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAARkYXRlAgAAAAFfCQABpAAAAAEFAAAABmFtb3VudAIAAAABXwkAAlgAAAABCQEAAAAFdmFsdWUAAAABCAUAAAAHcGF5bWVudAAAAAdhc3NldElkAgAAAARfdG9fBQAAAAZjYWxsZXIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMc2FsZV9zdGF0dXNfBQAAAAlzYWxlT3duZXICAAAAAV8FAAAABW5mdGlkAgAAAAZDTE9TRUQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAABZjdXJyZW50X293bmVyX29uX2RhcHBfBQAAAAVuZnRpZAIAAAAEbm9uZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAJc2FsZU93bmVyBQAAAAZhbW91bnQIBQAAAAdwYXltZW50AAAAB2Fzc2V0SWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAABmNhbGxlcgAAAAAAAAAAAQkAAlkAAAABBQAAAAVuZnRpZAUAAAADbmlsAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAVjaHJpcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAADof8tY=", "height": 1474763, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 41uJu8GYHq4xnTaMqW8akh3Xz6sW3Z4Bh8bKASYvPCmr Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let unitTest = false | |
5 | + | ||
6 | + | let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
7 | + | ||
8 | + | let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | + | ||
10 | + | let artworksDapp = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY")) | |
11 | + | ||
12 | + | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
13 | + | ||
14 | + | let userDapp = if (unitTest) | |
15 | + | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
16 | + | else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj")) | |
17 | + | ||
18 | + | let whitelistDapp = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
19 | + | ||
20 | + | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
21 | + | ||
22 | + | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
23 | + | ||
24 | + | let wavesAssetId = base58'' | |
25 | + | ||
26 | + | let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
27 | + | ||
28 | + | let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
29 | + | ||
30 | + | let signCut = 3 | |
31 | + | ||
32 | + | let originlaArtistCut = 10 | |
33 | + | ||
34 | + | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
35 | + | ||
36 | + | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
37 | + | ||
38 | + | let userSuspended = "SUSPENDED" | |
39 | + | ||
40 | + | let userRemoved = "REMOVED" | |
41 | + | ||
42 | + | let artIllegal = "ILLEGAL" | |
43 | + | ||
44 | + | func getUserStrByK (key) = valueOrElse(getString(userDapp, key), "Error") | |
45 | + | ||
46 | + | ||
47 | + | func getArtStrByK (key) = valueOrElse(getString(artworksDapp, key), "") | |
48 | + | ||
49 | + | ||
50 | + | func getStrByK (key) = valueOrElse(getString(this, key), "") | |
51 | + | ||
52 | + | ||
53 | + | func keyUserStatus (addr) = ("user_status_" + addr) | |
54 | + | ||
55 | + | ||
56 | + | func keySignID (artistAddr,artId) = ((("art_signid_" + artId) + "_") + artistAddr) | |
57 | + | ||
58 | + | ||
59 | + | func keyFlag (artistAddr,artId) = ((("art_flag_" + artId) + "_") + artistAddr) | |
60 | + | ||
61 | + | ||
62 | + | func keyNFTData (id) = ("nft_" + id) | |
63 | + | ||
64 | + | ||
65 | + | func idCallerDate (i) = if (!(dappRunning)) | |
66 | + | then throw(maintenanceMSG) | |
67 | + | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
68 | + | ||
69 | + | ||
70 | + | func isPayment (i) = if ((size(i.payments) == 0)) | |
71 | + | then throw("No payment attached") | |
72 | + | else { | |
73 | + | let payment = value(i.payments[0]) | |
74 | + | let amount = value(payment.amount) | |
75 | + | $Tuple2(payment, amount) | |
76 | + | } | |
77 | + | ||
78 | + | ||
79 | + | func isSignArtNFT (id) = { | |
80 | + | let assetDetails = value(assetInfo(id)) | |
81 | + | if (if (if (if ((assetDetails.quantity != 1)) | |
82 | + | then true | |
83 | + | else (assetDetails.decimals != 0)) | |
84 | + | then true | |
85 | + | else (assetDetails.reissuable != false)) | |
86 | + | then true | |
87 | + | else (assetDetails.issuer != artworksDapp)) | |
88 | + | then false | |
89 | + | else true | |
90 | + | } | |
91 | + | ||
92 | + | ||
93 | + | @Callable(i) | |
94 | + | func sellNFT (price,asset) = { | |
95 | + | let $t037933832 = idCallerDate(i) | |
96 | + | let id = $t037933832._1 | |
97 | + | let caller = $t037933832._2 | |
98 | + | let date = $t037933832._3 | |
99 | + | let $t038373873 = isPayment(i) | |
100 | + | let payment = $t038373873._1 | |
101 | + | let amount = $t038373873._2 | |
102 | + | let assetId = if (if (isDefined(payment.assetId)) | |
103 | + | then isSignArtNFT(value(payment.assetId)) | |
104 | + | else false) | |
105 | + | then payment.assetId | |
106 | + | else throw("No NFT found") | |
107 | + | let nftData = split(getArtStrByK(keyNFTData(toBase58String(value(assetId)))), "_") | |
108 | + | let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5])) | |
109 | + | if ((size(artSignID) == 0)) | |
110 | + | then throw("Artwork not found on SIGN Art") | |
111 | + | else { | |
112 | + | let artStatus = getArtStrByK(keyFlag(nftData[6], nftData[5])) | |
113 | + | if ((artStatus == artIllegal)) | |
114 | + | then throw("Original Artwork flagged as ILLEGAL") | |
115 | + | else { | |
116 | + | let artistStatus = getUserStrByK(keyUserStatus(nftData[6])) | |
117 | + | if (containsElement([userSuspended, userRemoved], artistStatus)) | |
118 | + | then throw("Original Artist suspended or removed") | |
119 | + | else [StringEntry((((("sale_info_" + caller) + "_") + toBase58String(value(payment.assetId))) + "_OPEN"), ((((toString(date) + "_") + toString(price)) + "_") + asset)), IntegerEntry(((("sale_price_" + caller) + "_") + toBase58String(value(payment.assetId))), price), StringEntry(((("sale_asset_" + caller) + "_") + toBase58String(value(payment.assetId))), asset), StringEntry(((("sale_status_" + caller) + "_") + toBase58String(value(payment.assetId))), "OPEN"), StringEntry(("current_owner_on_dapp_" + toBase58String(value(payment.assetId))), caller)] | |
120 | + | } | |
121 | + | } | |
122 | + | } | |
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | @Callable(i) | |
127 | + | func cancelSale (nftid) = { | |
128 | + | let $t055885627 = idCallerDate(i) | |
129 | + | let id = $t055885627._1 | |
130 | + | let caller = $t055885627._2 | |
131 | + | let date = $t055885627._3 | |
132 | + | let isOwner = getStrByK(((("sale_owner_" + caller) + "_") + nftid)) | |
133 | + | if ((isOwner != caller)) | |
134 | + | then throw("You don't own this NFT") | |
135 | + | else { | |
136 | + | let saleStatus = getStrByK(((("sale_status_" + caller) + "_") + nftid)) | |
137 | + | if ((saleStatus != "OPEN")) | |
138 | + | then throw("Sale not active") | |
139 | + | else { | |
140 | + | let saleInfo = getStrByK(((((("sale_info_" + caller) + "_") + nftid) + "_") + saleStatus)) | |
141 | + | [DeleteEntry((((("sale_info_" + caller) + "_") + nftid) + "_OPEN")), StringEntry((((((((("sale_info_" + caller) + "_") + nftid) + "_") + toString(date)) + "_") + id) + "_CANCELLED"), saleInfo), StringEntry(((("sale_status_" + caller) + "_") + nftid), "CANCELLED"), StringEntry(("current_owner_on_dapp_" + nftid), "none"), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))] | |
142 | + | } | |
143 | + | } | |
144 | + | } | |
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | @Callable(i) | |
149 | + | func buyNFT (nftid) = { | |
150 | + | let $t064826521 = idCallerDate(i) | |
151 | + | let id = $t064826521._1 | |
152 | + | let caller = $t064826521._2 | |
153 | + | let date = $t064826521._3 | |
154 | + | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
155 | + | if ((saleOwner == "none")) | |
156 | + | then throw("NFT not found") | |
157 | + | else { | |
158 | + | let saleStatus = getStrByK(((("sale_status_" + saleOwner) + "_") + nftid)) | |
159 | + | if ((saleStatus != "OPEN")) | |
160 | + | then throw("NFT not for sale") | |
161 | + | else { | |
162 | + | let saleInfo = getStrByK((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN")) | |
163 | + | let saleInfoArray = split(saleInfo, "_") | |
164 | + | let $t069787014 = isPayment(i) | |
165 | + | let payment = $t069787014._1 | |
166 | + | let amount = $t069787014._2 | |
167 | + | if (if ((saleInfoArray[1] != toString(amount))) | |
168 | + | then (saleInfoArray[2] != toBase58String(value(payment.assetId))) | |
169 | + | else false) | |
170 | + | then throw("Payment infos don't match.") | |
171 | + | else [DeleteEntry((((("sale_info_" + saleOwner) + "_") + nftid) + "_OPEN")), StringEntry((((((((("sale_info_" + saleOwner) + "_") + nftid) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_to_") + caller)), StringEntry(((("sale_status_" + saleOwner) + "_") + nftid), "CLOSED"), StringEntry(("current_owner_on_dapp_" + nftid), "none"), ScriptTransfer(Address(fromBase58String(saleOwner)), amount, payment.assetId), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))] | |
172 | + | } | |
173 | + | } | |
174 | + | } | |
175 | + | ||
176 | + | ||
177 | + | ||
178 | + | @Callable(i) | |
179 | + | func deleteEntry (entry) = { | |
180 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
181 | + | if ((caller == chris)) | |
182 | + | then [DeleteEntry(entry)] | |
183 | + | else throw("no") | |
184 | + | } | |
185 | + | ||
186 | + |
github/deemru/w8io/026f985 22.56 ms ◑