tx · 2QF3YFjKo3NFapttqniLW3RFvHWQ5bNs2co4kzeT9cEk

3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh:  -0.01000000 Waves

2023.04.19 11:30 [2541204] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves

{ "type": 13, "id": "2QF3YFjKo3NFapttqniLW3RFvHWQ5bNs2co4kzeT9cEk", "fee": 1000000, "feeAssetId": null, "timestamp": 1681893088824, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "2ZCJqnUgunXNtrjFUfAudRxCnLMuywrpMqm4wD4KeM1tHxzYu3naDa2MCmsHvJDDmSoesZb5d3hxvSVfE4BcYQQ8" ], "script": "base64:BgIcCAISABIDCgEIEgASABIDCgEIEgMKAQgSAwoBCBkAA1NFUAICX18AEGNvbnRyYWN0RmlsZW5hbWUCEm1hbmFnZXJfdmF1bHQucmlkZQEIdGhyb3dFcnIBAXMJAAIBCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBGWtleUFjdGl2ZU1hbmFnZXJQdWJsaWNLZXkACQC5CQIJAMwIAgICJXMJAMwIAgIQbWFuYWdlclB1YmxpY0tleQUDbmlsBQNTRVABGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAkAuQkCCQDMCAICAiVzCQDMCAICF3BlbmRpbmdNYW5hZ2VyUHVibGljS2V5BQNuaWwFA1NFUAEaa2V5Q3VycmVudE1hbmFnZXJQdWJsaWNLZXkACQC5CQIJAMwIAgICJXMJAMwIAgIXY3VycmVudE1hbmFnZXJQdWJsaWNLZXkFA25pbAUDU0VQARprZXlTZXROZXdNYW5hZ2VyVm90ZVByZWZpeAEQbWFuYWdlclB1YmxpY0tleQkAuQkCCQDMCAICBiVzJXMlcwkAzAgCAgpzZXRNYW5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GmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAQGcmVzdWx0CQDMCAIJAQtTdHJpbmdFbnRyeQIJAQ5rZXlBbGxvd2VkVHhJZAAFBHR4SWQFA25pbAkBDHZvdGVJTlRFUk5BTAQFE2NhbGxlckFkZHJlc3NTdHJpbmcFCWtleVByZWZpeAUIbWluVm90ZXMFBnJlc3VsdABwsB0K", "height": 2541204, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EV5YW1beov4z2RbLv43sHGzkXaLY4NP94ukUEubTz7Np Next: HwWXuo7m8vuqmiFCKSmqiYCbHmN7ffcSPeqHqSaGA7GA Diff:
OldNewDifferences
2020 func h (i) = makeString(["%s%s%s", "setManager", i], a)
2121
2222
23-func j (i,k) = makeString([h(i), k], a)
23+func j () = makeString(["%s%s", "deactivateManager"], a)
2424
2525
26-func l (i,k) = valueOrElse(getInteger(j(i, k)), 0)
26+func k () = makeString(["%s%s", "activateManager"], a)
2727
2828
29-func m () = makeString(["%s%s", "deactivateManager"], a)
29+func l (m) = makeString(["%s%s%s", "addAdmin", m], a)
3030
3131
32-func n (k) = makeString([m(), k], a)
32+func n (o) = makeString(["%s%s%s", "removeAdmin", o], a)
3333
3434
35-func o (k) = valueOrElse(getInteger(n(k)), 0)
35+func p (q) = makeString(["%s%s%s", "allowTxId", q], a)
3636
3737
38-func p () = makeString(["%s%s", "activateManager"], a)
38+func r () = makeString(["%s", "adminAddressList"], a)
3939
4040
41-func q (k) = makeString([p(), k], a)
41+func s () = makeString(["%s", "TXID"], a)
4242
4343
44-func r (k) = valueOrElse(getInteger(q(k)), 0)
44+func t (u,v) = {
45+ let w = makeString([u, v], a)
46+ valueOrElse(getInteger(w), 0)
47+ }
4548
4649
47-func s (t) = makeString(["%s%s%s", "addAdmin", t], a)
48-
49-
50-func u (t,k) = makeString([s(t), k], a)
51-
52-
53-func v (t,k) = valueOrElse(getInteger(u(t, k)), 0)
54-
55-
56-func w (x) = makeString(["%s%s%s", "removeAdmin", x], a)
57-
58-
59-func y (x,k) = makeString([w(x), k], a)
60-
61-
62-func z (x,k) = valueOrElse(getInteger(y(x, k)), 0)
63-
64-
65-func A () = makeString(["%s%s", "activateManager"], a)
66-
67-
68-func B (k) = makeString([A(), k], a)
69-
70-
71-func C (k) = valueOrElse(getInteger(B(k)), 0)
72-
73-
74-func D () = makeString(["%s", "adminAddressList"], a)
75-
76-
77-func E () = {
78- let F = getString(f())
79- if ($isInstanceOf(F, "String"))
50+func x () = {
51+ let y = getString(f())
52+ if ($isInstanceOf(y, "String"))
8053 then {
81- let d = F
54+ let d = y
8255 fromBase58String(d)
8356 }
84- else if ($isInstanceOf(F, "Unit"))
57+ else if ($isInstanceOf(y, "Unit"))
8558 then unit
8659 else throw("Match error")
8760 }
8861
8962
90-func G () = split(valueOrElse(getString(this, D()), ""), a)
63+func z () = split(valueOrElse(getString(this, r()), ""), a)
9164
9265
93-func H (I) = {
94- let F = indexOf(G(), I)
95- if ($isInstanceOf(F, "Int"))
66+func A (B) = {
67+ let y = indexOf(z(), B)
68+ if ($isInstanceOf(y, "Int"))
9669 then {
97- let J = F
70+ let C = y
9871 true
9972 }
10073 else false
10174 }
10275
10376
104-func K (L,M) = {
105- let N = L
106- let O = N._1
107- let P = N._2
108- $Tuple2((O :+ makeString([P, M], a)), P)
77+func D (E,F) = {
78+ let G = E
79+ let H = G._1
80+ let u = G._2
81+ $Tuple2((H :+ makeString([u, F], a)), u)
10982 }
11083
11184
112-func Q (R) = {
113- let S = D()
114- let T = G()
115- let U = size(T)
116- let V = $Tuple2(nil, R)
117- func W (X,Y) = if ((Y >= U))
118- then X
119- else K(X, T[Y])
85+func I (J) = {
86+ let K = r()
87+ let L = z()
88+ let M = size(L)
89+ let N = $Tuple2(nil, J)
90+ func O (P,Q) = if ((Q >= M))
91+ then P
92+ else D(P, L[Q])
12093
121- func Z (X,Y) = if ((Y >= U))
122- then X
94+ func R (P,Q) = if ((Q >= M))
95+ then P
12396 else throw("List size exceeds 10")
12497
125- Z(W(W(W(W(W(W(W(W(W(W(V, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
98+ R(O(O(O(O(O(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
12699 }
127100
128101
129-func aa (O,ab) = (O + valueOrElse(getInteger(ab), 0))
102+func S (H,w) = (H + valueOrElse(getInteger(w), 0))
130103
131104
132-func ac (P) = {
133- let ad = Q(P)._1
134- let T = ad
135- let U = size(T)
136- let V = 0
137- func W (X,Y) = if ((Y >= U))
138- then X
139- else aa(X, T[Y])
105+func T (u) = {
106+ let U = I(u)._1
107+ let L = U
108+ let M = size(L)
109+ let N = 0
110+ func O (P,Q) = if ((Q >= M))
111+ then P
112+ else S(P, L[Q])
140113
141- func Z (X,Y) = if ((Y >= U))
142- then X
114+ func R (P,Q) = if ((Q >= M))
115+ then P
143116 else throw("List size exceeds 10")
144117
145- Z(W(W(W(W(W(W(W(W(W(W(V, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
118+ R(O(O(O(O(O(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
146119 }
147120
148121
149-func ae (O,af) = (O :+ DeleteEntry(af))
122+func V (H,W) = (H :+ DeleteEntry(W))
150123
151124
152-func ag (P) = {
153- let ad = Q(P)._1
154- let T = ad
155- let U = size(T)
156- let V = nil
157- func W (X,Y) = if ((Y >= U))
158- then X
159- else ae(X, T[Y])
125+func X (u) = {
126+ let U = I(u)._1
127+ let L = U
128+ let M = size(L)
129+ let N = nil
130+ func O (P,Q) = if ((Q >= M))
131+ then P
132+ else V(P, L[Q])
160133
161- func Z (X,Y) = if ((Y >= U))
162- then X
134+ func R (P,Q) = if ((Q >= M))
135+ then P
163136 else throw("List size exceeds 10")
164137
165- Z(W(W(W(W(W(W(W(W(W(W(V, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
138+ R(O(O(O(O(O(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
166139 }
167140
168141
169-func ah (ai,aj,R,ak,al) = {
170- let ab = makeString([R, ai], a)
171- if (H(ai))
172- then if ((aj == 1))
173- then c((ab + " you already voted"))
142+func Y (Z,J,aa,ab) = {
143+ let w = makeString([J, Z], a)
144+ let ac = t(J, Z)
145+ if (A(Z))
146+ then if ((ac == 1))
147+ then c((w + " you already voted"))
174148 else {
175- let ad = ac(R)
176- if (((ad + 1) >= ak))
149+ let U = T(J)
150+ if (((U + 1) >= aa))
177151 then {
178- let am = ag(R)
179- (am ++ al)
152+ let ad = X(J)
153+ (ad ++ ab)
180154 }
181- else [IntegerEntry(ab, 1)]
155+ else [IntegerEntry(w, 1)]
182156 }
183- else c((("Address: " + ai) + " not in Admin list"))
157+ else c((("Address: " + Z) + " not in Admin list"))
184158 }
185159
186160
187-@Callable(an)
161+@Callable(ae)
188162 func confirmManager () = {
189- let ao = E()
190- let ap = if (isDefined(ao))
163+ let af = x()
164+ let ag = if (isDefined(af))
191165 then true
192166 else c("no pending manager")
193- if ((ap == ap))
167+ if ((ag == ag))
194168 then {
195- let aq = if ((an.callerPublicKey == value(ao)))
169+ let ah = if ((ae.callerPublicKey == value(af)))
196170 then true
197171 else c("you are not pending manager")
198- if ((aq == aq))
199- then [StringEntry(g(), toBase58String(value(ao)))]
172+ if ((ah == ah))
173+ then [StringEntry(g(), toBase58String(value(af)))]
200174 else throw("Strict value is not equal to itself.")
201175 }
202176 else throw("Strict value is not equal to itself.")
204178
205179
206180
207-@Callable(an)
208-func voteForNewManger (ar) = {
209- let ai = toBase58String(an.caller.bytes)
210- let R = h(ar)
211- let aj = l(ar, ai)
212- let ak = 2
213- let O = [StringEntry(f(), ar)]
214- ah(ai, aj, R, ak, O)
181+@Callable(ae)
182+func voteForNewManger (ai) = {
183+ let Z = toBase58String(ae.caller.bytes)
184+ let J = h(ai)
185+ let aa = 2
186+ let H = [StringEntry(f(), ai)]
187+ Y(Z, J, aa, H)
215188 }
216189
217190
218191
219-@Callable(an)
192+@Callable(ae)
220193 func deactivateManager () = {
221- let ai = toBase58String(an.caller.bytes)
222- let R = m()
223- let aj = o(ai)
224- let ak = 1
225- let O = [StringEntry(e(), "disabled")]
226- ah(ai, aj, R, ak, O)
194+ let Z = toBase58String(ae.caller.bytes)
195+ let J = j()
196+ let aa = 1
197+ let H = [StringEntry(e(), "disabled")]
198+ Y(Z, J, aa, H)
227199 }
228200
229201
230202
231-@Callable(an)
203+@Callable(ae)
232204 func activateManager () = {
233- let ai = toBase58String(an.caller.bytes)
234- let R = p()
235- let aj = r(ai)
236- let ak = 2
237- let as = getStringValue(g())
238- let O = [StringEntry(e(), as)]
239- ah(ai, aj, R, ak, O)
205+ let Z = toBase58String(ae.caller.bytes)
206+ let J = k()
207+ let aa = 2
208+ let aj = getStringValue(g())
209+ let H = [StringEntry(e(), aj)]
210+ Y(Z, J, aa, H)
240211 }
241212
242213
243214
244-@Callable(an)
245-func addNewAdmin (at) = {
246- let ai = toBase58String(an.caller.bytes)
247- let R = s(at)
248- let aj = v(at, ai)
249- let ak = 2
250- let au = G()
251- let F = indexOf(au, at)
252- if ($isInstanceOf(F, "Int"))
215+@Callable(ae)
216+func addNewAdmin (ak) = {
217+ let Z = toBase58String(ae.caller.bytes)
218+ let J = l(ak)
219+ let aa = 2
220+ let al = z()
221+ let y = indexOf(al, ak)
222+ if ($isInstanceOf(y, "Int"))
253223 then {
254- let L = F
255- c((at + " already in Admin List"))
224+ let E = y
225+ c((ak + " already in Admin List"))
256226 }
257227 else {
258- let av = (au :+ at)
259- let O = [StringEntry(D(), makeString(av, a))]
260- ah(ai, aj, R, ak, O)
228+ let am = (al :+ ak)
229+ let H = [StringEntry(r(), makeString(am, a))]
230+ Y(Z, J, aa, H)
261231 }
262232 }
263233
264234
265235
266-@Callable(an)
267-func removeAdmin (x) = {
268- let ai = toBase58String(an.caller.bytes)
269- let R = w(x)
270- let aj = z(x, ai)
271- let ak = 2
272- let au = G()
273- let F = indexOf(au, x)
274- if ($isInstanceOf(F, "Int"))
236+@Callable(ae)
237+func removeAdmin (o) = {
238+ let Z = toBase58String(ae.caller.bytes)
239+ let J = n(o)
240+ let aa = 2
241+ let al = z()
242+ let y = indexOf(al, o)
243+ if ($isInstanceOf(y, "Int"))
275244 then {
276- let aw = F
277- let av = removeByIndex(au, aw)
278- let O = [StringEntry(D(), makeString(av, a))]
279- ah(ai, aj, R, ak, O)
245+ let an = y
246+ let am = removeByIndex(al, an)
247+ let H = [StringEntry(r(), makeString(am, a))]
248+ Y(Z, J, aa, H)
280249 }
281- else c((x + " not found in Admin List"))
250+ else c((o + " not found in Admin List"))
282251 }
283252
284253
285254
286-@Callable(an)
287-func unlockVarifier () = {
288- let ai = toBase58String(an.caller.bytes)
289- let R = p()
290- let aj = r(ai)
291- let ak = 2
292- let ax = getStringValue(f())
293- let O = [StringEntry(e(), ax)]
294- ah(ai, aj, R, ak, O)
255+@Callable(ae)
256+func voteForTxId (q) = {
257+ let Z = toBase58String(ae.caller.bytes)
258+ let J = p(q)
259+ let aa = 2
260+ let ao = getStringValue(f())
261+ let H = [StringEntry(s(), q)]
262+ Y(Z, J, aa, H)
295263 }
296264
297265
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 func c (d) = throw(((b + ": ") + d))
99
1010
1111 func e () = makeString(["%s", "managerPublicKey"], a)
1212
1313
1414 func f () = makeString(["%s", "pendingManagerPublicKey"], a)
1515
1616
1717 func g () = makeString(["%s", "currentManagerPublicKey"], a)
1818
1919
2020 func h (i) = makeString(["%s%s%s", "setManager", i], a)
2121
2222
23-func j (i,k) = makeString([h(i), k], a)
23+func j () = makeString(["%s%s", "deactivateManager"], a)
2424
2525
26-func l (i,k) = valueOrElse(getInteger(j(i, k)), 0)
26+func k () = makeString(["%s%s", "activateManager"], a)
2727
2828
29-func m () = makeString(["%s%s", "deactivateManager"], a)
29+func l (m) = makeString(["%s%s%s", "addAdmin", m], a)
3030
3131
32-func n (k) = makeString([m(), k], a)
32+func n (o) = makeString(["%s%s%s", "removeAdmin", o], a)
3333
3434
35-func o (k) = valueOrElse(getInteger(n(k)), 0)
35+func p (q) = makeString(["%s%s%s", "allowTxId", q], a)
3636
3737
38-func p () = makeString(["%s%s", "activateManager"], a)
38+func r () = makeString(["%s", "adminAddressList"], a)
3939
4040
41-func q (k) = makeString([p(), k], a)
41+func s () = makeString(["%s", "TXID"], a)
4242
4343
44-func r (k) = valueOrElse(getInteger(q(k)), 0)
44+func t (u,v) = {
45+ let w = makeString([u, v], a)
46+ valueOrElse(getInteger(w), 0)
47+ }
4548
4649
47-func s (t) = makeString(["%s%s%s", "addAdmin", t], a)
48-
49-
50-func u (t,k) = makeString([s(t), k], a)
51-
52-
53-func v (t,k) = valueOrElse(getInteger(u(t, k)), 0)
54-
55-
56-func w (x) = makeString(["%s%s%s", "removeAdmin", x], a)
57-
58-
59-func y (x,k) = makeString([w(x), k], a)
60-
61-
62-func z (x,k) = valueOrElse(getInteger(y(x, k)), 0)
63-
64-
65-func A () = makeString(["%s%s", "activateManager"], a)
66-
67-
68-func B (k) = makeString([A(), k], a)
69-
70-
71-func C (k) = valueOrElse(getInteger(B(k)), 0)
72-
73-
74-func D () = makeString(["%s", "adminAddressList"], a)
75-
76-
77-func E () = {
78- let F = getString(f())
79- if ($isInstanceOf(F, "String"))
50+func x () = {
51+ let y = getString(f())
52+ if ($isInstanceOf(y, "String"))
8053 then {
81- let d = F
54+ let d = y
8255 fromBase58String(d)
8356 }
84- else if ($isInstanceOf(F, "Unit"))
57+ else if ($isInstanceOf(y, "Unit"))
8558 then unit
8659 else throw("Match error")
8760 }
8861
8962
90-func G () = split(valueOrElse(getString(this, D()), ""), a)
63+func z () = split(valueOrElse(getString(this, r()), ""), a)
9164
9265
93-func H (I) = {
94- let F = indexOf(G(), I)
95- if ($isInstanceOf(F, "Int"))
66+func A (B) = {
67+ let y = indexOf(z(), B)
68+ if ($isInstanceOf(y, "Int"))
9669 then {
97- let J = F
70+ let C = y
9871 true
9972 }
10073 else false
10174 }
10275
10376
104-func K (L,M) = {
105- let N = L
106- let O = N._1
107- let P = N._2
108- $Tuple2((O :+ makeString([P, M], a)), P)
77+func D (E,F) = {
78+ let G = E
79+ let H = G._1
80+ let u = G._2
81+ $Tuple2((H :+ makeString([u, F], a)), u)
10982 }
11083
11184
112-func Q (R) = {
113- let S = D()
114- let T = G()
115- let U = size(T)
116- let V = $Tuple2(nil, R)
117- func W (X,Y) = if ((Y >= U))
118- then X
119- else K(X, T[Y])
85+func I (J) = {
86+ let K = r()
87+ let L = z()
88+ let M = size(L)
89+ let N = $Tuple2(nil, J)
90+ func O (P,Q) = if ((Q >= M))
91+ then P
92+ else D(P, L[Q])
12093
121- func Z (X,Y) = if ((Y >= U))
122- then X
94+ func R (P,Q) = if ((Q >= M))
95+ then P
12396 else throw("List size exceeds 10")
12497
125- Z(W(W(W(W(W(W(W(W(W(W(V, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
98+ R(O(O(O(O(O(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
12699 }
127100
128101
129-func aa (O,ab) = (O + valueOrElse(getInteger(ab), 0))
102+func S (H,w) = (H + valueOrElse(getInteger(w), 0))
130103
131104
132-func ac (P) = {
133- let ad = Q(P)._1
134- let T = ad
135- let U = size(T)
136- let V = 0
137- func W (X,Y) = if ((Y >= U))
138- then X
139- else aa(X, T[Y])
105+func T (u) = {
106+ let U = I(u)._1
107+ let L = U
108+ let M = size(L)
109+ let N = 0
110+ func O (P,Q) = if ((Q >= M))
111+ then P
112+ else S(P, L[Q])
140113
141- func Z (X,Y) = if ((Y >= U))
142- then X
114+ func R (P,Q) = if ((Q >= M))
115+ then P
143116 else throw("List size exceeds 10")
144117
145- Z(W(W(W(W(W(W(W(W(W(W(V, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
118+ R(O(O(O(O(O(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
146119 }
147120
148121
149-func ae (O,af) = (O :+ DeleteEntry(af))
122+func V (H,W) = (H :+ DeleteEntry(W))
150123
151124
152-func ag (P) = {
153- let ad = Q(P)._1
154- let T = ad
155- let U = size(T)
156- let V = nil
157- func W (X,Y) = if ((Y >= U))
158- then X
159- else ae(X, T[Y])
125+func X (u) = {
126+ let U = I(u)._1
127+ let L = U
128+ let M = size(L)
129+ let N = nil
130+ func O (P,Q) = if ((Q >= M))
131+ then P
132+ else V(P, L[Q])
160133
161- func Z (X,Y) = if ((Y >= U))
162- then X
134+ func R (P,Q) = if ((Q >= M))
135+ then P
163136 else throw("List size exceeds 10")
164137
165- Z(W(W(W(W(W(W(W(W(W(W(V, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
138+ R(O(O(O(O(O(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
166139 }
167140
168141
169-func ah (ai,aj,R,ak,al) = {
170- let ab = makeString([R, ai], a)
171- if (H(ai))
172- then if ((aj == 1))
173- then c((ab + " you already voted"))
142+func Y (Z,J,aa,ab) = {
143+ let w = makeString([J, Z], a)
144+ let ac = t(J, Z)
145+ if (A(Z))
146+ then if ((ac == 1))
147+ then c((w + " you already voted"))
174148 else {
175- let ad = ac(R)
176- if (((ad + 1) >= ak))
149+ let U = T(J)
150+ if (((U + 1) >= aa))
177151 then {
178- let am = ag(R)
179- (am ++ al)
152+ let ad = X(J)
153+ (ad ++ ab)
180154 }
181- else [IntegerEntry(ab, 1)]
155+ else [IntegerEntry(w, 1)]
182156 }
183- else c((("Address: " + ai) + " not in Admin list"))
157+ else c((("Address: " + Z) + " not in Admin list"))
184158 }
185159
186160
187-@Callable(an)
161+@Callable(ae)
188162 func confirmManager () = {
189- let ao = E()
190- let ap = if (isDefined(ao))
163+ let af = x()
164+ let ag = if (isDefined(af))
191165 then true
192166 else c("no pending manager")
193- if ((ap == ap))
167+ if ((ag == ag))
194168 then {
195- let aq = if ((an.callerPublicKey == value(ao)))
169+ let ah = if ((ae.callerPublicKey == value(af)))
196170 then true
197171 else c("you are not pending manager")
198- if ((aq == aq))
199- then [StringEntry(g(), toBase58String(value(ao)))]
172+ if ((ah == ah))
173+ then [StringEntry(g(), toBase58String(value(af)))]
200174 else throw("Strict value is not equal to itself.")
201175 }
202176 else throw("Strict value is not equal to itself.")
203177 }
204178
205179
206180
207-@Callable(an)
208-func voteForNewManger (ar) = {
209- let ai = toBase58String(an.caller.bytes)
210- let R = h(ar)
211- let aj = l(ar, ai)
212- let ak = 2
213- let O = [StringEntry(f(), ar)]
214- ah(ai, aj, R, ak, O)
181+@Callable(ae)
182+func voteForNewManger (ai) = {
183+ let Z = toBase58String(ae.caller.bytes)
184+ let J = h(ai)
185+ let aa = 2
186+ let H = [StringEntry(f(), ai)]
187+ Y(Z, J, aa, H)
215188 }
216189
217190
218191
219-@Callable(an)
192+@Callable(ae)
220193 func deactivateManager () = {
221- let ai = toBase58String(an.caller.bytes)
222- let R = m()
223- let aj = o(ai)
224- let ak = 1
225- let O = [StringEntry(e(), "disabled")]
226- ah(ai, aj, R, ak, O)
194+ let Z = toBase58String(ae.caller.bytes)
195+ let J = j()
196+ let aa = 1
197+ let H = [StringEntry(e(), "disabled")]
198+ Y(Z, J, aa, H)
227199 }
228200
229201
230202
231-@Callable(an)
203+@Callable(ae)
232204 func activateManager () = {
233- let ai = toBase58String(an.caller.bytes)
234- let R = p()
235- let aj = r(ai)
236- let ak = 2
237- let as = getStringValue(g())
238- let O = [StringEntry(e(), as)]
239- ah(ai, aj, R, ak, O)
205+ let Z = toBase58String(ae.caller.bytes)
206+ let J = k()
207+ let aa = 2
208+ let aj = getStringValue(g())
209+ let H = [StringEntry(e(), aj)]
210+ Y(Z, J, aa, H)
240211 }
241212
242213
243214
244-@Callable(an)
245-func addNewAdmin (at) = {
246- let ai = toBase58String(an.caller.bytes)
247- let R = s(at)
248- let aj = v(at, ai)
249- let ak = 2
250- let au = G()
251- let F = indexOf(au, at)
252- if ($isInstanceOf(F, "Int"))
215+@Callable(ae)
216+func addNewAdmin (ak) = {
217+ let Z = toBase58String(ae.caller.bytes)
218+ let J = l(ak)
219+ let aa = 2
220+ let al = z()
221+ let y = indexOf(al, ak)
222+ if ($isInstanceOf(y, "Int"))
253223 then {
254- let L = F
255- c((at + " already in Admin List"))
224+ let E = y
225+ c((ak + " already in Admin List"))
256226 }
257227 else {
258- let av = (au :+ at)
259- let O = [StringEntry(D(), makeString(av, a))]
260- ah(ai, aj, R, ak, O)
228+ let am = (al :+ ak)
229+ let H = [StringEntry(r(), makeString(am, a))]
230+ Y(Z, J, aa, H)
261231 }
262232 }
263233
264234
265235
266-@Callable(an)
267-func removeAdmin (x) = {
268- let ai = toBase58String(an.caller.bytes)
269- let R = w(x)
270- let aj = z(x, ai)
271- let ak = 2
272- let au = G()
273- let F = indexOf(au, x)
274- if ($isInstanceOf(F, "Int"))
236+@Callable(ae)
237+func removeAdmin (o) = {
238+ let Z = toBase58String(ae.caller.bytes)
239+ let J = n(o)
240+ let aa = 2
241+ let al = z()
242+ let y = indexOf(al, o)
243+ if ($isInstanceOf(y, "Int"))
275244 then {
276- let aw = F
277- let av = removeByIndex(au, aw)
278- let O = [StringEntry(D(), makeString(av, a))]
279- ah(ai, aj, R, ak, O)
245+ let an = y
246+ let am = removeByIndex(al, an)
247+ let H = [StringEntry(r(), makeString(am, a))]
248+ Y(Z, J, aa, H)
280249 }
281- else c((x + " not found in Admin List"))
250+ else c((o + " not found in Admin List"))
282251 }
283252
284253
285254
286-@Callable(an)
287-func unlockVarifier () = {
288- let ai = toBase58String(an.caller.bytes)
289- let R = p()
290- let aj = r(ai)
291- let ak = 2
292- let ax = getStringValue(f())
293- let O = [StringEntry(e(), ax)]
294- ah(ai, aj, R, ak, O)
255+@Callable(ae)
256+func voteForTxId (q) = {
257+ let Z = toBase58String(ae.caller.bytes)
258+ let J = p(q)
259+ let aa = 2
260+ let ao = getStringValue(f())
261+ let H = [StringEntry(s(), q)]
262+ Y(Z, J, aa, H)
295263 }
296264
297265

github/deemru/w8io/026f985 
64.66 ms