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