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