tx · DGKdArHbB7whryfLh5fUP5eAdNykC77oLXCBZy6ok5yo 3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg: -0.02700000 Waves 2023.03.27 17:18 [2508480] smart account 3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg > SELF 0.00000000 Waves
{ "type": 13, "id": "DGKdArHbB7whryfLh5fUP5eAdNykC77oLXCBZy6ok5yo", "fee": 2700000, "feeAssetId": null, "timestamp": 1679926742741, "version": 2, "chainId": 84, "sender": "3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg", "senderPublicKey": "C2aAS9D6FqfbrkCuCQCtPWAiopjyagvitFLjRuLcRPYt", "proofs": [ "r661rUoncFHNF1EzowTwA7GtQPoTFhMe4DatchqZBJtLzgG6vuj4Z4WChgbrVaEVGJL42ZbY5haXjit4xwHaQ1a" ], "script": "base64:AAIFAAAAAAAACz8IAhIMCgoICAgBCAEBAQEBEgQKAggIEgQKAggEEgMKAQgSBAoCCAESBQoDCAgIEgASAwoBARIAEgASAwoBARIAEgMKAQESAwoBARIDCgEIIglzZXBhcmF0b3IiD21heERlcHRoRGVmYXVsdCIFYXNJbnQiA3ZhbCIHJG1hdGNoMCIGdmFsSW50IgZhc0Jvb2wiB3ZhbEJvb2wiDGtleUZlZUFtb3VudCIMa2V5V3hBc3NldElkIhJrZXlWb3RpbmdUaHJlc2hvbGQiEWtleVZvdGluZ0R1cmF0aW9uIhhrZXlWb3RlQmVmb3JlRWxpbWluYXRpb24iDmtleVN0YXJ0SGVpZ2h0IhBrZXlDdXJyZW50UGVyaW9kIhNrZXlCb29zdGluZ0NvbnRyYWN0IhNrZXlFbWlzc2lvbkNvbnRyYWN0IhZrZXlBc3NldHNTdG9yZUNvbnRyYWN0IhdrZXlMYXRlc3RQcm9jZXNzZWRBc3NldCIWa2V5TGF0ZXN0UHJvY2Vzc2VkVXNlciIca2V5TGF0ZXN0UHJvY2Vzc2VkVXNlclJlbW92ZSIfa2V5TGF0Z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nRlZ2VyRW50cnkAAAACBQAAAAFpBQAAAAJjdAUAAAADbmlsBQAAAAR1bml0CQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAJhawEAAAAbZ3d4QXZhaWxhYmxlRm9yVm90ZVJFQURPTkxZAAAAAQAAAAFaBAAAAAJiSwkBAAAAAmFDAAAAAgUAAAABWgUAAAACYUIJAAUUAAAAAgUAAAADbmlsBQAAAAJiSwAAAAB9o50X", "height": 2508480, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GR17wbVxzeYae8UseLbVESLGaVZKufkd8QuxFjaP55TY Next: 9LAx7qt9QajDNKTZUMR6GHYk7QCmghdp9kA3YiYfPsUV Diff:
Old | New | Differences | |
---|---|---|---|
360 | 360 | @Callable(ak) | |
361 | 361 | func suggest (D,bz) = { | |
362 | 362 | let bA = valueOrErrorMessage(assetInfo(fromBase58String(D)), "Invalid asset ID") | |
363 | - | let bB = value(ak.payments[0]) | |
364 | - | let by = [if ((bA.issuer == ak.caller)) | |
365 | - | then true | |
366 | - | else throw("Asset can only be suggested by its issuer"), if ((value(bB.assetId) == ar)) | |
367 | - | then true | |
368 | - | else throw("Invalid fee asset"), if ((bB.amount == aq)) | |
369 | - | then true | |
370 | - | else throw("Invalid fee amount")] | |
371 | - | if ((by == by)) | |
363 | + | if ((bA == bA)) | |
372 | 364 | then { | |
373 | - | let bC = invoke(az, "createOrUpdate", [D, bz, false], nil) | |
374 | - | if ((bC == bC)) | |
365 | + | let bB = value(ak.payments[0]) | |
366 | + | let bC = (ak.caller == this) | |
367 | + | let by = [if (if (bC) | |
368 | + | then true | |
369 | + | else (bA.issuer == ak.caller)) | |
370 | + | then true | |
371 | + | else throw("Asset can only be suggested by its issuer"), if (if (bC) | |
372 | + | then true | |
373 | + | else (value(bB.assetId) == ar)) | |
374 | + | then true | |
375 | + | else throw("Invalid fee asset"), if (if (bC) | |
376 | + | then true | |
377 | + | else (bB.amount == aq)) | |
378 | + | then true | |
379 | + | else throw("Invalid fee amount")] | |
380 | + | if ((by == by)) | |
375 | 381 | then { | |
376 | - | let bD = invoke( | |
382 | + | let bD = invoke(az, "createOrUpdate", [D, bz, false], nil) | |
377 | 383 | if ((bD == bD)) | |
378 | 384 | then { | |
379 | - | let bE = aR(B, D) | |
380 | - | let bF = (aw + 1) | |
381 | - | let bG = if ((aB > height)) | |
382 | - | then aw | |
383 | - | else bF | |
384 | - | $Tuple2((bE :+ aF(D, 0, true, bG, false)), unit) | |
385 | + | let bE = if (bC) | |
386 | + | then unit | |
387 | + | else invoke(ay, "burn", nil, [AttachedPayment(bB.assetId, bB.amount)]) | |
388 | + | if ((bE == bE)) | |
389 | + | then { | |
390 | + | let bF = aR(B, D) | |
391 | + | let bG = (aw + 1) | |
392 | + | let bH = if ((aB > height)) | |
393 | + | then aw | |
394 | + | else bG | |
395 | + | $Tuple2((bF :+ aF(D, 0, true, bH, false)), unit) | |
396 | + | } | |
397 | + | else throw("Strict value is not equal to itself.") | |
385 | 398 | } | |
386 | 399 | else throw("Strict value is not equal to itself.") | |
387 | 400 | } | |
394 | 407 | ||
395 | 408 | @Callable(ak) | |
396 | 409 | func vote (D,ac) = { | |
397 | - | let | |
410 | + | let bI = if (aN(B, D)) | |
398 | 411 | then true | |
399 | 412 | else throw("Invalid asset") | |
400 | - | if (( | |
413 | + | if ((bI == bI)) | |
401 | 414 | then { | |
402 | - | let | |
415 | + | let bJ = if ((aB > height)) | |
403 | 416 | then true | |
404 | 417 | else throw("Current voting is over but results are not finalized") | |
405 | - | if (( | |
418 | + | if ((bJ == bJ)) | |
406 | 419 | then { | |
407 | 420 | let Z = toString(ak.caller) | |
408 | - | let | |
409 | - | let | |
421 | + | let bK = aC(Z, aB) | |
422 | + | let bL = if ((bK > 0)) | |
410 | 423 | then true | |
411 | 424 | else throw("You'll not have gWX at the end of voting") | |
412 | - | if (( | |
425 | + | if ((bL == bL)) | |
413 | 426 | then { | |
414 | - | let | |
427 | + | let bM = C(D) | |
415 | 428 | let bd = Y(Z, D, aw) | |
416 | 429 | let be = getString(bd) | |
417 | - | let | |
430 | + | let bN = if ((be == unit)) | |
418 | 431 | then unit | |
419 | 432 | else invoke(this, "cancelVote", [D], nil) | |
420 | - | if (( | |
433 | + | if ((bN == bN)) | |
421 | 434 | then { | |
422 | - | let | |
423 | - | let | |
435 | + | let bO = [StringEntry(bd, aa(bK, ac)), StringEntry(ag("vote", Z, D, toBase58String(ak.transactionId), aw), aa(bK, ac)), aF(D, bK, ac, aw, unit)] | |
436 | + | let bP = if (aN(bM, Z)) | |
424 | 437 | then nil | |
425 | - | else aR( | |
426 | - | $Tuple2(( | |
438 | + | else aR(bM, Z) | |
439 | + | $Tuple2((bP ++ bO), unit) | |
427 | 440 | } | |
428 | 441 | else throw("Strict value is not equal to itself.") | |
429 | 442 | } | |
441 | 454 | let Z = if ((ak.caller == this)) | |
442 | 455 | then toString(ak.originCaller) | |
443 | 456 | else toString(ak.caller) | |
444 | - | let | |
457 | + | let bM = C(D) | |
445 | 458 | let bd = Y(Z, D, aw) | |
446 | 459 | let be = getString(bd) | |
447 | - | let | |
448 | - | let ab = | |
449 | - | let ac = | |
450 | - | let | |
451 | - | let | |
452 | - | $Tuple2(( | |
460 | + | let bQ = ad(valueOrErrorMessage(be, "Nothing to cancel")) | |
461 | + | let ab = bQ._1 | |
462 | + | let ac = bQ._2 | |
463 | + | let bP = aU(bM, Z) | |
464 | + | let bO = [DeleteEntry(bd), StringEntry(ag("cancelVote", Z, D, toBase58String(ak.transactionId), aw), aa(0, true)), aF(D, -(ab), ac, aw, unit)] | |
465 | + | $Tuple2((bP ++ bO), unit) | |
453 | 466 | } | |
454 | 467 | ||
455 | 468 | ||
456 | 469 | ||
457 | 470 | @Callable(ak) | |
458 | 471 | func finalizeAssetINTERNAL (D,A) = { | |
459 | - | let | |
460 | - | if (( | |
472 | + | let bR = aj(ak) | |
473 | + | if ((bR == bR)) | |
461 | 474 | then { | |
462 | 475 | let aG = N(D, A) | |
463 | - | let | |
476 | + | let bS = { | |
464 | 477 | let e = getString(aG) | |
465 | 478 | if ($isInstanceOf(e, "String")) | |
466 | 479 | then { | |
467 | 480 | let aI = e | |
468 | - | let | |
469 | - | $Tuple2( | |
481 | + | let bT = S(aI) | |
482 | + | $Tuple2(bT._1, bT._2) | |
470 | 483 | } | |
471 | 484 | else if ($isInstanceOf(e, "Unit")) | |
472 | 485 | then $Tuple2(0, 0) | |
473 | 486 | else throw("Match error") | |
474 | 487 | } | |
475 | - | let P = | |
476 | - | let Q = | |
488 | + | let P = bS._1 | |
489 | + | let Q = bS._2 | |
477 | 490 | let ab = (P + Q) | |
478 | 491 | let R = if ((ab >= as)) | |
479 | 492 | then (P > Q) | |
480 | 493 | else false | |
481 | - | let | |
494 | + | let bU = [BooleanEntry(K(D, A), R), if (R) | |
482 | 495 | then BooleanEntry(L(D), true) | |
483 | 496 | else DeleteEntry(L(D))] | |
484 | - | let | |
485 | - | if (( | |
497 | + | let bV = invoke(az, "setVerified", [D, R], nil) | |
498 | + | if ((bV == bV)) | |
486 | 499 | then { | |
487 | - | let | |
500 | + | let bW = if (R) | |
488 | 501 | then false | |
489 | 502 | else bn(D) | |
490 | - | let | |
503 | + | let bX = if (bW) | |
491 | 504 | then [BooleanEntry(M(D, aw), true)] | |
492 | 505 | else nil | |
493 | - | let | |
506 | + | let bY = if (bW) | |
494 | 507 | then nil | |
495 | 508 | else [aF(D, 0, true, (aw + 1), R)] | |
496 | - | let | |
509 | + | let bP = if (bW) | |
497 | 510 | then aU(B, D) | |
498 | 511 | else nil | |
499 | - | let | |
512 | + | let bZ = if (bW) | |
500 | 513 | then invoke(az, "onEliminate", [D], nil) | |
501 | 514 | else unit | |
502 | - | if (( | |
503 | - | then $Tuple2((( | |
515 | + | if ((bZ == bZ)) | |
516 | + | then $Tuple2(((bP ++ bY) ++ bU), unit) | |
504 | 517 | else throw("Strict value is not equal to itself.") | |
505 | 518 | } | |
506 | 519 | else throw("Strict value is not equal to itself.") | |
512 | 525 | ||
513 | 526 | @Callable(ak) | |
514 | 527 | func deleteUserNodeINTERNAL (D,Z,aZ) = { | |
515 | - | let | |
516 | - | if (( | |
528 | + | let bR = aj(ak) | |
529 | + | if ((bR == bR)) | |
517 | 530 | then $Tuple2((aU(C(D), Z) :+ DeleteEntry(aZ)), unit) | |
518 | 531 | else throw("Strict value is not equal to itself.") | |
519 | 532 | } | |
524 | 537 | func finalizeVotingHelper () = if ((aB > height)) | |
525 | 538 | then $Tuple2(nil, false) | |
526 | 539 | else { | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | if (( | |
540 | + | let ca = getString(s) | |
541 | + | let cb = getString(t) | |
542 | + | let cc = 0 | |
543 | + | let cd = $Tuple2([IntegerEntry(n, (height + cc)), IntegerEntry(o, (aw + 1)), DeleteEntry(s), DeleteEntry(t), DeleteEntry(v), DeleteEntry(w)], true) | |
544 | + | if ((ca == unit)) | |
532 | 545 | then { | |
533 | - | let | |
534 | - | if (( | |
535 | - | then | |
546 | + | let ce = getString(E(B)) | |
547 | + | if ((ce == unit)) | |
548 | + | then cd | |
536 | 549 | else { | |
537 | - | let | |
538 | - | let aW = getString(E(C( | |
539 | - | let | |
540 | - | $Tuple2( | |
550 | + | let cf = value(ce) | |
551 | + | let aW = getString(E(C(cf))) | |
552 | + | let cg = aV(cf, aW, s, t, u) | |
553 | + | $Tuple2(cg, true) | |
541 | 554 | } | |
542 | 555 | } | |
543 | 556 | else { | |
544 | - | let | |
545 | - | if (( | |
557 | + | let ch = value(ca) | |
558 | + | if ((cb == unit)) | |
546 | 559 | then { | |
547 | - | let | |
548 | - | if (( | |
560 | + | let ci = getString(J(B, ch)) | |
561 | + | if ((ci == ci)) | |
549 | 562 | then { | |
550 | - | let | |
551 | - | if (( | |
552 | - | then if (( | |
553 | - | then | |
563 | + | let cj = invoke(this, "finalizeAssetINTERNAL", [ch, aw], nil) | |
564 | + | if ((cj == cj)) | |
565 | + | then if ((ci == unit)) | |
566 | + | then cd | |
554 | 567 | else { | |
555 | - | let | |
556 | - | let aW = getString(E(C( | |
557 | - | let | |
558 | - | $Tuple2( | |
568 | + | let cf = value(ci) | |
569 | + | let aW = getString(E(C(cf))) | |
570 | + | let cg = aV(cf, aW, s, t, u) | |
571 | + | $Tuple2(cg, true) | |
559 | 572 | } | |
560 | 573 | else throw("Strict value is not equal to itself.") | |
561 | 574 | } | |
562 | 575 | else throw("Strict value is not equal to itself.") | |
563 | 576 | } | |
564 | 577 | else { | |
565 | - | let | |
566 | - | let aW = getString(J(C( | |
578 | + | let ck = value(cb) | |
579 | + | let aW = getString(J(C(ch), ck)) | |
567 | 580 | if ((aW == aW)) | |
568 | 581 | then { | |
569 | - | let | |
570 | - | let | |
571 | - | then invoke(this, "deleteUserNodeINTERNAL", [ | |
582 | + | let cl = valueOrElse(getBoolean(u), false) | |
583 | + | let cm = if (cl) | |
584 | + | then invoke(this, "deleteUserNodeINTERNAL", [ch, ck, u], nil) | |
572 | 585 | else unit | |
573 | - | if (( | |
586 | + | if ((cm == cm)) | |
574 | 587 | then { | |
575 | - | let | |
576 | - | $Tuple2( | |
588 | + | let cg = aV(ch, aW, s, t, u) | |
589 | + | $Tuple2(cg, true) | |
577 | 590 | } | |
578 | 591 | else throw("Strict value is not equal to itself.") | |
579 | 592 | } | |
585 | 598 | ||
586 | 599 | ||
587 | 600 | @Callable(ak) | |
588 | - | func finalizeVotingWrapper ( | |
589 | - | let | |
590 | - | if (( | |
591 | - | then if (!( | |
592 | - | then if (( | |
601 | + | func finalizeVotingWrapper (cn) = { | |
602 | + | let co = g(invoke(this, "finalizeVotingHelper", nil, nil)) | |
603 | + | if ((co == co)) | |
604 | + | then if (!(co)) | |
605 | + | then if ((cn == 0)) | |
593 | 606 | then throw("Current voting is not over yet") | |
594 | 607 | else $Tuple2(nil, unit) | |
595 | - | else if ((aA > | |
608 | + | else if ((aA > cn)) | |
596 | 609 | then { | |
597 | - | let | |
598 | - | if (( | |
610 | + | let cp = invoke(this, "finalizeVotingWrapper", [(cn + 1)], nil) | |
611 | + | if ((cp == cp)) | |
599 | 612 | then $Tuple2(nil, unit) | |
600 | 613 | else throw("Strict value is not equal to itself.") | |
601 | 614 | } | |
607 | 620 | ||
608 | 621 | @Callable(ak) | |
609 | 622 | func finalizeVoting () = { | |
610 | - | let | |
611 | - | if (( | |
623 | + | let cp = invoke(this, "finalizeVotingWrapper", [0], nil) | |
624 | + | if ((cp == cp)) | |
612 | 625 | then $Tuple2(nil, unit) | |
613 | 626 | else throw("Strict value is not equal to itself.") | |
614 | 627 | } | |
617 | 630 | ||
618 | 631 | @Callable(ak) | |
619 | 632 | func transferVotesHelper () = { | |
620 | - | let | |
621 | - | let | |
633 | + | let cq = z(aw) | |
634 | + | let cr = valueOrElse(getBoolean(cq), false) | |
622 | 635 | if (if (if ((av > height)) | |
623 | 636 | then true | |
624 | 637 | else (height >= aB)) | |
625 | 638 | then true | |
626 | - | else | |
639 | + | else cr) | |
627 | 640 | then $Tuple2(nil, false) | |
628 | 641 | else { | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | if (( | |
642 | + | let ca = getString(v) | |
643 | + | let cb = getString(w) | |
644 | + | let cd = $Tuple2([BooleanEntry(cq, true), DeleteEntry(v), DeleteEntry(w)], true) | |
645 | + | if ((ca == unit)) | |
633 | 646 | then { | |
634 | - | let | |
635 | - | if (( | |
636 | - | then | |
647 | + | let ce = getString(E(B)) | |
648 | + | if ((ce == unit)) | |
649 | + | then cd | |
637 | 650 | else { | |
638 | - | let | |
639 | - | let aW = getString(E(C( | |
640 | - | let | |
641 | - | $Tuple2( | |
651 | + | let cf = value(ce) | |
652 | + | let aW = getString(E(C(cf))) | |
653 | + | let cg = aV(cf, aW, v, w, x) | |
654 | + | $Tuple2(cg, true) | |
642 | 655 | } | |
643 | 656 | } | |
644 | 657 | else { | |
645 | - | let | |
646 | - | if (( | |
658 | + | let ch = value(ca) | |
659 | + | if ((cb == unit)) | |
647 | 660 | then { | |
648 | - | let | |
649 | - | if (( | |
650 | - | then | |
661 | + | let ci = getString(J(B, ch)) | |
662 | + | if ((ci == unit)) | |
663 | + | then cd | |
651 | 664 | else { | |
652 | - | let | |
653 | - | let aW = getString(E(C( | |
654 | - | let | |
655 | - | $Tuple2( | |
665 | + | let cf = value(ci) | |
666 | + | let aW = getString(E(C(cf))) | |
667 | + | let cg = aV(cf, aW, v, w, x) | |
668 | + | $Tuple2(cg, true) | |
656 | 669 | } | |
657 | 670 | } | |
658 | 671 | else { | |
659 | - | let | |
660 | - | let aW = getString(J(C( | |
672 | + | let ck = value(cb) | |
673 | + | let aW = getString(J(C(ch), ck)) | |
661 | 674 | if ((aW == aW)) | |
662 | 675 | then { | |
663 | - | let | |
664 | - | let | |
665 | - | then invoke(this, "deleteUserNodeINTERNAL", [ | |
676 | + | let cl = valueOrElse(getBoolean(x), false) | |
677 | + | let cm = if (cl) | |
678 | + | then invoke(this, "deleteUserNodeINTERNAL", [ch, ck, x], nil) | |
666 | 679 | else unit | |
667 | - | if (( | |
680 | + | if ((cm == cm)) | |
668 | 681 | then { | |
669 | - | let | |
670 | - | $Tuple2( | |
682 | + | let cg = aV(ch, aW, v, w, x) | |
683 | + | $Tuple2(cg, true) | |
671 | 684 | } | |
672 | 685 | else throw("Strict value is not equal to itself.") | |
673 | 686 | } | |
680 | 693 | ||
681 | 694 | ||
682 | 695 | @Callable(ak) | |
683 | - | func transferVotesWrapper ( | |
684 | - | let | |
685 | - | if (( | |
686 | - | then if (!( | |
687 | - | then if (( | |
696 | + | func transferVotesWrapper (cn) = { | |
697 | + | let co = g(invoke(this, "transferVotesHelper", nil, nil)) | |
698 | + | if ((co == co)) | |
699 | + | then if (!(co)) | |
700 | + | then if ((cn == 0)) | |
688 | 701 | then throw("Voting is not started yet") | |
689 | 702 | else $Tuple2(nil, unit) | |
690 | - | else if ((aA > | |
703 | + | else if ((aA > cn)) | |
691 | 704 | then { | |
692 | - | let | |
693 | - | if (( | |
705 | + | let cp = invoke(this, "transferVotesWrapper", [(cn + 1)], nil) | |
706 | + | if ((cp == cp)) | |
694 | 707 | then $Tuple2(nil, unit) | |
695 | 708 | else throw("Strict value is not equal to itself.") | |
696 | 709 | } | |
702 | 715 | ||
703 | 716 | @Callable(ak) | |
704 | 717 | func transferVotes () = { | |
705 | - | let | |
706 | - | if (( | |
718 | + | let cp = invoke(this, "transferVotesWrapper", [0], nil) | |
719 | + | if ((cp == cp)) | |
707 | 720 | then $Tuple2(nil, unit) | |
708 | 721 | else throw("Strict value is not equal to itself.") | |
709 | 722 | } | |
711 | 724 | ||
712 | 725 | ||
713 | 726 | @Callable(ak) | |
714 | - | func setVotingThreshold ( | |
715 | - | let | |
716 | - | if (( | |
717 | - | then $Tuple2([IntegerEntry(k, | |
727 | + | func setVotingThreshold (cs) = { | |
728 | + | let bR = aj(ak) | |
729 | + | if ((bR == bR)) | |
730 | + | then $Tuple2([IntegerEntry(k, cs)], unit) | |
718 | 731 | else throw("Strict value is not equal to itself.") | |
719 | 732 | } | |
720 | 733 | ||
721 | 734 | ||
722 | 735 | ||
723 | 736 | @Callable(ak) | |
724 | - | func setFee ( | |
725 | - | let | |
726 | - | if (( | |
727 | - | then $Tuple2([IntegerEntry(i, | |
737 | + | func setFee (ct) = { | |
738 | + | let bR = aj(ak) | |
739 | + | if ((bR == bR)) | |
740 | + | then $Tuple2([IntegerEntry(i, ct)], unit) | |
728 | 741 | else throw("Strict value is not equal to itself.") | |
729 | 742 | } | |
730 | 743 | ||
732 | 745 | ||
733 | 746 | @Callable(ak) | |
734 | 747 | func gwxAvailableForVoteREADONLY (Z) = { | |
735 | - | let | |
736 | - | $Tuple2(nil, | |
748 | + | let bK = aC(Z, aB) | |
749 | + | $Tuple2(nil, bK) | |
737 | 750 | } | |
738 | 751 | ||
739 | 752 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 10 | |
7 | 7 | ||
8 | 8 | func c (d) = { | |
9 | 9 | let e = d | |
10 | 10 | if ($isInstanceOf(e, "Int")) | |
11 | 11 | then { | |
12 | 12 | let f = e | |
13 | 13 | f | |
14 | 14 | } | |
15 | 15 | else throw("Failed to cast into Integer") | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func g (d) = { | |
20 | 20 | let e = d | |
21 | 21 | if ($isInstanceOf(e, "Boolean")) | |
22 | 22 | then { | |
23 | 23 | let h = e | |
24 | 24 | h | |
25 | 25 | } | |
26 | 26 | else throw("Failed to cast into Boolean") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | let i = makeString(["%s", "fee"], a) | |
31 | 31 | ||
32 | 32 | let j = makeString(["%s", "wxAssetId"], a) | |
33 | 33 | ||
34 | 34 | let k = makeString(["%s", "votingThreshold"], a) | |
35 | 35 | ||
36 | 36 | let l = makeString(["%s", "epochLength"], a) | |
37 | 37 | ||
38 | 38 | let m = makeString(["%s", "voteBeforeElimination"], a) | |
39 | 39 | ||
40 | 40 | let n = makeString(["%s", "currentVotingHeightStart"], a) | |
41 | 41 | ||
42 | 42 | let o = makeString(["%s", "currentEpoch"], a) | |
43 | 43 | ||
44 | 44 | let p = makeString(["%s", "boostingContract"], a) | |
45 | 45 | ||
46 | 46 | let q = makeString(["%s", "emissionContract"], a) | |
47 | 47 | ||
48 | 48 | let r = makeString(["%s", "assetsStoreContract"], a) | |
49 | 49 | ||
50 | 50 | let s = makeString(["%s", "latestProcessedAsset"], a) | |
51 | 51 | ||
52 | 52 | let t = makeString(["%s", "latestProcessedUser"], a) | |
53 | 53 | ||
54 | 54 | let u = makeString(["%s", "latestProcessedUserRemove"], a) | |
55 | 55 | ||
56 | 56 | let v = makeString(["%s", "latestProcessedAssetTransfer"], a) | |
57 | 57 | ||
58 | 58 | let w = makeString(["%s", "latestProcessedUserTransfer"], a) | |
59 | 59 | ||
60 | 60 | let x = makeString(["%s", "latestProcessedUserRemoveTransfer"], a) | |
61 | 61 | ||
62 | 62 | let y = makeString(["%s", "maxDepth"], a) | |
63 | 63 | ||
64 | 64 | func z (A) = makeString(["%s", "votesTransferFinished", toString(A)], a) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | let B = "__assets" | |
68 | 68 | ||
69 | 69 | func C (D) = ("%s__votes__" + D) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func E (F) = makeString([("%s%s" + F), "head"], a) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func G (F) = makeString([("%s%s" + F), "size"], a) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func H (F,I) = makeString([("%s%s%s" + F), I, "prev"], a) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func J (F,I) = makeString([("%s%s%s" + F), I, "next"], a) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func K (D,A) = makeString(["%s%d%s", "verifiedAt", toString(A), D], a) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func L (D) = makeString(["%s%s", "verified", D], a) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func M (D,A) = makeString(["%s%s%d", "eliminated", D, toString(A)], a) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func N (D,A) = makeString(["%s%d%s", "votingResultAtAsset", toString(A), D], a) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func O (P,Q,R) = makeString(["%d%d%s", toString(P), toString(Q), toString(R)], a) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func S (T) = { | |
100 | 100 | let U = split(T, a) | |
101 | 101 | let V = 1 | |
102 | 102 | let W = 2 | |
103 | 103 | let X = 3 | |
104 | 104 | let P = parseIntValue(U[V]) | |
105 | 105 | let Q = parseIntValue(U[W]) | |
106 | 106 | let R = if ((size(U) == 4)) | |
107 | 107 | then (U[X] == "true") | |
108 | 108 | else false | |
109 | 109 | $Tuple3(P, Q, R) | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func Y (Z,D,A) = makeString(["%s%d%s%s", "vru", toString(A), D, Z], a) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func aa (ab,ac) = { | |
117 | 117 | let P = if (ac) | |
118 | 118 | then ab | |
119 | 119 | else 0 | |
120 | 120 | let Q = if (ac) | |
121 | 121 | then 0 | |
122 | 122 | else ab | |
123 | 123 | makeString(["%d%d", toString(P), toString(Q)], a) | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func ad (T) = { | |
128 | 128 | let U = split(T, a) | |
129 | 129 | let V = 1 | |
130 | 130 | let W = 2 | |
131 | 131 | let P = parseIntValue(U[V]) | |
132 | 132 | let Q = parseIntValue(U[W]) | |
133 | 133 | let ac = if ((P > 0)) | |
134 | 134 | then (Q == 0) | |
135 | 135 | else false | |
136 | 136 | let ae = if ((P == 0)) | |
137 | 137 | then (Q > 0) | |
138 | 138 | else false | |
139 | 139 | let af = if (if (ac) | |
140 | 140 | then true | |
141 | 141 | else ae) | |
142 | 142 | then true | |
143 | 143 | else throw("Invalid user vote value") | |
144 | 144 | if ((af == af)) | |
145 | 145 | then { | |
146 | 146 | let ab = if (ac) | |
147 | 147 | then P | |
148 | 148 | else Q | |
149 | 149 | $Tuple2(ab, ac) | |
150 | 150 | } | |
151 | 151 | else throw("Strict value is not equal to itself.") | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func ag (ah,Z,D,ai,A) = makeString(["%s%s%s%s%s%d", "history", ah, D, Z, ai, toString(A)], a) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func aj (ak) = if ((ak.caller == this)) | |
159 | 159 | then true | |
160 | 160 | else throw("Permission denied") | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func al (am) = valueOrElse(getInteger(this, am), 0) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func an (am) = valueOrErrorMessage(getInteger(this, am), (am + " is not defined")) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func ao (am) = valueOrElse(getString(this, am), "") | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func ap (am) = valueOrErrorMessage(getString(this, am), (am + " is not defined")) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | let aq = an(i) | |
176 | 176 | ||
177 | 177 | let ar = fromBase58String(ap(j)) | |
178 | 178 | ||
179 | 179 | let as = an(k) | |
180 | 180 | ||
181 | 181 | let at = an(l) | |
182 | 182 | ||
183 | 183 | let au = an(m) | |
184 | 184 | ||
185 | 185 | let av = an(n) | |
186 | 186 | ||
187 | 187 | let aw = an(o) | |
188 | 188 | ||
189 | 189 | let ax = addressFromStringValue(ap(p)) | |
190 | 190 | ||
191 | 191 | let ay = addressFromStringValue(ap(q)) | |
192 | 192 | ||
193 | 193 | let az = addressFromStringValue(ap(r)) | |
194 | 194 | ||
195 | 195 | let aA = valueOrElse(getInteger(y), b) | |
196 | 196 | ||
197 | 197 | let aB = (av + at) | |
198 | 198 | ||
199 | 199 | func aC (Z,aD) = { | |
200 | 200 | let aE = invoke(ax, "getUserGwxAmountAtHeightREADONLY", [Z, aD], nil) | |
201 | 201 | c(aE) | |
202 | 202 | } | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func aF (D,ab,ac,A,R) = { | |
206 | 206 | let aG = N(D, A) | |
207 | 207 | let aH = { | |
208 | 208 | let e = getString(aG) | |
209 | 209 | if ($isInstanceOf(e, "String")) | |
210 | 210 | then { | |
211 | 211 | let aI = e | |
212 | 212 | S(aI) | |
213 | 213 | } | |
214 | 214 | else if ($isInstanceOf(e, "Unit")) | |
215 | 215 | then { | |
216 | 216 | let aJ = getString(N(D, (A - 1))) | |
217 | 217 | if ($isInstanceOf(aJ, "String")) | |
218 | 218 | then { | |
219 | 219 | let aI = aJ | |
220 | 220 | $Tuple3(0, 0, S(aI)._3) | |
221 | 221 | } | |
222 | 222 | else if ($isInstanceOf(aJ, "Unit")) | |
223 | 223 | then $Tuple3(0, 0, false) | |
224 | 224 | else throw("Match error") | |
225 | 225 | } | |
226 | 226 | else throw("Match error") | |
227 | 227 | } | |
228 | 228 | let aK = aH._1 | |
229 | 229 | let aL = aH._2 | |
230 | 230 | let aM = aH._3 | |
231 | 231 | StringEntry(aG, O((aK + (if (ac) | |
232 | 232 | then ab | |
233 | 233 | else 0)), (aL + (if (ac) | |
234 | 234 | then 0 | |
235 | 235 | else ab)), if ((R == unit)) | |
236 | 236 | then aM | |
237 | 237 | else value(R))) | |
238 | 238 | } | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func aN (F,I) = { | |
242 | 242 | let aO = getString(this, E(F)) | |
243 | 243 | let aP = getString(this, H(F, I)) | |
244 | 244 | let aQ = getString(this, J(F, I)) | |
245 | 245 | if (if ((I == aO)) | |
246 | 246 | then true | |
247 | 247 | else (aP != unit)) | |
248 | 248 | then true | |
249 | 249 | else (aQ != unit) | |
250 | 250 | } | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func aR (F,I) = { | |
254 | 254 | let aO = getString(this, E(F)) | |
255 | 255 | let aS = valueOrElse(getInteger(this, G(F)), 0) | |
256 | 256 | let aT = if (!(aN(F, I))) | |
257 | 257 | then true | |
258 | 258 | else throw("Node exists") | |
259 | 259 | if ((aT == aT)) | |
260 | 260 | then (([IntegerEntry(G(F), (aS + 1))] ++ (if (isDefined(aO)) | |
261 | 261 | then [StringEntry(J(F, I), value(aO)), StringEntry(H(F, value(aO)), I)] | |
262 | 262 | else nil)) ++ [StringEntry(E(F), I)]) | |
263 | 263 | else throw("Strict value is not equal to itself.") | |
264 | 264 | } | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | func aU (F,I) = { | |
268 | 268 | let aO = getString(this, E(F)) | |
269 | 269 | let aS = valueOrElse(getInteger(this, G(F)), 0) | |
270 | 270 | let aP = getString(this, H(F, I)) | |
271 | 271 | let aQ = getString(this, J(F, I)) | |
272 | 272 | ([IntegerEntry(G(F), (aS - 1))] ++ (if (if (isDefined(aP)) | |
273 | 273 | then isDefined(aQ) | |
274 | 274 | else false) | |
275 | 275 | then [StringEntry(J(F, value(aP)), value(aQ)), StringEntry(H(F, value(aQ)), value(aP)), DeleteEntry(H(F, I)), DeleteEntry(J(F, I))] | |
276 | 276 | else if (isDefined(aQ)) | |
277 | 277 | then [StringEntry(E(F), value(aQ)), DeleteEntry(J(F, I)), DeleteEntry(H(F, value(aQ)))] | |
278 | 278 | else if (isDefined(aP)) | |
279 | 279 | then [DeleteEntry(H(F, I)), DeleteEntry(J(F, value(aP)))] | |
280 | 280 | else if ((I == aO)) | |
281 | 281 | then [DeleteEntry(E(F))] | |
282 | 282 | else throw("Invalid node"))) | |
283 | 283 | } | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func aV (D,aW,aX,aY,aZ) = { | |
287 | 287 | let ba = StringEntry(aX, D) | |
288 | 288 | let bb = DeleteEntry(aY) | |
289 | 289 | if ((aW == unit)) | |
290 | 290 | then [ba, bb] | |
291 | 291 | else { | |
292 | 292 | let Z = value(aW) | |
293 | 293 | let bc = StringEntry(aY, Z) | |
294 | 294 | let bd = Y(Z, D, aw) | |
295 | 295 | let be = getString(bd) | |
296 | 296 | let bf = if ((be == unit)) | |
297 | 297 | then { | |
298 | 298 | let bg = aC(Z, aB) | |
299 | 299 | if ((bg == 0)) | |
300 | 300 | then [BooleanEntry(aZ, true)] | |
301 | 301 | else { | |
302 | 302 | let bh = (aw - 1) | |
303 | 303 | let bi = valueOrElse(getBoolean(M(D, bh)), false) | |
304 | 304 | let bj = if (bi) | |
305 | 305 | then unit | |
306 | 306 | else getString(Y(Z, D, bh)) | |
307 | 307 | if ((bj == unit)) | |
308 | 308 | then nil | |
309 | 309 | else { | |
310 | 310 | let bk = ad(value(bj)) | |
311 | 311 | let bl = bk._1 | |
312 | 312 | let ac = bk._2 | |
313 | 313 | let ab = min([bl, bg]) | |
314 | 314 | [StringEntry(bd, aa(ab, ac)), aF(D, ab, ac, aw, unit)] | |
315 | 315 | } | |
316 | 316 | } | |
317 | 317 | } | |
318 | 318 | else nil | |
319 | 319 | ((bf :+ ba) :+ bc) | |
320 | 320 | } | |
321 | 321 | } | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | func bm (D,A) = !(valueOrElse(getBoolean(K(D, A)), true)) | |
325 | 325 | ||
326 | 326 | ||
327 | 327 | func bn (D) = if (if (bm(D, (aw - 1))) | |
328 | 328 | then bm(D, (aw - 2)) | |
329 | 329 | else false) | |
330 | 330 | then bm(D, (aw - 3)) | |
331 | 331 | else false | |
332 | 332 | ||
333 | 333 | ||
334 | 334 | @Callable(ak) | |
335 | 335 | func constructor (bo,bp,bq,br,bs,bt,bu,bv,bw,bx) = { | |
336 | 336 | let by = [aj(ak), if (isDefined(addressFromString(bo))) | |
337 | 337 | then true | |
338 | 338 | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(bp))) | |
339 | 339 | then true | |
340 | 340 | else throw("Invalid emission contract address"), if (isDefined(addressFromString(bq))) | |
341 | 341 | then true | |
342 | 342 | else throw("Invalid asset_store contract address"), if ((br >= 0)) | |
343 | 343 | then true | |
344 | 344 | else throw("Invalid fee amount"), if (isDefined(assetInfo(fromBase58String(bs)))) | |
345 | 345 | then true | |
346 | 346 | else throw("Invalid WX asset ID"), if ((bt >= 0)) | |
347 | 347 | then true | |
348 | 348 | else throw("Invalid voting threshold"), if ((bu > 0)) | |
349 | 349 | then true | |
350 | 350 | else throw("Invalid voting duration"), if (((bw + bu) > height)) | |
351 | 351 | then true | |
352 | 352 | else throw("Invalid start height")] | |
353 | 353 | if ((by == by)) | |
354 | 354 | then $Tuple2([StringEntry(p, bo), StringEntry(q, bp), StringEntry(r, bq), IntegerEntry(i, br), StringEntry(j, bs), IntegerEntry(k, bt), IntegerEntry(l, bu), IntegerEntry(m, bv), IntegerEntry(n, bw), IntegerEntry(o, 0), IntegerEntry(y, bx)], unit) | |
355 | 355 | else throw("Strict value is not equal to itself.") | |
356 | 356 | } | |
357 | 357 | ||
358 | 358 | ||
359 | 359 | ||
360 | 360 | @Callable(ak) | |
361 | 361 | func suggest (D,bz) = { | |
362 | 362 | let bA = valueOrErrorMessage(assetInfo(fromBase58String(D)), "Invalid asset ID") | |
363 | - | let bB = value(ak.payments[0]) | |
364 | - | let by = [if ((bA.issuer == ak.caller)) | |
365 | - | then true | |
366 | - | else throw("Asset can only be suggested by its issuer"), if ((value(bB.assetId) == ar)) | |
367 | - | then true | |
368 | - | else throw("Invalid fee asset"), if ((bB.amount == aq)) | |
369 | - | then true | |
370 | - | else throw("Invalid fee amount")] | |
371 | - | if ((by == by)) | |
363 | + | if ((bA == bA)) | |
372 | 364 | then { | |
373 | - | let bC = invoke(az, "createOrUpdate", [D, bz, false], nil) | |
374 | - | if ((bC == bC)) | |
365 | + | let bB = value(ak.payments[0]) | |
366 | + | let bC = (ak.caller == this) | |
367 | + | let by = [if (if (bC) | |
368 | + | then true | |
369 | + | else (bA.issuer == ak.caller)) | |
370 | + | then true | |
371 | + | else throw("Asset can only be suggested by its issuer"), if (if (bC) | |
372 | + | then true | |
373 | + | else (value(bB.assetId) == ar)) | |
374 | + | then true | |
375 | + | else throw("Invalid fee asset"), if (if (bC) | |
376 | + | then true | |
377 | + | else (bB.amount == aq)) | |
378 | + | then true | |
379 | + | else throw("Invalid fee amount")] | |
380 | + | if ((by == by)) | |
375 | 381 | then { | |
376 | - | let bD = invoke( | |
382 | + | let bD = invoke(az, "createOrUpdate", [D, bz, false], nil) | |
377 | 383 | if ((bD == bD)) | |
378 | 384 | then { | |
379 | - | let bE = aR(B, D) | |
380 | - | let bF = (aw + 1) | |
381 | - | let bG = if ((aB > height)) | |
382 | - | then aw | |
383 | - | else bF | |
384 | - | $Tuple2((bE :+ aF(D, 0, true, bG, false)), unit) | |
385 | + | let bE = if (bC) | |
386 | + | then unit | |
387 | + | else invoke(ay, "burn", nil, [AttachedPayment(bB.assetId, bB.amount)]) | |
388 | + | if ((bE == bE)) | |
389 | + | then { | |
390 | + | let bF = aR(B, D) | |
391 | + | let bG = (aw + 1) | |
392 | + | let bH = if ((aB > height)) | |
393 | + | then aw | |
394 | + | else bG | |
395 | + | $Tuple2((bF :+ aF(D, 0, true, bH, false)), unit) | |
396 | + | } | |
397 | + | else throw("Strict value is not equal to itself.") | |
385 | 398 | } | |
386 | 399 | else throw("Strict value is not equal to itself.") | |
387 | 400 | } | |
388 | 401 | else throw("Strict value is not equal to itself.") | |
389 | 402 | } | |
390 | 403 | else throw("Strict value is not equal to itself.") | |
391 | 404 | } | |
392 | 405 | ||
393 | 406 | ||
394 | 407 | ||
395 | 408 | @Callable(ak) | |
396 | 409 | func vote (D,ac) = { | |
397 | - | let | |
410 | + | let bI = if (aN(B, D)) | |
398 | 411 | then true | |
399 | 412 | else throw("Invalid asset") | |
400 | - | if (( | |
413 | + | if ((bI == bI)) | |
401 | 414 | then { | |
402 | - | let | |
415 | + | let bJ = if ((aB > height)) | |
403 | 416 | then true | |
404 | 417 | else throw("Current voting is over but results are not finalized") | |
405 | - | if (( | |
418 | + | if ((bJ == bJ)) | |
406 | 419 | then { | |
407 | 420 | let Z = toString(ak.caller) | |
408 | - | let | |
409 | - | let | |
421 | + | let bK = aC(Z, aB) | |
422 | + | let bL = if ((bK > 0)) | |
410 | 423 | then true | |
411 | 424 | else throw("You'll not have gWX at the end of voting") | |
412 | - | if (( | |
425 | + | if ((bL == bL)) | |
413 | 426 | then { | |
414 | - | let | |
427 | + | let bM = C(D) | |
415 | 428 | let bd = Y(Z, D, aw) | |
416 | 429 | let be = getString(bd) | |
417 | - | let | |
430 | + | let bN = if ((be == unit)) | |
418 | 431 | then unit | |
419 | 432 | else invoke(this, "cancelVote", [D], nil) | |
420 | - | if (( | |
433 | + | if ((bN == bN)) | |
421 | 434 | then { | |
422 | - | let | |
423 | - | let | |
435 | + | let bO = [StringEntry(bd, aa(bK, ac)), StringEntry(ag("vote", Z, D, toBase58String(ak.transactionId), aw), aa(bK, ac)), aF(D, bK, ac, aw, unit)] | |
436 | + | let bP = if (aN(bM, Z)) | |
424 | 437 | then nil | |
425 | - | else aR( | |
426 | - | $Tuple2(( | |
438 | + | else aR(bM, Z) | |
439 | + | $Tuple2((bP ++ bO), unit) | |
427 | 440 | } | |
428 | 441 | else throw("Strict value is not equal to itself.") | |
429 | 442 | } | |
430 | 443 | else throw("Strict value is not equal to itself.") | |
431 | 444 | } | |
432 | 445 | else throw("Strict value is not equal to itself.") | |
433 | 446 | } | |
434 | 447 | else throw("Strict value is not equal to itself.") | |
435 | 448 | } | |
436 | 449 | ||
437 | 450 | ||
438 | 451 | ||
439 | 452 | @Callable(ak) | |
440 | 453 | func cancelVote (D) = { | |
441 | 454 | let Z = if ((ak.caller == this)) | |
442 | 455 | then toString(ak.originCaller) | |
443 | 456 | else toString(ak.caller) | |
444 | - | let | |
457 | + | let bM = C(D) | |
445 | 458 | let bd = Y(Z, D, aw) | |
446 | 459 | let be = getString(bd) | |
447 | - | let | |
448 | - | let ab = | |
449 | - | let ac = | |
450 | - | let | |
451 | - | let | |
452 | - | $Tuple2(( | |
460 | + | let bQ = ad(valueOrErrorMessage(be, "Nothing to cancel")) | |
461 | + | let ab = bQ._1 | |
462 | + | let ac = bQ._2 | |
463 | + | let bP = aU(bM, Z) | |
464 | + | let bO = [DeleteEntry(bd), StringEntry(ag("cancelVote", Z, D, toBase58String(ak.transactionId), aw), aa(0, true)), aF(D, -(ab), ac, aw, unit)] | |
465 | + | $Tuple2((bP ++ bO), unit) | |
453 | 466 | } | |
454 | 467 | ||
455 | 468 | ||
456 | 469 | ||
457 | 470 | @Callable(ak) | |
458 | 471 | func finalizeAssetINTERNAL (D,A) = { | |
459 | - | let | |
460 | - | if (( | |
472 | + | let bR = aj(ak) | |
473 | + | if ((bR == bR)) | |
461 | 474 | then { | |
462 | 475 | let aG = N(D, A) | |
463 | - | let | |
476 | + | let bS = { | |
464 | 477 | let e = getString(aG) | |
465 | 478 | if ($isInstanceOf(e, "String")) | |
466 | 479 | then { | |
467 | 480 | let aI = e | |
468 | - | let | |
469 | - | $Tuple2( | |
481 | + | let bT = S(aI) | |
482 | + | $Tuple2(bT._1, bT._2) | |
470 | 483 | } | |
471 | 484 | else if ($isInstanceOf(e, "Unit")) | |
472 | 485 | then $Tuple2(0, 0) | |
473 | 486 | else throw("Match error") | |
474 | 487 | } | |
475 | - | let P = | |
476 | - | let Q = | |
488 | + | let P = bS._1 | |
489 | + | let Q = bS._2 | |
477 | 490 | let ab = (P + Q) | |
478 | 491 | let R = if ((ab >= as)) | |
479 | 492 | then (P > Q) | |
480 | 493 | else false | |
481 | - | let | |
494 | + | let bU = [BooleanEntry(K(D, A), R), if (R) | |
482 | 495 | then BooleanEntry(L(D), true) | |
483 | 496 | else DeleteEntry(L(D))] | |
484 | - | let | |
485 | - | if (( | |
497 | + | let bV = invoke(az, "setVerified", [D, R], nil) | |
498 | + | if ((bV == bV)) | |
486 | 499 | then { | |
487 | - | let | |
500 | + | let bW = if (R) | |
488 | 501 | then false | |
489 | 502 | else bn(D) | |
490 | - | let | |
503 | + | let bX = if (bW) | |
491 | 504 | then [BooleanEntry(M(D, aw), true)] | |
492 | 505 | else nil | |
493 | - | let | |
506 | + | let bY = if (bW) | |
494 | 507 | then nil | |
495 | 508 | else [aF(D, 0, true, (aw + 1), R)] | |
496 | - | let | |
509 | + | let bP = if (bW) | |
497 | 510 | then aU(B, D) | |
498 | 511 | else nil | |
499 | - | let | |
512 | + | let bZ = if (bW) | |
500 | 513 | then invoke(az, "onEliminate", [D], nil) | |
501 | 514 | else unit | |
502 | - | if (( | |
503 | - | then $Tuple2((( | |
515 | + | if ((bZ == bZ)) | |
516 | + | then $Tuple2(((bP ++ bY) ++ bU), unit) | |
504 | 517 | else throw("Strict value is not equal to itself.") | |
505 | 518 | } | |
506 | 519 | else throw("Strict value is not equal to itself.") | |
507 | 520 | } | |
508 | 521 | else throw("Strict value is not equal to itself.") | |
509 | 522 | } | |
510 | 523 | ||
511 | 524 | ||
512 | 525 | ||
513 | 526 | @Callable(ak) | |
514 | 527 | func deleteUserNodeINTERNAL (D,Z,aZ) = { | |
515 | - | let | |
516 | - | if (( | |
528 | + | let bR = aj(ak) | |
529 | + | if ((bR == bR)) | |
517 | 530 | then $Tuple2((aU(C(D), Z) :+ DeleteEntry(aZ)), unit) | |
518 | 531 | else throw("Strict value is not equal to itself.") | |
519 | 532 | } | |
520 | 533 | ||
521 | 534 | ||
522 | 535 | ||
523 | 536 | @Callable(ak) | |
524 | 537 | func finalizeVotingHelper () = if ((aB > height)) | |
525 | 538 | then $Tuple2(nil, false) | |
526 | 539 | else { | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | if (( | |
540 | + | let ca = getString(s) | |
541 | + | let cb = getString(t) | |
542 | + | let cc = 0 | |
543 | + | let cd = $Tuple2([IntegerEntry(n, (height + cc)), IntegerEntry(o, (aw + 1)), DeleteEntry(s), DeleteEntry(t), DeleteEntry(v), DeleteEntry(w)], true) | |
544 | + | if ((ca == unit)) | |
532 | 545 | then { | |
533 | - | let | |
534 | - | if (( | |
535 | - | then | |
546 | + | let ce = getString(E(B)) | |
547 | + | if ((ce == unit)) | |
548 | + | then cd | |
536 | 549 | else { | |
537 | - | let | |
538 | - | let aW = getString(E(C( | |
539 | - | let | |
540 | - | $Tuple2( | |
550 | + | let cf = value(ce) | |
551 | + | let aW = getString(E(C(cf))) | |
552 | + | let cg = aV(cf, aW, s, t, u) | |
553 | + | $Tuple2(cg, true) | |
541 | 554 | } | |
542 | 555 | } | |
543 | 556 | else { | |
544 | - | let | |
545 | - | if (( | |
557 | + | let ch = value(ca) | |
558 | + | if ((cb == unit)) | |
546 | 559 | then { | |
547 | - | let | |
548 | - | if (( | |
560 | + | let ci = getString(J(B, ch)) | |
561 | + | if ((ci == ci)) | |
549 | 562 | then { | |
550 | - | let | |
551 | - | if (( | |
552 | - | then if (( | |
553 | - | then | |
563 | + | let cj = invoke(this, "finalizeAssetINTERNAL", [ch, aw], nil) | |
564 | + | if ((cj == cj)) | |
565 | + | then if ((ci == unit)) | |
566 | + | then cd | |
554 | 567 | else { | |
555 | - | let | |
556 | - | let aW = getString(E(C( | |
557 | - | let | |
558 | - | $Tuple2( | |
568 | + | let cf = value(ci) | |
569 | + | let aW = getString(E(C(cf))) | |
570 | + | let cg = aV(cf, aW, s, t, u) | |
571 | + | $Tuple2(cg, true) | |
559 | 572 | } | |
560 | 573 | else throw("Strict value is not equal to itself.") | |
561 | 574 | } | |
562 | 575 | else throw("Strict value is not equal to itself.") | |
563 | 576 | } | |
564 | 577 | else { | |
565 | - | let | |
566 | - | let aW = getString(J(C( | |
578 | + | let ck = value(cb) | |
579 | + | let aW = getString(J(C(ch), ck)) | |
567 | 580 | if ((aW == aW)) | |
568 | 581 | then { | |
569 | - | let | |
570 | - | let | |
571 | - | then invoke(this, "deleteUserNodeINTERNAL", [ | |
582 | + | let cl = valueOrElse(getBoolean(u), false) | |
583 | + | let cm = if (cl) | |
584 | + | then invoke(this, "deleteUserNodeINTERNAL", [ch, ck, u], nil) | |
572 | 585 | else unit | |
573 | - | if (( | |
586 | + | if ((cm == cm)) | |
574 | 587 | then { | |
575 | - | let | |
576 | - | $Tuple2( | |
588 | + | let cg = aV(ch, aW, s, t, u) | |
589 | + | $Tuple2(cg, true) | |
577 | 590 | } | |
578 | 591 | else throw("Strict value is not equal to itself.") | |
579 | 592 | } | |
580 | 593 | else throw("Strict value is not equal to itself.") | |
581 | 594 | } | |
582 | 595 | } | |
583 | 596 | } | |
584 | 597 | ||
585 | 598 | ||
586 | 599 | ||
587 | 600 | @Callable(ak) | |
588 | - | func finalizeVotingWrapper ( | |
589 | - | let | |
590 | - | if (( | |
591 | - | then if (!( | |
592 | - | then if (( | |
601 | + | func finalizeVotingWrapper (cn) = { | |
602 | + | let co = g(invoke(this, "finalizeVotingHelper", nil, nil)) | |
603 | + | if ((co == co)) | |
604 | + | then if (!(co)) | |
605 | + | then if ((cn == 0)) | |
593 | 606 | then throw("Current voting is not over yet") | |
594 | 607 | else $Tuple2(nil, unit) | |
595 | - | else if ((aA > | |
608 | + | else if ((aA > cn)) | |
596 | 609 | then { | |
597 | - | let | |
598 | - | if (( | |
610 | + | let cp = invoke(this, "finalizeVotingWrapper", [(cn + 1)], nil) | |
611 | + | if ((cp == cp)) | |
599 | 612 | then $Tuple2(nil, unit) | |
600 | 613 | else throw("Strict value is not equal to itself.") | |
601 | 614 | } | |
602 | 615 | else $Tuple2(nil, unit) | |
603 | 616 | else throw("Strict value is not equal to itself.") | |
604 | 617 | } | |
605 | 618 | ||
606 | 619 | ||
607 | 620 | ||
608 | 621 | @Callable(ak) | |
609 | 622 | func finalizeVoting () = { | |
610 | - | let | |
611 | - | if (( | |
623 | + | let cp = invoke(this, "finalizeVotingWrapper", [0], nil) | |
624 | + | if ((cp == cp)) | |
612 | 625 | then $Tuple2(nil, unit) | |
613 | 626 | else throw("Strict value is not equal to itself.") | |
614 | 627 | } | |
615 | 628 | ||
616 | 629 | ||
617 | 630 | ||
618 | 631 | @Callable(ak) | |
619 | 632 | func transferVotesHelper () = { | |
620 | - | let | |
621 | - | let | |
633 | + | let cq = z(aw) | |
634 | + | let cr = valueOrElse(getBoolean(cq), false) | |
622 | 635 | if (if (if ((av > height)) | |
623 | 636 | then true | |
624 | 637 | else (height >= aB)) | |
625 | 638 | then true | |
626 | - | else | |
639 | + | else cr) | |
627 | 640 | then $Tuple2(nil, false) | |
628 | 641 | else { | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | if (( | |
642 | + | let ca = getString(v) | |
643 | + | let cb = getString(w) | |
644 | + | let cd = $Tuple2([BooleanEntry(cq, true), DeleteEntry(v), DeleteEntry(w)], true) | |
645 | + | if ((ca == unit)) | |
633 | 646 | then { | |
634 | - | let | |
635 | - | if (( | |
636 | - | then | |
647 | + | let ce = getString(E(B)) | |
648 | + | if ((ce == unit)) | |
649 | + | then cd | |
637 | 650 | else { | |
638 | - | let | |
639 | - | let aW = getString(E(C( | |
640 | - | let | |
641 | - | $Tuple2( | |
651 | + | let cf = value(ce) | |
652 | + | let aW = getString(E(C(cf))) | |
653 | + | let cg = aV(cf, aW, v, w, x) | |
654 | + | $Tuple2(cg, true) | |
642 | 655 | } | |
643 | 656 | } | |
644 | 657 | else { | |
645 | - | let | |
646 | - | if (( | |
658 | + | let ch = value(ca) | |
659 | + | if ((cb == unit)) | |
647 | 660 | then { | |
648 | - | let | |
649 | - | if (( | |
650 | - | then | |
661 | + | let ci = getString(J(B, ch)) | |
662 | + | if ((ci == unit)) | |
663 | + | then cd | |
651 | 664 | else { | |
652 | - | let | |
653 | - | let aW = getString(E(C( | |
654 | - | let | |
655 | - | $Tuple2( | |
665 | + | let cf = value(ci) | |
666 | + | let aW = getString(E(C(cf))) | |
667 | + | let cg = aV(cf, aW, v, w, x) | |
668 | + | $Tuple2(cg, true) | |
656 | 669 | } | |
657 | 670 | } | |
658 | 671 | else { | |
659 | - | let | |
660 | - | let aW = getString(J(C( | |
672 | + | let ck = value(cb) | |
673 | + | let aW = getString(J(C(ch), ck)) | |
661 | 674 | if ((aW == aW)) | |
662 | 675 | then { | |
663 | - | let | |
664 | - | let | |
665 | - | then invoke(this, "deleteUserNodeINTERNAL", [ | |
676 | + | let cl = valueOrElse(getBoolean(x), false) | |
677 | + | let cm = if (cl) | |
678 | + | then invoke(this, "deleteUserNodeINTERNAL", [ch, ck, x], nil) | |
666 | 679 | else unit | |
667 | - | if (( | |
680 | + | if ((cm == cm)) | |
668 | 681 | then { | |
669 | - | let | |
670 | - | $Tuple2( | |
682 | + | let cg = aV(ch, aW, v, w, x) | |
683 | + | $Tuple2(cg, true) | |
671 | 684 | } | |
672 | 685 | else throw("Strict value is not equal to itself.") | |
673 | 686 | } | |
674 | 687 | else throw("Strict value is not equal to itself.") | |
675 | 688 | } | |
676 | 689 | } | |
677 | 690 | } | |
678 | 691 | } | |
679 | 692 | ||
680 | 693 | ||
681 | 694 | ||
682 | 695 | @Callable(ak) | |
683 | - | func transferVotesWrapper ( | |
684 | - | let | |
685 | - | if (( | |
686 | - | then if (!( | |
687 | - | then if (( | |
696 | + | func transferVotesWrapper (cn) = { | |
697 | + | let co = g(invoke(this, "transferVotesHelper", nil, nil)) | |
698 | + | if ((co == co)) | |
699 | + | then if (!(co)) | |
700 | + | then if ((cn == 0)) | |
688 | 701 | then throw("Voting is not started yet") | |
689 | 702 | else $Tuple2(nil, unit) | |
690 | - | else if ((aA > | |
703 | + | else if ((aA > cn)) | |
691 | 704 | then { | |
692 | - | let | |
693 | - | if (( | |
705 | + | let cp = invoke(this, "transferVotesWrapper", [(cn + 1)], nil) | |
706 | + | if ((cp == cp)) | |
694 | 707 | then $Tuple2(nil, unit) | |
695 | 708 | else throw("Strict value is not equal to itself.") | |
696 | 709 | } | |
697 | 710 | else $Tuple2(nil, unit) | |
698 | 711 | else throw("Strict value is not equal to itself.") | |
699 | 712 | } | |
700 | 713 | ||
701 | 714 | ||
702 | 715 | ||
703 | 716 | @Callable(ak) | |
704 | 717 | func transferVotes () = { | |
705 | - | let | |
706 | - | if (( | |
718 | + | let cp = invoke(this, "transferVotesWrapper", [0], nil) | |
719 | + | if ((cp == cp)) | |
707 | 720 | then $Tuple2(nil, unit) | |
708 | 721 | else throw("Strict value is not equal to itself.") | |
709 | 722 | } | |
710 | 723 | ||
711 | 724 | ||
712 | 725 | ||
713 | 726 | @Callable(ak) | |
714 | - | func setVotingThreshold ( | |
715 | - | let | |
716 | - | if (( | |
717 | - | then $Tuple2([IntegerEntry(k, | |
727 | + | func setVotingThreshold (cs) = { | |
728 | + | let bR = aj(ak) | |
729 | + | if ((bR == bR)) | |
730 | + | then $Tuple2([IntegerEntry(k, cs)], unit) | |
718 | 731 | else throw("Strict value is not equal to itself.") | |
719 | 732 | } | |
720 | 733 | ||
721 | 734 | ||
722 | 735 | ||
723 | 736 | @Callable(ak) | |
724 | - | func setFee ( | |
725 | - | let | |
726 | - | if (( | |
727 | - | then $Tuple2([IntegerEntry(i, | |
737 | + | func setFee (ct) = { | |
738 | + | let bR = aj(ak) | |
739 | + | if ((bR == bR)) | |
740 | + | then $Tuple2([IntegerEntry(i, ct)], unit) | |
728 | 741 | else throw("Strict value is not equal to itself.") | |
729 | 742 | } | |
730 | 743 | ||
731 | 744 | ||
732 | 745 | ||
733 | 746 | @Callable(ak) | |
734 | 747 | func gwxAvailableForVoteREADONLY (Z) = { | |
735 | - | let | |
736 | - | $Tuple2(nil, | |
748 | + | let bK = aC(Z, aB) | |
749 | + | $Tuple2(nil, bK) | |
737 | 750 | } | |
738 | 751 | ||
739 | 752 |
github/deemru/w8io/169f3d6 138.45 ms ◑