tx · 4e9cB1djkmziMs3DjQ2dypH3YCvNrXtjWbwAA1eggF29

3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh:  -0.01000000 Waves

2023.04.19 10:03 [2541120] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves

{ "type": 13, "id": "4e9cB1djkmziMs3DjQ2dypH3YCvNrXtjWbwAA1eggF29", "fee": 1000000, "feeAssetId": null, "timestamp": 1681887893396, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "2ZBVvyP4fkBHFuwRbMJNV51PBDQJwv7VMY1W5WmwmiW3fveUh3KfT97NQpRwB5tYTqgiBLxzXkmUJwbAvuKjLEkd" ], "script": "base64:BgINCAISABIDCgEIEgASABkAA1NFUAICX18AEGNvbnRyYWN0RmlsZW5hbWUCEm1hbmFnZXJfdmF1bHQucmlkZQEIdGhyb3dFcnIBAXMJAAIBCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBGWtleUFjdGl2ZU1hbmFnZXJQdWJsaWNLZXkACQC5CQIJAMwIAgICJXMJAMwIAgIQbWFuYWdlclB1YmxpY0tleQUDbmlsBQNTRVABGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAkAuQkCCQDMCAICAiVzCQDMCAICF3BlbmRpbmdNYW5hZ2VyUHVibGljS2V5BQNuaWwFA1NFUAEaa2V5U2V0TmV3TWFuYWdlclZvdGVQcmVmaXgBEG1hbmFnZXJQdWJsaWNLZXkJALkJAgkAzAgCAgYlcyVzJXMJAMwIAgIKc2V0TWFuYWdlcgkAzAgCBRBtYW5hZ2VyUHVibGljS2V5BQNuaWwFA1NFUAEUa2V5U2V0TmV3TWFuYWdlclZvdGUCEG1hbmFnZXJQdWJsaWNLZXkFYWRtaW4JALkJAgkAzAgCCQ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dGVNYW5hZ2VyVm90ZQEFE2NhbGxlckFkZHJlc3NTdHJpbmcECG1pblZvdGVzAAEEBnJlc3VsdAkAzAgCCQELRGVsZXRlRW50cnkBCQEZa2V5QWN0aXZlTWFuYWdlclB1YmxpY0tleQAFA25pbAkBDHZvdGVJTlRFUk5BTAUFE2NhbGxlckFkZHJlc3NTdHJpbmcFEGFkbWluQ3VycmVudFZvdGUFCWtleVByZWZpeAUIbWluVm90ZXMFBnJlc3VsdAFpAQ9hY3RpdmF0ZU1hbmFnZXIABBNjYWxsZXJBZGRyZXNzU3RyaW5nCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMECWtleVByZWZpeAkBHGtleUFjdGl2YXRlTWFuYWdlclZvdGVQcmVmaXgABBBhZG1pbkN1cnJlbnRWb3RlCQEWZ2V0QWN0aXZhdGVNYW5hZ2VyVm90ZQEFE2NhbGxlckFkZHJlc3NTdHJpbmcECG1pblZvdGVzAAIEFHBlbmRpbmdNYW5hZ2VyU3RyaW5nCQERQGV4dHJOYXRpdmUoMTA1OCkBCQEaa2V5UGVuZGluZ01hbmFnZXJQdWJsaWNLZXkABAZyZXN1bHQJAMwIAgkBC1N0cmluZ0VudHJ5AgkBGWtleUFjdGl2ZU1hbmFnZXJQdWJsaWNLZXkABRRwZW5kaW5nTWFuYWdlclN0cmluZwUDbmlsCQEMdm90ZUlOVEVSTkFMBQUTY2FsbGVyQWRkcmVzc1N0cmluZwUQYWRtaW5DdXJyZW50Vm90ZQUJa2V5UHJlZml4BQhtaW5Wb3RlcwUGcmVzdWx0AKSrpDs=", "height": 2541120, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CbYhGEjzPX1JjdCuyLLsou7jLwXwBGooHPFCbrykkgar Next: AuvzskD8MwFkKqx5bFQTZaNAUMMDWoN3veyxzVpJpS9o Diff:
OldNewDifferences
177177 @Callable(ab)
178178 func voteForNewManger (af) = {
179179 let W = toBase58String(ab.caller.bytes)
180- if (v(W))
181- then if ((k(af, W) == 1))
182- then c((((("Address: " + W) + " NewManager: ") + af) + " voteForNewManger() you already voted"))
183- else {
184- let R = Q(g(af))
185- if (((R + 1) >= 2))
186- then {
187- let aa = U(g(af))
188- (aa ++ [StringEntry(f(), af)])
189- }
190- else [IntegerEntry(i(af, W), 1)]
191- }
192- else c((("Address: " + W) + " not in Admin list"))
193- }
194-
195-
196-
197-@Callable(ab)
198-func voteForNewManager2 (af) = {
199- let W = toBase58String(ab.caller.bytes)
200180 let F = g(af)
201181 let X = k(af, W)
202182 let Y = 2
209189 @Callable(ab)
210190 func deactivateManager () = {
211191 let W = toBase58String(ab.caller.bytes)
212- if (v(W))
213- then if ((n(W) == 1))
214- then c((("Address: " + W) + " deactivateManager() you already voted"))
215- else {
216- let R = Q(l())
217- if (((R + 1) >= 1))
218- then {
219- let aa = U(l())
220- (aa ++ [DeleteEntry(e())])
221- }
222- else [IntegerEntry(m(W), 1)]
223- }
224- else c((("Address: " + W) + " not in Admin list"))
192+ let F = l()
193+ let X = n(W)
194+ let Y = 1
195+ let C = [DeleteEntry(e())]
196+ V(W, X, F, Y, C)
225197 }
226198
227199
229201 @Callable(ab)
230202 func activateManager () = {
231203 let W = toBase58String(ab.caller.bytes)
204+ let F = o()
205+ let X = q(W)
206+ let Y = 2
232207 let ag = getStringValue(f())
233- if (v(W))
234- then if ((q(W) == 1))
235- then c((("Address: " + W) + " activateManager() you already voted"))
236- else {
237- let R = Q(o())
238- if (((R + 1) >= 2))
239- then {
240- let aa = U(o())
241- (aa ++ [StringEntry(e(), ag)])
242- }
243- else [IntegerEntry(p(W), 1)]
244- }
245- else c((("Address: " + W) + " not in Admin list"))
208+ let C = [StringEntry(e(), ag)]
209+ V(W, X, F, Y, C)
246210 }
247211
248212
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 (h) = makeString(["%s%s%s", "setManager", h], a)
1818
1919
2020 func i (h,j) = makeString([g(h), j], a)
2121
2222
2323 func k (h,j) = valueOrElse(getInteger(i(h, j)), 0)
2424
2525
2626 func l () = makeString(["%s%s", "deactivateManager"], a)
2727
2828
2929 func m (j) = makeString([l(), j], a)
3030
3131
3232 func n (j) = valueOrElse(getInteger(m(j)), 0)
3333
3434
3535 func o () = makeString(["%s%s", "activateManager"], a)
3636
3737
3838 func p (j) = makeString([o(), j], a)
3939
4040
4141 func q (j) = valueOrElse(getInteger(p(j)), 0)
4242
4343
4444 func r () = makeString(["%s", "adminAddressList"], a)
4545
4646
4747 func s () = {
4848 let t = getString(f())
4949 if ($isInstanceOf(t, "String"))
5050 then {
5151 let d = t
5252 fromBase58String(d)
5353 }
5454 else if ($isInstanceOf(t, "Unit"))
5555 then unit
5656 else throw("Match error")
5757 }
5858
5959
6060 func u () = split(valueOrElse(getString(this, r()), ""), a)
6161
6262
6363 func v (w) = {
6464 let t = indexOf(u(), w)
6565 if ($isInstanceOf(t, "Int"))
6666 then {
6767 let x = t
6868 true
6969 }
7070 else false
7171 }
7272
7373
7474 func y (z,A) = {
7575 let B = z
7676 let C = B._1
7777 let D = B._2
7878 $Tuple2((C :+ makeString([D, A], a)), D)
7979 }
8080
8181
8282 func E (F) = {
8383 let G = r()
8484 let H = u()
8585 let I = size(H)
8686 let J = $Tuple2(nil, F)
8787 func K (L,M) = if ((M >= I))
8888 then L
8989 else y(L, H[M])
9090
9191 func N (L,M) = if ((M >= I))
9292 then L
9393 else throw("List size exceeds 10")
9494
9595 N(K(K(K(K(K(K(K(K(K(K(J, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
9696 }
9797
9898
9999 func O (C,P) = (C + valueOrElse(getInteger(P), 0))
100100
101101
102102 func Q (D) = {
103103 let R = E(D)._1
104104 let H = R
105105 let I = size(H)
106106 let J = 0
107107 func K (L,M) = if ((M >= I))
108108 then L
109109 else O(L, H[M])
110110
111111 func N (L,M) = if ((M >= I))
112112 then L
113113 else throw("List size exceeds 10")
114114
115115 N(K(K(K(K(K(K(K(K(K(K(J, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
116116 }
117117
118118
119119 func S (C,T) = (C :+ DeleteEntry(T))
120120
121121
122122 func U (D) = {
123123 let R = E(D)._1
124124 let H = R
125125 let I = size(H)
126126 let J = nil
127127 func K (L,M) = if ((M >= I))
128128 then L
129129 else S(L, H[M])
130130
131131 func N (L,M) = if ((M >= I))
132132 then L
133133 else throw("List size exceeds 10")
134134
135135 N(K(K(K(K(K(K(K(K(K(K(J, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
136136 }
137137
138138
139139 func V (W,X,F,Y,Z) = {
140140 let P = makeString([F, W], a)
141141 if (v(W))
142142 then if ((X == 1))
143143 then c((P + " you already voted"))
144144 else {
145145 let R = Q(F)
146146 if (((R + 1) >= Y))
147147 then {
148148 let aa = U(F)
149149 (aa ++ Z)
150150 }
151151 else [IntegerEntry(P, 1)]
152152 }
153153 else c((("Address: " + W) + " not in Admin list"))
154154 }
155155
156156
157157 @Callable(ab)
158158 func confirmManager () = {
159159 let ac = s()
160160 let ad = if (isDefined(ac))
161161 then true
162162 else c("no pending manager")
163163 if ((ad == ad))
164164 then {
165165 let ae = if ((ab.callerPublicKey == value(ac)))
166166 then true
167167 else c("you are not pending manager")
168168 if ((ae == ae))
169169 then [StringEntry(e(), toBase58String(value(ac)))]
170170 else throw("Strict value is not equal to itself.")
171171 }
172172 else throw("Strict value is not equal to itself.")
173173 }
174174
175175
176176
177177 @Callable(ab)
178178 func voteForNewManger (af) = {
179179 let W = toBase58String(ab.caller.bytes)
180- if (v(W))
181- then if ((k(af, W) == 1))
182- then c((((("Address: " + W) + " NewManager: ") + af) + " voteForNewManger() you already voted"))
183- else {
184- let R = Q(g(af))
185- if (((R + 1) >= 2))
186- then {
187- let aa = U(g(af))
188- (aa ++ [StringEntry(f(), af)])
189- }
190- else [IntegerEntry(i(af, W), 1)]
191- }
192- else c((("Address: " + W) + " not in Admin list"))
193- }
194-
195-
196-
197-@Callable(ab)
198-func voteForNewManager2 (af) = {
199- let W = toBase58String(ab.caller.bytes)
200180 let F = g(af)
201181 let X = k(af, W)
202182 let Y = 2
203183 let C = [StringEntry(f(), af)]
204184 V(W, X, F, Y, C)
205185 }
206186
207187
208188
209189 @Callable(ab)
210190 func deactivateManager () = {
211191 let W = toBase58String(ab.caller.bytes)
212- if (v(W))
213- then if ((n(W) == 1))
214- then c((("Address: " + W) + " deactivateManager() you already voted"))
215- else {
216- let R = Q(l())
217- if (((R + 1) >= 1))
218- then {
219- let aa = U(l())
220- (aa ++ [DeleteEntry(e())])
221- }
222- else [IntegerEntry(m(W), 1)]
223- }
224- else c((("Address: " + W) + " not in Admin list"))
192+ let F = l()
193+ let X = n(W)
194+ let Y = 1
195+ let C = [DeleteEntry(e())]
196+ V(W, X, F, Y, C)
225197 }
226198
227199
228200
229201 @Callable(ab)
230202 func activateManager () = {
231203 let W = toBase58String(ab.caller.bytes)
204+ let F = o()
205+ let X = q(W)
206+ let Y = 2
232207 let ag = getStringValue(f())
233- if (v(W))
234- then if ((q(W) == 1))
235- then c((("Address: " + W) + " activateManager() you already voted"))
236- else {
237- let R = Q(o())
238- if (((R + 1) >= 2))
239- then {
240- let aa = U(o())
241- (aa ++ [StringEntry(e(), ag)])
242- }
243- else [IntegerEntry(p(W), 1)]
244- }
245- else c((("Address: " + W) + " not in Admin list"))
208+ let C = [StringEntry(e(), ag)]
209+ V(W, X, F, Y, C)
246210 }
247211
248212

github/deemru/w8io/169f3d6 
63.58 ms