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:BgIcCAISABIDCgEIEgASABIDCgEIEgMKAQgSAwoBCB4AA1NFUAICX18AEGNvbnRyYWN0RmlsZW5hbWUCEm1hbmFnZXJfdmF1bHQucmlkZQATTUFYX0FETUlOX0xJU1RfU0laRQAKABNNSU5fQURNSU5fTElTVF9TSVpFAAIAFEFERFJFU1NfQllURVNfTEVOR1RIABoAEVRYSURfQllURVNfTEVOR1RIACABCHRocm93RXJyAQFzCQACAQkArAICCQCsAgIFEGNvbnRyYWN0RmlsZW5hbWUCAjogBQFzARlrZXlBY3RpdmVNYW5hZ2VyUHVibGljS2V5AAkAuQkCCQDMCAICAiVzCQDMCAICEG1hbmFnZXJQdWJsaWNLZXkFA25pbAUDU0VQARprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAJALkJAgkAzAgCAgIlcwkAzAgCAhdwZW5kaW5nTWFuYWdlclB1YmxpY0tleQUDbmlsBQNTRVABGmtleUN1cnJlbnRNYW5hZ2VyUHVibGljS2V5AAkAuQkCCQDMCAICAiVzCQDMCAICF2N1cnJlbnRNYW5hZ2VyUHVibGljS2V5BQNuaWwFA1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lzdAFpAQt2b3RlRm9yVHhJZAEEdHhJZAQTY2FsbGVyQWRkcmVzc1N0cmluZwkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBAlrZXlQcmVmaXgJARhrZXlBbGxvd2VkVHhJZFZvdGVQcmVmaXgBBQR0eElkBAZxdW9ydW0AAgQGcmVzdWx0CQDMCAIJAQtTdHJpbmdFbnRyeQIJAQ5rZXlBbGxvd2VkVHhJZAAFBHR4SWQFA25pbAQDZXJyAwkBAiE9AgkAyAEBCQDZBAEFBHR4SWQFEVRYSURfQllURVNfTEVOR1RICQEIdGhyb3dFcnIBCQCsAgIFBHR4SWQCDyBub3QgdmFsaWQgdHhJZAUEdW5pdAMJAAACBQNlcnIFA2VycgkBDHZvdGVJTlRFUk5BTAQFE2NhbGxlckFkZHJlc3NTdHJpbmcFCWtleVByZWZpeAUGcXVvcnVtBQZyZXN1bHQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABAthbGxvd2VkVHhJZAkA2QQBCQERQGV4dHJOYXRpdmUoMTA1OCkBCQEOa2V5QWxsb3dlZFR4SWQABBBjdXJyZW50QWRtaW5MaXN0CQENZ2V0QWRtaW5zTGlzdAADCQBnAgkAkAMBBRBjdXJyZW50QWRtaW5MaXN0BRNNSU5fQURNSU5fTElTVF9TSVpFCQAAAggFAnR4AmlkBQthbGxvd2VkVHhJZAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleZNVFpc=", "height": 2548856, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7uE16LdQTRYndCnEGPrJ6hcASX6eBS6DB8Dt2hZMeVxq Next: none Diff:
Old | New | Differences | |
---|---|---|---|
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
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 | + | } | |
75 | 83 | ||
76 | 84 | ||
77 | 85 | func G (H) = containsElement(F(), H) |
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 = "manager_vault.ride" | |
7 | 7 | ||
8 | 8 | let c = 10 | |
9 | 9 | ||
10 | 10 | let d = 2 | |
11 | 11 | ||
12 | 12 | let e = 26 | |
13 | 13 | ||
14 | 14 | let f = 32 | |
15 | 15 | ||
16 | 16 | func g (h) = throw(((b + ": ") + h)) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i () = makeString(["%s", "managerPublicKey"], a) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func j () = makeString(["%s", "pendingManagerPublicKey"], a) | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func k () = makeString(["%s", "currentManagerPublicKey"], a) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func l (m) = makeString(["%s%s%s", "setManager", m], a) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func n () = makeString(["%s%s", "deactivateManager"], a) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func o () = makeString(["%s%s", "activateManager"], a) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func p (q) = makeString(["%s%s%s", "addAdmin", q], a) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func r (s) = makeString(["%s%s%s", "removeAdmin", s], a) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func t (u) = makeString(["%s%s%s", "allowTxId", u], a) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func v (w,x) = makeString([w, x], a) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func y () = makeString(["%s", "adminAddressList"], a) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func z () = makeString(["%s", "TXID"], a) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func A (w,B) = { | |
56 | 56 | let C = v(w, B) | |
57 | 57 | valueOrElse(getInteger(C), 0) | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func D () = { | |
62 | 62 | let E = getString(j()) | |
63 | 63 | if ($isInstanceOf(E, "String")) | |
64 | 64 | then { | |
65 | 65 | let h = E | |
66 | 66 | fromBase58String(h) | |
67 | 67 | } | |
68 | 68 | else if ($isInstanceOf(E, "Unit")) | |
69 | 69 | then unit | |
70 | 70 | else throw("Match error") | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
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 | + | } | |
75 | 83 | ||
76 | 84 | ||
77 | 85 | func G (H) = containsElement(F(), H) | |
78 | 86 | ||
79 | 87 | ||
80 | 88 | func I (J,x) = { | |
81 | 89 | let K = J | |
82 | 90 | let L = K._1 | |
83 | 91 | let w = K._2 | |
84 | 92 | $Tuple2((L :+ v(w, x)), w) | |
85 | 93 | } | |
86 | 94 | ||
87 | 95 | ||
88 | 96 | func M (N) = { | |
89 | 97 | let O = y() | |
90 | 98 | let P = F() | |
91 | 99 | let Q = size(P) | |
92 | 100 | let R = $Tuple2(nil, N) | |
93 | 101 | func S (T,U) = if ((U >= Q)) | |
94 | 102 | then T | |
95 | 103 | else I(T, P[U]) | |
96 | 104 | ||
97 | 105 | func V (T,U) = if ((U >= Q)) | |
98 | 106 | then T | |
99 | 107 | else throw("List size exceeds 20") | |
100 | 108 | ||
101 | 109 | 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) | |
102 | 110 | } | |
103 | 111 | ||
104 | 112 | ||
105 | 113 | func W (L,C) = (L + valueOrElse(getInteger(C), 0)) | |
106 | 114 | ||
107 | 115 | ||
108 | 116 | func X (w) = { | |
109 | 117 | let Y = M(w)._1 | |
110 | 118 | let P = Y | |
111 | 119 | let Q = size(P) | |
112 | 120 | let R = 0 | |
113 | 121 | func S (T,U) = if ((U >= Q)) | |
114 | 122 | then T | |
115 | 123 | else W(T, P[U]) | |
116 | 124 | ||
117 | 125 | func V (T,U) = if ((U >= Q)) | |
118 | 126 | then T | |
119 | 127 | else throw("List size exceeds 20") | |
120 | 128 | ||
121 | 129 | 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) | |
122 | 130 | } | |
123 | 131 | ||
124 | 132 | ||
125 | 133 | func Z (L,aa) = (L :+ DeleteEntry(aa)) | |
126 | 134 | ||
127 | 135 | ||
128 | 136 | func ab (w) = { | |
129 | 137 | let Y = M(w)._1 | |
130 | 138 | let P = Y | |
131 | 139 | let Q = size(P) | |
132 | 140 | let R = nil | |
133 | 141 | func S (T,U) = if ((U >= Q)) | |
134 | 142 | then T | |
135 | 143 | else Z(T, P[U]) | |
136 | 144 | ||
137 | 145 | func V (T,U) = if ((U >= Q)) | |
138 | 146 | then T | |
139 | 147 | else throw("List size exceeds 20") | |
140 | 148 | ||
141 | 149 | 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) | |
142 | 150 | } | |
143 | 151 | ||
144 | 152 | ||
145 | 153 | func ac (ad,N,ae,af) = { | |
146 | 154 | let C = v(N, ad) | |
147 | 155 | let ag = A(N, ad) | |
148 | 156 | let ah = if (!(G(ad))) | |
149 | 157 | then g((("Address: " + ad) + " not in Admin list")) | |
150 | 158 | else if ((ag == 1)) | |
151 | 159 | then g((C + " you already voted")) | |
152 | 160 | else unit | |
153 | 161 | if ((ah == ah)) | |
154 | 162 | then { | |
155 | 163 | let Y = X(N) | |
156 | 164 | if (((Y + 1) >= ae)) | |
157 | 165 | then { | |
158 | 166 | let ai = ab(N) | |
159 | 167 | (ai ++ af) | |
160 | 168 | } | |
161 | 169 | else [IntegerEntry(C, 1)] | |
162 | 170 | } | |
163 | 171 | else throw("Strict value is not equal to itself.") | |
164 | 172 | } | |
165 | 173 | ||
166 | 174 | ||
167 | 175 | @Callable(aj) | |
168 | 176 | func confirmManager () = { | |
169 | 177 | let ak = D() | |
170 | 178 | let al = if (isDefined(ak)) | |
171 | 179 | then true | |
172 | 180 | else g("no pending manager") | |
173 | 181 | if ((al == al)) | |
174 | 182 | then { | |
175 | 183 | let am = if ((aj.callerPublicKey == value(ak))) | |
176 | 184 | then true | |
177 | 185 | else g("you are not pending manager") | |
178 | 186 | if ((am == am)) | |
179 | 187 | then [StringEntry(k(), toBase58String(value(ak))), StringEntry(i(), toBase58String(value(ak))), DeleteEntry(j())] | |
180 | 188 | else throw("Strict value is not equal to itself.") | |
181 | 189 | } | |
182 | 190 | else throw("Strict value is not equal to itself.") | |
183 | 191 | } | |
184 | 192 | ||
185 | 193 | ||
186 | 194 | ||
187 | 195 | @Callable(aj) | |
188 | 196 | func voteForNewManager (an) = { | |
189 | 197 | let ad = toBase58String(aj.caller.bytes) | |
190 | 198 | let N = l(an) | |
191 | 199 | let ao = 2 | |
192 | 200 | let L = [StringEntry(j(), an)] | |
193 | 201 | ac(ad, N, ao, L) | |
194 | 202 | } | |
195 | 203 | ||
196 | 204 | ||
197 | 205 | ||
198 | 206 | @Callable(aj) | |
199 | 207 | func deactivateManager () = { | |
200 | 208 | let ad = toBase58String(aj.caller.bytes) | |
201 | 209 | let N = n() | |
202 | 210 | let ao = 1 | |
203 | 211 | let L = [StringEntry(i(), "disabled")] | |
204 | 212 | ac(ad, N, ao, L) | |
205 | 213 | } | |
206 | 214 | ||
207 | 215 | ||
208 | 216 | ||
209 | 217 | @Callable(aj) | |
210 | 218 | func activateManager () = { | |
211 | 219 | let ad = toBase58String(aj.caller.bytes) | |
212 | 220 | let N = o() | |
213 | 221 | let ao = 2 | |
214 | 222 | let ap = getStringValue(k()) | |
215 | 223 | let L = [StringEntry(i(), ap)] | |
216 | 224 | ac(ad, N, ao, L) | |
217 | 225 | } | |
218 | 226 | ||
219 | 227 | ||
220 | 228 | ||
221 | 229 | @Callable(aj) | |
222 | 230 | func addNewAdmin (aq) = { | |
223 | 231 | let ad = toBase58String(aj.caller.bytes) | |
224 | 232 | let N = p(aq) | |
225 | 233 | let ao = 2 | |
226 | 234 | let ar = F() | |
227 | 235 | let ah = if ((size(ar) >= c)) | |
228 | 236 | then g((("MAX_ADMIN_LIST_SIZE (" + toString(c)) + ") is exceeded")) | |
229 | 237 | else if ((size(fromBase58String(aq)) != e)) | |
230 | 238 | then g((aq + " is not valid Address")) | |
231 | 239 | else unit | |
232 | 240 | if ((ah == ah)) | |
233 | 241 | then { | |
234 | 242 | let E = indexOf(ar, aq) | |
235 | 243 | if ($isInstanceOf(E, "Int")) | |
236 | 244 | then { | |
237 | 245 | let J = E | |
238 | 246 | g((aq + " already in Admin List")) | |
239 | 247 | } | |
240 | 248 | else { | |
241 | 249 | let as = (ar :+ aq) | |
242 | 250 | let L = [StringEntry(y(), makeString(as, a))] | |
243 | 251 | ac(ad, N, ao, L) | |
244 | 252 | } | |
245 | 253 | } | |
246 | 254 | else throw("Strict value is not equal to itself.") | |
247 | 255 | } | |
248 | 256 | ||
249 | 257 | ||
250 | 258 | ||
251 | 259 | @Callable(aj) | |
252 | 260 | func removeAdmin (s) = { | |
253 | 261 | let ad = toBase58String(aj.caller.bytes) | |
254 | 262 | let N = r(s) | |
255 | 263 | let ao = 2 | |
256 | 264 | let ar = F() | |
257 | 265 | let E = indexOf(ar, s) | |
258 | 266 | if ($isInstanceOf(E, "Int")) | |
259 | 267 | then { | |
260 | 268 | let at = E | |
261 | 269 | let as = removeByIndex(ar, at) | |
262 | 270 | let L = [StringEntry(y(), makeString(as, a))] | |
263 | 271 | ac(ad, N, ao, L) | |
264 | 272 | } | |
265 | 273 | else g((s + " not found in Admin List")) | |
266 | 274 | } | |
267 | 275 | ||
268 | 276 | ||
269 | 277 | ||
270 | 278 | @Callable(aj) | |
271 | 279 | func voteForTxId (u) = { | |
272 | 280 | let ad = toBase58String(aj.caller.bytes) | |
273 | 281 | let N = t(u) | |
274 | 282 | let ao = 2 | |
275 | 283 | let L = [StringEntry(z(), u)] | |
276 | 284 | let ah = if ((size(fromBase58String(u)) != f)) | |
277 | 285 | then g((u + " not valid txId")) | |
278 | 286 | else unit | |
279 | 287 | if ((ah == ah)) | |
280 | 288 | then ac(ad, N, ao, L) | |
281 | 289 | else throw("Strict value is not equal to itself.") | |
282 | 290 | } | |
283 | 291 | ||
284 | 292 | ||
285 | 293 | @Verifier(au) | |
286 | 294 | func av () = { | |
287 | 295 | let aw = fromBase58String(getStringValue(z())) | |
288 | 296 | let ar = F() | |
289 | 297 | if ((size(ar) >= d)) | |
290 | 298 | then (au.id == aw) | |
291 | 299 | else sigVerify(au.bodyBytes, au.proofs[0], au.senderPublicKey) | |
292 | 300 | } | |
293 | 301 |
github/deemru/w8io/fabc49c 38.60 ms ◑