tx · 7NQzxXX6wEahkfqiLDiRaoqWAfoWkTyeH28MxhdNizHL 3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr: -0.01400000 Waves 2022.04.22 13:08 [2019578] smart account 3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr > SELF 0.00000000 Waves
{ "type": 13, "id": "7NQzxXX6wEahkfqiLDiRaoqWAfoWkTyeH28MxhdNizHL", "fee": 1400000, "feeAssetId": null, "timestamp": 1650622150091, "version": 1, "sender": "3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr", "senderPublicKey": "EtZZHS4uqNXY5WPneZ8jY2aA95peXwthJVLzAMxMp379", "proofs": [ "3vPUUtMLB3DqVcjNnH88zL7TcdNKhJxyFvVKvPjdUU1SkgdhmJwPpoNLhVKneyk3jGrz3JuEVFxmdY1ZTR8yTWxF" ], "script": "base64:AAIFAAAAAAAAAF4IAhIECgIIGBIFCgMICAgSAwoBCBIDCgEIEgMKAQgSBAoCCAgSBAoCCAgSBAoCCAgSAwoBCBIFCgMICAQSBAoCCAgSBAoCCAQSAwoBCBIDCgEYEgMKAQgSABIDCgEIAAAAJQAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAAAAAAOc3RhdHVzVmVyaWZpZWQAAAAAAAAAAAIAAAAAEHN0YXR1c1VudmVyaWZpZWQAAAAAAAAAAAAAAAAAFmxhYmVsQ29tbXVuaXR5VmVyaWZpZWQCAAAAEkNPTU1VTklUWV9WRVJJRklFRAAAAAAMbGFiZWxQb29sc0xwAgAAAAhQT09MU19MUAAAAAANZGVmYXVsdExhYmVscwkABEwAAAACBQAAABZsYWJlbENvbW11bml0eVZlcmlmaWVkCQAETAAAAAIFAAAADGxhYmVsUG9vbHNMcAUAAAADbmlsAQAAAAd0aHJvd1BEAAAAAAkAAAIAAAABAgAAABFQZXJtaXNzaW9uIGRlbmllZAEAAAAMdGhyb3dOb0Fzc2V0AAAAAAkAAAIAAAABAgAAABRBc3NldCBkb2Vzbid0IG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AAABQAAAA90YXJnZXRQdWJsaWNLZXmNJYxi", "chainId": 84, "height": 2019578, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9B2mSCgSyfoMx7tRKhXxb4dnDJwzSTznqes1aUkbQkKi Next: HTwov71MDQVWWb5yG5ppVGDynw23CFJ3VtAyZhHMfPhs Diff:
Old | New | Differences | |
---|---|---|---|
434 | 434 | ||
435 | 435 | ||
436 | 436 | @Callable(L) | |
437 | - | func setAdmins (aI) = { | |
437 | + | func onEliminate (o) = { | |
438 | + | let aI = valueOrElse(getInteger(s(o)), 0) | |
439 | + | let aJ = if ((aI > 0)) | |
440 | + | then nil | |
441 | + | else [DeleteEntry(p(o))] | |
442 | + | $Tuple2(aJ, unit) | |
443 | + | } | |
444 | + | ||
445 | + | ||
446 | + | ||
447 | + | @Callable(L) | |
448 | + | func setAdmins (aK) = { | |
438 | 449 | let ai = K(L) | |
439 | 450 | if ((ai == ai)) | |
440 | - | then [StringEntry(l(), makeString( | |
451 | + | then [StringEntry(l(), makeString(aK, a))] | |
441 | 452 | else throw("Strict value is not equal to itself.") | |
442 | 453 | } | |
443 | 454 | ||
444 | 455 | ||
445 | 456 | ||
446 | 457 | @Callable(L) | |
447 | - | func setManager ( | |
458 | + | func setManager (aL) = { | |
448 | 459 | let ai = K(L) | |
449 | 460 | if ((ai == ai)) | |
450 | 461 | then { | |
451 | - | let | |
452 | - | if (( | |
453 | - | then [StringEntry(k(), | |
462 | + | let aM = fromBase58String(aL) | |
463 | + | if ((aM == aM)) | |
464 | + | then [StringEntry(k(), aL)] | |
454 | 465 | else throw("Strict value is not equal to itself.") | |
455 | 466 | } | |
456 | 467 | else throw("Strict value is not equal to itself.") | |
460 | 471 | ||
461 | 472 | @Callable(L) | |
462 | 473 | func confirmManager () = { | |
463 | - | let | |
464 | - | let | |
474 | + | let aN = J() | |
475 | + | let aO = if (isDefined(aN)) | |
465 | 476 | then true | |
466 | 477 | else throw("No pending manager") | |
467 | - | if (( | |
478 | + | if ((aO == aO)) | |
468 | 479 | then { | |
469 | - | let | |
480 | + | let aP = if ((L.callerPublicKey == value(aN))) | |
470 | 481 | then true | |
471 | 482 | else throw("You are not pending manager") | |
472 | - | if (( | |
473 | - | then [StringEntry(j(), toBase58String(value( | |
483 | + | if ((aP == aP)) | |
484 | + | then [StringEntry(j(), toBase58String(value(aN))), DeleteEntry(k())] | |
474 | 485 | else throw("Strict value is not equal to itself.") | |
475 | 486 | } | |
476 | 487 | else throw("Strict value is not equal to itself.") | |
482 | 493 | func isVerifiedREADONLY (o) = $Tuple2(nil, D(o)) | |
483 | 494 | ||
484 | 495 | ||
485 | - | @Verifier( | |
486 | - | func | |
487 | - | let | |
496 | + | @Verifier(aQ) | |
497 | + | func aR () = { | |
498 | + | let aS = { | |
488 | 499 | let F = I() | |
489 | 500 | if ($isInstanceOf(F, "ByteVector")) | |
490 | 501 | then { | |
492 | 503 | M | |
493 | 504 | } | |
494 | 505 | else if ($isInstanceOf(F, "Unit")) | |
495 | - | then | |
506 | + | then aQ.senderPublicKey | |
496 | 507 | else throw("Match error") | |
497 | 508 | } | |
498 | - | sigVerify( | |
509 | + | sigVerify(aQ.bodyBytes, aQ.proofs[0], aS) | |
499 | 510 | } | |
500 | 511 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "" | |
7 | 7 | ||
8 | 8 | let c = 2 | |
9 | 9 | ||
10 | 10 | let d = 0 | |
11 | 11 | ||
12 | 12 | let e = "COMMUNITY_VERIFIED" | |
13 | 13 | ||
14 | 14 | let f = "POOLS_LP" | |
15 | 15 | ||
16 | 16 | let g = [e, f] | |
17 | 17 | ||
18 | 18 | func h () = throw("Permission denied") | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func i () = throw("Asset doesn't exists") | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func j () = "%s__managerPublicKey" | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func k () = "%s__pendingManagerPublicKey" | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func l () = "%s__adminPubKeys" | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func m () = "%s__userPoolsContract" | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func n (o) = (("created_<" + o) + ">") | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func p (o) = (("logo_<" + o) + ">") | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func q (o) = (("ticker_<" + o) + ">") | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func r (o) = (("status_<" + o) + ">") | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func s (o) = makeString(["%s%s", "pools", o], a) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func t (u) = makeString(["%s%s", "ticker2assetId", u], a) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func v (o) = makeString(["%s%s", "assetId2ticker", o], a) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func w (x,y) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", x, y], a) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func z (A) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", A], a) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func B (o) = makeString(["%s%s", "labels", o], a) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func C () = makeString(["%s", "labels"], a) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func D (o) = (valueOrElse(getInteger(r(o)), d) == c) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func E () = { | |
73 | 73 | let F = getString(C()) | |
74 | 74 | if ($isInstanceOf(F, "String")) | |
75 | 75 | then { | |
76 | 76 | let G = F | |
77 | 77 | if ((size(G) == 0)) | |
78 | 78 | then nil | |
79 | 79 | else split(G, a) | |
80 | 80 | } | |
81 | 81 | else nil | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func H (o) = { | |
86 | 86 | let F = getString(B(o)) | |
87 | 87 | if ($isInstanceOf(F, "String")) | |
88 | 88 | then { | |
89 | 89 | let G = F | |
90 | 90 | if ((size(G) == 0)) | |
91 | 91 | then nil | |
92 | 92 | else split(G, a) | |
93 | 93 | } | |
94 | 94 | else nil | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func I () = { | |
99 | 99 | let F = getString(j()) | |
100 | 100 | if ($isInstanceOf(F, "String")) | |
101 | 101 | then { | |
102 | 102 | let G = F | |
103 | 103 | fromBase58String(G) | |
104 | 104 | } | |
105 | 105 | else if ($isInstanceOf(F, "Unit")) | |
106 | 106 | then unit | |
107 | 107 | else throw("Match error") | |
108 | 108 | } | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func J () = { | |
112 | 112 | let F = getString(k()) | |
113 | 113 | if ($isInstanceOf(F, "String")) | |
114 | 114 | then { | |
115 | 115 | let G = F | |
116 | 116 | fromBase58String(G) | |
117 | 117 | } | |
118 | 118 | else if ($isInstanceOf(F, "Unit")) | |
119 | 119 | then unit | |
120 | 120 | else throw("Match error") | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func K (L) = { | |
125 | 125 | let F = I() | |
126 | 126 | if ($isInstanceOf(F, "ByteVector")) | |
127 | 127 | then { | |
128 | 128 | let M = F | |
129 | 129 | if ((L.callerPublicKey == M)) | |
130 | 130 | then true | |
131 | 131 | else h() | |
132 | 132 | } | |
133 | 133 | else if ($isInstanceOf(F, "Unit")) | |
134 | 134 | then if ((L.caller == this)) | |
135 | 135 | then true | |
136 | 136 | else h() | |
137 | 137 | else throw("Match error") | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func N (L) = { | |
142 | 142 | let O = split(valueOrElse(getString(l()), b), a) | |
143 | 143 | if (containsElement(O, toBase58String(L.callerPublicKey))) | |
144 | 144 | then true | |
145 | 145 | else { | |
146 | 146 | let P = K(L) | |
147 | 147 | if ((P == P)) | |
148 | 148 | then true | |
149 | 149 | else throw("Strict value is not equal to itself.") | |
150 | 150 | } | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func Q (o) = valueOrElse(getBoolean(n(o)), false) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func R (S) = if (S) | |
158 | 158 | then c | |
159 | 159 | else d | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func T (o,U,V) = { | |
163 | 163 | let W = E() | |
164 | 164 | let X = H(o) | |
165 | 165 | let Y = if (containsElement(W, U)) | |
166 | 166 | then true | |
167 | 167 | else throw("Label doesn't exist") | |
168 | 168 | if ((Y == Y)) | |
169 | 169 | then { | |
170 | 170 | let Z = if (containsElement(X, U)) | |
171 | 171 | then if (V) | |
172 | 172 | then throw("Label has already been added") | |
173 | 173 | else X | |
174 | 174 | else (X :+ U) | |
175 | 175 | [StringEntry(B(o), makeString(Z, a))] | |
176 | 176 | } | |
177 | 177 | else throw("Strict value is not equal to itself.") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func aa (o,U,V) = { | |
182 | 182 | let X = H(o) | |
183 | 183 | let Z = if (containsElement(X, U)) | |
184 | 184 | then removeByIndex(X, value(indexOf(X, U))) | |
185 | 185 | else if (V) | |
186 | 186 | then throw("Label wasn't added") | |
187 | 187 | else X | |
188 | 188 | [StringEntry(B(o), makeString(Z, a))] | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func ab (o,S) = { | |
193 | 193 | let ac = if (S) | |
194 | 194 | then T(o, e, false) | |
195 | 195 | else aa(o, e, false) | |
196 | 196 | ([IntegerEntry(r(o), R(S))] ++ ac) | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func ad (o,u) = { | |
201 | 201 | let ae = { | |
202 | 202 | let af = getString(t(u)) | |
203 | 203 | let ag = if ((u != "")) | |
204 | 204 | then if ((af == unit)) | |
205 | 205 | then true | |
206 | 206 | else (value(af) == o) | |
207 | 207 | else false | |
208 | 208 | if (ag) | |
209 | 209 | then true | |
210 | 210 | else throw("Invalid ticker") | |
211 | 211 | } | |
212 | 212 | if ((ae == ae)) | |
213 | 213 | then [StringEntry(v(o), u), StringEntry(t(u), o)] | |
214 | 214 | else throw("Strict value is not equal to itself.") | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | @Callable(L) | |
219 | 219 | func constructor (ah,W) = { | |
220 | 220 | let ai = K(L) | |
221 | 221 | if ((ai == ai)) | |
222 | 222 | then { | |
223 | 223 | let aj = valueOrErrorMessage(addressFromString(ah), "Invalid address") | |
224 | 224 | if ((aj == aj)) | |
225 | 225 | then [StringEntry(m(), ah), StringEntry(C(), makeString((g ++ W), a))] | |
226 | 226 | else throw("Strict value is not equal to itself.") | |
227 | 227 | } | |
228 | 228 | else throw("Strict value is not equal to itself.") | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | ||
233 | 233 | @Callable(L) | |
234 | 234 | func addAssetsLink (x,y,A) = { | |
235 | 235 | let ai = N(L) | |
236 | 236 | if ((ai == ai)) | |
237 | 237 | then [StringEntry(w(x, y), A), StringEntry(z(A), makeString([x, y], a))] | |
238 | 238 | else throw("Strict value is not equal to itself.") | |
239 | 239 | } | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | ||
243 | 243 | @Callable(L) | |
244 | 244 | func increaseAssetPoolsNumber (o) = { | |
245 | 245 | let ai = N(L) | |
246 | 246 | if ((ai == ai)) | |
247 | 247 | then { | |
248 | 248 | let ak = s(o) | |
249 | 249 | let al = valueOrElse(getInteger(ak), 0) | |
250 | 250 | [IntegerEntry(ak, (al + 1))] | |
251 | 251 | } | |
252 | 252 | else throw("Strict value is not equal to itself.") | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | ||
257 | 257 | @Callable(L) | |
258 | 258 | func createLabel (U) = { | |
259 | 259 | let W = E() | |
260 | 260 | let ai = K(L) | |
261 | 261 | if ((ai == ai)) | |
262 | 262 | then { | |
263 | 263 | let Y = [if (!(contains(U, a))) | |
264 | 264 | then true | |
265 | 265 | else throw("Invalid label name"), if (!(containsElement(W, U))) | |
266 | 266 | then true | |
267 | 267 | else throw("Label exists")] | |
268 | 268 | if ((Y == Y)) | |
269 | 269 | then [StringEntry(C(), makeString((W :+ U), a))] | |
270 | 270 | else throw("Strict value is not equal to itself.") | |
271 | 271 | } | |
272 | 272 | else throw("Strict value is not equal to itself.") | |
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | ||
277 | 277 | @Callable(L) | |
278 | 278 | func dropLabel (U) = { | |
279 | 279 | let W = E() | |
280 | 280 | let ai = K(L) | |
281 | 281 | if ((ai == ai)) | |
282 | 282 | then { | |
283 | 283 | let Y = if (containsElement(W, U)) | |
284 | 284 | then true | |
285 | 285 | else throw("Label doesn't exist") | |
286 | 286 | if ((Y == Y)) | |
287 | 287 | then [StringEntry(C(), makeString(removeByIndex(W, value(indexOf(W, U))), a))] | |
288 | 288 | else throw("Strict value is not equal to itself.") | |
289 | 289 | } | |
290 | 290 | else throw("Strict value is not equal to itself.") | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | ||
295 | 295 | @Callable(L) | |
296 | 296 | func addLabel (o,U) = { | |
297 | 297 | let ai = N(L) | |
298 | 298 | if ((ai == ai)) | |
299 | 299 | then T(o, U, true) | |
300 | 300 | else throw("Strict value is not equal to itself.") | |
301 | 301 | } | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | ||
305 | 305 | @Callable(L) | |
306 | 306 | func deleteLabel (o,U) = { | |
307 | 307 | let ai = N(L) | |
308 | 308 | if ((ai == ai)) | |
309 | 309 | then aa(o, U, true) | |
310 | 310 | else throw("Strict value is not equal to itself.") | |
311 | 311 | } | |
312 | 312 | ||
313 | 313 | ||
314 | 314 | ||
315 | 315 | @Callable(L) | |
316 | 316 | func updateTicker (o,u) = { | |
317 | 317 | let ai = N(L) | |
318 | 318 | if ((ai == ai)) | |
319 | 319 | then { | |
320 | 320 | let am = if (Q(o)) | |
321 | 321 | then true | |
322 | 322 | else i() | |
323 | 323 | if ((am == am)) | |
324 | 324 | then ad(o, u) | |
325 | 325 | else throw("Strict value is not equal to itself.") | |
326 | 326 | } | |
327 | 327 | else throw("Strict value is not equal to itself.") | |
328 | 328 | } | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | ||
332 | 332 | @Callable(L) | |
333 | 333 | func deleteTicker (o) = { | |
334 | 334 | let ai = N(L) | |
335 | 335 | if ((ai == ai)) | |
336 | 336 | then { | |
337 | 337 | let u = valueOrErrorMessage(getString(v(o)), "Invalid asset") | |
338 | 338 | [DeleteEntry(v(o)), DeleteEntry(t(u))] | |
339 | 339 | } | |
340 | 340 | else throw("Strict value is not equal to itself.") | |
341 | 341 | } | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | ||
345 | 345 | @Callable(L) | |
346 | 346 | func createOrUpdate (o,an,S) = { | |
347 | 347 | let ai = N(L) | |
348 | 348 | if ((ai == ai)) | |
349 | 349 | then { | |
350 | 350 | let ao = !(Q(o)) | |
351 | 351 | if ((ao == ao)) | |
352 | 352 | then { | |
353 | 353 | let ap = if ((an == "")) | |
354 | 354 | then nil | |
355 | 355 | else [StringEntry(p(o), an)] | |
356 | 356 | $Tuple2((([BooleanEntry(n(o), true)] ++ ap) ++ ab(o, S)), ao) | |
357 | 357 | } | |
358 | 358 | else throw("Strict value is not equal to itself.") | |
359 | 359 | } | |
360 | 360 | else throw("Strict value is not equal to itself.") | |
361 | 361 | } | |
362 | 362 | ||
363 | 363 | ||
364 | 364 | ||
365 | 365 | @Callable(L) | |
366 | 366 | func setLogo (o,an) = { | |
367 | 367 | let aq = [N(L), if (Q(o)) | |
368 | 368 | then true | |
369 | 369 | else i()] | |
370 | 370 | if ((aq == aq)) | |
371 | 371 | then [StringEntry(p(o), an)] | |
372 | 372 | else throw("Strict value is not equal to itself.") | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | ||
377 | 377 | @Callable(L) | |
378 | 378 | func setVerified (o,S) = { | |
379 | 379 | let aq = [N(L), if (Q(o)) | |
380 | 380 | then true | |
381 | 381 | else i()] | |
382 | 382 | if ((aq == aq)) | |
383 | 383 | then { | |
384 | 384 | let ar = { | |
385 | 385 | let F = invoke(addressFromStringValue(getStringValue(m())), "priceAssetsREADONLY", nil, nil) | |
386 | 386 | if ($isInstanceOf(F, "List[Any]")) | |
387 | 387 | then { | |
388 | 388 | let as = F | |
389 | 389 | let at = if ((size(as) > 0)) | |
390 | 390 | then true | |
391 | 391 | else throw("Invalid price assets") | |
392 | 392 | if ((at == at)) | |
393 | 393 | then as | |
394 | 394 | else throw("Strict value is not equal to itself.") | |
395 | 395 | } | |
396 | 396 | else throw("Incorrect invoke result") | |
397 | 397 | } | |
398 | 398 | func au (av,aw) = { | |
399 | 399 | let ax = { | |
400 | 400 | let F = aw | |
401 | 401 | if ($isInstanceOf(F, "String")) | |
402 | 402 | then { | |
403 | 403 | let G = F | |
404 | 404 | G | |
405 | 405 | } | |
406 | 406 | else throw("Invalid price asset") | |
407 | 407 | } | |
408 | 408 | let ay = getString(w(o, ax)) | |
409 | 409 | let az = if ((ay == unit)) | |
410 | 410 | then nil | |
411 | 411 | else ab(value(ay), S) | |
412 | 412 | (av ++ az) | |
413 | 413 | } | |
414 | 414 | ||
415 | 415 | let aA = { | |
416 | 416 | let aB = ar | |
417 | 417 | let aC = size(aB) | |
418 | 418 | let aD = ab(o, S) | |
419 | 419 | func aE (aF,aG) = if ((aG >= aC)) | |
420 | 420 | then aF | |
421 | 421 | else au(aF, aB[aG]) | |
422 | 422 | ||
423 | 423 | func aH (aF,aG) = if ((aG >= aC)) | |
424 | 424 | then aF | |
425 | 425 | else throw("List size exceeds 10") | |
426 | 426 | ||
427 | 427 | aH(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aD, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
428 | 428 | } | |
429 | 429 | $Tuple2(aA, unit) | |
430 | 430 | } | |
431 | 431 | else throw("Strict value is not equal to itself.") | |
432 | 432 | } | |
433 | 433 | ||
434 | 434 | ||
435 | 435 | ||
436 | 436 | @Callable(L) | |
437 | - | func setAdmins (aI) = { | |
437 | + | func onEliminate (o) = { | |
438 | + | let aI = valueOrElse(getInteger(s(o)), 0) | |
439 | + | let aJ = if ((aI > 0)) | |
440 | + | then nil | |
441 | + | else [DeleteEntry(p(o))] | |
442 | + | $Tuple2(aJ, unit) | |
443 | + | } | |
444 | + | ||
445 | + | ||
446 | + | ||
447 | + | @Callable(L) | |
448 | + | func setAdmins (aK) = { | |
438 | 449 | let ai = K(L) | |
439 | 450 | if ((ai == ai)) | |
440 | - | then [StringEntry(l(), makeString( | |
451 | + | then [StringEntry(l(), makeString(aK, a))] | |
441 | 452 | else throw("Strict value is not equal to itself.") | |
442 | 453 | } | |
443 | 454 | ||
444 | 455 | ||
445 | 456 | ||
446 | 457 | @Callable(L) | |
447 | - | func setManager ( | |
458 | + | func setManager (aL) = { | |
448 | 459 | let ai = K(L) | |
449 | 460 | if ((ai == ai)) | |
450 | 461 | then { | |
451 | - | let | |
452 | - | if (( | |
453 | - | then [StringEntry(k(), | |
462 | + | let aM = fromBase58String(aL) | |
463 | + | if ((aM == aM)) | |
464 | + | then [StringEntry(k(), aL)] | |
454 | 465 | else throw("Strict value is not equal to itself.") | |
455 | 466 | } | |
456 | 467 | else throw("Strict value is not equal to itself.") | |
457 | 468 | } | |
458 | 469 | ||
459 | 470 | ||
460 | 471 | ||
461 | 472 | @Callable(L) | |
462 | 473 | func confirmManager () = { | |
463 | - | let | |
464 | - | let | |
474 | + | let aN = J() | |
475 | + | let aO = if (isDefined(aN)) | |
465 | 476 | then true | |
466 | 477 | else throw("No pending manager") | |
467 | - | if (( | |
478 | + | if ((aO == aO)) | |
468 | 479 | then { | |
469 | - | let | |
480 | + | let aP = if ((L.callerPublicKey == value(aN))) | |
470 | 481 | then true | |
471 | 482 | else throw("You are not pending manager") | |
472 | - | if (( | |
473 | - | then [StringEntry(j(), toBase58String(value( | |
483 | + | if ((aP == aP)) | |
484 | + | then [StringEntry(j(), toBase58String(value(aN))), DeleteEntry(k())] | |
474 | 485 | else throw("Strict value is not equal to itself.") | |
475 | 486 | } | |
476 | 487 | else throw("Strict value is not equal to itself.") | |
477 | 488 | } | |
478 | 489 | ||
479 | 490 | ||
480 | 491 | ||
481 | 492 | @Callable(L) | |
482 | 493 | func isVerifiedREADONLY (o) = $Tuple2(nil, D(o)) | |
483 | 494 | ||
484 | 495 | ||
485 | - | @Verifier( | |
486 | - | func | |
487 | - | let | |
496 | + | @Verifier(aQ) | |
497 | + | func aR () = { | |
498 | + | let aS = { | |
488 | 499 | let F = I() | |
489 | 500 | if ($isInstanceOf(F, "ByteVector")) | |
490 | 501 | then { | |
491 | 502 | let M = F | |
492 | 503 | M | |
493 | 504 | } | |
494 | 505 | else if ($isInstanceOf(F, "Unit")) | |
495 | - | then | |
506 | + | then aQ.senderPublicKey | |
496 | 507 | else throw("Match error") | |
497 | 508 | } | |
498 | - | sigVerify( | |
509 | + | sigVerify(aQ.bodyBytes, aQ.proofs[0], aS) | |
499 | 510 | } | |
500 | 511 |
github/deemru/w8io/169f3d6 50.94 ms ◑