tx · 13RnVyQLGTozxdiJ5qB8gJH8PRFTsXwSzt1fCp67HjNx 3MxHSGZtCpBmRNR31f5C1D4nBckhA8SmfHQ: -0.01400000 Waves 2021.05.12 14:33 [1522402] smart account 3MxHSGZtCpBmRNR31f5C1D4nBckhA8SmfHQ > SELF 0.00000000 Waves
{ "type": 13, "id": "13RnVyQLGTozxdiJ5qB8gJH8PRFTsXwSzt1fCp67HjNx", "fee": 1400000, "feeAssetId": null, "timestamp": 1620819277040, "version": 2, "chainId": 84, "sender": "3MxHSGZtCpBmRNR31f5C1D4nBckhA8SmfHQ", "senderPublicKey": "8u2gfQd56H2iqajtAR9bsVn22hT4jz1Yn6iyktyTHP51", "proofs": [ "211svGQSYrXNpVQ7oEVo3sAMwUNWziiU5QG81qPJvNeU3JRXTaPmXVU177EYNjyVytgCE1qbaQLSnJNPfdhNK7jL" ], "script": "base64:AAIEAAAAAAAAACkIAhIECgIBCBIDCgEIEgMKAQgSAwoBCBIFCgMICAgSBAoCCAgSAwoBCAAAACIAAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAAMYXJ0d29ya3NEYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQnluZmJYQzJLYXN0VXhodWtjTVVhRTU4SzljQmRCOVVZAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAACHVzZXJEYXBwAwUAAAAIdW5pdFRlc3QJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM010NFJHTUV5alNXWUFvY1RQcWQ1NXdkSFFRQjNQVT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AAAgUAAAAKYmlkRGF0YUtleQIAAAAFX09QRU4JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAIFAAAACmJpZERhdGFLZXkCAAAAAV8FAAAACWJpZFN0YXR1cwkAASwAAAACCQABLAAAAAIFAAAAB2JpZERhdGECAAAAAV8JAAGkAAAAAQUAAAAEZGF0ZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAGY2FsbGVyCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgUAAAAKYmlkRGF0YUFycgAAAAAAAAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAVjaHJpcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAC//DOM=", "height": 1522402, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AdNStbfotW9WGcBf5JSeTekPtnEMHyzZdwueZA5XrRMs Next: A3imqQHcxcw5ZmUR58PWAZNjA82BLxrT7NvpZPamiPBn Diff:
Old | New | Differences | |
---|---|---|---|
254 | 254 | if ((aa != S)) | |
255 | 255 | then throw("You cannot do this action") | |
256 | 256 | else { | |
257 | - | let at = w((((((((("offer_" + | |
257 | + | let at = w((((((((("offer_" + S) + "_") + R) + "_") + ar) + "_") + aq) + "_OPEN")) | |
258 | 258 | if ((at == "")) | |
259 | 259 | then throw("Offer not found or not for sale") | |
260 | 260 | else { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = false | |
5 | 5 | ||
6 | 6 | let b = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
7 | 7 | ||
8 | 8 | let c = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | 9 | ||
10 | 10 | let d = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY")) | |
11 | 11 | ||
12 | 12 | let e = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
13 | 13 | ||
14 | 14 | let f = if (a) | |
15 | 15 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
16 | 16 | else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj")) | |
17 | 17 | ||
18 | 18 | let g = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
19 | 19 | ||
20 | 20 | let h = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
21 | 21 | ||
22 | 22 | let i = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
23 | 23 | ||
24 | 24 | let j = base58'' | |
25 | 25 | ||
26 | 26 | let k = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
27 | 27 | ||
28 | 28 | let l = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
29 | 29 | ||
30 | 30 | let m = 3 | |
31 | 31 | ||
32 | 32 | let n = 10 | |
33 | 33 | ||
34 | 34 | let o = valueOrElse(getBoolean(f, "conf_dapp_is_running"), true) | |
35 | 35 | ||
36 | 36 | let p = valueOrElse(getString(f, "conf_maintenance_msg"), "") | |
37 | 37 | ||
38 | 38 | let q = "SUSPENDED" | |
39 | 39 | ||
40 | 40 | let r = "REMOVED" | |
41 | 41 | ||
42 | 42 | let s = "ILLEGAL" | |
43 | 43 | ||
44 | 44 | func t (u) = valueOrElse(getString(f, u), "Error") | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func v (u) = valueOrElse(getString(d, u), "") | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func w (u) = valueOrElse(getString(this, u), "") | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func x (u) = valueOrElse(getInteger(this, u), 0) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func y (z) = ("user_status_" + z) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func A (B,C) = ((("art_signid_" + C) + "_") + B) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func D (B,C) = ((("art_flag_" + C) + "_") + B) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func E (F) = ("nft_" + F) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func G (H) = if (!(o)) | |
69 | 69 | then throw(p) | |
70 | 70 | else $Tuple3(toBase58String(H.transactionId), toBase58String(H.caller.bytes), lastBlock.timestamp) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func I (H) = if ((size(H.payments) == 0)) | |
74 | 74 | then throw("No payment attached") | |
75 | 75 | else { | |
76 | 76 | let J = value(H.payments[0]) | |
77 | 77 | let K = value(J.amount) | |
78 | 78 | $Tuple2(J, K) | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func L (F) = { | |
83 | 83 | let M = value(assetInfo(F)) | |
84 | 84 | if (if (if (if ((M.quantity != 1)) | |
85 | 85 | then true | |
86 | 86 | else (M.decimals != 0)) | |
87 | 87 | then true | |
88 | 88 | else (M.reissuable != false)) | |
89 | 89 | then true | |
90 | 90 | else (M.issuer != d)) | |
91 | 91 | then false | |
92 | 92 | else true | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func N (O) = if (if (if (if ((O != toBase58String(h))) | |
97 | 97 | then (O != toBase58String(j)) | |
98 | 98 | else false) | |
99 | 99 | then (O != "WAVES") | |
100 | 100 | else false) | |
101 | 101 | then (O != toBase58String(i)) | |
102 | 102 | else false) | |
103 | 103 | then false | |
104 | 104 | else true | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func P (O) = if ((O == "WAVES")) | |
108 | 108 | then unit | |
109 | 109 | else fromBase58String(O) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func Q (R) = { | |
113 | 113 | let S = w(("current_owner_on_dapp_" + R)) | |
114 | 114 | if ((S == "none")) | |
115 | 115 | then throw("NFT not found") | |
116 | 116 | else { | |
117 | 117 | let T = w(((("sale2nd_status_" + S) + "_") + R)) | |
118 | 118 | if ((T != "OPEN")) | |
119 | 119 | then throw("NFT not for sale") | |
120 | 120 | else S | |
121 | 121 | } | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func U (u) = { | |
126 | 126 | let V = w((u + "_OPEN")) | |
127 | 127 | if ((V == "")) | |
128 | 128 | then throw("Offer not found") | |
129 | 129 | else { | |
130 | 130 | let W = split(V, "_") | |
131 | 131 | let O = P(W[0]) | |
132 | 132 | $Tuple3(W, O, V) | |
133 | 133 | } | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | @Callable(H) | |
138 | 138 | func sellNFT (X,Y) = { | |
139 | 139 | let Z = G(H) | |
140 | 140 | let F = Z._1 | |
141 | 141 | let aa = Z._2 | |
142 | 142 | let ab = Z._3 | |
143 | 143 | let ac = I(H) | |
144 | 144 | let J = ac._1 | |
145 | 145 | let K = ac._2 | |
146 | 146 | let O = if (if (isDefined(J.assetId)) | |
147 | 147 | then L(value(J.assetId)) | |
148 | 148 | else false) | |
149 | 149 | then J.assetId | |
150 | 150 | else throw("No NFT found") | |
151 | 151 | if (!(N(Y))) | |
152 | 152 | then throw("Only SIGN, USDN or WAVES accepted") | |
153 | 153 | else { | |
154 | 154 | let ad = split(v(E(toBase58String(value(O)))), "_") | |
155 | 155 | let ae = v(A(ad[6], ad[5])) | |
156 | 156 | if ((size(ae) == 0)) | |
157 | 157 | then throw("Artwork not found on SIGN Art") | |
158 | 158 | else { | |
159 | 159 | let af = v(D(ad[6], ad[5])) | |
160 | 160 | if ((af == s)) | |
161 | 161 | then throw("Original Artwork flagged as ILLEGAL") | |
162 | 162 | else { | |
163 | 163 | let ag = t(y(ad[6])) | |
164 | 164 | if (containsElement([q, r], ag)) | |
165 | 165 | then throw(("Original Artist " + ag)) | |
166 | 166 | else [StringEntry((((("sale2nd_info_" + aa) + "_") + toBase58String(value(J.assetId))) + "_OPEN"), ((((toString(ab) + "_") + toString(X)) + "_") + Y)), StringEntry(((("sale2nd_status_" + aa) + "_") + toBase58String(value(J.assetId))), "OPEN"), StringEntry(("current_owner_on_dapp_" + toBase58String(value(J.assetId))), aa)] | |
167 | 167 | } | |
168 | 168 | } | |
169 | 169 | } | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | ||
174 | 174 | @Callable(H) | |
175 | 175 | func cancelSale (R) = { | |
176 | 176 | let ah = G(H) | |
177 | 177 | let F = ah._1 | |
178 | 178 | let aa = ah._2 | |
179 | 179 | let ab = ah._3 | |
180 | 180 | let S = w(("current_owner_on_dapp_" + R)) | |
181 | 181 | if ((S != aa)) | |
182 | 182 | then throw("You don't own this NFT") | |
183 | 183 | else { | |
184 | 184 | let T = w(((("sale2nd_status_" + aa) + "_") + R)) | |
185 | 185 | if ((T != "OPEN")) | |
186 | 186 | then throw("Sale not active") | |
187 | 187 | else { | |
188 | 188 | let ai = w(((((("sale2nd_info_" + aa) + "_") + R) + "_") + T)) | |
189 | 189 | [DeleteEntry((((("sale2nd_info_" + aa) + "_") + R) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + aa) + "_") + R)), StringEntry((((((((("sale2nd_info_" + aa) + "_") + R) + "_") + toString(ab)) + "_") + F) + "_CANCELLED"), ai), StringEntry(("current_owner_on_dapp_" + R), "none"), ScriptTransfer(Address(fromBase58String(aa)), 1, fromBase58String(R))] | |
190 | 190 | } | |
191 | 191 | } | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | ||
196 | 196 | @Callable(H) | |
197 | 197 | func buyNFT (R) = { | |
198 | 198 | let aj = G(H) | |
199 | 199 | let F = aj._1 | |
200 | 200 | let aa = aj._2 | |
201 | 201 | let ab = aj._3 | |
202 | 202 | let S = Q(R) | |
203 | 203 | let ai = w((((("sale2nd_info_" + S) + "_") + R) + "_OPEN")) | |
204 | 204 | if ((size(ai) == 0)) | |
205 | 205 | then throw("Sale Not found!") | |
206 | 206 | else { | |
207 | 207 | let ak = split(ai, "_") | |
208 | 208 | let al = I(H) | |
209 | 209 | let J = al._1 | |
210 | 210 | let K = al._2 | |
211 | 211 | if (if ((ak[1] != toString(K))) | |
212 | 212 | then true | |
213 | 213 | else (ak[2] != toBase58String(value(J.assetId)))) | |
214 | 214 | then throw("Payment infos don't match.") | |
215 | 215 | else { | |
216 | 216 | let am = fraction(K, m, 100) | |
217 | 217 | let an = (K - am) | |
218 | 218 | [DeleteEntry((((("sale2nd_info_" + S) + "_") + R) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + S) + "_") + R)), StringEntry((((((((("sale2nd_info_" + S) + "_") + R) + "_") + toString(ab)) + "_") + F) + "_CLOSED"), ((((((toString(ab) + "_") + toString(K)) + "_") + toBase58String(value(J.assetId))) + "_to_") + aa)), StringEntry(("current_owner_on_dapp_" + R), "none"), ScriptTransfer(Address(fromBase58String(e)), am, J.assetId), ScriptTransfer(Address(fromBase58String(S)), an, J.assetId), ScriptTransfer(Address(fromBase58String(aa)), 1, fromBase58String(R))] | |
219 | 219 | } | |
220 | 220 | } | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | ||
225 | 225 | @Callable(H) | |
226 | 226 | func setOffer (R) = { | |
227 | 227 | let ao = G(H) | |
228 | 228 | let F = ao._1 | |
229 | 229 | let aa = ao._2 | |
230 | 230 | let ab = ao._3 | |
231 | 231 | let ap = I(H) | |
232 | 232 | let J = ap._1 | |
233 | 233 | let K = ap._2 | |
234 | 234 | let O = if (!(isDefined(J.assetId))) | |
235 | 235 | then "WAVES" | |
236 | 236 | else toBase58String(value(J.assetId)) | |
237 | 237 | if (!(N(O))) | |
238 | 238 | then throw("asset not accepted") | |
239 | 239 | else { | |
240 | 240 | let S = Q(R) | |
241 | 241 | [StringEntry((((((((("offer2nd_" + S) + "_") + R) + "_") + aa) + "_") + F) + "_OPEN"), ((((((((O + "_") + toString(K)) + "_") + toString(ab)) + "_") + aa) + "_") + F))] | |
242 | 242 | } | |
243 | 243 | } | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | ||
247 | 247 | @Callable(H) | |
248 | 248 | func acceptOffer (R,aq,ar) = { | |
249 | 249 | let as = G(H) | |
250 | 250 | let F = as._1 | |
251 | 251 | let aa = as._2 | |
252 | 252 | let ab = as._3 | |
253 | 253 | let S = Q(R) | |
254 | 254 | if ((aa != S)) | |
255 | 255 | then throw("You cannot do this action") | |
256 | 256 | else { | |
257 | - | let at = w((((((((("offer_" + | |
257 | + | let at = w((((((((("offer_" + S) + "_") + R) + "_") + ar) + "_") + aq) + "_OPEN")) | |
258 | 258 | if ((at == "")) | |
259 | 259 | then throw("Offer not found or not for sale") | |
260 | 260 | else { | |
261 | 261 | let ai = w((((("sale2nd_info_" + S) + "_") + R) + "_OPEN")) | |
262 | 262 | if ((size(ai) == 0)) | |
263 | 263 | then throw("Sale Not found!") | |
264 | 264 | else { | |
265 | 265 | let au = ((((((("offer2nd_" + S) + "_") + R) + "_") + ar) + "_") + aq) | |
266 | 266 | let av = U(au) | |
267 | 267 | let W = av._1 | |
268 | 268 | let O = av._2 | |
269 | 269 | let V = av._3 | |
270 | 270 | let K = value(parseInt(W[1])) | |
271 | 271 | let am = fraction(K, m, 100) | |
272 | 272 | let an = (K - am) | |
273 | 273 | [DeleteEntry((((("sale2nd_info_" + S) + "_") + R) + "_OPEN")), DeleteEntry((au + "_OPEN")), DeleteEntry(((("sale2nd_status_" + S) + "_") + R)), StringEntry((au + "_CLOSED"), ((((((((toString(ab) + "_") + toString(K)) + "_") + toBase58String(value(O))) + "_to_") + ar) + "_") + aq)), StringEntry((((((((("sale2nd_info_" + S) + "_") + R) + "_") + toString(ab)) + "_") + F) + "_CLOSED"), ((((((toString(ab) + "_") + toString(K)) + "_") + toBase58String(value(O))) + "_to_") + ar)), StringEntry(("current_owner_on_dapp_" + R), "none"), ScriptTransfer(Address(fromBase58String(e)), am, O), ScriptTransfer(Address(fromBase58String(S)), an, O), ScriptTransfer(Address(fromBase58String(W[3])), 1, fromBase58String(R))] | |
274 | 274 | } | |
275 | 275 | } | |
276 | 276 | } | |
277 | 277 | } | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | ||
281 | 281 | @Callable(H) | |
282 | 282 | func cancelOffer (R,aq) = { | |
283 | 283 | let aw = G(H) | |
284 | 284 | let F = aw._1 | |
285 | 285 | let aa = aw._2 | |
286 | 286 | let ab = aw._3 | |
287 | 287 | let S = Q(R) | |
288 | 288 | let au = ((((((("offer2nd_" + S) + "_") + R) + "_") + aa) + "_") + aq) | |
289 | 289 | let ax = U(((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq)) | |
290 | 290 | let W = ax._1 | |
291 | 291 | let O = ax._2 | |
292 | 292 | let V = ax._3 | |
293 | 293 | let ay = "CANCELLED" | |
294 | 294 | [DeleteEntry((au + "_OPEN")), StringEntry(((au + "_") + ay), ((V + "_") + toString(ab))), ScriptTransfer(Address(fromBase58String(aa)), parseIntValue(W[1]), O)] | |
295 | 295 | } | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | ||
299 | 299 | @Callable(H) | |
300 | 300 | func deleteEntry (az) = { | |
301 | 301 | let aa = toString(addressFromPublicKey(H.callerPublicKey)) | |
302 | 302 | if ((aa == k)) | |
303 | 303 | then [DeleteEntry(az)] | |
304 | 304 | else throw("no") | |
305 | 305 | } | |
306 | 306 | ||
307 | 307 |
github/deemru/w8io/169f3d6 50.92 ms ◑