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