tx · 8KMye9wc9aMKWnBdwCK6AW3g7y8ErZnZwMD9X4jWdv2o

3N3rx13qetPJFaJJwbbMeVimaETxZP6rNw3:  -0.01200000 Waves

2023.04.24 19:23 [2548856] smart account 3N3rx13qetPJFaJJwbbMeVimaETxZP6rNw3 > SELF 0.00000000 Waves

{ "type": 13, "id": "8KMye9wc9aMKWnBdwCK6AW3g7y8ErZnZwMD9X4jWdv2o", "fee": 1200000, "feeAssetId": null, "timestamp": 1682353391196, "version": 2, "chainId": 84, "sender": "3N3rx13qetPJFaJJwbbMeVimaETxZP6rNw3", "senderPublicKey": "EvEJ1kVCPKNyzr5itfZvH4zMqP7vSCVggKZ37ipGhwWD", "proofs": [ "4wBv7wuURUFoN7DTcRXR4Kg4v7T9YHHfeJrbt7J29y82v6Rg6WYphP2FRX6u2ZFbZYKCSfkCDwHU2F2K9jeAKNTk" ], "script": "base64:BgIcCAISABIDCgEIEgASABIDCgEIEgMKAQgSAwoBCB4AA1NFUAICX18AEGNvbnRyYWN0RmlsZW5hbWUCEm1hbmFnZXJfdmF1bHQucmlkZQATTUFYX0FETUlOX0xJU1RfU0laRQAKABNNSU5fQURNSU5fTElTVF9TSVpFAAIAFEFERFJFU1NfQllURVNfTEVOR1RIABoAEVRYSURfQllURVNfTEVOR1RIACABCHRocm93RXJyAQFzCQACAQkArAICCQCsAgIFEGNvbnRyYWN0RmlsZW5hbWUCAjogBQFzARlrZXlBY3RpdmVNYW5hZ2VyUHVibGljS2V5AAkAuQkCCQDMCAICAiVzCQDMCAICEG1hbmFnZXJQdWJsaWNLZXkFA25pbAUDU0VQARprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAJALkJAgkAzAgCAgIlcwkAzAgCAhdwZW5kaW5nTWFuYWdlclB1YmxpY0tleQUDbmlsBQNTRVABGmtleUN1cnJlbnRNYW5hZ2VyUHVibGljS2V5AAkAuQkCCQDMCAICAiVzCQDMCAICF2N1cnJlbnRNYW5hZ2VyUHVibGljS2V5BQNuaWwFA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GlzdAFpAQt2b3RlRm9yVHhJZAEEdHhJZAQTY2FsbGVyQWRkcmVzc1N0cmluZwkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBAlrZXlQcmVmaXgJARhrZXlBbGxvd2VkVHhJZFZvdGVQcmVmaXgBBQR0eElkBAZxdW9ydW0AAgQGcmVzdWx0CQDMCAIJAQtTdHJpbmdFbnRyeQIJAQ5rZXlBbGxvd2VkVHhJZAAFBHR4SWQFA25pbAQDZXJyAwkBAiE9AgkAyAEBCQDZBAEFBHR4SWQFEVRYSURfQllURVNfTEVOR1RICQEIdGhyb3dFcnIBCQCsAgIFBHR4SWQCDyBub3QgdmFsaWQgdHhJZAUEdW5pdAMJAAACBQNlcnIFA2VycgkBDHZvdGVJTlRFUk5BTAQFE2NhbGxlckFkZHJlc3NTdHJpbmcFCWtleVByZWZpeAUGcXVvcnVtBQZyZXN1bHQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABAthbGxvd2VkVHhJZAkA2QQBCQERQGV4dHJOYXRpdmUoMTA1OCkBCQEOa2V5QWxsb3dlZFR4SWQABBBjdXJyZW50QWRtaW5MaXN0CQENZ2V0QWRtaW5zTGlzdAADCQBnAgkAkAMBBRBjdXJyZW50QWRtaW5MaXN0BRNNSU5fQURNSU5fTElTVF9TSVpFCQAAAggFAnR4AmlkBQthbGxvd2VkVHhJZAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleZNVFpc=", "height": 2548856, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7uE16LdQTRYndCnEGPrJ6hcASX6eBS6DB8Dt2hZMeVxq Next: none Diff:
OldNewDifferences
7171 }
7272
7373
74-func F () = split(valueOrElse(getString(this, y()), ""), a)
74+func F () = {
75+ let E = getString(this, y())
76+ if ($isInstanceOf(E, "String"))
77+ then {
78+ let h = E
79+ split(h, a)
80+ }
81+ else nil
82+ }
7583
7684
7785 func G (H) = containsElement(F(), H)
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
1010 let d = 2
1111
1212 let e = 26
1313
1414 let f = 32
1515
1616 func g (h) = throw(((b + ": ") + h))
1717
1818
1919 func i () = makeString(["%s", "managerPublicKey"], a)
2020
2121
2222 func j () = makeString(["%s", "pendingManagerPublicKey"], a)
2323
2424
2525 func k () = makeString(["%s", "currentManagerPublicKey"], a)
2626
2727
2828 func l (m) = makeString(["%s%s%s", "setManager", m], a)
2929
3030
3131 func n () = makeString(["%s%s", "deactivateManager"], a)
3232
3333
3434 func o () = makeString(["%s%s", "activateManager"], a)
3535
3636
3737 func p (q) = makeString(["%s%s%s", "addAdmin", q], a)
3838
3939
4040 func r (s) = makeString(["%s%s%s", "removeAdmin", s], a)
4141
4242
4343 func t (u) = makeString(["%s%s%s", "allowTxId", u], a)
4444
4545
4646 func v (w,x) = makeString([w, x], a)
4747
4848
4949 func y () = makeString(["%s", "adminAddressList"], a)
5050
5151
5252 func z () = makeString(["%s", "TXID"], a)
5353
5454
5555 func A (w,B) = {
5656 let C = v(w, B)
5757 valueOrElse(getInteger(C), 0)
5858 }
5959
6060
6161 func D () = {
6262 let E = getString(j())
6363 if ($isInstanceOf(E, "String"))
6464 then {
6565 let h = E
6666 fromBase58String(h)
6767 }
6868 else if ($isInstanceOf(E, "Unit"))
6969 then unit
7070 else throw("Match error")
7171 }
7272
7373
74-func F () = split(valueOrElse(getString(this, y()), ""), a)
74+func F () = {
75+ let E = getString(this, y())
76+ if ($isInstanceOf(E, "String"))
77+ then {
78+ let h = E
79+ split(h, a)
80+ }
81+ else nil
82+ }
7583
7684
7785 func G (H) = containsElement(F(), H)
7886
7987
8088 func I (J,x) = {
8189 let K = J
8290 let L = K._1
8391 let w = K._2
8492 $Tuple2((L :+ v(w, x)), w)
8593 }
8694
8795
8896 func M (N) = {
8997 let O = y()
9098 let P = F()
9199 let Q = size(P)
92100 let R = $Tuple2(nil, N)
93101 func S (T,U) = if ((U >= Q))
94102 then T
95103 else I(T, P[U])
96104
97105 func V (T,U) = if ((U >= Q))
98106 then T
99107 else throw("List size exceeds 20")
100108
101109 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)
102110 }
103111
104112
105113 func W (L,C) = (L + valueOrElse(getInteger(C), 0))
106114
107115
108116 func X (w) = {
109117 let Y = M(w)._1
110118 let P = Y
111119 let Q = size(P)
112120 let R = 0
113121 func S (T,U) = if ((U >= Q))
114122 then T
115123 else W(T, P[U])
116124
117125 func V (T,U) = if ((U >= Q))
118126 then T
119127 else throw("List size exceeds 20")
120128
121129 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)
122130 }
123131
124132
125133 func Z (L,aa) = (L :+ DeleteEntry(aa))
126134
127135
128136 func ab (w) = {
129137 let Y = M(w)._1
130138 let P = Y
131139 let Q = size(P)
132140 let R = nil
133141 func S (T,U) = if ((U >= Q))
134142 then T
135143 else Z(T, P[U])
136144
137145 func V (T,U) = if ((U >= Q))
138146 then T
139147 else throw("List size exceeds 20")
140148
141149 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)
142150 }
143151
144152
145153 func ac (ad,N,ae,af) = {
146154 let C = v(N, ad)
147155 let ag = A(N, ad)
148156 let ah = if (!(G(ad)))
149157 then g((("Address: " + ad) + " not in Admin list"))
150158 else if ((ag == 1))
151159 then g((C + " you already voted"))
152160 else unit
153161 if ((ah == ah))
154162 then {
155163 let Y = X(N)
156164 if (((Y + 1) >= ae))
157165 then {
158166 let ai = ab(N)
159167 (ai ++ af)
160168 }
161169 else [IntegerEntry(C, 1)]
162170 }
163171 else throw("Strict value is not equal to itself.")
164172 }
165173
166174
167175 @Callable(aj)
168176 func confirmManager () = {
169177 let ak = D()
170178 let al = if (isDefined(ak))
171179 then true
172180 else g("no pending manager")
173181 if ((al == al))
174182 then {
175183 let am = if ((aj.callerPublicKey == value(ak)))
176184 then true
177185 else g("you are not pending manager")
178186 if ((am == am))
179187 then [StringEntry(k(), toBase58String(value(ak))), StringEntry(i(), toBase58String(value(ak))), DeleteEntry(j())]
180188 else throw("Strict value is not equal to itself.")
181189 }
182190 else throw("Strict value is not equal to itself.")
183191 }
184192
185193
186194
187195 @Callable(aj)
188196 func voteForNewManager (an) = {
189197 let ad = toBase58String(aj.caller.bytes)
190198 let N = l(an)
191199 let ao = 2
192200 let L = [StringEntry(j(), an)]
193201 ac(ad, N, ao, L)
194202 }
195203
196204
197205
198206 @Callable(aj)
199207 func deactivateManager () = {
200208 let ad = toBase58String(aj.caller.bytes)
201209 let N = n()
202210 let ao = 1
203211 let L = [StringEntry(i(), "disabled")]
204212 ac(ad, N, ao, L)
205213 }
206214
207215
208216
209217 @Callable(aj)
210218 func activateManager () = {
211219 let ad = toBase58String(aj.caller.bytes)
212220 let N = o()
213221 let ao = 2
214222 let ap = getStringValue(k())
215223 let L = [StringEntry(i(), ap)]
216224 ac(ad, N, ao, L)
217225 }
218226
219227
220228
221229 @Callable(aj)
222230 func addNewAdmin (aq) = {
223231 let ad = toBase58String(aj.caller.bytes)
224232 let N = p(aq)
225233 let ao = 2
226234 let ar = F()
227235 let ah = if ((size(ar) >= c))
228236 then g((("MAX_ADMIN_LIST_SIZE (" + toString(c)) + ") is exceeded"))
229237 else if ((size(fromBase58String(aq)) != e))
230238 then g((aq + " is not valid Address"))
231239 else unit
232240 if ((ah == ah))
233241 then {
234242 let E = indexOf(ar, aq)
235243 if ($isInstanceOf(E, "Int"))
236244 then {
237245 let J = E
238246 g((aq + " already in Admin List"))
239247 }
240248 else {
241249 let as = (ar :+ aq)
242250 let L = [StringEntry(y(), makeString(as, a))]
243251 ac(ad, N, ao, L)
244252 }
245253 }
246254 else throw("Strict value is not equal to itself.")
247255 }
248256
249257
250258
251259 @Callable(aj)
252260 func removeAdmin (s) = {
253261 let ad = toBase58String(aj.caller.bytes)
254262 let N = r(s)
255263 let ao = 2
256264 let ar = F()
257265 let E = indexOf(ar, s)
258266 if ($isInstanceOf(E, "Int"))
259267 then {
260268 let at = E
261269 let as = removeByIndex(ar, at)
262270 let L = [StringEntry(y(), makeString(as, a))]
263271 ac(ad, N, ao, L)
264272 }
265273 else g((s + " not found in Admin List"))
266274 }
267275
268276
269277
270278 @Callable(aj)
271279 func voteForTxId (u) = {
272280 let ad = toBase58String(aj.caller.bytes)
273281 let N = t(u)
274282 let ao = 2
275283 let L = [StringEntry(z(), u)]
276284 let ah = if ((size(fromBase58String(u)) != f))
277285 then g((u + " not valid txId"))
278286 else unit
279287 if ((ah == ah))
280288 then ac(ad, N, ao, L)
281289 else throw("Strict value is not equal to itself.")
282290 }
283291
284292
285293 @Verifier(au)
286294 func av () = {
287295 let aw = fromBase58String(getStringValue(z()))
288296 let ar = F()
289297 if ((size(ar) >= d))
290298 then (au.id == aw)
291299 else sigVerify(au.bodyBytes, au.proofs[0], au.senderPublicKey)
292300 }
293301

github/deemru/w8io/fabc49c 
38.60 ms