tx · A6sTKhNUTqP25qpY3ZPPWi9siUF7KqaHvctGjiWXWn3Q

3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh:  -0.01200000 Waves

2023.04.20 14:22 [2542806] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves

{ "type": 13, "id": "A6sTKhNUTqP25qpY3ZPPWi9siUF7KqaHvctGjiWXWn3Q", "fee": 1200000, "feeAssetId": null, "timestamp": 1681989766947, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "3kVyswR3q49SRLZcyUv1tAJEV9DxbNXEVV44sg7JSRAKfYjNdtVxoGxv1DoEy75giZKzNA4d4doYR2AJoAU4ZQZy" ], "script": "base64:BgIcCAISABIDCgEIEgASABIDCgEIEgMKAQgSAwoBCB4AA1NFUAICX18AEGNvbnRyYWN0RmlsZW5hbWUCEm1hbmFnZXJfdmF1bHQucmlkZQATTUFYX0FETUlOX0xJU1RfU0laRQAKABNNSU5fQURNSU5fTElTVF9TSVpFAAIAFEFERFJFU1NfQllURVNfTEVOR1RIABoAEVRYSURfQllURVNfTEVOR1RIACABCHRocm93RXJyAQFzCQACAQkArAICCQCsAgIFEGNvbnRyYWN0RmlsZW5hbWUCAjogBQFzARlrZXlBY3RpdmVNYW5hZ2VyUHVibGljS2V5AAkAuQkCCQDMCAICAiVzCQDMCAICEG1hbmFnZXJQdWJsaWNLZXkFA25pbAUDU0VQARprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAJALkJAgkAzAgCAgIlcwkAzAgCAhdwZW5kaW5nTWFuYWdlclB1YmxpY0tleQUDbmlsBQNTRVABGmtleUN1cnJlbnRNYW5hZ2VyUHVibGljS2V5AAkAuQkCCQDMCAICAiVzCQDMCAICF2N1cnJlbnRNYW5hZ2VyUHVibGljS2V5BQNuaWwF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NLZXnNOy6F", "height": 2542806, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ho3tpYsfYse6LouWWjoVg73p6EhCakdSDf8wBKRrrSqV Next: FDPpxPPdueCYML14qes544JqGwPcPSJLeD4TnXptmcQM Diff:
OldNewDifferences
77
88 let c = 10
99
10-let d = 26
10+let d = 2
1111
12-func e (f) = throw(((b + ": ") + f))
12+let e = 26
13+
14+let f = 32
15+
16+func g (h) = throw(((b + ": ") + h))
1317
1418
15-func g () = makeString(["%s", "managerPublicKey"], a)
19+func i () = makeString(["%s", "managerPublicKey"], a)
1620
1721
18-func h () = makeString(["%s", "pendingManagerPublicKey"], a)
22+func j () = makeString(["%s", "pendingManagerPublicKey"], a)
1923
2024
21-func i () = makeString(["%s", "currentManagerPublicKey"], a)
25+func k () = makeString(["%s", "currentManagerPublicKey"], a)
2226
2327
24-func j (k) = makeString(["%s%s%s", "setManager", k], a)
28+func l (m) = makeString(["%s%s%s", "setManager", m], a)
2529
2630
27-func l () = makeString(["%s%s", "deactivateManager"], a)
31+func n () = makeString(["%s%s", "deactivateManager"], a)
2832
2933
30-func m () = makeString(["%s%s", "activateManager"], a)
34+func o () = makeString(["%s%s", "activateManager"], a)
3135
3236
33-func n (o) = makeString(["%s%s%s", "addAdmin", o], a)
37+func p (q) = makeString(["%s%s%s", "addAdmin", q], a)
3438
3539
36-func p (q) = makeString(["%s%s%s", "removeAdmin", q], a)
40+func r (s) = makeString(["%s%s%s", "removeAdmin", s], a)
3741
3842
39-func r (s) = makeString(["%s%s%s", "allowTxId", s], a)
43+func t (u) = makeString(["%s%s%s", "allowTxId", u], a)
4044
4145
42-func t () = makeString(["%s", "adminAddressList"], a)
46+func v (w,x) = makeString([w, x], a)
4347
4448
45-func u () = makeString(["%s", "TXID"], a)
49+func y () = makeString(["%s", "adminAddressList"], a)
4650
4751
48-func v (w,x) = {
49- let y = makeString([w, x], a)
50- valueOrElse(getInteger(y), 0)
52+func z () = makeString(["%s", "TXID"], a)
53+
54+
55+func A (w,B) = {
56+ let C = v(w, B)
57+ valueOrElse(getInteger(C), 0)
5158 }
5259
5360
54-func z () = {
55- let A = getString(h())
56- if ($isInstanceOf(A, "String"))
61+func D () = {
62+ let E = getString(j())
63+ if ($isInstanceOf(E, "String"))
5764 then {
58- let f = A
59- fromBase58String(f)
65+ let h = E
66+ fromBase58String(h)
6067 }
61- else if ($isInstanceOf(A, "Unit"))
68+ else if ($isInstanceOf(E, "Unit"))
6269 then unit
6370 else throw("Match error")
6471 }
6572
6673
67-func B () = split(valueOrElse(getString(this, t()), ""), a)
74+func F () = split(valueOrElse(getString(this, y()), ""), a)
6875
6976
70-func C (D) = {
71- let A = indexOf(B(), D)
72- if ($isInstanceOf(A, "Int"))
73- then {
74- let E = A
75- true
76- }
77- else false
77+func G (H) = containsElement(F(), H)
78+
79+
80+func I (J,x) = {
81+ let K = J
82+ let L = K._1
83+ let w = K._2
84+ $Tuple2((L :+ v(w, x)), w)
7885 }
7986
8087
81-func F (G,H) = {
82- let I = G
83- let J = I._1
84- let w = I._2
85- $Tuple2((J :+ makeString([w, H], a)), w)
88+func M (N) = {
89+ let O = y()
90+ let P = F()
91+ let Q = size(P)
92+ let R = $Tuple2(nil, N)
93+ func S (T,U) = if ((U >= Q))
94+ then T
95+ else I(T, P[U])
96+
97+ func V (T,U) = if ((U >= Q))
98+ then T
99+ else throw("List size exceeds 20")
100+
101+ V(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
86102 }
87103
88104
89-func K (L) = {
90- let M = t()
91- let N = B()
92- let O = size(N)
93- let P = $Tuple2(nil, L)
94- func Q (R,S) = if ((S >= O))
95- then R
96- else F(R, N[S])
105+func W (L,C) = (L + valueOrElse(getInteger(C), 0))
97106
98- func T (R,S) = if ((S >= O))
99- then R
107+
108+func X (w) = {
109+ let Y = M(w)._1
110+ let P = Y
111+ let Q = size(P)
112+ let R = 0
113+ func S (T,U) = if ((U >= Q))
114+ then T
115+ else W(T, P[U])
116+
117+ func V (T,U) = if ((U >= Q))
118+ then T
100119 else throw("List size exceeds 20")
101120
102- T(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(P, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
121+ V(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
103122 }
104123
105124
106-func U (J,y) = (J + valueOrElse(getInteger(y), 0))
125+func Z (L,aa) = (L :+ DeleteEntry(aa))
107126
108127
109-func V (w) = {
110- let W = K(w)._1
111- let N = W
112- let O = size(N)
113- let P = 0
114- func Q (R,S) = if ((S >= O))
115- then R
116- else U(R, N[S])
128+func ab (w) = {
129+ let Y = M(w)._1
130+ let P = Y
131+ let Q = size(P)
132+ let R = nil
133+ func S (T,U) = if ((U >= Q))
134+ then T
135+ else Z(T, P[U])
117136
118- func T (R,S) = if ((S >= O))
119- then R
137+ func V (T,U) = if ((U >= Q))
138+ then T
120139 else throw("List size exceeds 20")
121140
122- T(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(P, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
141+ V(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
123142 }
124143
125144
126-func X (J,Y) = (J :+ DeleteEntry(Y))
127-
128-
129-func Z (w) = {
130- let W = K(w)._1
131- let N = W
132- let O = size(N)
133- let P = nil
134- func Q (R,S) = if ((S >= O))
135- then R
136- else X(R, N[S])
137-
138- func T (R,S) = if ((S >= O))
139- then R
140- else throw("List size exceeds 20")
141-
142- T(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(P, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
143- }
144-
145-
146-func aa (ab,L,ac,ad) = {
147- let y = makeString([L, ab], a)
148- let ae = v(L, ab)
149- let af = if (!(C(ab)))
150- then e((("Address: " + ab) + " not in Admin list"))
151- else if ((ae == 1))
152- then e((y + " you already voted"))
145+func ac (ad,N,ae,af) = {
146+ let C = v(N, ad)
147+ let ag = A(N, ad)
148+ let ah = if (!(G(ad)))
149+ then g((("Address: " + ad) + " not in Admin list"))
150+ else if ((ag == 1))
151+ then g((C + " you already voted"))
153152 else unit
154- if ((af == af))
153+ if ((ah == ah))
155154 then {
156- let W = V(L)
157- if (((W + 1) >= ac))
155+ let Y = X(N)
156+ if (((Y + 1) >= ae))
158157 then {
159- let ag = Z(L)
160- (ag ++ ad)
158+ let ai = ab(N)
159+ (ai ++ af)
161160 }
162- else [IntegerEntry(y, 1)]
161+ else [IntegerEntry(C, 1)]
163162 }
164163 else throw("Strict value is not equal to itself.")
165164 }
166165
167166
168-@Callable(ah)
167+@Callable(aj)
169168 func confirmManager () = {
170- let ai = z()
171- let aj = if (isDefined(ai))
169+ let ak = D()
170+ let al = if (isDefined(ak))
172171 then true
173- else e("no pending manager")
174- if ((aj == aj))
172+ else g("no pending manager")
173+ if ((al == al))
175174 then {
176- let ak = if ((ah.callerPublicKey == value(ai)))
175+ let am = if ((aj.callerPublicKey == value(ak)))
177176 then true
178- else e("you are not pending manager")
179- if ((ak == ak))
180- then [StringEntry(i(), toBase58String(value(ai))), StringEntry(g(), toBase58String(value(ai))), DeleteEntry(h())]
177+ else g("you are not pending manager")
178+ if ((am == am))
179+ then [StringEntry(k(), toBase58String(value(ak))), StringEntry(i(), toBase58String(value(ak))), DeleteEntry(j())]
181180 else throw("Strict value is not equal to itself.")
182181 }
183182 else throw("Strict value is not equal to itself.")
185184
186185
187186
188-@Callable(ah)
189-func voteForNewManger (al) = {
190- let ab = toBase58String(ah.caller.bytes)
191- let L = j(al)
192- let am = 2
193- let J = [StringEntry(h(), al)]
194- aa(ab, L, am, J)
187+@Callable(aj)
188+func voteForNewManager (an) = {
189+ let ad = toBase58String(aj.caller.bytes)
190+ let N = l(an)
191+ let ao = 2
192+ let L = [StringEntry(j(), an)]
193+ ac(ad, N, ao, L)
195194 }
196195
197196
198197
199-@Callable(ah)
198+@Callable(aj)
200199 func deactivateManager () = {
201- let ab = toBase58String(ah.caller.bytes)
202- let L = l()
203- let am = 1
204- let J = [StringEntry(g(), "disabled")]
205- aa(ab, L, am, J)
200+ let ad = toBase58String(aj.caller.bytes)
201+ let N = n()
202+ let ao = 1
203+ let L = [StringEntry(i(), "disabled")]
204+ ac(ad, N, ao, L)
206205 }
207206
208207
209208
210-@Callable(ah)
209+@Callable(aj)
211210 func activateManager () = {
212- let ab = toBase58String(ah.caller.bytes)
213- let L = m()
214- let am = 2
215- let an = getStringValue(i())
216- let J = [StringEntry(g(), an)]
217- aa(ab, L, am, J)
211+ let ad = toBase58String(aj.caller.bytes)
212+ let N = o()
213+ let ao = 2
214+ let ap = getStringValue(k())
215+ let L = [StringEntry(i(), ap)]
216+ ac(ad, N, ao, L)
218217 }
219218
220219
221220
222-@Callable(ah)
223-func addNewAdmin (ao) = {
224- let ab = toBase58String(ah.caller.bytes)
225- let L = n(ao)
226- let am = 2
227- let ap = B()
228- let af = if ((size(ap) >= c))
229- then e((("MAX_ADMIN_COUNT (" + toString(c)) + ") is exceeded"))
230- else if ((size(fromBase58String(ao)) != d))
231- then e((ao + " is not valid Address"))
221+@Callable(aj)
222+func addNewAdmin (aq) = {
223+ let ad = toBase58String(aj.caller.bytes)
224+ let N = p(aq)
225+ let ao = 2
226+ let ar = F()
227+ let ah = if ((size(ar) >= c))
228+ then g((("MAX_ADMIN_LIST_SIZE (" + toString(c)) + ") is exceeded"))
229+ else if ((size(fromBase58String(aq)) != e))
230+ then g((aq + " is not valid Address"))
232231 else unit
233- if ((af == af))
232+ if ((ah == ah))
234233 then {
235- let A = indexOf(ap, ao)
236- if ($isInstanceOf(A, "Int"))
234+ let E = indexOf(ar, aq)
235+ if ($isInstanceOf(E, "Int"))
237236 then {
238- let G = A
239- e((ao + " already in Admin List"))
237+ let J = E
238+ g((aq + " already in Admin List"))
240239 }
241240 else {
242- let aq = (ap :+ ao)
243- let J = [StringEntry(t(), makeString(aq, a))]
244- aa(ab, L, am, J)
241+ let as = (ar :+ aq)
242+ let L = [StringEntry(y(), makeString(as, a))]
243+ ac(ad, N, ao, L)
245244 }
246245 }
247246 else throw("Strict value is not equal to itself.")
249248
250249
251250
252-@Callable(ah)
253-func removeAdmin (q) = {
254- let ab = toBase58String(ah.caller.bytes)
255- let L = p(q)
256- let am = 2
257- let ap = B()
258- let A = indexOf(ap, q)
259- if ($isInstanceOf(A, "Int"))
251+@Callable(aj)
252+func removeAdmin (s) = {
253+ let ad = toBase58String(aj.caller.bytes)
254+ let N = r(s)
255+ let ao = 2
256+ let ar = F()
257+ let E = indexOf(ar, s)
258+ if ($isInstanceOf(E, "Int"))
260259 then {
261- let ar = A
262- let aq = removeByIndex(ap, ar)
263- let J = [StringEntry(t(), makeString(aq, a))]
264- aa(ab, L, am, J)
260+ let at = E
261+ let as = removeByIndex(ar, at)
262+ let L = [StringEntry(y(), makeString(as, a))]
263+ ac(ad, N, ao, L)
265264 }
266- else e((q + " not found in Admin List"))
265+ else g((s + " not found in Admin List"))
267266 }
268267
269268
270269
271-@Callable(ah)
272-func voteForTxId (s) = {
273- let ab = toBase58String(ah.caller.bytes)
274- let L = r(s)
275- let am = 2
276- let J = [StringEntry(u(), s)]
277- let af = if ((size(fromBase58String(s)) != 32))
278- then e((s + " not valid txId"))
270+@Callable(aj)
271+func voteForTxId (u) = {
272+ let ad = toBase58String(aj.caller.bytes)
273+ let N = t(u)
274+ let ao = 2
275+ let L = [StringEntry(z(), u)]
276+ let ah = if ((size(fromBase58String(u)) != f))
277+ then g((u + " not valid txId"))
279278 else unit
280- if ((af == af))
281- then aa(ab, L, am, J)
279+ if ((ah == ah))
280+ then ac(ad, N, ao, L)
282281 else throw("Strict value is not equal to itself.")
283282 }
284283
285284
286-@Verifier(as)
287-func at () = {
288- let au = fromBase58String(getStringValue(u()))
289- let A = as
290- if ($isInstanceOf(A, "SetScriptTransaction"))
285+@Verifier(au)
286+func av () = {
287+ let aw = fromBase58String(getStringValue(z()))
288+ let E = au
289+ if ($isInstanceOf(E, "SetScriptTransaction"))
291290 then {
292- let E = A
293- sigVerify(as.bodyBytes, as.proofs[0], as.senderPublicKey)
291+ let ax = E
292+ sigVerify(au.bodyBytes, au.proofs[0], au.senderPublicKey)
294293 }
295- else if ($isInstanceOf(A, "DataTransaction"))
294+ else if ($isInstanceOf(E, "DataTransaction"))
296295 then {
297- let E = A
298- sigVerify(as.bodyBytes, as.proofs[0], as.senderPublicKey)
296+ let ax = E
297+ sigVerify(au.bodyBytes, au.proofs[0], au.senderPublicKey)
299298 }
300299 else {
301- let ap = B()
302- if ((size(ap) >= 3))
303- then (as.id == au)
304- else sigVerify(as.bodyBytes, as.proofs[0], as.senderPublicKey)
300+ let ar = F()
301+ if ((size(ar) >= d))
302+ then (au.id == aw)
303+ else sigVerify(au.bodyBytes, au.proofs[0], au.senderPublicKey)
305304 }
306305 }
307306
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = "manager_vault.ride"
77
88 let c = 10
99
10-let d = 26
10+let d = 2
1111
12-func e (f) = throw(((b + ": ") + f))
12+let e = 26
13+
14+let f = 32
15+
16+func g (h) = throw(((b + ": ") + h))
1317
1418
15-func g () = makeString(["%s", "managerPublicKey"], a)
19+func i () = makeString(["%s", "managerPublicKey"], a)
1620
1721
18-func h () = makeString(["%s", "pendingManagerPublicKey"], a)
22+func j () = makeString(["%s", "pendingManagerPublicKey"], a)
1923
2024
21-func i () = makeString(["%s", "currentManagerPublicKey"], a)
25+func k () = makeString(["%s", "currentManagerPublicKey"], a)
2226
2327
24-func j (k) = makeString(["%s%s%s", "setManager", k], a)
28+func l (m) = makeString(["%s%s%s", "setManager", m], a)
2529
2630
27-func l () = makeString(["%s%s", "deactivateManager"], a)
31+func n () = makeString(["%s%s", "deactivateManager"], a)
2832
2933
30-func m () = makeString(["%s%s", "activateManager"], a)
34+func o () = makeString(["%s%s", "activateManager"], a)
3135
3236
33-func n (o) = makeString(["%s%s%s", "addAdmin", o], a)
37+func p (q) = makeString(["%s%s%s", "addAdmin", q], a)
3438
3539
36-func p (q) = makeString(["%s%s%s", "removeAdmin", q], a)
40+func r (s) = makeString(["%s%s%s", "removeAdmin", s], a)
3741
3842
39-func r (s) = makeString(["%s%s%s", "allowTxId", s], a)
43+func t (u) = makeString(["%s%s%s", "allowTxId", u], a)
4044
4145
42-func t () = makeString(["%s", "adminAddressList"], a)
46+func v (w,x) = makeString([w, x], a)
4347
4448
45-func u () = makeString(["%s", "TXID"], a)
49+func y () = makeString(["%s", "adminAddressList"], a)
4650
4751
48-func v (w,x) = {
49- let y = makeString([w, x], a)
50- valueOrElse(getInteger(y), 0)
52+func z () = makeString(["%s", "TXID"], a)
53+
54+
55+func A (w,B) = {
56+ let C = v(w, B)
57+ valueOrElse(getInteger(C), 0)
5158 }
5259
5360
54-func z () = {
55- let A = getString(h())
56- if ($isInstanceOf(A, "String"))
61+func D () = {
62+ let E = getString(j())
63+ if ($isInstanceOf(E, "String"))
5764 then {
58- let f = A
59- fromBase58String(f)
65+ let h = E
66+ fromBase58String(h)
6067 }
61- else if ($isInstanceOf(A, "Unit"))
68+ else if ($isInstanceOf(E, "Unit"))
6269 then unit
6370 else throw("Match error")
6471 }
6572
6673
67-func B () = split(valueOrElse(getString(this, t()), ""), a)
74+func F () = split(valueOrElse(getString(this, y()), ""), a)
6875
6976
70-func C (D) = {
71- let A = indexOf(B(), D)
72- if ($isInstanceOf(A, "Int"))
73- then {
74- let E = A
75- true
76- }
77- else false
77+func G (H) = containsElement(F(), H)
78+
79+
80+func I (J,x) = {
81+ let K = J
82+ let L = K._1
83+ let w = K._2
84+ $Tuple2((L :+ v(w, x)), w)
7885 }
7986
8087
81-func F (G,H) = {
82- let I = G
83- let J = I._1
84- let w = I._2
85- $Tuple2((J :+ makeString([w, H], a)), w)
88+func M (N) = {
89+ let O = y()
90+ let P = F()
91+ let Q = size(P)
92+ let R = $Tuple2(nil, N)
93+ func S (T,U) = if ((U >= Q))
94+ then T
95+ else I(T, P[U])
96+
97+ func V (T,U) = if ((U >= Q))
98+ then T
99+ else throw("List size exceeds 20")
100+
101+ V(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
86102 }
87103
88104
89-func K (L) = {
90- let M = t()
91- let N = B()
92- let O = size(N)
93- let P = $Tuple2(nil, L)
94- func Q (R,S) = if ((S >= O))
95- then R
96- else F(R, N[S])
105+func W (L,C) = (L + valueOrElse(getInteger(C), 0))
97106
98- func T (R,S) = if ((S >= O))
99- then R
107+
108+func X (w) = {
109+ let Y = M(w)._1
110+ let P = Y
111+ let Q = size(P)
112+ let R = 0
113+ func S (T,U) = if ((U >= Q))
114+ then T
115+ else W(T, P[U])
116+
117+ func V (T,U) = if ((U >= Q))
118+ then T
100119 else throw("List size exceeds 20")
101120
102- T(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(P, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
121+ V(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
103122 }
104123
105124
106-func U (J,y) = (J + valueOrElse(getInteger(y), 0))
125+func Z (L,aa) = (L :+ DeleteEntry(aa))
107126
108127
109-func V (w) = {
110- let W = K(w)._1
111- let N = W
112- let O = size(N)
113- let P = 0
114- func Q (R,S) = if ((S >= O))
115- then R
116- else U(R, N[S])
128+func ab (w) = {
129+ let Y = M(w)._1
130+ let P = Y
131+ let Q = size(P)
132+ let R = nil
133+ func S (T,U) = if ((U >= Q))
134+ then T
135+ else Z(T, P[U])
117136
118- func T (R,S) = if ((S >= O))
119- then R
137+ func V (T,U) = if ((U >= Q))
138+ then T
120139 else throw("List size exceeds 20")
121140
122- T(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(P, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
141+ V(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
123142 }
124143
125144
126-func X (J,Y) = (J :+ DeleteEntry(Y))
127-
128-
129-func Z (w) = {
130- let W = K(w)._1
131- let N = W
132- let O = size(N)
133- let P = nil
134- func Q (R,S) = if ((S >= O))
135- then R
136- else X(R, N[S])
137-
138- func T (R,S) = if ((S >= O))
139- then R
140- else throw("List size exceeds 20")
141-
142- T(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(P, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
143- }
144-
145-
146-func aa (ab,L,ac,ad) = {
147- let y = makeString([L, ab], a)
148- let ae = v(L, ab)
149- let af = if (!(C(ab)))
150- then e((("Address: " + ab) + " not in Admin list"))
151- else if ((ae == 1))
152- then e((y + " you already voted"))
145+func ac (ad,N,ae,af) = {
146+ let C = v(N, ad)
147+ let ag = A(N, ad)
148+ let ah = if (!(G(ad)))
149+ then g((("Address: " + ad) + " not in Admin list"))
150+ else if ((ag == 1))
151+ then g((C + " you already voted"))
153152 else unit
154- if ((af == af))
153+ if ((ah == ah))
155154 then {
156- let W = V(L)
157- if (((W + 1) >= ac))
155+ let Y = X(N)
156+ if (((Y + 1) >= ae))
158157 then {
159- let ag = Z(L)
160- (ag ++ ad)
158+ let ai = ab(N)
159+ (ai ++ af)
161160 }
162- else [IntegerEntry(y, 1)]
161+ else [IntegerEntry(C, 1)]
163162 }
164163 else throw("Strict value is not equal to itself.")
165164 }
166165
167166
168-@Callable(ah)
167+@Callable(aj)
169168 func confirmManager () = {
170- let ai = z()
171- let aj = if (isDefined(ai))
169+ let ak = D()
170+ let al = if (isDefined(ak))
172171 then true
173- else e("no pending manager")
174- if ((aj == aj))
172+ else g("no pending manager")
173+ if ((al == al))
175174 then {
176- let ak = if ((ah.callerPublicKey == value(ai)))
175+ let am = if ((aj.callerPublicKey == value(ak)))
177176 then true
178- else e("you are not pending manager")
179- if ((ak == ak))
180- then [StringEntry(i(), toBase58String(value(ai))), StringEntry(g(), toBase58String(value(ai))), DeleteEntry(h())]
177+ else g("you are not pending manager")
178+ if ((am == am))
179+ then [StringEntry(k(), toBase58String(value(ak))), StringEntry(i(), toBase58String(value(ak))), DeleteEntry(j())]
181180 else throw("Strict value is not equal to itself.")
182181 }
183182 else throw("Strict value is not equal to itself.")
184183 }
185184
186185
187186
188-@Callable(ah)
189-func voteForNewManger (al) = {
190- let ab = toBase58String(ah.caller.bytes)
191- let L = j(al)
192- let am = 2
193- let J = [StringEntry(h(), al)]
194- aa(ab, L, am, J)
187+@Callable(aj)
188+func voteForNewManager (an) = {
189+ let ad = toBase58String(aj.caller.bytes)
190+ let N = l(an)
191+ let ao = 2
192+ let L = [StringEntry(j(), an)]
193+ ac(ad, N, ao, L)
195194 }
196195
197196
198197
199-@Callable(ah)
198+@Callable(aj)
200199 func deactivateManager () = {
201- let ab = toBase58String(ah.caller.bytes)
202- let L = l()
203- let am = 1
204- let J = [StringEntry(g(), "disabled")]
205- aa(ab, L, am, J)
200+ let ad = toBase58String(aj.caller.bytes)
201+ let N = n()
202+ let ao = 1
203+ let L = [StringEntry(i(), "disabled")]
204+ ac(ad, N, ao, L)
206205 }
207206
208207
209208
210-@Callable(ah)
209+@Callable(aj)
211210 func activateManager () = {
212- let ab = toBase58String(ah.caller.bytes)
213- let L = m()
214- let am = 2
215- let an = getStringValue(i())
216- let J = [StringEntry(g(), an)]
217- aa(ab, L, am, J)
211+ let ad = toBase58String(aj.caller.bytes)
212+ let N = o()
213+ let ao = 2
214+ let ap = getStringValue(k())
215+ let L = [StringEntry(i(), ap)]
216+ ac(ad, N, ao, L)
218217 }
219218
220219
221220
222-@Callable(ah)
223-func addNewAdmin (ao) = {
224- let ab = toBase58String(ah.caller.bytes)
225- let L = n(ao)
226- let am = 2
227- let ap = B()
228- let af = if ((size(ap) >= c))
229- then e((("MAX_ADMIN_COUNT (" + toString(c)) + ") is exceeded"))
230- else if ((size(fromBase58String(ao)) != d))
231- then e((ao + " is not valid Address"))
221+@Callable(aj)
222+func addNewAdmin (aq) = {
223+ let ad = toBase58String(aj.caller.bytes)
224+ let N = p(aq)
225+ let ao = 2
226+ let ar = F()
227+ let ah = if ((size(ar) >= c))
228+ then g((("MAX_ADMIN_LIST_SIZE (" + toString(c)) + ") is exceeded"))
229+ else if ((size(fromBase58String(aq)) != e))
230+ then g((aq + " is not valid Address"))
232231 else unit
233- if ((af == af))
232+ if ((ah == ah))
234233 then {
235- let A = indexOf(ap, ao)
236- if ($isInstanceOf(A, "Int"))
234+ let E = indexOf(ar, aq)
235+ if ($isInstanceOf(E, "Int"))
237236 then {
238- let G = A
239- e((ao + " already in Admin List"))
237+ let J = E
238+ g((aq + " already in Admin List"))
240239 }
241240 else {
242- let aq = (ap :+ ao)
243- let J = [StringEntry(t(), makeString(aq, a))]
244- aa(ab, L, am, J)
241+ let as = (ar :+ aq)
242+ let L = [StringEntry(y(), makeString(as, a))]
243+ ac(ad, N, ao, L)
245244 }
246245 }
247246 else throw("Strict value is not equal to itself.")
248247 }
249248
250249
251250
252-@Callable(ah)
253-func removeAdmin (q) = {
254- let ab = toBase58String(ah.caller.bytes)
255- let L = p(q)
256- let am = 2
257- let ap = B()
258- let A = indexOf(ap, q)
259- if ($isInstanceOf(A, "Int"))
251+@Callable(aj)
252+func removeAdmin (s) = {
253+ let ad = toBase58String(aj.caller.bytes)
254+ let N = r(s)
255+ let ao = 2
256+ let ar = F()
257+ let E = indexOf(ar, s)
258+ if ($isInstanceOf(E, "Int"))
260259 then {
261- let ar = A
262- let aq = removeByIndex(ap, ar)
263- let J = [StringEntry(t(), makeString(aq, a))]
264- aa(ab, L, am, J)
260+ let at = E
261+ let as = removeByIndex(ar, at)
262+ let L = [StringEntry(y(), makeString(as, a))]
263+ ac(ad, N, ao, L)
265264 }
266- else e((q + " not found in Admin List"))
265+ else g((s + " not found in Admin List"))
267266 }
268267
269268
270269
271-@Callable(ah)
272-func voteForTxId (s) = {
273- let ab = toBase58String(ah.caller.bytes)
274- let L = r(s)
275- let am = 2
276- let J = [StringEntry(u(), s)]
277- let af = if ((size(fromBase58String(s)) != 32))
278- then e((s + " not valid txId"))
270+@Callable(aj)
271+func voteForTxId (u) = {
272+ let ad = toBase58String(aj.caller.bytes)
273+ let N = t(u)
274+ let ao = 2
275+ let L = [StringEntry(z(), u)]
276+ let ah = if ((size(fromBase58String(u)) != f))
277+ then g((u + " not valid txId"))
279278 else unit
280- if ((af == af))
281- then aa(ab, L, am, J)
279+ if ((ah == ah))
280+ then ac(ad, N, ao, L)
282281 else throw("Strict value is not equal to itself.")
283282 }
284283
285284
286-@Verifier(as)
287-func at () = {
288- let au = fromBase58String(getStringValue(u()))
289- let A = as
290- if ($isInstanceOf(A, "SetScriptTransaction"))
285+@Verifier(au)
286+func av () = {
287+ let aw = fromBase58String(getStringValue(z()))
288+ let E = au
289+ if ($isInstanceOf(E, "SetScriptTransaction"))
291290 then {
292- let E = A
293- sigVerify(as.bodyBytes, as.proofs[0], as.senderPublicKey)
291+ let ax = E
292+ sigVerify(au.bodyBytes, au.proofs[0], au.senderPublicKey)
294293 }
295- else if ($isInstanceOf(A, "DataTransaction"))
294+ else if ($isInstanceOf(E, "DataTransaction"))
296295 then {
297- let E = A
298- sigVerify(as.bodyBytes, as.proofs[0], as.senderPublicKey)
296+ let ax = E
297+ sigVerify(au.bodyBytes, au.proofs[0], au.senderPublicKey)
299298 }
300299 else {
301- let ap = B()
302- if ((size(ap) >= 3))
303- then (as.id == au)
304- else sigVerify(as.bodyBytes, as.proofs[0], as.senderPublicKey)
300+ let ar = F()
301+ if ((size(ar) >= d))
302+ then (au.id == aw)
303+ else sigVerify(au.bodyBytes, au.proofs[0], au.senderPublicKey)
305304 }
306305 }
307306

github/deemru/w8io/026f985 
90.86 ms