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