tx · 3KuQPEvX3PEFBAezXhZ8ZaU6S1GegnTJAb9tGKrCBFj8 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.02600000 Waves 2023.02.03 07:12 [2432941] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "3KuQPEvX3PEFBAezXhZ8ZaU6S1GegnTJAb9tGKrCBFj8", "fee": 2600000, "feeAssetId": null, "timestamp": 1675396356495, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "5pATMPy5es4Xvis3FQjw9rHG3gCYthqYw97LZWcirJbuvmLK18hCfRJYP8DFxQb6BAdA1p2cSHzW5PB9AuBBHQz6" ], "script": "base64:BgJfCAISBAoCCAgSEAoOCAgICAgICAgICAgIAQgSDwoNCAgICAgICAgICAgBCBIGCgQICAgIEgQKAggIEggKBggBAQgBCBIECgIICBIECgIICBIGCgQICAgIEgYKBAgICAhQAAdWRVJTSU9OAgYxLjEuMTABDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgAACHVuaXRUZXN0BwAJb3JhY2xlRmVlCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeUtleQECD2NvbmZfb3JhY2xlX2ZlZQAIc2lnbkRhcHAJAQV2YWx1ZQEJAKYIAQkBDmdldFN0cmluZ0J5S2V5AQIRY29uZl9zaWdud2ViX2RhcHAAC2ZlZVJlY2VpdmVyCQEOZ2V0U3RyaW5nQnlLZXkBAhFjb25mX2ZlZV9yZWNlaXZlcgAIdXNlckRhcHADBQh1bml0VGVzdAkBBXZhbHVlAQkApggBAiMzTXQ0UkdNRXlqU1dZQW9jVFBxZDU1d2RIUVFCM1BVMlVDbQkBBXZhbHVlAQkApggBCQEOZ2V0U3RyaW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AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5EKL6Pg==", "height": 2432941, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5vjAnsL7J8xXk5hvPcnWpjerCnWuHxAkaiFGQ9LJN8vF Next: BW71ipLmS71GkHjYi2zbxNroaXp21YwkfoaGfZeM7gUG Diff:
Old | New | Differences | |
---|---|---|---|
493 | 493 | else false) | |
494 | 494 | then (height > bS) | |
495 | 495 | else false) | |
496 | - | then fraction(aV, bP, | |
496 | + | then fraction(aV, bP, 10000) | |
497 | 497 | else 0 | |
498 | 498 | let bW = if (if (if ((bQ != g)) | |
499 | 499 | then (bR > 0) | |
500 | 500 | else false) | |
501 | 501 | then (height > bS) | |
502 | 502 | else false) | |
503 | - | then fraction(aV, bR, | |
503 | + | then fraction(aV, bR, 10000) | |
504 | 504 | else 0 | |
505 | 505 | let bX = (aV - bU) | |
506 | 506 | if ((bL == bM)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.1.10" | |
5 | 5 | ||
6 | 6 | func b (c) = valueOrElse(getString(this, c), "") | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | let d = false | |
10 | 10 | ||
11 | 11 | let e = value(addressFromString(b("conf_oracle_fee"))) | |
12 | 12 | ||
13 | 13 | let f = value(addressFromString(b("conf_signweb_dapp"))) | |
14 | 14 | ||
15 | 15 | let g = b("conf_fee_receiver") | |
16 | 16 | ||
17 | 17 | let h = if (d) | |
18 | 18 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
19 | 19 | else value(addressFromString(b("conf_users_dapp"))) | |
20 | 20 | ||
21 | 21 | let i = value(addressFromString(b("conf_whitelist_dapp"))) | |
22 | 22 | ||
23 | 23 | let j = fromBase58String(b("conf_accepted_asset_SIGN")) | |
24 | 24 | ||
25 | 25 | let k = fromBase58String(b("conf_accepted_asset_USDN")) | |
26 | 26 | ||
27 | 27 | let l = fromBase58String(b("conf_accepted_asset_USDT")) | |
28 | 28 | ||
29 | 29 | let m = base58'' | |
30 | 30 | ||
31 | 31 | let n = b("conf_admin_1") | |
32 | 32 | ||
33 | 33 | func o (c) = valueOrErrorMessage(getInteger(e, c), "Integer undefine or 0 in oracle") | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func p (c) = valueOrElse(getInteger(this, c), 0) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func q (c) = valueOrElse(getInteger(i, c), 0) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func r (c) = valueOrElse(getBoolean(this, c), false) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | let s = 7 | |
46 | 46 | ||
47 | 47 | let t = 10 | |
48 | 48 | ||
49 | 49 | let u = b("conf_default_licence") | |
50 | 50 | ||
51 | 51 | let v = b("conf_default_licence_hash") | |
52 | 52 | ||
53 | 53 | let w = valueOrElse(getBoolean(h, "conf_dapp_is_running"), true) | |
54 | 54 | ||
55 | 55 | let x = valueOrElse(getString(h, "conf_maintenance_msg"), "") | |
56 | 56 | ||
57 | 57 | let y = "SUSPENDED" | |
58 | 58 | ||
59 | 59 | let z = "REMOVED" | |
60 | 60 | ||
61 | 61 | let A = "UNREGISTERED" | |
62 | 62 | ||
63 | 63 | let B = "ALLOWED" | |
64 | 64 | ||
65 | 65 | let C = o(("certification_fee_" + toBase58String(j))) | |
66 | 66 | ||
67 | 67 | func D (c) = valueOrElse(getInteger(this, c), 1000) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func E (F,G,H) = { | |
71 | 71 | let I = getString(f, ((("data_fc_" + F) + "_") + G)) | |
72 | 72 | if ($isInstanceOf(I, "String")) | |
73 | 73 | then { | |
74 | 74 | let J = I | |
75 | 75 | if (contains(J, H)) | |
76 | 76 | then true | |
77 | 77 | else false | |
78 | 78 | } | |
79 | 79 | else false | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func K (L) = if (contains(L, "/")) | |
84 | 84 | then if (if ((76 > size(L))) | |
85 | 85 | then (size(split(L, "/")[0]) == 59) | |
86 | 86 | else false) | |
87 | 87 | then (16 > size(split(L, "/")[1])) | |
88 | 88 | else false | |
89 | 89 | else false | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func M (N) = (size(N) == 64) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func O (P) = ("user_status_" + P) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func Q (P,R) = ((("art_date_" + R) + "_") + P) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func S (P,R) = ((("art_name_" + R) + "_") + P) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func T (P,R) = ((("art_desc_" + R) + "_") + P) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func U (P,R) = ((("art_display_cid_" + R) + "_") + P) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func V (P,R) = ((("art_export_hash_" + R) + "_") + P) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func W (P,R) = ((("art_export_cid_" + R) + "_") + P) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func X (P,R) = ((("art_maxmint_" + R) + "_") + P) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func Y (P,R) = ((("art_signid_" + R) + "_") + P) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func Z (P,R) = ((("art_issued_" + R) + "_") + P) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func aa (P,R) = ((("art_onsale_" + R) + "_") + P) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func ab (P,R) = ((("art_licence_hash_" + R) + "_") + P) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func ac (P,R) = ((("art_licence_cid_" + R) + "_") + P) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func ad (P,R) = ((("art_tags_" + R) + "_") + P) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func ae (P,R) = ((("art_type_" + R) + "_") + P) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func af (P,R) = ((("art_note_" + R) + "_") + P) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func ag (P,R) = ((("art_crawler_cid_" + R) + "_") + P) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ah (P,R) = ((("art_royalties_" + R) + "_") + P) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func ai (P,R) = ((("art_price_" + R) + "_") + P) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func aj (P,R) = ((("art_endsale_" + R) + "_") + P) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func ak (P,R) = ((("art_assetAccepted_" + R) + "_") + P) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func al (P,R) = ((("art_flag_" + R) + "_") + P) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func am (an) = ("artist_agent_" + an) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func ao (an) = ("artist_agent_primary_" + an) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func ap (an) = ("artist_public_agent_" + an) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func aq (an) = ("artist_public_agent_primary_" + an) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func ar (P,as) = ((("get_hashbytxidaddr_" + as) + "_") + P) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func at (H) = ("get_owner_by_hash_" + H) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func au (P,av) = ((("get_artidbysignid_" + av) + "_") + P) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func aw (H,P) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((H + P))))) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func ax (ay,az,aA) = if (!(K(ay))) | |
186 | 186 | then throw("Wrong Display CID") | |
187 | 187 | else if (!(K(az))) | |
188 | 188 | then throw("Wrong Export CID") | |
189 | 189 | else if (if ((aA != "")) | |
190 | 190 | then !(K(aA)) | |
191 | 191 | else false) | |
192 | 192 | then throw("Wrong Licence CID") | |
193 | 193 | else true | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func aB (aC,aD) = if (!(M(aC))) | |
197 | 197 | then throw("Export Hash 64 char. max") | |
198 | 198 | else if (!(M(aD))) | |
199 | 199 | then throw("Licence Hash 64 char. max") | |
200 | 200 | else true | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func aE (aF,aG) = if ((size(aF) == 0)) | |
204 | 204 | then throw("Field cannot be is empty") | |
205 | 205 | else if ((size(aF) > aG)) | |
206 | 206 | then throw((aF + " is too long")) | |
207 | 207 | else true | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func aH (P) = { | |
211 | 211 | let aI = valueOrElse(getString(h, O(P)), A) | |
212 | 212 | if (if ((aI == A)) | |
213 | 213 | then true | |
214 | 214 | else (aI == B)) | |
215 | 215 | then "Register this account first with \"Account\" tab" | |
216 | 216 | else if ((aI == y)) | |
217 | 217 | then "Account suspended" | |
218 | 218 | else if ((aI == z)) | |
219 | 219 | then "Account removed" | |
220 | 220 | else "" | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func aJ (aA,aD) = { | |
225 | 225 | let L = if ((size(aA) == 0)) | |
226 | 226 | then u | |
227 | 227 | else aA | |
228 | 228 | let N = if ((size(aD) == 0)) | |
229 | 229 | then v | |
230 | 230 | else aD | |
231 | 231 | $Tuple2(L, N) | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func aK (P,ay,az,aL,aC,aM,aN,aO,aP,aQ) = { | |
236 | 236 | let aR = aH(P) | |
237 | 237 | if ((aR != "")) | |
238 | 238 | then throw(aR) | |
239 | 239 | else if ((size(ay) == 0)) | |
240 | 240 | then throw("Display CID cannot be empty") | |
241 | 241 | else if (!(ax(ay, az, aL))) | |
242 | 242 | then throw("Problem with CID") | |
243 | 243 | else if (!(aB(aC, aM))) | |
244 | 244 | then throw("Problem with Hashes") | |
245 | 245 | else if (!(aE(aN, 100))) | |
246 | 246 | then throw("100 Char. max name") | |
247 | 247 | else if (!(aE(aO, 1000))) | |
248 | 248 | then throw("1000 Char. max description") | |
249 | 249 | else if (if ((0 > aQ)) | |
250 | 250 | then true | |
251 | 251 | else (aQ > 1000)) | |
252 | 252 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
253 | 253 | else if ((size(split(aP, ",")) > 5)) | |
254 | 254 | then throw("5 tags max.") | |
255 | 255 | else "" | |
256 | 256 | } | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func aS (aT) = if ((size(aT.payments) == 0)) | |
260 | 260 | then throw("No payment attached") | |
261 | 261 | else { | |
262 | 262 | let aU = value(aT.payments[0]) | |
263 | 263 | let aV = value(aU.amount) | |
264 | 264 | $Tuple2(aU, aV) | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func aW (aT) = { | |
269 | 269 | let aX = aS(aT) | |
270 | 270 | let aU = aX._1 | |
271 | 271 | let aV = aX._2 | |
272 | 272 | let aY = if (if (isDefined(aU.assetId)) | |
273 | 273 | then (aU.assetId == j) | |
274 | 274 | else false) | |
275 | 275 | then aU.assetId | |
276 | 276 | else throw("Only SIGN token accepted as transaction fee") | |
277 | 277 | if ((aV != C)) | |
278 | 278 | then throw(("Payment amount should be " + toString(C))) | |
279 | 279 | else $Tuple2(aV, aY) | |
280 | 280 | } | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func aZ (ba,R) = { | |
284 | 284 | let I = getInteger(this, Z(ba, R)) | |
285 | 285 | if ($isInstanceOf(I, "Int")) | |
286 | 286 | then { | |
287 | 287 | let bb = I | |
288 | 288 | if ((bb != 0)) | |
289 | 289 | then true | |
290 | 290 | else false | |
291 | 291 | } | |
292 | 292 | else false | |
293 | 293 | } | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func bc (aT,bd,be) = { | |
297 | 297 | let bf = aS(aT) | |
298 | 298 | let aU = bf._1 | |
299 | 299 | let aV = bf._2 | |
300 | 300 | let aY = if (!(isDefined(aU.assetId))) | |
301 | 301 | then unit | |
302 | 302 | else if (if ((size(bd) > 0)) | |
303 | 303 | then (toBase58String(value(aU.assetId)) == bd) | |
304 | 304 | else false) | |
305 | 305 | then aU.assetId | |
306 | 306 | else throw("Wrong asset id") | |
307 | 307 | if (if ((aY == unit)) | |
308 | 308 | then (bd != "") | |
309 | 309 | else false) | |
310 | 310 | then throw("Wrong asset id") | |
311 | 311 | else if ((be != aV)) | |
312 | 312 | then throw("Payment don't match") | |
313 | 313 | else $Tuple2(aV, aY) | |
314 | 314 | } | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | func bg (aY) = if (if (if (if (if ((aY != toBase58String(j))) | |
318 | 318 | then (aY != toBase58String(m)) | |
319 | 319 | else false) | |
320 | 320 | then (aY != "WAVES") | |
321 | 321 | else false) | |
322 | 322 | then (aY != toBase58String(k)) | |
323 | 323 | else false) | |
324 | 324 | then (aY != toBase58String(l)) | |
325 | 325 | else false) | |
326 | 326 | then throw("Only SIGN, USDN,USDT or WAVES accepted") | |
327 | 327 | else true | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | func bh (aY,bi) = { | |
331 | 331 | let bj = if (d) | |
332 | 332 | then 10 | |
333 | 333 | else o("waves_min_sell") | |
334 | 334 | let bk = 1000000 | |
335 | 335 | let bl = if (d) | |
336 | 336 | then 1 | |
337 | 337 | else (C * 2) | |
338 | 338 | if (if (if (if (if (if ((aY == toBase58String(k))) | |
339 | 339 | then (bk > bi) | |
340 | 340 | else false) | |
341 | 341 | then (bi != 0) | |
342 | 342 | else false) | |
343 | 343 | then true | |
344 | 344 | else if (if ((aY == toBase58String(l))) | |
345 | 345 | then (bk > bi) | |
346 | 346 | else false) | |
347 | 347 | then (bi != 0) | |
348 | 348 | else false) | |
349 | 349 | then true | |
350 | 350 | else if (if ((aY == toBase58String(j))) | |
351 | 351 | then (bl > bi) | |
352 | 352 | else false) | |
353 | 353 | then (bi != 0) | |
354 | 354 | else false) | |
355 | 355 | then true | |
356 | 356 | else if (if (if ((aY == toBase58String(m))) | |
357 | 357 | then true | |
358 | 358 | else (aY == "WAVES")) | |
359 | 359 | then (bj > bi) | |
360 | 360 | else false) | |
361 | 361 | then (bi != 0) | |
362 | 362 | else false) | |
363 | 363 | then throw("Wrong minimum sell price") | |
364 | 364 | else true | |
365 | 365 | } | |
366 | 366 | ||
367 | 367 | ||
368 | 368 | func bm (aY) = if ((aY == "WAVES")) | |
369 | 369 | then unit | |
370 | 370 | else fromBase58String(aY) | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | func bn (bo) = { | |
374 | 374 | let bp = b((bo + "_OPEN")) | |
375 | 375 | if ((bp == "")) | |
376 | 376 | then throw("Bid not found") | |
377 | 377 | else { | |
378 | 378 | let bq = split(bp, "_") | |
379 | 379 | let br = parseIntValue(bq[1]) | |
380 | 380 | let bs = bm(bq[0]) | |
381 | 381 | if ((0 >= br)) | |
382 | 382 | then throw("Wrong amount") | |
383 | 383 | else $Tuple2(br, bs) | |
384 | 384 | } | |
385 | 385 | } | |
386 | 386 | ||
387 | 387 | ||
388 | 388 | func bt (aT,bu) = if (!(w)) | |
389 | 389 | then throw(x) | |
390 | 390 | else { | |
391 | 391 | let bv = if ((bu != "")) | |
392 | 392 | then valueOrElse(q((toString(addressFromPublicKey(fromBase58String(bu))) + "_free_txs")), 0) | |
393 | 393 | else 0 | |
394 | 394 | let P = if (if ((toBase58String(aT.caller.bytes) == toString(this))) | |
395 | 395 | then (bv > 0) | |
396 | 396 | else false) | |
397 | 397 | then toString(addressFromPublicKey(fromBase58String(bu))) | |
398 | 398 | else toBase58String(aT.caller.bytes) | |
399 | 399 | let bw = if (if ((bu != "")) | |
400 | 400 | then (bv > 0) | |
401 | 401 | else false) | |
402 | 402 | then invoke(i, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(bu)))], nil) | |
403 | 403 | else unit | |
404 | 404 | if ((bw == bw)) | |
405 | 405 | then $Tuple4(toBase58String(aT.transactionId), P, lastBlock.timestamp, (bv > 0)) | |
406 | 406 | else throw("Strict value is not equal to itself.") | |
407 | 407 | } | |
408 | 408 | ||
409 | 409 | ||
410 | 410 | func bx (aT) = if (!(w)) | |
411 | 411 | then throw(x) | |
412 | 412 | else $Tuple3(toBase58String(aT.transactionId), toBase58String(aT.caller.bytes), lastBlock.timestamp) | |
413 | 413 | ||
414 | 414 | ||
415 | 415 | func by (aT,R,bz,bA,bB) = { | |
416 | 416 | let bC = bx(aT) | |
417 | 417 | let bD = bC._1 | |
418 | 418 | let P = bC._2 | |
419 | 419 | let bE = bC._3 | |
420 | 420 | let bF = if (if (if ((P == bz)) | |
421 | 421 | then (bB != "") | |
422 | 422 | else false) | |
423 | 423 | then (bA != "") | |
424 | 424 | else false) | |
425 | 425 | then true | |
426 | 426 | else false | |
427 | 427 | let bG = p(aj(P, R)) | |
428 | 428 | if (if (if ((bG != 0)) | |
429 | 429 | then (height >= bG) | |
430 | 430 | else false) | |
431 | 431 | then !(bF) | |
432 | 432 | else false) | |
433 | 433 | then throw("Sale ended.") | |
434 | 434 | else { | |
435 | 435 | let bH = (P == bz) | |
436 | 436 | let bI = p("total_nft_issued") | |
437 | 437 | let F = b(Y(bz, R)) | |
438 | 438 | let bJ = b(S(bz, R)) | |
439 | 439 | if ((bJ == "")) | |
440 | 440 | then throw("Art doesn't exist") | |
441 | 441 | else { | |
442 | 442 | let bK = r(aa(bz, R)) | |
443 | 443 | let bL = p(Z(bz, R)) | |
444 | 444 | let be = if (bH) | |
445 | 445 | then (C * 2) | |
446 | 446 | else p(ai(bz, R)) | |
447 | 447 | let bd = if (bH) | |
448 | 448 | then toBase58String(j) | |
449 | 449 | else b(ak(bz, R)) | |
450 | 450 | let bM = p(X(bz, R)) | |
451 | 451 | if (if (if (!(bF)) | |
452 | 452 | then !(bH) | |
453 | 453 | else false) | |
454 | 454 | then if (if ((0 >= be)) | |
455 | 455 | then true | |
456 | 456 | else !(bK)) | |
457 | 457 | then true | |
458 | 458 | else (0 >= bM) | |
459 | 459 | else false) | |
460 | 460 | then throw("Art not for sale") | |
461 | 461 | else if (if (if (!(bF)) | |
462 | 462 | then bH | |
463 | 463 | else false) | |
464 | 464 | then (0 >= bM) | |
465 | 465 | else false) | |
466 | 466 | then throw("Max issuable not set") | |
467 | 467 | else { | |
468 | 468 | let aR = aH(bz) | |
469 | 469 | if (if (bF) | |
470 | 470 | then (aR != "") | |
471 | 471 | else false) | |
472 | 472 | then throw(aR) | |
473 | 473 | else { | |
474 | 474 | let bo = ((((((("bid_" + R) + "_") + bz) + "_") + bB) + "_") + bA) | |
475 | 475 | let bN = if (bF) | |
476 | 476 | then bn(bo) | |
477 | 477 | else bc(aT, bd, be) | |
478 | 478 | let aV = bN._1 | |
479 | 479 | let aY = bN._2 | |
480 | 480 | let bO = valueOrElse(getString(h, am(bz)), g) | |
481 | 481 | let bP = valueOrElse(getInteger(h, ao(bz)), 0) | |
482 | 482 | let bQ = valueOrElse(getString(h, ap(bz)), g) | |
483 | 483 | let bR = valueOrElse(getInteger(h, aq(bz)), 0) | |
484 | 484 | let bS = q(bz) | |
485 | 485 | let bT = if ((bS > height)) | |
486 | 486 | then 0 | |
487 | 487 | else if ((aY == j)) | |
488 | 488 | then s | |
489 | 489 | else t | |
490 | 490 | let bU = fraction(aV, bT, 100) | |
491 | 491 | let bV = if (if (if ((bO != g)) | |
492 | 492 | then (bP > 0) | |
493 | 493 | else false) | |
494 | 494 | then (height > bS) | |
495 | 495 | else false) | |
496 | - | then fraction(aV, bP, | |
496 | + | then fraction(aV, bP, 10000) | |
497 | 497 | else 0 | |
498 | 498 | let bW = if (if (if ((bQ != g)) | |
499 | 499 | then (bR > 0) | |
500 | 500 | else false) | |
501 | 501 | then (height > bS) | |
502 | 502 | else false) | |
503 | - | then fraction(aV, bR, | |
503 | + | then fraction(aV, bR, 10000) | |
504 | 504 | else 0 | |
505 | 505 | let bX = (aV - bU) | |
506 | 506 | if ((bL == bM)) | |
507 | 507 | then throw("Art sold out") | |
508 | 508 | else { | |
509 | 509 | let bY = (bL + 1) | |
510 | 510 | let bZ = ((((((((((("Creator: " + bz) + ", | |
511 | 511 | ArtID: ") + R) + ", | |
512 | 512 | SignID: ") + F) + ", | |
513 | 513 | Artwork name: ") + bJ) + ", | |
514 | 514 | Issue: ") + toString(bY)) + "/") + toString(bM)) | |
515 | 515 | let ca = Issue(("SA_" + toString((bI + 1))), bZ, 1, 0, false) | |
516 | 516 | let cb = calculateAssetId(ca) | |
517 | 517 | let cc = if (if ((bY == bM)) | |
518 | 518 | then true | |
519 | 519 | else !(bK)) | |
520 | 520 | then false | |
521 | 521 | else true | |
522 | 522 | let cd = if (if (if ((P == bz)) | |
523 | 523 | then (bB != "") | |
524 | 524 | else false) | |
525 | 525 | then (bA != "") | |
526 | 526 | else false) | |
527 | 527 | then addressFromStringValue(bB) | |
528 | 528 | else aT.caller | |
529 | 529 | let ce = if (!(isDefined(aY))) | |
530 | 530 | then "WAVES" | |
531 | 531 | else toBase58String(value(aY)) | |
532 | 532 | let bp = b((bo + "_OPEN")) | |
533 | 533 | let cf = DeleteEntry((bo + "_OPEN")) | |
534 | 534 | let cg = StringEntry((bo + "_CLOSED"), ((bp + "_") + toString(bE))) | |
535 | 535 | let ch = ((((((("art_sold_" + toString(bY)) + "_of_") + toString(bM)) + "_") + R) + "_") + bz) | |
536 | 536 | let ci = if (!(bF)) | |
537 | 537 | then ((((((((((P + "_") + toString(bE)) + "_") + bD) + "_") + toString(be)) + "_") + bd) + "_") + toBase58String(cb)) | |
538 | 538 | else ((((((((((toString(cd) + "_") + toString(bE)) + "_") + bD) + "_") + toString(aV)) + "_") + ce) + "_") + toBase58String(cb)) | |
539 | 539 | let cj = StringEntry(ch, ci) | |
540 | 540 | let ck = if ((bV != 0)) | |
541 | 541 | then [ScriptTransfer(Address(fromBase58String(g)), (bU - bV), aY), ScriptTransfer(Address(fromBase58String(bO)), bV, aY)] | |
542 | 542 | else [ScriptTransfer(Address(fromBase58String(g)), bU, aY)] | |
543 | 543 | let cl = if ((bW != 0)) | |
544 | 544 | then [ScriptTransfer(Address(fromBase58String(bQ)), bW, aY), ScriptTransfer(Address(fromBase58String(bz)), (bX - bW), aY)] | |
545 | 545 | else [ScriptTransfer(Address(fromBase58String(bz)), bX, aY)] | |
546 | 546 | let cm = (([IntegerEntry(Z(bz, R), bY), StringEntry(("nft_" + toBase58String(cb)), ch), IntegerEntry("total_nft_issued", (bI + 1)), IntegerEntry(aj(bz, R), 0), BooleanEntry(aa(bz, R), cc), ca, ScriptTransfer(cd, 1, cb)] ++ ck) ++ cl) | |
547 | 547 | if (bF) | |
548 | 548 | then [cj, cg, cf] :: cm | |
549 | 549 | else cj :: cm | |
550 | 550 | } | |
551 | 551 | } | |
552 | 552 | } | |
553 | 553 | } | |
554 | 554 | } | |
555 | 555 | } | |
556 | 556 | ||
557 | 557 | ||
558 | 558 | func cn (co) = { | |
559 | 559 | let I = co | |
560 | 560 | if ($isInstanceOf(I, "String")) | |
561 | 561 | then { | |
562 | 562 | let cp = I | |
563 | 563 | cp | |
564 | 564 | } | |
565 | 565 | else throw("Sponsored Public Key String expected") | |
566 | 566 | } | |
567 | 567 | ||
568 | 568 | ||
569 | 569 | @Callable(cq) | |
570 | 570 | func setConf (c,cr) = { | |
571 | 571 | let P = toString(cq.caller) | |
572 | 572 | if (containsElement([n, toString(this)], P)) | |
573 | 573 | then if (contains(c, "conf_")) | |
574 | 574 | then [StringEntry(c, cr)] | |
575 | 575 | else throw("Entries starting with conf_ only") | |
576 | 576 | else throw("You are not allowed to change this") | |
577 | 577 | } | |
578 | 578 | ||
579 | 579 | ||
580 | 580 | ||
581 | 581 | @Callable(aT) | |
582 | 582 | func addArtwork (H,F,aN,aO,aP,cs,ay,aC,az,aD,aA,ct,aQ,bu) = { | |
583 | 583 | let cu = bt(aT, bu) | |
584 | 584 | let R = cu._1 | |
585 | 585 | let P = cu._2 | |
586 | 586 | let bE = cu._3 | |
587 | 587 | let bv = cu._4 | |
588 | 588 | if (!(M(H))) | |
589 | 589 | then throw("Hash should be 64 characters maximum") | |
590 | 590 | else { | |
591 | 591 | let cv = aJ(aA, aD) | |
592 | 592 | let aL = cv._1 | |
593 | 593 | let aM = cv._2 | |
594 | 594 | let cw = aK(P, ay, az, aL, aC, aM, aN, aO, aP, aQ) | |
595 | 595 | if ((cw != "")) | |
596 | 596 | then throw("Something went wrong!") | |
597 | 597 | else { | |
598 | 598 | let cx = (q((P + "_free_drops")) > 0) | |
599 | 599 | let cy = if (cx) | |
600 | 600 | then $Tuple2(0, F) | |
601 | 601 | else aW(aT) | |
602 | 602 | let aV = cy._1 | |
603 | 603 | let aY = cy._2 | |
604 | 604 | if (!(isDefined(aV))) | |
605 | 605 | then throw("Something went wrong") | |
606 | 606 | else { | |
607 | 607 | let cz = b(aw(H, P)) | |
608 | 608 | if ((cz != "")) | |
609 | 609 | then throw("You already added it") | |
610 | 610 | else { | |
611 | 611 | let cA = b(at(H)) | |
612 | 612 | if ((cA != "")) | |
613 | 613 | then throw("Hash already registered") | |
614 | 614 | else { | |
615 | 615 | let cB = E(F, P, H) | |
616 | 616 | if (!(cB)) | |
617 | 617 | then throw("Sign Certificate not found for this address.") | |
618 | 618 | else { | |
619 | 619 | let cC = if (cx) | |
620 | 620 | then invoke(i, "useFreeDrop", [P], nil) | |
621 | 621 | else unit | |
622 | 622 | if ((cC == cC)) | |
623 | 623 | then { | |
624 | 624 | let cD = if (bv) | |
625 | 625 | then [ScriptTransfer(Address(fromBase58String(P)), 0, unit)] | |
626 | 626 | else nil | |
627 | 627 | ([StringEntry(at(H), P), StringEntry(aw(H, P), R), IntegerEntry(Q(P, R), bE), StringEntry(S(P, R), aN), StringEntry(T(P, R), aO), StringEntry(U(P, R), ay), StringEntry(W(P, R), az), StringEntry(V(P, R), aC), StringEntry(ab(P, R), aM), StringEntry(ac(P, R), aL), StringEntry(ae(P, R), cs), StringEntry(ad(P, R), aP), IntegerEntry(X(P, R), 0), StringEntry(Y(P, R), F), IntegerEntry(Z(P, R), 0), BooleanEntry(aa(P, R), false), StringEntry(au(P, F), R), StringEntry(ar(P, R), H), StringEntry(ag(P, R), ct), IntegerEntry(ah(P, R), aQ), ScriptTransfer(Address(fromBase58String(g)), aV, j)] ++ cD) | |
628 | 628 | } | |
629 | 629 | else throw("Strict value is not equal to itself.") | |
630 | 630 | } | |
631 | 631 | } | |
632 | 632 | } | |
633 | 633 | } | |
634 | 634 | } | |
635 | 635 | } | |
636 | 636 | } | |
637 | 637 | ||
638 | 638 | ||
639 | 639 | ||
640 | 640 | @Callable(aT) | |
641 | 641 | func updateArtwork (as,aN,aO,aP,cs,ay,aC,az,aD,aA,ct,aQ,bu) = if (!(w)) | |
642 | 642 | then throw(x) | |
643 | 643 | else { | |
644 | 644 | let cE = bt(aT, bu) | |
645 | 645 | let bD = cE._1 | |
646 | 646 | let P = cE._2 | |
647 | 647 | let bE = cE._3 | |
648 | 648 | let bv = cE._4 | |
649 | 649 | let cF = aJ(aA, aD) | |
650 | 650 | let aL = cF._1 | |
651 | 651 | let aM = cF._2 | |
652 | 652 | let cw = aK(P, ay, az, aL, aC, aM, aN, aO, aP, aQ) | |
653 | 653 | if ((cw != "")) | |
654 | 654 | then throw("Something went wrong!") | |
655 | 655 | else { | |
656 | 656 | let cz = b(S(P, as)) | |
657 | 657 | if ((cz == "")) | |
658 | 658 | then throw("Entry not found") | |
659 | 659 | else { | |
660 | 660 | let cG = b(al(P, as)) | |
661 | 661 | if ((cG == "ILLEGAL")) | |
662 | 662 | then throw("Cannot update ILLEGAL artwork") | |
663 | 663 | else if (!(aZ(P, as))) | |
664 | 664 | then { | |
665 | 665 | let cD = if (bv) | |
666 | 666 | then [ScriptTransfer(Address(fromBase58String(P)), 0, unit)] | |
667 | 667 | else nil | |
668 | 668 | ([StringEntry(S(P, as), aN), StringEntry(T(P, as), aO), StringEntry(U(P, as), ay), StringEntry(W(P, as), az), StringEntry(V(P, as), aC), StringEntry(ac(P, as), aL), StringEntry(ab(P, as), aM), StringEntry(ad(P, as), aP), StringEntry(ae(P, as), cs), StringEntry(ag(P, as), ct), IntegerEntry(ah(P, as), aQ)] ++ cD) | |
669 | 669 | } | |
670 | 670 | else throw("Already minted") | |
671 | 671 | } | |
672 | 672 | } | |
673 | 673 | } | |
674 | 674 | ||
675 | 675 | ||
676 | 676 | ||
677 | 677 | @Callable(aT) | |
678 | 678 | func flagArtwork (R,cH,cG,cI) = { | |
679 | 679 | let cJ = bx(aT) | |
680 | 680 | let bD = cJ._1 | |
681 | 681 | let P = cJ._2 | |
682 | 682 | if (containsElement([n, toString(this)], P)) | |
683 | 683 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cG)) | |
684 | 684 | then [StringEntry(al(cH, R), cG), StringEntry(af(cH, R), cI)] | |
685 | 685 | else throw(("Unknow status " + cG)) | |
686 | 686 | else throw("You are not allowed") | |
687 | 687 | } | |
688 | 688 | ||
689 | 689 | ||
690 | 690 | ||
691 | 691 | @Callable(aT) | |
692 | 692 | func deleteArtwork (R,cH) = { | |
693 | 693 | let cK = bx(aT) | |
694 | 694 | let bD = cK._1 | |
695 | 695 | let P = cK._2 | |
696 | 696 | let ba = if (containsElement([n, toString(this)], P)) | |
697 | 697 | then cH | |
698 | 698 | else P | |
699 | 699 | let cz = valueOrErrorMessage(b(S(ba, R)), "No art matching for this address") | |
700 | 700 | if ((cz == "")) | |
701 | 701 | then throw("No art matching for this address") | |
702 | 702 | else { | |
703 | 703 | let H = b(ar(ba, R)) | |
704 | 704 | if ((H == "")) | |
705 | 705 | then throw("No art hash matching for this address") | |
706 | 706 | else { | |
707 | 707 | let F = b(Y(ba, R)) | |
708 | 708 | if ((F == "")) | |
709 | 709 | then throw("No SIGN ID matching") | |
710 | 710 | else { | |
711 | 711 | let cL = [DeleteEntry(Q(ba, R)), DeleteEntry(S(ba, R)), DeleteEntry(T(ba, R)), DeleteEntry(U(ba, R)), DeleteEntry(W(ba, R)), DeleteEntry(V(ba, R)), DeleteEntry(ab(ba, R)), DeleteEntry(ac(ba, R)), DeleteEntry(ae(ba, R)), DeleteEntry(ad(ba, R)), DeleteEntry(X(ba, R)), DeleteEntry(Y(ba, R)), DeleteEntry(Z(ba, R)), DeleteEntry(aa(ba, R)), DeleteEntry(al(ba, R)), DeleteEntry(ai(ba, R)), DeleteEntry(ak(ba, R)), DeleteEntry(at(H)), DeleteEntry(au(ba, F)), DeleteEntry(aw(H, ba)), DeleteEntry(aj(ba, R)), DeleteEntry(af(ba, R)), DeleteEntry(ag(ba, R)), DeleteEntry(ah(ba, R))] | |
712 | 712 | if (!(aZ(ba, R))) | |
713 | 713 | then if (!(w)) | |
714 | 714 | then throw(x) | |
715 | 715 | else cL | |
716 | 716 | else if (containsElement([n, toString(this)], P)) | |
717 | 717 | then cL | |
718 | 718 | else throw("Art already minted, you cannot delete it") | |
719 | 719 | } | |
720 | 720 | } | |
721 | 721 | } | |
722 | 722 | } | |
723 | 723 | ||
724 | 724 | ||
725 | 725 | ||
726 | 726 | @Callable(aT) | |
727 | 727 | func sellArtwork (R,bi,cM,aY,bG,bu) = { | |
728 | 728 | let cN = bt(aT, bu) | |
729 | 729 | let bD = cN._1 | |
730 | 730 | let P = cN._2 | |
731 | 731 | let bE = cN._3 | |
732 | 732 | let bv = cN._4 | |
733 | 733 | let bJ = b(S(P, R)) | |
734 | 734 | if ((bJ == "")) | |
735 | 735 | then throw("This art doesn't match your account") | |
736 | 736 | else { | |
737 | 737 | let cG = b(al(P, R)) | |
738 | 738 | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cG)) | |
739 | 739 | then throw("Flagged artwork") | |
740 | 740 | else { | |
741 | 741 | let cO = p(("current_bidamount_" + R)) | |
742 | 742 | if ((0 > bG)) | |
743 | 743 | then throw("Negative end") | |
744 | 744 | else if (if ((bG > 0)) | |
745 | 745 | then if ((cM != 1)) | |
746 | 746 | then true | |
747 | 747 | else (bi != 0) | |
748 | 748 | else false) | |
749 | 749 | then throw("Timed offer only allowed for unique edition and offer only") | |
750 | 750 | else { | |
751 | 751 | let cP = if ((bG == 0)) | |
752 | 752 | then 0 | |
753 | 753 | else height | |
754 | 754 | if (!(bg(aY))) | |
755 | 755 | then throw("Something went wrong!") | |
756 | 756 | else if (!(bh(aY, bi))) | |
757 | 757 | then throw("Something went wrong!") | |
758 | 758 | else { | |
759 | 759 | let aR = aH(P) | |
760 | 760 | if ((aR != "")) | |
761 | 761 | then throw(aR) | |
762 | 762 | else { | |
763 | 763 | let bL = p(Z(P, R)) | |
764 | 764 | let bM = p(X(P, R)) | |
765 | 765 | if ((cM > 100)) | |
766 | 766 | then throw("100 editions max per artwork") | |
767 | 767 | else if (if ((bL != 0)) | |
768 | 768 | then (bL == bM) | |
769 | 769 | else false) | |
770 | 770 | then throw("Max edition reached.") | |
771 | 771 | else if (if ((bL > 0)) | |
772 | 772 | then (bM != cM) | |
773 | 773 | else false) | |
774 | 774 | then throw("Cannot change maximum issuable anymore") | |
775 | 775 | else if (if ((cO > 0)) | |
776 | 776 | then (bM != cM) | |
777 | 777 | else false) | |
778 | 778 | then throw("Cannot change maximum issuable with active orders") | |
779 | 779 | else { | |
780 | 780 | let cc = if (if ((bi > 0)) | |
781 | 781 | then (cM > 0) | |
782 | 782 | else false) | |
783 | 783 | then true | |
784 | 784 | else false | |
785 | 785 | let cD = if (bv) | |
786 | 786 | then [ScriptTransfer(Address(fromBase58String(P)), 0, unit)] | |
787 | 787 | else nil | |
788 | 788 | ([BooleanEntry(aa(P, R), cc), IntegerEntry(ai(P, R), bi), IntegerEntry(X(P, R), cM), StringEntry(ak(P, R), aY), IntegerEntry(aj(P, R), (cP + bG))] ++ cD) | |
789 | 789 | } | |
790 | 790 | } | |
791 | 791 | } | |
792 | 792 | } | |
793 | 793 | } | |
794 | 794 | } | |
795 | 795 | } | |
796 | 796 | ||
797 | 797 | ||
798 | 798 | ||
799 | 799 | @Callable(aT) | |
800 | 800 | func buyArtwork (R,bz) = by(aT, R, bz, "", "") | |
801 | 801 | ||
802 | 802 | ||
803 | 803 | ||
804 | 804 | @Callable(aT) | |
805 | 805 | func setBid (R,bz) = { | |
806 | 806 | let cQ = bx(aT) | |
807 | 807 | let bD = cQ._1 | |
808 | 808 | let P = cQ._2 | |
809 | 809 | let bE = cQ._3 | |
810 | 810 | let cR = aS(aT) | |
811 | 811 | let aU = cR._1 | |
812 | 812 | let aV = cR._2 | |
813 | 813 | let aY = if (!(isDefined(aU.assetId))) | |
814 | 814 | then "WAVES" | |
815 | 815 | else toBase58String(value(aU.assetId)) | |
816 | 816 | let bG = p(aj(bz, R)) | |
817 | 817 | if (if ((bG != 0)) | |
818 | 818 | then (height >= bG) | |
819 | 819 | else false) | |
820 | 820 | then throw("Sale ended.") | |
821 | 821 | else { | |
822 | 822 | let cO = p(("current_bidamount_" + R)) | |
823 | 823 | if (!(bg(aY))) | |
824 | 824 | then throw("asset not accepted") | |
825 | 825 | else if (!(bh(aY, aV))) | |
826 | 826 | then throw("Wrong min sell") | |
827 | 827 | else { | |
828 | 828 | let bL = p(Z(bz, R)) | |
829 | 829 | let bM = p(X(bz, R)) | |
830 | 830 | if ((0 >= bM)) | |
831 | 831 | then throw("No max edition set for this artwork") | |
832 | 832 | else if ((bL >= bM)) | |
833 | 833 | then throw("Sold out, you cannot bid") | |
834 | 834 | else [StringEntry((((((((("bid_" + R) + "_") + bz) + "_") + P) + "_") + bD) + "_OPEN"), ((((aY + "_") + toString(aV)) + "_") + toString(bE))), IntegerEntry(("current_bidamount_" + R), (cO + 1))] | |
835 | 835 | } | |
836 | 836 | } | |
837 | 837 | } | |
838 | 838 | ||
839 | 839 | ||
840 | 840 | ||
841 | 841 | @Callable(aT) | |
842 | 842 | func acceptBid (R,bz,bA,bB) = { | |
843 | 843 | let cS = bx(aT) | |
844 | 844 | let bD = cS._1 | |
845 | 845 | let P = cS._2 | |
846 | 846 | let bE = cS._3 | |
847 | 847 | if ((P != bz)) | |
848 | 848 | then throw("You cannot do this action") | |
849 | 849 | else by(aT, R, bz, bA, bB) | |
850 | 850 | } | |
851 | 851 | ||
852 | 852 | ||
853 | 853 | ||
854 | 854 | @Callable(aT) | |
855 | 855 | func cancelBid (R,bz,bA,bB) = { | |
856 | 856 | let cT = bx(aT) | |
857 | 857 | let bD = cT._1 | |
858 | 858 | let P = cT._2 | |
859 | 859 | let bE = cT._3 | |
860 | 860 | if (if ((P != bB)) | |
861 | 861 | then (P != bz) | |
862 | 862 | else false) | |
863 | 863 | then throw("You cannot do this action") | |
864 | 864 | else { | |
865 | 865 | let cU = if ((P == bz)) | |
866 | 866 | then bB | |
867 | 867 | else P | |
868 | 868 | let cO = p(("current_bidamount_" + R)) | |
869 | 869 | let bo = ((((((("bid_" + R) + "_") + bz) + "_") + bB) + "_") + bA) | |
870 | 870 | let bp = b((bo + "_OPEN")) | |
871 | 871 | if ((bp == "")) | |
872 | 872 | then throw("Bid not found") | |
873 | 873 | else { | |
874 | 874 | let bq = split(bp, "_") | |
875 | 875 | let aY = bm(bq[0]) | |
876 | 876 | let cV = "CANCELED" | |
877 | 877 | [DeleteEntry((bo + "_OPEN")), StringEntry(((bo + "_") + cV), ((bp + "_") + toString(bE))), IntegerEntry(("current_bidamount_" + R), (cO - 1)), ScriptTransfer(Address(fromBase58String(cU)), parseIntValue(bq[1]), aY)] | |
878 | 878 | } | |
879 | 879 | } | |
880 | 880 | } | |
881 | 881 | ||
882 | 882 | ||
883 | 883 | @Verifier(cW) | |
884 | 884 | func cX () = { | |
885 | 885 | let I = cW | |
886 | 886 | if ($isInstanceOf(I, "InvokeScriptTransaction")) | |
887 | 887 | then { | |
888 | 888 | let cY = I | |
889 | 889 | if (if (if (if ((cY.function == "addArtwork")) | |
890 | 890 | then (cY.dApp == this) | |
891 | 891 | else false) | |
892 | 892 | then (cY.fee == 500000) | |
893 | 893 | else false) | |
894 | 894 | then (cY.feeAssetId == unit) | |
895 | 895 | else false) | |
896 | 896 | then sigVerify(cW.bodyBytes, cW.proofs[0], fromBase58String(cn(cY.args[13]))) | |
897 | 897 | else if (if (if (if ((cY.function == "updateArtwork")) | |
898 | 898 | then (cY.dApp == this) | |
899 | 899 | else false) | |
900 | 900 | then (cY.fee == 500000) | |
901 | 901 | else false) | |
902 | 902 | then (cY.feeAssetId == unit) | |
903 | 903 | else false) | |
904 | 904 | then sigVerify(cW.bodyBytes, cW.proofs[0], fromBase58String(cn(cY.args[12]))) | |
905 | 905 | else if (if (if (if ((cY.function == "sellArtwork")) | |
906 | 906 | then (cY.dApp == this) | |
907 | 907 | else false) | |
908 | 908 | then (cY.fee == 500000) | |
909 | 909 | else false) | |
910 | 910 | then (cY.feeAssetId == unit) | |
911 | 911 | else false) | |
912 | 912 | then sigVerify(cW.bodyBytes, cW.proofs[0], fromBase58String(cn(cY.args[5]))) | |
913 | 913 | else sigVerify(cW.bodyBytes, cW.proofs[0], cW.senderPublicKey) | |
914 | 914 | } | |
915 | 915 | else sigVerify(cW.bodyBytes, cW.proofs[0], cW.senderPublicKey) | |
916 | 916 | } | |
917 | 917 |
github/deemru/w8io/169f3d6 94.95 ms ◑