tx · DaJGW9caa5J6uc3y3Dks6eRGCqygsa5LpPiBCeNMtCdA 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh: -0.01000000 Waves 2023.04.18 16:29 [2540044] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves
{ "type": 13, "id": "DaJGW9caa5J6uc3y3Dks6eRGCqygsa5LpPiBCeNMtCdA", "fee": 1000000, "feeAssetId": null, "timestamp": 1681824626400, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "2wyqk4AKbuvKc9ZykkBdY8XSu9HxaTgynAX6E28MEKquuSadwXonZWmoEQtS8ovtgVvskYp7dkVpwe98B75okyoc" ], "script": "base64:BgIHCAISAwoBCBIAA1NFUAICX18AEGNvbnRyYWN0RmlsZW5hbWUCCXRlc3QucmlkZQEIdGhyb3dFcnIBAXMJAAIBCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBGWtleUFjdGl2ZU1hbmFnZXJQdWJsaWNLZXkACQC5CQIJAMwIAgICJXMJAMwIAgIQbWFuYWdlclB1YmxpY0tleQUDbmlsBQNTRVABGmtleUN1cnJlbnRNYW5hZ2VyUHVibGljS2V5AAkAuQkCCQDMCAICAiVzCQDMCAICEWtleUN1cnJlbnRNYW5hZ2VyBQNuaWwFA1NFUAEaa2V5UGVuZGluZ01hbmFnZXJQdWJsaWNLZXkACQC5CQIJAMwIAgICJXMJAMwIAgIXcGVuZGluZ01hbmFnZXJQdWJsaWNLZXkFA25pbAUDU0VQARprZXlTZXROZXdNYW5hZ2VyVm90ZVByZWZpeAEQbWFuYWdlclB1YmxpY0tleQkAuQkCCQDMCAICBiVzJXMlcwkAzAgCAgpzZXRNYW5hZ2VyCQDMCAIFEG1hbmFnZXJQdWJsaWNLZXkFA25pbAUDU0VQ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FyVm90ZXNFbnRyaWVzCQDMCAIJAQtTdHJpbmdFbnRyeQIJARprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAFE25ld01hbmFnZXJQdWJsaWNLZXkFA25pbAkAzAgCCQEMSW50ZWdlckVudHJ5AgkBFGtleVNldE5ld01hbmFnZXJWb3RlAgUTbmV3TWFuYWdlclB1YmxpY0tleQUTY2FsbGVyQWRkcmVzc1N0cmluZwABBQNuaWwJAQh0aHJvd0VycgEJAKwCAgUTY2FsbGVyQWRkcmVzc1N0cmluZwITOiBub3QgaW4gQWRtaW4gbGlzdAD+V0bJ", "height": 2540044, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GmW8Nv91v1FkF8BDZmyX7SJrpRk7tjaG7gGuT3pWLcZk Next: 4pNi8fwyVmUGrvB13YQSVJjJWRw1MJ56K5saNAbxj6v5 Diff:
Old | New | Differences | |
---|---|---|---|
113 | 113 | let R = toBase58String(P.caller.bytes) | |
114 | 114 | if (o(R)) | |
115 | 115 | then if ((l(R, Q) == 1)) | |
116 | - | then c((((R + ": ") + Q) + ": voteForNewManger() already voted")) | |
116 | + | then c((((R + ": ") + Q) + ": voteForNewManger() you already voted")) | |
117 | 117 | else { | |
118 | 118 | let L = K(h(Q)) | |
119 | - | if (((L + 1) >= | |
119 | + | if (((L + 1) >= 2)) | |
120 | 120 | then { | |
121 | 121 | let S = O(h(Q)) | |
122 | 122 | (S ++ [StringEntry(g(), Q)]) |
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 = "test.ride" | |
7 | 7 | ||
8 | 8 | func c (d) = throw(((b + ": ") + d)) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func e () = makeString(["%s", "managerPublicKey"], a) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func f () = makeString(["%s", "keyCurrentManager"], a) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func g () = makeString(["%s", "pendingManagerPublicKey"], a) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func h (i) = makeString(["%s%s%s", "setManager", i], a) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func j (i,k) = makeString([h(i), k], a) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func l (k,i) = valueOrElse(getInteger(j(k, i)), 0) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func m () = makeString(["%s", "adminAddressList"], a) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func n () = split(valueOrElse(getString(this, m()), ""), a) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func o (p) = { | |
36 | 36 | let q = indexOf(n(), p) | |
37 | 37 | if ($isInstanceOf(q, "Int")) | |
38 | 38 | then { | |
39 | 39 | let r = q | |
40 | 40 | true | |
41 | 41 | } | |
42 | 42 | else false | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func s (t,u) = { | |
47 | 47 | let v = t | |
48 | 48 | let w = v._1 | |
49 | 49 | let x = v._2 | |
50 | 50 | $Tuple2((w :+ makeString([x, u], a)), x) | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func y (z) = { | |
55 | 55 | let A = m() | |
56 | 56 | let B = n() | |
57 | 57 | let C = size(B) | |
58 | 58 | let D = $Tuple2(nil, z) | |
59 | 59 | func E (F,G) = if ((G >= C)) | |
60 | 60 | then F | |
61 | 61 | else s(F, B[G]) | |
62 | 62 | ||
63 | 63 | func H (F,G) = if ((G >= C)) | |
64 | 64 | then F | |
65 | 65 | else throw("List size exceeds 10") | |
66 | 66 | ||
67 | 67 | H(E(E(E(E(E(E(E(E(E(E(D, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func I (w,J) = (w + valueOrElse(getInteger(J), 0)) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func K (x) = { | |
75 | 75 | let L = y(x)._1 | |
76 | 76 | let B = L | |
77 | 77 | let C = size(B) | |
78 | 78 | let D = 0 | |
79 | 79 | func E (F,G) = if ((G >= C)) | |
80 | 80 | then F | |
81 | 81 | else I(F, B[G]) | |
82 | 82 | ||
83 | 83 | func H (F,G) = if ((G >= C)) | |
84 | 84 | then F | |
85 | 85 | else throw("List size exceeds 10") | |
86 | 86 | ||
87 | 87 | H(E(E(E(E(E(E(E(E(E(E(D, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func M (w,N) = (w :+ DeleteEntry(N)) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func O (x) = { | |
95 | 95 | let L = y(x)._1 | |
96 | 96 | let B = L | |
97 | 97 | let C = size(B) | |
98 | 98 | let D = nil | |
99 | 99 | func E (F,G) = if ((G >= C)) | |
100 | 100 | then F | |
101 | 101 | else M(F, B[G]) | |
102 | 102 | ||
103 | 103 | func H (F,G) = if ((G >= C)) | |
104 | 104 | then F | |
105 | 105 | else throw("List size exceeds 10") | |
106 | 106 | ||
107 | 107 | H(E(E(E(E(E(E(E(E(E(E(D, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
108 | 108 | } | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | @Callable(P) | |
112 | 112 | func voteForNewManger (Q) = { | |
113 | 113 | let R = toBase58String(P.caller.bytes) | |
114 | 114 | if (o(R)) | |
115 | 115 | then if ((l(R, Q) == 1)) | |
116 | - | then c((((R + ": ") + Q) + ": voteForNewManger() already voted")) | |
116 | + | then c((((R + ": ") + Q) + ": voteForNewManger() you already voted")) | |
117 | 117 | else { | |
118 | 118 | let L = K(h(Q)) | |
119 | - | if (((L + 1) >= | |
119 | + | if (((L + 1) >= 2)) | |
120 | 120 | then { | |
121 | 121 | let S = O(h(Q)) | |
122 | 122 | (S ++ [StringEntry(g(), Q)]) | |
123 | 123 | } | |
124 | 124 | else [IntegerEntry(j(Q, R), 1)] | |
125 | 125 | } | |
126 | 126 | else c((R + ": not in Admin list")) | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 |
github/deemru/w8io/026f985 40.99 ms ◑