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