tx · Cp18vEpvtLDpFCCX1jDoaVB319Y23dee28pask1uKhZ8

3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr:  -0.01700000 Waves

2023.04.06 17:28 [2522824] smart account 3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr > SELF 0.00000000 Waves

{ "type": 13, "id": "Cp18vEpvtLDpFCCX1jDoaVB319Y23dee28pask1uKhZ8", "fee": 1700000, "feeAssetId": null, "timestamp": 1680791379823, "version": 2, "chainId": 84, "sender": "3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr", "senderPublicKey": "EtZZHS4uqNXY5WPneZ8jY2aA95peXwthJVLzAMxMp379", "proofs": [ "x1tRcK8NWEavWuA359HN6suawRD34kHuufoEPnaJ8g1TUrVh1swAaYHxJe8WP98ix6KnkB8JoW4MYtSWib7tPRb" ], "script": "base64:AAIFAAAAAAAABfYIAhIECgIICBIECgIICBIECgIIGBIDCgEIEgUKAwgICBIDCgEIEgMKAQgSAwoBCBIECgIICBIECgIICBIECgIICBIDCgEIEgUKAwgIBBIECgIICBIECgIIBBIDCgEIEgMKARgSAwoBCBIAEgMKAQgiA1NFUCIFRU1QVFkiDnN0YXR1c1ZlcmlmaWVkIhBzdGF0dXNVbnZlcmlmaWVkIhZsYWJlbENvbW11bml0eVZlcmlmaWVkIgxsYWJlbFBvb2xzTHAiDWRlZmF1bHRMYWJlbHMiB3Rocm93UEQiDHRocm93Tm9Bc3NldCISdGhyb3dJbnZhbGlkVGlja2VyIhNrZXlNYW5hZ2VyUHVibGljS2V5IhprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleSIPa2V5QWRtaW5QdWJLZXlzIhRrZXlVc2VyUG9vbHNDb250cmFjdCISa2V5RmFjdG9yeUNvbnRyYWN0IgprZXlDcmVhdGVkIgdhc3NldElkIgdrZXlMb2dvIglrZXlUaWNrZXIiCWtleVN0YXR1cyITa2V5QXNzZXRQb29sc051bWJlciISa2V5VGlja2VyVG9Bc3NldElkIgZ0aWNrZ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vZHlCeXRlcwkAAZEAAAACCAUAAAACYVYAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAJhWGQnadI=", "height": 2522824, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7aNd3A3TnchNwvXagYynRYZgsHYwD4JeqGfjrsYbmrWM Next: ErYRZHxSgKfhuhsdiMmRRjpNvLHw7xNxHKYyFjM5XHia Diff:
OldNewDifferences
2121 func i () = throw("Asset doesn't exists")
2222
2323
24-func j () = "%s__managerPublicKey"
24+func j () = throw("Invalid ticker")
2525
2626
27-func k () = "%s__pendingManagerPublicKey"
27+func k () = "%s__managerPublicKey"
2828
2929
30-func l () = "%s__adminPubKeys"
30+func l () = "%s__pendingManagerPublicKey"
3131
3232
33-func m () = "%s__userPoolsContract"
33+func m () = "%s__adminPubKeys"
3434
3535
36-func n () = "%s__factoryContract"
36+func n () = "%s__userPoolsContract"
3737
3838
39-func o (p) = (("created_<" + p) + ">")
39+func o () = "%s__factoryContract"
4040
4141
42-func q (p) = (("logo_<" + p) + ">")
42+func p (q) = (("created_<" + q) + ">")
4343
4444
45-func r (p) = (("ticker_<" + p) + ">")
45+func r (q) = (("logo_<" + q) + ">")
4646
4747
48-func s (p) = (("status_<" + p) + ">")
48+func s (q) = (("ticker_<" + q) + ">")
4949
5050
51-func t (p) = makeString(["%s%s", "pools", p], a)
51+func t (q) = (("status_<" + q) + ">")
5252
5353
54-func u (v) = makeString(["%s%s", "ticker2assetId", v], a)
54+func u (q) = makeString(["%s%s", "pools", q], a)
5555
5656
57-func w (p) = makeString(["%s%s", "assetId2ticker", p], a)
57+func v (w) = makeString(["%s%s", "ticker2assetId", w], a)
5858
5959
60-func x (y,z) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", y, z], a)
60+func x (q) = makeString(["%s%s", "assetId2ticker", q], a)
6161
6262
63-func A (B) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", B], a)
63+func y (z,A) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", z, A], a)
6464
6565
66-func C (p) = makeString(["%s%s", "labels", p], a)
66+func B (C) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", C], a)
6767
6868
69-func D () = makeString(["%s", "labels"], a)
69+func D (q) = makeString(["%s%s", "labels", q], a)
7070
7171
72-func E (p) = makeString(["%s%s", "assetName", p], a)
72+func E () = makeString(["%s", "labels"], a)
7373
7474
75-func F (p) = makeString(["%s%s", "assetDescription", p], a)
75+func F (q) = makeString(["%s%s", "assetName", q], a)
7676
7777
78-func G (H,I,J) = {
79- let K = makeString(["mandatory ", toString(H), ".", I, " is not defined"], "")
78+func G (q) = makeString(["%s%s", "assetDescription", q], a)
79+
80+
81+func H (I,J,K) = {
82+ let L = makeString(["mandatory ", toString(I), ".", J, " is not defined"], "")
8083 valueOrErrorMessage({
81- let L = J
82- if ($isInstanceOf(L, "String"))
84+ let M = K
85+ if ($isInstanceOf(M, "String"))
8386 then {
84- let M = L
85- getString(H, I)
87+ let N = M
88+ getString(I, J)
8689 }
87- else if ($isInstanceOf(L, "Int"))
90+ else if ($isInstanceOf(M, "Int"))
8891 then {
89- let N = L
90- getInteger(H, I)
92+ let O = M
93+ getInteger(I, J)
9194 }
9295 else throw("invalid entry type")
93- }, K)
96+ }, L)
9497 }
9598
9699
97-func O (H,I) = {
98- let P = G(H, I, "")
99- if ($isInstanceOf(P, "String"))
100- then P
100+func P (I,J) = {
101+ let Q = H(I, J, "")
102+ if ($isInstanceOf(Q, "String"))
103+ then Q
101104 else throw("Couldn't cast Int|String to String")
102105 }
103106
104107
105-func Q (H,I) = {
106- let P = G(H, I, 0)
107- if ($isInstanceOf(P, "Int"))
108- then P
108+func R (I,J) = {
109+ let Q = H(I, J, 0)
110+ if ($isInstanceOf(Q, "Int"))
111+ then Q
109112 else throw("Couldn't cast Int|String to Int")
110113 }
111114
112115
113-func R (p) = (valueOrElse(getInteger(s(p)), d) == c)
116+func S (q) = (valueOrElse(getInteger(t(q)), d) == c)
114117
115118
116-func S () = {
117- let L = getString(D())
118- if ($isInstanceOf(L, "String"))
119+func T () = {
120+ let M = getString(E())
121+ if ($isInstanceOf(M, "String"))
119122 then {
120- let T = L
121- if ((size(T) == 0))
123+ let U = M
124+ if ((size(U) == 0))
122125 then nil
123- else split(T, a)
126+ else split(U, a)
124127 }
125128 else nil
126129 }
127130
128131
129-func U (p) = {
130- let L = getString(C(p))
131- if ($isInstanceOf(L, "String"))
132+func V (q) = {
133+ let M = getString(D(q))
134+ if ($isInstanceOf(M, "String"))
132135 then {
133- let T = L
134- if ((size(T) == 0))
136+ let U = M
137+ if ((size(U) == 0))
135138 then nil
136- else split(T, a)
139+ else split(U, a)
137140 }
138141 else nil
139142 }
140143
141144
142-func V () = {
143- let L = getString(j())
144- if ($isInstanceOf(L, "String"))
145+func W () = {
146+ let M = getString(k())
147+ if ($isInstanceOf(M, "String"))
145148 then {
146- let T = L
147- fromBase58String(T)
149+ let U = M
150+ fromBase58String(U)
148151 }
149- else if ($isInstanceOf(L, "Unit"))
152+ else if ($isInstanceOf(M, "Unit"))
150153 then unit
151154 else throw("Match error")
152155 }
153156
154157
155-func W () = {
156- let L = getString(k())
157- if ($isInstanceOf(L, "String"))
158+func X () = {
159+ let M = getString(l())
160+ if ($isInstanceOf(M, "String"))
158161 then {
159- let T = L
160- fromBase58String(T)
162+ let U = M
163+ fromBase58String(U)
161164 }
162- else if ($isInstanceOf(L, "Unit"))
165+ else if ($isInstanceOf(M, "Unit"))
163166 then unit
164167 else throw("Match error")
165168 }
166169
167170
168-func X (Y) = {
169- let L = V()
170- if ($isInstanceOf(L, "ByteVector"))
171+func Y (Z) = {
172+ let M = W()
173+ if ($isInstanceOf(M, "ByteVector"))
171174 then {
172- let Z = L
173- if ((Y.callerPublicKey == Z))
175+ let aa = M
176+ if ((Z.callerPublicKey == aa))
174177 then true
175178 else h()
176179 }
177- else if ($isInstanceOf(L, "Unit"))
178- then if ((Y.caller == this))
180+ else if ($isInstanceOf(M, "Unit"))
181+ then if ((Z.caller == this))
179182 then true
180183 else h()
181184 else throw("Match error")
182185 }
183186
184187
185-func aa (Y) = {
186- let ab = split(valueOrElse(getString(l()), b), a)
187- if (containsElement(ab, toBase58String(Y.callerPublicKey)))
188+func ab (Z) = {
189+ let ac = split(valueOrElse(getString(m()), b), a)
190+ if (containsElement(ac, toBase58String(Z.callerPublicKey)))
188191 then true
189192 else {
190- let ac = X(Y)
191- if ((ac == ac))
193+ let ad = Y(Z)
194+ if ((ad == ad))
192195 then true
193196 else throw("Strict value is not equal to itself.")
194197 }
195198 }
196199
197200
198-func ad (p) = valueOrElse(getBoolean(o(p)), false)
201+func ae (q) = valueOrElse(getBoolean(p(q)), false)
199202
200203
201-func ae (af) = if (af)
204+func af (ag) = if (ag)
202205 then c
203206 else d
204207
205208
206-func ag (p,ah,ai) = {
207- let aj = S()
208- let ak = U(p)
209- let al = if (containsElement(aj, ah))
209+func ah (q,ai,aj) = {
210+ let ak = T()
211+ let al = V(q)
212+ let am = if (containsElement(ak, ai))
210213 then true
211214 else throw("Label doesn't exist")
212- if ((al == al))
215+ if ((am == am))
213216 then {
214- let am = if (containsElement(ak, ah))
215- then if (ai)
217+ let an = if (containsElement(al, ai))
218+ then if (aj)
216219 then throw("Label has already been added")
217- else ak
218- else (ak :+ ah)
219-[StringEntry(C(p), makeString(am, a))]
220+ else al
221+ else (al :+ ai)
222+[StringEntry(D(q), makeString(an, a))]
220223 }
221224 else throw("Strict value is not equal to itself.")
222225 }
223226
224227
225-func an (p,ah,ai) = {
226- let ak = U(p)
227- let am = if (containsElement(ak, ah))
228- then removeByIndex(ak, value(indexOf(ak, ah)))
229- else if (ai)
228+func ao (q,ai,aj) = {
229+ let al = V(q)
230+ let an = if (containsElement(al, ai))
231+ then removeByIndex(al, value(indexOf(al, ai)))
232+ else if (aj)
230233 then throw("Label wasn't added")
231- else ak
232-[StringEntry(C(p), makeString(am, a))]
234+ else al
235+[StringEntry(D(q), makeString(an, a))]
233236 }
234237
235238
236-func ao (p,af) = {
237- let ap = if (af)
238- then ag(p, e, false)
239- else an(p, e, false)
240- ([IntegerEntry(s(p), ae(af))] ++ ap)
239+func ap (q,ag) = {
240+ let aq = if (ag)
241+ then ah(q, e, false)
242+ else ao(q, e, false)
243+ ([IntegerEntry(t(q), af(ag))] ++ aq)
241244 }
242245
243246
244-func aq (p,v) = {
245- let ar = {
246- let as = (v != "")
247- if (as)
248- then true
249- else throw("Invalid ticker")
250- }
251- if ((ar == ar))
252- then [StringEntry(w(p), v), StringEntry(u(v), p)]
253- else throw("Strict value is not equal to itself.")
254- }
255-
256-
257-@Callable(Y)
258-func setAssetName (at,au) = {
259- let av = aa(Y)
260- if ((av == av))
261- then [StringEntry(E(at), au)]
247+@Callable(Z)
248+func setAssetName (ar,as) = {
249+ let at = ab(Z)
250+ if ((at == at))
251+ then [StringEntry(F(ar), as)]
262252 else throw("Strict value is not equal to itself.")
263253 }
264254
265255
266256
267-@Callable(Y)
268-func setAssetDescription (at,aw) = {
269- let av = aa(Y)
270- if ((av == av))
271- then [StringEntry(F(at), aw)]
257+@Callable(Z)
258+func setAssetDescription (ar,au) = {
259+ let at = ab(Z)
260+ if ((at == at))
261+ then [StringEntry(G(ar), au)]
272262 else throw("Strict value is not equal to itself.")
273263 }
274264
275265
276266
277-@Callable(Y)
278-func constructor (ax,aj) = {
279- let av = X(Y)
280- if ((av == av))
267+@Callable(Z)
268+func constructor (av,ak) = {
269+ let at = Y(Z)
270+ if ((at == at))
281271 then {
282- let ay = valueOrErrorMessage(addressFromString(ax), "Invalid address")
283- if ((ay == ay))
284- then [StringEntry(m(), ax), StringEntry(D(), makeString((g ++ aj), a))]
272+ let aw = valueOrErrorMessage(addressFromString(av), "Invalid address")
273+ if ((aw == aw))
274+ then [StringEntry(n(), av), StringEntry(E(), makeString((g ++ ak), a))]
285275 else throw("Strict value is not equal to itself.")
286276 }
287277 else throw("Strict value is not equal to itself.")
289279
290280
291281
292-@Callable(Y)
293-func constructorV2 (az) = {
294- let av = X(Y)
295- if ((av == av))
282+@Callable(Z)
283+func constructorV2 (ax) = {
284+ let at = Y(Z)
285+ if ((at == at))
296286 then {
297- let aA = valueOrErrorMessage(addressFromString(az), "invalid factory contract address")
298- if ((aA == aA))
299- then [StringEntry(n(), az)]
287+ let ay = valueOrErrorMessage(addressFromString(ax), "invalid factory contract address")
288+ if ((ay == ay))
289+ then [StringEntry(o(), ax)]
300290 else throw("Strict value is not equal to itself.")
301291 }
302292 else throw("Strict value is not equal to itself.")
304294
305295
306296
307-@Callable(Y)
308-func addAssetsLink (y,z,B) = {
309- let av = aa(Y)
310- if ((av == av))
311- then [StringEntry(x(y, z), B), StringEntry(A(B), makeString([y, z], a))]
297+@Callable(Z)
298+func addAssetsLink (z,A,C) = {
299+ let at = ab(Z)
300+ if ((at == at))
301+ then [StringEntry(y(z, A), C), StringEntry(B(C), makeString([z, A], a))]
312302 else throw("Strict value is not equal to itself.")
313303 }
314304
315305
316306
317-@Callable(Y)
318-func increaseAssetPoolsNumber (p) = {
319- let av = aa(Y)
320- if ((av == av))
307+@Callable(Z)
308+func increaseAssetPoolsNumber (q) = {
309+ let at = ab(Z)
310+ if ((at == at))
321311 then {
322- let aB = t(p)
323- let aC = valueOrElse(getInteger(aB), 0)
324-[IntegerEntry(aB, (aC + 1))]
312+ let az = u(q)
313+ let aA = valueOrElse(getInteger(az), 0)
314+[IntegerEntry(az, (aA + 1))]
325315 }
326316 else throw("Strict value is not equal to itself.")
327317 }
328318
329319
330320
331-@Callable(Y)
332-func createLabel (ah) = {
333- let aj = S()
334- let av = aa(Y)
335- if ((av == av))
321+@Callable(Z)
322+func createLabel (ai) = {
323+ let ak = T()
324+ let at = ab(Z)
325+ if ((at == at))
336326 then {
337- let al = [if (!(contains(ah, a)))
327+ let am = [if (!(contains(ai, a)))
338328 then true
339- else throw("Invalid label name"), if (!(containsElement(aj, ah)))
329+ else throw("Invalid label name"), if (!(containsElement(ak, ai)))
340330 then true
341331 else throw("Label exists")]
342- if ((al == al))
343- then [StringEntry(D(), makeString((aj :+ ah), a))]
332+ if ((am == am))
333+ then [StringEntry(E(), makeString((ak :+ ai), a))]
344334 else throw("Strict value is not equal to itself.")
345335 }
346336 else throw("Strict value is not equal to itself.")
348338
349339
350340
351-@Callable(Y)
352-func dropLabel (ah) = {
353- let aj = S()
354- let av = X(Y)
355- if ((av == av))
341+@Callable(Z)
342+func dropLabel (ai) = {
343+ let ak = T()
344+ let at = Y(Z)
345+ if ((at == at))
356346 then {
357- let al = if (containsElement(aj, ah))
347+ let am = if (containsElement(ak, ai))
358348 then true
359349 else throw("Label doesn't exist")
360- if ((al == al))
361- then [StringEntry(D(), makeString(removeByIndex(aj, value(indexOf(aj, ah))), a))]
350+ if ((am == am))
351+ then [StringEntry(E(), makeString(removeByIndex(ak, value(indexOf(ak, ai))), a))]
362352 else throw("Strict value is not equal to itself.")
363353 }
364354 else throw("Strict value is not equal to itself.")
366356
367357
368358
369-@Callable(Y)
370-func addLabel (p,ah) = {
371- let av = aa(Y)
372- if ((av == av))
373- then ag(p, ah, true)
359+@Callable(Z)
360+func addLabel (q,ai) = {
361+ let at = ab(Z)
362+ if ((at == at))
363+ then ah(q, ai, true)
374364 else throw("Strict value is not equal to itself.")
375365 }
376366
377367
378368
379-@Callable(Y)
380-func deleteLabel (p,ah) = {
381- let av = aa(Y)
382- if ((av == av))
383- then an(p, ah, true)
369+@Callable(Z)
370+func deleteLabel (q,ai) = {
371+ let at = ab(Z)
372+ if ((at == at))
373+ then ao(q, ai, true)
384374 else throw("Strict value is not equal to itself.")
385375 }
386376
387377
388378
389-@Callable(Y)
390-func updateTicker (p,v) = {
391- let av = aa(Y)
392- if ((av == av))
379+@Callable(Z)
380+func updateTicker (q,w) = {
381+ let at = ab(Z)
382+ if ((at == at))
393383 then {
394- let aD = if (ad(p))
384+ let aB = if (ae(q))
395385 then true
396386 else i()
397- if ((aD == aD))
398- then aq(p, v)
399- else throw("Strict value is not equal to itself.")
400- }
401- else throw("Strict value is not equal to itself.")
402- }
403-
404-
405-
406-@Callable(Y)
407-func deleteTicker (p) = {
408- let av = aa(Y)
409- if ((av == av))
410- then {
411- let v = valueOrErrorMessage(getString(w(p)), "Invalid asset")
412-[DeleteEntry(w(p)), DeleteEntry(u(v))]
413- }
414- else throw("Strict value is not equal to itself.")
415- }
416-
417-
418-
419-@Callable(Y)
420-func createOrUpdate (p,aE,af) = {
421- let av = aa(Y)
422- if ((av == av))
423- then {
424- let aF = !(ad(p))
425- if ((aF == aF))
387+ if ((aB == aB))
426388 then {
427- let aG = if ((aE == ""))
428- then nil
429- else [StringEntry(q(p), aE)]
430- $Tuple2((([BooleanEntry(o(p), true)] ++ aG) ++ ao(p, af)), aF)
389+ let aC = if ((w != ""))
390+ then true
391+ else j()
392+ if ((aC == aC))
393+ then {
394+ let aD = ({
395+ let M = getString(v(w))
396+ if ($isInstanceOf(M, "String"))
397+ then {
398+ let aE = M
399+[DeleteEntry(x(aE))]
400+ }
401+ else if ($isInstanceOf(M, "Unit"))
402+ then nil
403+ else throw("Match error")
404+ } ++ {
405+ let M = getString(x(q))
406+ if ($isInstanceOf(M, "String"))
407+ then {
408+ let aF = M
409+[DeleteEntry(v(aF))]
410+ }
411+ else if ($isInstanceOf(M, "Unit"))
412+ then nil
413+ else throw("Match error")
414+ })
415+ let aG = [StringEntry(x(q), w), StringEntry(v(w), q)]
416+ (aD ++ aG)
417+ }
418+ else throw("Strict value is not equal to itself.")
431419 }
432420 else throw("Strict value is not equal to itself.")
433421 }
436424
437425
438426
439-@Callable(Y)
440-func setLogo (p,aE) = {
441- let aH = [aa(Y), if (ad(p))
442- then true
443- else i()]
444- if ((aH == aH))
427+@Callable(Z)
428+func deleteTicker (q) = {
429+ let at = ab(Z)
430+ if ((at == at))
445431 then {
446- let aI = if ((aE == ""))
447- then DeleteEntry(q(p))
448- else StringEntry(q(p), aE)
449-[aI]
432+ let w = valueOrErrorMessage(getString(x(q)), "Invalid asset")
433+[DeleteEntry(x(q)), DeleteEntry(v(w))]
450434 }
451435 else throw("Strict value is not equal to itself.")
452436 }
453437
454438
455439
456-@Callable(Y)
457-func setVerified (p,af) = {
458- let aH = [aa(Y), if (ad(p))
459- then true
460- else i()]
461- if ((aH == aH))
440+@Callable(Z)
441+func createOrUpdate (q,aH,ag) = {
442+ let at = ab(Z)
443+ if ((at == at))
462444 then {
463- let aJ = if (!(af))
445+ let aI = !(ae(q))
446+ if ((aI == aI))
464447 then {
465- let az = valueOrErrorMessage(addressFromString(O(this, n())), "invalid factory contract address")
466- invoke(az, "onVerificationLoss", [p], nil)
448+ let aJ = if ((aH == ""))
449+ then nil
450+ else [StringEntry(r(q), aH)]
451+ $Tuple2((([BooleanEntry(p(q), true)] ++ aJ) ++ ap(q, ag)), aI)
467452 }
468- else unit
469- if ((aJ == aJ))
470- then $Tuple2(ao(p, af), unit)
471453 else throw("Strict value is not equal to itself.")
472454 }
473455 else throw("Strict value is not equal to itself.")
475457
476458
477459
478-@Callable(Y)
479-func onEliminate (p) = {
480- let aK = valueOrElse(getInteger(t(p)), 0)
481- let aL = if ((aK > 0))
482- then nil
483- else [DeleteEntry(q(p))]
484- $Tuple2(aL, unit)
485- }
486-
487-
488-
489-@Callable(Y)
490-func setAdmins (aM) = {
491- let av = X(Y)
492- if ((av == av))
493- then [StringEntry(l(), makeString(aM, a))]
460+@Callable(Z)
461+func setLogo (q,aH) = {
462+ let aK = [ab(Z), if (ae(q))
463+ then true
464+ else i()]
465+ if ((aK == aK))
466+ then {
467+ let aL = if ((aH == ""))
468+ then DeleteEntry(r(q))
469+ else StringEntry(r(q), aH)
470+[aL]
471+ }
494472 else throw("Strict value is not equal to itself.")
495473 }
496474
497475
498476
499-@Callable(Y)
500-func setManager (aN) = {
501- let av = X(Y)
502- if ((av == av))
477+@Callable(Z)
478+func setVerified (q,ag) = {
479+ let aK = [ab(Z), if (ae(q))
480+ then true
481+ else i()]
482+ if ((aK == aK))
503483 then {
504- let aO = fromBase58String(aN)
505- if ((aO == aO))
506- then [StringEntry(k(), aN)]
484+ let aM = if (!(ag))
485+ then {
486+ let ax = valueOrErrorMessage(addressFromString(P(this, o())), "invalid factory contract address")
487+ invoke(ax, "onVerificationLoss", [q], nil)
488+ }
489+ else unit
490+ if ((aM == aM))
491+ then $Tuple2(ap(q, ag), unit)
507492 else throw("Strict value is not equal to itself.")
508493 }
509494 else throw("Strict value is not equal to itself.")
511496
512497
513498
514-@Callable(Y)
515-func confirmManager () = {
516- let aP = W()
517- let aQ = if (isDefined(aP))
518- then true
519- else throw("No pending manager")
520- if ((aQ == aQ))
499+@Callable(Z)
500+func onEliminate (q) = {
501+ let aN = valueOrElse(getInteger(u(q)), 0)
502+ let aO = if ((aN > 0))
503+ then nil
504+ else [DeleteEntry(r(q))]
505+ $Tuple2(aO, unit)
506+ }
507+
508+
509+
510+@Callable(Z)
511+func setAdmins (aP) = {
512+ let at = Y(Z)
513+ if ((at == at))
514+ then [StringEntry(m(), makeString(aP, a))]
515+ else throw("Strict value is not equal to itself.")
516+ }
517+
518+
519+
520+@Callable(Z)
521+func setManager (aQ) = {
522+ let at = Y(Z)
523+ if ((at == at))
521524 then {
522- let aR = if ((Y.callerPublicKey == value(aP)))
523- then true
524- else throw("You are not pending manager")
525+ let aR = fromBase58String(aQ)
525526 if ((aR == aR))
526- then [StringEntry(j(), toBase58String(value(aP))), DeleteEntry(k())]
527+ then [StringEntry(l(), aQ)]
527528 else throw("Strict value is not equal to itself.")
528529 }
529530 else throw("Strict value is not equal to itself.")
531532
532533
533534
534-@Callable(Y)
535-func isVerifiedREADONLY (p) = $Tuple2(nil, R(p))
535+@Callable(Z)
536+func confirmManager () = {
537+ let aS = X()
538+ let aT = if (isDefined(aS))
539+ then true
540+ else throw("No pending manager")
541+ if ((aT == aT))
542+ then {
543+ let aU = if ((Z.callerPublicKey == value(aS)))
544+ then true
545+ else throw("You are not pending manager")
546+ if ((aU == aU))
547+ then [StringEntry(k(), toBase58String(value(aS))), DeleteEntry(l())]
548+ else throw("Strict value is not equal to itself.")
549+ }
550+ else throw("Strict value is not equal to itself.")
551+ }
536552
537553
538-@Verifier(aS)
539-func aT () = {
540- let aU = {
541- let L = V()
542- if ($isInstanceOf(L, "ByteVector"))
554+
555+@Callable(Z)
556+func isVerifiedREADONLY (q) = $Tuple2(nil, S(q))
557+
558+
559+@Verifier(aV)
560+func aW () = {
561+ let aX = {
562+ let M = W()
563+ if ($isInstanceOf(M, "ByteVector"))
543564 then {
544- let Z = L
545- Z
565+ let aa = M
566+ aa
546567 }
547- else if ($isInstanceOf(L, "Unit"))
548- then aS.senderPublicKey
568+ else if ($isInstanceOf(M, "Unit"))
569+ then aV.senderPublicKey
549570 else throw("Match error")
550571 }
551- sigVerify(aS.bodyBytes, aS.proofs[0], aU)
572+ sigVerify(aV.bodyBytes, aV.proofs[0], aX)
552573 }
553574
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = ""
77
88 let c = 2
99
1010 let d = 0
1111
1212 let e = "COMMUNITY_VERIFIED"
1313
1414 let f = "POOLS_LP"
1515
1616 let g = [e, f]
1717
1818 func h () = throw("Permission denied")
1919
2020
2121 func i () = throw("Asset doesn't exists")
2222
2323
24-func j () = "%s__managerPublicKey"
24+func j () = throw("Invalid ticker")
2525
2626
27-func k () = "%s__pendingManagerPublicKey"
27+func k () = "%s__managerPublicKey"
2828
2929
30-func l () = "%s__adminPubKeys"
30+func l () = "%s__pendingManagerPublicKey"
3131
3232
33-func m () = "%s__userPoolsContract"
33+func m () = "%s__adminPubKeys"
3434
3535
36-func n () = "%s__factoryContract"
36+func n () = "%s__userPoolsContract"
3737
3838
39-func o (p) = (("created_<" + p) + ">")
39+func o () = "%s__factoryContract"
4040
4141
42-func q (p) = (("logo_<" + p) + ">")
42+func p (q) = (("created_<" + q) + ">")
4343
4444
45-func r (p) = (("ticker_<" + p) + ">")
45+func r (q) = (("logo_<" + q) + ">")
4646
4747
48-func s (p) = (("status_<" + p) + ">")
48+func s (q) = (("ticker_<" + q) + ">")
4949
5050
51-func t (p) = makeString(["%s%s", "pools", p], a)
51+func t (q) = (("status_<" + q) + ">")
5252
5353
54-func u (v) = makeString(["%s%s", "ticker2assetId", v], a)
54+func u (q) = makeString(["%s%s", "pools", q], a)
5555
5656
57-func w (p) = makeString(["%s%s", "assetId2ticker", p], a)
57+func v (w) = makeString(["%s%s", "ticker2assetId", w], a)
5858
5959
60-func x (y,z) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", y, z], a)
60+func x (q) = makeString(["%s%s", "assetId2ticker", q], a)
6161
6262
63-func A (B) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", B], a)
63+func y (z,A) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", z, A], a)
6464
6565
66-func C (p) = makeString(["%s%s", "labels", p], a)
66+func B (C) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", C], a)
6767
6868
69-func D () = makeString(["%s", "labels"], a)
69+func D (q) = makeString(["%s%s", "labels", q], a)
7070
7171
72-func E (p) = makeString(["%s%s", "assetName", p], a)
72+func E () = makeString(["%s", "labels"], a)
7373
7474
75-func F (p) = makeString(["%s%s", "assetDescription", p], a)
75+func F (q) = makeString(["%s%s", "assetName", q], a)
7676
7777
78-func G (H,I,J) = {
79- let K = makeString(["mandatory ", toString(H), ".", I, " is not defined"], "")
78+func G (q) = makeString(["%s%s", "assetDescription", q], a)
79+
80+
81+func H (I,J,K) = {
82+ let L = makeString(["mandatory ", toString(I), ".", J, " is not defined"], "")
8083 valueOrErrorMessage({
81- let L = J
82- if ($isInstanceOf(L, "String"))
84+ let M = K
85+ if ($isInstanceOf(M, "String"))
8386 then {
84- let M = L
85- getString(H, I)
87+ let N = M
88+ getString(I, J)
8689 }
87- else if ($isInstanceOf(L, "Int"))
90+ else if ($isInstanceOf(M, "Int"))
8891 then {
89- let N = L
90- getInteger(H, I)
92+ let O = M
93+ getInteger(I, J)
9194 }
9295 else throw("invalid entry type")
93- }, K)
96+ }, L)
9497 }
9598
9699
97-func O (H,I) = {
98- let P = G(H, I, "")
99- if ($isInstanceOf(P, "String"))
100- then P
100+func P (I,J) = {
101+ let Q = H(I, J, "")
102+ if ($isInstanceOf(Q, "String"))
103+ then Q
101104 else throw("Couldn't cast Int|String to String")
102105 }
103106
104107
105-func Q (H,I) = {
106- let P = G(H, I, 0)
107- if ($isInstanceOf(P, "Int"))
108- then P
108+func R (I,J) = {
109+ let Q = H(I, J, 0)
110+ if ($isInstanceOf(Q, "Int"))
111+ then Q
109112 else throw("Couldn't cast Int|String to Int")
110113 }
111114
112115
113-func R (p) = (valueOrElse(getInteger(s(p)), d) == c)
116+func S (q) = (valueOrElse(getInteger(t(q)), d) == c)
114117
115118
116-func S () = {
117- let L = getString(D())
118- if ($isInstanceOf(L, "String"))
119+func T () = {
120+ let M = getString(E())
121+ if ($isInstanceOf(M, "String"))
119122 then {
120- let T = L
121- if ((size(T) == 0))
123+ let U = M
124+ if ((size(U) == 0))
122125 then nil
123- else split(T, a)
126+ else split(U, a)
124127 }
125128 else nil
126129 }
127130
128131
129-func U (p) = {
130- let L = getString(C(p))
131- if ($isInstanceOf(L, "String"))
132+func V (q) = {
133+ let M = getString(D(q))
134+ if ($isInstanceOf(M, "String"))
132135 then {
133- let T = L
134- if ((size(T) == 0))
136+ let U = M
137+ if ((size(U) == 0))
135138 then nil
136- else split(T, a)
139+ else split(U, a)
137140 }
138141 else nil
139142 }
140143
141144
142-func V () = {
143- let L = getString(j())
144- if ($isInstanceOf(L, "String"))
145+func W () = {
146+ let M = getString(k())
147+ if ($isInstanceOf(M, "String"))
145148 then {
146- let T = L
147- fromBase58String(T)
149+ let U = M
150+ fromBase58String(U)
148151 }
149- else if ($isInstanceOf(L, "Unit"))
152+ else if ($isInstanceOf(M, "Unit"))
150153 then unit
151154 else throw("Match error")
152155 }
153156
154157
155-func W () = {
156- let L = getString(k())
157- if ($isInstanceOf(L, "String"))
158+func X () = {
159+ let M = getString(l())
160+ if ($isInstanceOf(M, "String"))
158161 then {
159- let T = L
160- fromBase58String(T)
162+ let U = M
163+ fromBase58String(U)
161164 }
162- else if ($isInstanceOf(L, "Unit"))
165+ else if ($isInstanceOf(M, "Unit"))
163166 then unit
164167 else throw("Match error")
165168 }
166169
167170
168-func X (Y) = {
169- let L = V()
170- if ($isInstanceOf(L, "ByteVector"))
171+func Y (Z) = {
172+ let M = W()
173+ if ($isInstanceOf(M, "ByteVector"))
171174 then {
172- let Z = L
173- if ((Y.callerPublicKey == Z))
175+ let aa = M
176+ if ((Z.callerPublicKey == aa))
174177 then true
175178 else h()
176179 }
177- else if ($isInstanceOf(L, "Unit"))
178- then if ((Y.caller == this))
180+ else if ($isInstanceOf(M, "Unit"))
181+ then if ((Z.caller == this))
179182 then true
180183 else h()
181184 else throw("Match error")
182185 }
183186
184187
185-func aa (Y) = {
186- let ab = split(valueOrElse(getString(l()), b), a)
187- if (containsElement(ab, toBase58String(Y.callerPublicKey)))
188+func ab (Z) = {
189+ let ac = split(valueOrElse(getString(m()), b), a)
190+ if (containsElement(ac, toBase58String(Z.callerPublicKey)))
188191 then true
189192 else {
190- let ac = X(Y)
191- if ((ac == ac))
193+ let ad = Y(Z)
194+ if ((ad == ad))
192195 then true
193196 else throw("Strict value is not equal to itself.")
194197 }
195198 }
196199
197200
198-func ad (p) = valueOrElse(getBoolean(o(p)), false)
201+func ae (q) = valueOrElse(getBoolean(p(q)), false)
199202
200203
201-func ae (af) = if (af)
204+func af (ag) = if (ag)
202205 then c
203206 else d
204207
205208
206-func ag (p,ah,ai) = {
207- let aj = S()
208- let ak = U(p)
209- let al = if (containsElement(aj, ah))
209+func ah (q,ai,aj) = {
210+ let ak = T()
211+ let al = V(q)
212+ let am = if (containsElement(ak, ai))
210213 then true
211214 else throw("Label doesn't exist")
212- if ((al == al))
215+ if ((am == am))
213216 then {
214- let am = if (containsElement(ak, ah))
215- then if (ai)
217+ let an = if (containsElement(al, ai))
218+ then if (aj)
216219 then throw("Label has already been added")
217- else ak
218- else (ak :+ ah)
219-[StringEntry(C(p), makeString(am, a))]
220+ else al
221+ else (al :+ ai)
222+[StringEntry(D(q), makeString(an, a))]
220223 }
221224 else throw("Strict value is not equal to itself.")
222225 }
223226
224227
225-func an (p,ah,ai) = {
226- let ak = U(p)
227- let am = if (containsElement(ak, ah))
228- then removeByIndex(ak, value(indexOf(ak, ah)))
229- else if (ai)
228+func ao (q,ai,aj) = {
229+ let al = V(q)
230+ let an = if (containsElement(al, ai))
231+ then removeByIndex(al, value(indexOf(al, ai)))
232+ else if (aj)
230233 then throw("Label wasn't added")
231- else ak
232-[StringEntry(C(p), makeString(am, a))]
234+ else al
235+[StringEntry(D(q), makeString(an, a))]
233236 }
234237
235238
236-func ao (p,af) = {
237- let ap = if (af)
238- then ag(p, e, false)
239- else an(p, e, false)
240- ([IntegerEntry(s(p), ae(af))] ++ ap)
239+func ap (q,ag) = {
240+ let aq = if (ag)
241+ then ah(q, e, false)
242+ else ao(q, e, false)
243+ ([IntegerEntry(t(q), af(ag))] ++ aq)
241244 }
242245
243246
244-func aq (p,v) = {
245- let ar = {
246- let as = (v != "")
247- if (as)
248- then true
249- else throw("Invalid ticker")
250- }
251- if ((ar == ar))
252- then [StringEntry(w(p), v), StringEntry(u(v), p)]
253- else throw("Strict value is not equal to itself.")
254- }
255-
256-
257-@Callable(Y)
258-func setAssetName (at,au) = {
259- let av = aa(Y)
260- if ((av == av))
261- then [StringEntry(E(at), au)]
247+@Callable(Z)
248+func setAssetName (ar,as) = {
249+ let at = ab(Z)
250+ if ((at == at))
251+ then [StringEntry(F(ar), as)]
262252 else throw("Strict value is not equal to itself.")
263253 }
264254
265255
266256
267-@Callable(Y)
268-func setAssetDescription (at,aw) = {
269- let av = aa(Y)
270- if ((av == av))
271- then [StringEntry(F(at), aw)]
257+@Callable(Z)
258+func setAssetDescription (ar,au) = {
259+ let at = ab(Z)
260+ if ((at == at))
261+ then [StringEntry(G(ar), au)]
272262 else throw("Strict value is not equal to itself.")
273263 }
274264
275265
276266
277-@Callable(Y)
278-func constructor (ax,aj) = {
279- let av = X(Y)
280- if ((av == av))
267+@Callable(Z)
268+func constructor (av,ak) = {
269+ let at = Y(Z)
270+ if ((at == at))
281271 then {
282- let ay = valueOrErrorMessage(addressFromString(ax), "Invalid address")
283- if ((ay == ay))
284- then [StringEntry(m(), ax), StringEntry(D(), makeString((g ++ aj), a))]
272+ let aw = valueOrErrorMessage(addressFromString(av), "Invalid address")
273+ if ((aw == aw))
274+ then [StringEntry(n(), av), StringEntry(E(), makeString((g ++ ak), a))]
285275 else throw("Strict value is not equal to itself.")
286276 }
287277 else throw("Strict value is not equal to itself.")
288278 }
289279
290280
291281
292-@Callable(Y)
293-func constructorV2 (az) = {
294- let av = X(Y)
295- if ((av == av))
282+@Callable(Z)
283+func constructorV2 (ax) = {
284+ let at = Y(Z)
285+ if ((at == at))
296286 then {
297- let aA = valueOrErrorMessage(addressFromString(az), "invalid factory contract address")
298- if ((aA == aA))
299- then [StringEntry(n(), az)]
287+ let ay = valueOrErrorMessage(addressFromString(ax), "invalid factory contract address")
288+ if ((ay == ay))
289+ then [StringEntry(o(), ax)]
300290 else throw("Strict value is not equal to itself.")
301291 }
302292 else throw("Strict value is not equal to itself.")
303293 }
304294
305295
306296
307-@Callable(Y)
308-func addAssetsLink (y,z,B) = {
309- let av = aa(Y)
310- if ((av == av))
311- then [StringEntry(x(y, z), B), StringEntry(A(B), makeString([y, z], a))]
297+@Callable(Z)
298+func addAssetsLink (z,A,C) = {
299+ let at = ab(Z)
300+ if ((at == at))
301+ then [StringEntry(y(z, A), C), StringEntry(B(C), makeString([z, A], a))]
312302 else throw("Strict value is not equal to itself.")
313303 }
314304
315305
316306
317-@Callable(Y)
318-func increaseAssetPoolsNumber (p) = {
319- let av = aa(Y)
320- if ((av == av))
307+@Callable(Z)
308+func increaseAssetPoolsNumber (q) = {
309+ let at = ab(Z)
310+ if ((at == at))
321311 then {
322- let aB = t(p)
323- let aC = valueOrElse(getInteger(aB), 0)
324-[IntegerEntry(aB, (aC + 1))]
312+ let az = u(q)
313+ let aA = valueOrElse(getInteger(az), 0)
314+[IntegerEntry(az, (aA + 1))]
325315 }
326316 else throw("Strict value is not equal to itself.")
327317 }
328318
329319
330320
331-@Callable(Y)
332-func createLabel (ah) = {
333- let aj = S()
334- let av = aa(Y)
335- if ((av == av))
321+@Callable(Z)
322+func createLabel (ai) = {
323+ let ak = T()
324+ let at = ab(Z)
325+ if ((at == at))
336326 then {
337- let al = [if (!(contains(ah, a)))
327+ let am = [if (!(contains(ai, a)))
338328 then true
339- else throw("Invalid label name"), if (!(containsElement(aj, ah)))
329+ else throw("Invalid label name"), if (!(containsElement(ak, ai)))
340330 then true
341331 else throw("Label exists")]
342- if ((al == al))
343- then [StringEntry(D(), makeString((aj :+ ah), a))]
332+ if ((am == am))
333+ then [StringEntry(E(), makeString((ak :+ ai), a))]
344334 else throw("Strict value is not equal to itself.")
345335 }
346336 else throw("Strict value is not equal to itself.")
347337 }
348338
349339
350340
351-@Callable(Y)
352-func dropLabel (ah) = {
353- let aj = S()
354- let av = X(Y)
355- if ((av == av))
341+@Callable(Z)
342+func dropLabel (ai) = {
343+ let ak = T()
344+ let at = Y(Z)
345+ if ((at == at))
356346 then {
357- let al = if (containsElement(aj, ah))
347+ let am = if (containsElement(ak, ai))
358348 then true
359349 else throw("Label doesn't exist")
360- if ((al == al))
361- then [StringEntry(D(), makeString(removeByIndex(aj, value(indexOf(aj, ah))), a))]
350+ if ((am == am))
351+ then [StringEntry(E(), makeString(removeByIndex(ak, value(indexOf(ak, ai))), a))]
362352 else throw("Strict value is not equal to itself.")
363353 }
364354 else throw("Strict value is not equal to itself.")
365355 }
366356
367357
368358
369-@Callable(Y)
370-func addLabel (p,ah) = {
371- let av = aa(Y)
372- if ((av == av))
373- then ag(p, ah, true)
359+@Callable(Z)
360+func addLabel (q,ai) = {
361+ let at = ab(Z)
362+ if ((at == at))
363+ then ah(q, ai, true)
374364 else throw("Strict value is not equal to itself.")
375365 }
376366
377367
378368
379-@Callable(Y)
380-func deleteLabel (p,ah) = {
381- let av = aa(Y)
382- if ((av == av))
383- then an(p, ah, true)
369+@Callable(Z)
370+func deleteLabel (q,ai) = {
371+ let at = ab(Z)
372+ if ((at == at))
373+ then ao(q, ai, true)
384374 else throw("Strict value is not equal to itself.")
385375 }
386376
387377
388378
389-@Callable(Y)
390-func updateTicker (p,v) = {
391- let av = aa(Y)
392- if ((av == av))
379+@Callable(Z)
380+func updateTicker (q,w) = {
381+ let at = ab(Z)
382+ if ((at == at))
393383 then {
394- let aD = if (ad(p))
384+ let aB = if (ae(q))
395385 then true
396386 else i()
397- if ((aD == aD))
398- then aq(p, v)
399- else throw("Strict value is not equal to itself.")
400- }
401- else throw("Strict value is not equal to itself.")
402- }
403-
404-
405-
406-@Callable(Y)
407-func deleteTicker (p) = {
408- let av = aa(Y)
409- if ((av == av))
410- then {
411- let v = valueOrErrorMessage(getString(w(p)), "Invalid asset")
412-[DeleteEntry(w(p)), DeleteEntry(u(v))]
413- }
414- else throw("Strict value is not equal to itself.")
415- }
416-
417-
418-
419-@Callable(Y)
420-func createOrUpdate (p,aE,af) = {
421- let av = aa(Y)
422- if ((av == av))
423- then {
424- let aF = !(ad(p))
425- if ((aF == aF))
387+ if ((aB == aB))
426388 then {
427- let aG = if ((aE == ""))
428- then nil
429- else [StringEntry(q(p), aE)]
430- $Tuple2((([BooleanEntry(o(p), true)] ++ aG) ++ ao(p, af)), aF)
389+ let aC = if ((w != ""))
390+ then true
391+ else j()
392+ if ((aC == aC))
393+ then {
394+ let aD = ({
395+ let M = getString(v(w))
396+ if ($isInstanceOf(M, "String"))
397+ then {
398+ let aE = M
399+[DeleteEntry(x(aE))]
400+ }
401+ else if ($isInstanceOf(M, "Unit"))
402+ then nil
403+ else throw("Match error")
404+ } ++ {
405+ let M = getString(x(q))
406+ if ($isInstanceOf(M, "String"))
407+ then {
408+ let aF = M
409+[DeleteEntry(v(aF))]
410+ }
411+ else if ($isInstanceOf(M, "Unit"))
412+ then nil
413+ else throw("Match error")
414+ })
415+ let aG = [StringEntry(x(q), w), StringEntry(v(w), q)]
416+ (aD ++ aG)
417+ }
418+ else throw("Strict value is not equal to itself.")
431419 }
432420 else throw("Strict value is not equal to itself.")
433421 }
434422 else throw("Strict value is not equal to itself.")
435423 }
436424
437425
438426
439-@Callable(Y)
440-func setLogo (p,aE) = {
441- let aH = [aa(Y), if (ad(p))
442- then true
443- else i()]
444- if ((aH == aH))
427+@Callable(Z)
428+func deleteTicker (q) = {
429+ let at = ab(Z)
430+ if ((at == at))
445431 then {
446- let aI = if ((aE == ""))
447- then DeleteEntry(q(p))
448- else StringEntry(q(p), aE)
449-[aI]
432+ let w = valueOrErrorMessage(getString(x(q)), "Invalid asset")
433+[DeleteEntry(x(q)), DeleteEntry(v(w))]
450434 }
451435 else throw("Strict value is not equal to itself.")
452436 }
453437
454438
455439
456-@Callable(Y)
457-func setVerified (p,af) = {
458- let aH = [aa(Y), if (ad(p))
459- then true
460- else i()]
461- if ((aH == aH))
440+@Callable(Z)
441+func createOrUpdate (q,aH,ag) = {
442+ let at = ab(Z)
443+ if ((at == at))
462444 then {
463- let aJ = if (!(af))
445+ let aI = !(ae(q))
446+ if ((aI == aI))
464447 then {
465- let az = valueOrErrorMessage(addressFromString(O(this, n())), "invalid factory contract address")
466- invoke(az, "onVerificationLoss", [p], nil)
448+ let aJ = if ((aH == ""))
449+ then nil
450+ else [StringEntry(r(q), aH)]
451+ $Tuple2((([BooleanEntry(p(q), true)] ++ aJ) ++ ap(q, ag)), aI)
467452 }
468- else unit
469- if ((aJ == aJ))
470- then $Tuple2(ao(p, af), unit)
471453 else throw("Strict value is not equal to itself.")
472454 }
473455 else throw("Strict value is not equal to itself.")
474456 }
475457
476458
477459
478-@Callable(Y)
479-func onEliminate (p) = {
480- let aK = valueOrElse(getInteger(t(p)), 0)
481- let aL = if ((aK > 0))
482- then nil
483- else [DeleteEntry(q(p))]
484- $Tuple2(aL, unit)
485- }
486-
487-
488-
489-@Callable(Y)
490-func setAdmins (aM) = {
491- let av = X(Y)
492- if ((av == av))
493- then [StringEntry(l(), makeString(aM, a))]
460+@Callable(Z)
461+func setLogo (q,aH) = {
462+ let aK = [ab(Z), if (ae(q))
463+ then true
464+ else i()]
465+ if ((aK == aK))
466+ then {
467+ let aL = if ((aH == ""))
468+ then DeleteEntry(r(q))
469+ else StringEntry(r(q), aH)
470+[aL]
471+ }
494472 else throw("Strict value is not equal to itself.")
495473 }
496474
497475
498476
499-@Callable(Y)
500-func setManager (aN) = {
501- let av = X(Y)
502- if ((av == av))
477+@Callable(Z)
478+func setVerified (q,ag) = {
479+ let aK = [ab(Z), if (ae(q))
480+ then true
481+ else i()]
482+ if ((aK == aK))
503483 then {
504- let aO = fromBase58String(aN)
505- if ((aO == aO))
506- then [StringEntry(k(), aN)]
484+ let aM = if (!(ag))
485+ then {
486+ let ax = valueOrErrorMessage(addressFromString(P(this, o())), "invalid factory contract address")
487+ invoke(ax, "onVerificationLoss", [q], nil)
488+ }
489+ else unit
490+ if ((aM == aM))
491+ then $Tuple2(ap(q, ag), unit)
507492 else throw("Strict value is not equal to itself.")
508493 }
509494 else throw("Strict value is not equal to itself.")
510495 }
511496
512497
513498
514-@Callable(Y)
515-func confirmManager () = {
516- let aP = W()
517- let aQ = if (isDefined(aP))
518- then true
519- else throw("No pending manager")
520- if ((aQ == aQ))
499+@Callable(Z)
500+func onEliminate (q) = {
501+ let aN = valueOrElse(getInteger(u(q)), 0)
502+ let aO = if ((aN > 0))
503+ then nil
504+ else [DeleteEntry(r(q))]
505+ $Tuple2(aO, unit)
506+ }
507+
508+
509+
510+@Callable(Z)
511+func setAdmins (aP) = {
512+ let at = Y(Z)
513+ if ((at == at))
514+ then [StringEntry(m(), makeString(aP, a))]
515+ else throw("Strict value is not equal to itself.")
516+ }
517+
518+
519+
520+@Callable(Z)
521+func setManager (aQ) = {
522+ let at = Y(Z)
523+ if ((at == at))
521524 then {
522- let aR = if ((Y.callerPublicKey == value(aP)))
523- then true
524- else throw("You are not pending manager")
525+ let aR = fromBase58String(aQ)
525526 if ((aR == aR))
526- then [StringEntry(j(), toBase58String(value(aP))), DeleteEntry(k())]
527+ then [StringEntry(l(), aQ)]
527528 else throw("Strict value is not equal to itself.")
528529 }
529530 else throw("Strict value is not equal to itself.")
530531 }
531532
532533
533534
534-@Callable(Y)
535-func isVerifiedREADONLY (p) = $Tuple2(nil, R(p))
535+@Callable(Z)
536+func confirmManager () = {
537+ let aS = X()
538+ let aT = if (isDefined(aS))
539+ then true
540+ else throw("No pending manager")
541+ if ((aT == aT))
542+ then {
543+ let aU = if ((Z.callerPublicKey == value(aS)))
544+ then true
545+ else throw("You are not pending manager")
546+ if ((aU == aU))
547+ then [StringEntry(k(), toBase58String(value(aS))), DeleteEntry(l())]
548+ else throw("Strict value is not equal to itself.")
549+ }
550+ else throw("Strict value is not equal to itself.")
551+ }
536552
537553
538-@Verifier(aS)
539-func aT () = {
540- let aU = {
541- let L = V()
542- if ($isInstanceOf(L, "ByteVector"))
554+
555+@Callable(Z)
556+func isVerifiedREADONLY (q) = $Tuple2(nil, S(q))
557+
558+
559+@Verifier(aV)
560+func aW () = {
561+ let aX = {
562+ let M = W()
563+ if ($isInstanceOf(M, "ByteVector"))
543564 then {
544- let Z = L
545- Z
565+ let aa = M
566+ aa
546567 }
547- else if ($isInstanceOf(L, "Unit"))
548- then aS.senderPublicKey
568+ else if ($isInstanceOf(M, "Unit"))
569+ then aV.senderPublicKey
549570 else throw("Match error")
550571 }
551- sigVerify(aS.bodyBytes, aS.proofs[0], aU)
572+ sigVerify(aV.bodyBytes, aV.proofs[0], aX)
552573 }
553574

github/deemru/w8io/026f985 
124.72 ms