tx · ErYRZHxSgKfhuhsdiMmRRjpNvLHw7xNxHKYyFjM5XHia

3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr:  -0.01700000 Waves

2023.04.06 17:35 [2522831] smart account 3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr > SELF 0.00000000 Waves

{ "type": 13, "id": "ErYRZHxSgKfhuhsdiMmRRjpNvLHw7xNxHKYyFjM5XHia", "fee": 1700000, "feeAssetId": null, "timestamp": 1680791796211, "version": 2, "chainId": 84, "sender": "3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr", "senderPublicKey": "EtZZHS4uqNXY5WPneZ8jY2aA95peXwthJVLzAMxMp379", "proofs": [ "2jb7zrwREZq5FQX74Y2GjZ9pJM6oH6oTHYBjwZf6aGt7mBDs96cCDfooLQxX2cTVCXsKiEkAtYMPva3m3sT8dTsu" ], "script": "base64:AAIFAAAAAAAABdEIAhIECgIICBIECgIICBIECgIIGBIDCgEIEgUKAwgICBIDCgEIEgMKAQgSAwoBCBIECgIICBIECgIICBIECgIICBIDCgEIEgUKAwgIBBIECgIICBIECgIIBBIDCgEIEgMKARgSAwoBCBIAEgMKAQgiA1NFUCIFRU1QVFkiDnN0YXR1c1ZlcmlmaWVkIhBzdGF0dXNVbnZlcmlmaWVkIhZsYWJlbENvbW11bml0eVZlcmlmaWVkIgxsYWJlbFBvb2xzTHAiDWRlZmF1bHRMYWJlbHMiB3Rocm93UEQiDHRocm93Tm9Bc3NldCITa2V5TWFuYWdlclB1YmxpY0tleSIaa2V5UGVuZGluZ01hbmFnZXJQdWJsaWNLZXkiD2tleUFkbWluUHViS2V5cyIUa2V5VXNlclBvb2xzQ29udHJhY3QiEmtleUZhY3RvcnlDb250cmFjdCIKa2V5Q3JlYXRlZCIHYXNzZXRJZCIHa2V5TG9nbyIJa2V5VGlja2VyIglrZXlTdGF0dXMiE2tleUFzc2V0UG9vbHNOdW1iZXIiEmtleVRpY2tlclRvQXNzZXRJZCIGdGlja2VyIhJrZX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JpbmdFbnRyeQAAAAIJAQAAAAFqAAAAAAkAAlgAAAABCQEAAAAFdmFsdWUAAAABBQAAAAJhUAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAABawAAAAAFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAVkBAAAAEmlzVmVyaWZpZWRSRUFET05MWQAAAAEAAAABcAkABRQAAAACBQAAAANuaWwJAQAAAAFSAAAAAQUAAAABcAAAAAEAAAACYVMBAAAAAmFUAAAAAAQAAAACYVUEAAAAAUwJAQAAAAFWAAAAAAMJAAABAAAAAgUAAAABTAIAAAAKQnl0ZVZlY3RvcgQAAAABWgUAAAABTAUAAAABWgMJAAABAAAAAgUAAAABTAIAAAAEVW5pdAgFAAAAAmFTAAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACYVMAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJhUwAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmFVOVpP1g==", "height": 2522831, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Cp18vEpvtLDpFCCX1jDoaVB319Y23dee28pask1uKhZ8 Next: 881rjhL5QAtMYSxpD9DXoLgQmoSXiDwLw7N2VAMacNZS Diff:
OldNewDifferences
2121 func i () = throw("Asset doesn't exists")
2222
2323
24-func j () = throw("Invalid ticker")
24+func j () = "%s__managerPublicKey"
2525
2626
27-func k () = "%s__managerPublicKey"
27+func k () = "%s__pendingManagerPublicKey"
2828
2929
30-func l () = "%s__pendingManagerPublicKey"
30+func l () = "%s__adminPubKeys"
3131
3232
33-func m () = "%s__adminPubKeys"
33+func m () = "%s__userPoolsContract"
3434
3535
36-func n () = "%s__userPoolsContract"
36+func n () = "%s__factoryContract"
3737
3838
39-func o () = "%s__factoryContract"
39+func o (p) = (("created_<" + p) + ">")
4040
4141
42-func p (q) = (("created_<" + q) + ">")
42+func q (p) = (("logo_<" + p) + ">")
4343
4444
45-func r (q) = (("logo_<" + q) + ">")
45+func r (p) = (("ticker_<" + p) + ">")
4646
4747
48-func s (q) = (("ticker_<" + q) + ">")
48+func s (p) = (("status_<" + p) + ">")
4949
5050
51-func t (q) = (("status_<" + q) + ">")
51+func t (p) = makeString(["%s%s", "pools", p], a)
5252
5353
54-func u (q) = makeString(["%s%s", "pools", q], a)
54+func u (v) = makeString(["%s%s", "ticker2assetId", v], a)
5555
5656
57-func v (w) = makeString(["%s%s", "ticker2assetId", w], a)
57+func w (p) = makeString(["%s%s", "assetId2ticker", p], a)
5858
5959
60-func x (q) = makeString(["%s%s", "assetId2ticker", q], a)
60+func x (y,z) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", y, z], a)
6161
6262
63-func y (z,A) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", z, A], a)
63+func A (B) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", B], a)
6464
6565
66-func B (C) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", C], a)
66+func C (p) = makeString(["%s%s", "labels", p], a)
6767
6868
69-func D (q) = makeString(["%s%s", "labels", q], a)
69+func D () = makeString(["%s", "labels"], a)
7070
7171
72-func E () = makeString(["%s", "labels"], a)
72+func E (p) = makeString(["%s%s", "assetName", p], a)
7373
7474
75-func F (q) = makeString(["%s%s", "assetName", q], a)
75+func F (p) = makeString(["%s%s", "assetDescription", p], a)
7676
7777
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"], "")
78+func G (H,I,J) = {
79+ let K = makeString(["mandatory ", toString(H), ".", I, " is not defined"], "")
8380 valueOrErrorMessage({
84- let M = K
85- if ($isInstanceOf(M, "String"))
81+ let L = J
82+ if ($isInstanceOf(L, "String"))
8683 then {
87- let N = M
88- getString(I, J)
84+ let M = L
85+ getString(H, I)
8986 }
90- else if ($isInstanceOf(M, "Int"))
87+ else if ($isInstanceOf(L, "Int"))
9188 then {
92- let O = M
93- getInteger(I, J)
89+ let N = L
90+ getInteger(H, I)
9491 }
9592 else throw("invalid entry type")
96- }, L)
93+ }, K)
9794 }
9895
9996
100-func P (I,J) = {
101- let Q = H(I, J, "")
102- if ($isInstanceOf(Q, "String"))
103- then Q
97+func O (H,I) = {
98+ let P = G(H, I, "")
99+ if ($isInstanceOf(P, "String"))
100+ then P
104101 else throw("Couldn't cast Int|String to String")
105102 }
106103
107104
108-func R (I,J) = {
109- let Q = H(I, J, 0)
110- if ($isInstanceOf(Q, "Int"))
111- then Q
105+func Q (H,I) = {
106+ let P = G(H, I, 0)
107+ if ($isInstanceOf(P, "Int"))
108+ then P
112109 else throw("Couldn't cast Int|String to Int")
113110 }
114111
115112
116-func S (q) = (valueOrElse(getInteger(t(q)), d) == c)
113+func R (p) = (valueOrElse(getInteger(s(p)), d) == c)
117114
118115
119-func T () = {
120- let M = getString(E())
121- if ($isInstanceOf(M, "String"))
116+func S () = {
117+ let L = getString(D())
118+ if ($isInstanceOf(L, "String"))
122119 then {
123- let U = M
124- if ((size(U) == 0))
120+ let T = L
121+ if ((size(T) == 0))
125122 then nil
126- else split(U, a)
123+ else split(T, a)
127124 }
128125 else nil
129126 }
130127
131128
132-func V (q) = {
133- let M = getString(D(q))
134- if ($isInstanceOf(M, "String"))
129+func U (p) = {
130+ let L = getString(C(p))
131+ if ($isInstanceOf(L, "String"))
135132 then {
136- let U = M
137- if ((size(U) == 0))
133+ let T = L
134+ if ((size(T) == 0))
138135 then nil
139- else split(U, a)
136+ else split(T, a)
140137 }
141138 else nil
142139 }
143140
144141
145-func W () = {
146- let M = getString(k())
147- if ($isInstanceOf(M, "String"))
142+func V () = {
143+ let L = getString(j())
144+ if ($isInstanceOf(L, "String"))
148145 then {
149- let U = M
150- fromBase58String(U)
146+ let T = L
147+ fromBase58String(T)
151148 }
152- else if ($isInstanceOf(M, "Unit"))
149+ else if ($isInstanceOf(L, "Unit"))
153150 then unit
154151 else throw("Match error")
155152 }
156153
157154
158-func X () = {
159- let M = getString(l())
160- if ($isInstanceOf(M, "String"))
155+func W () = {
156+ let L = getString(k())
157+ if ($isInstanceOf(L, "String"))
161158 then {
162- let U = M
163- fromBase58String(U)
159+ let T = L
160+ fromBase58String(T)
164161 }
165- else if ($isInstanceOf(M, "Unit"))
162+ else if ($isInstanceOf(L, "Unit"))
166163 then unit
167164 else throw("Match error")
168165 }
169166
170167
171-func Y (Z) = {
172- let M = W()
173- if ($isInstanceOf(M, "ByteVector"))
168+func X (Y) = {
169+ let L = V()
170+ if ($isInstanceOf(L, "ByteVector"))
174171 then {
175- let aa = M
176- if ((Z.callerPublicKey == aa))
172+ let Z = L
173+ if ((Y.callerPublicKey == Z))
177174 then true
178175 else h()
179176 }
180- else if ($isInstanceOf(M, "Unit"))
181- then if ((Z.caller == this))
177+ else if ($isInstanceOf(L, "Unit"))
178+ then if ((Y.caller == this))
182179 then true
183180 else h()
184181 else throw("Match error")
185182 }
186183
187184
188-func ab (Z) = {
189- let ac = split(valueOrElse(getString(m()), b), a)
190- if (containsElement(ac, toBase58String(Z.callerPublicKey)))
185+func aa (Y) = {
186+ let ab = split(valueOrElse(getString(l()), b), a)
187+ if (containsElement(ab, toBase58String(Y.callerPublicKey)))
191188 then true
192189 else {
193- let ad = Y(Z)
194- if ((ad == ad))
190+ let ac = X(Y)
191+ if ((ac == ac))
195192 then true
196193 else throw("Strict value is not equal to itself.")
197194 }
198195 }
199196
200197
201-func ae (q) = valueOrElse(getBoolean(p(q)), false)
198+func ad (p) = valueOrElse(getBoolean(o(p)), false)
202199
203200
204-func af (ag) = if (ag)
201+func ae (af) = if (af)
205202 then c
206203 else d
207204
208205
209-func ah (q,ai,aj) = {
210- let ak = T()
211- let al = V(q)
212- let am = if (containsElement(ak, ai))
206+func ag (p,ah,ai) = {
207+ let aj = S()
208+ let ak = U(p)
209+ let al = if (containsElement(aj, ah))
213210 then true
214211 else throw("Label doesn't exist")
215- if ((am == am))
212+ if ((al == al))
216213 then {
217- let an = if (containsElement(al, ai))
218- then if (aj)
214+ let am = if (containsElement(ak, ah))
215+ then if (ai)
219216 then throw("Label has already been added")
220- else al
221- else (al :+ ai)
222-[StringEntry(D(q), makeString(an, a))]
217+ else ak
218+ else (ak :+ ah)
219+[StringEntry(C(p), makeString(am, a))]
223220 }
224221 else throw("Strict value is not equal to itself.")
225222 }
226223
227224
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)
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)
233230 then throw("Label wasn't added")
234- else al
235-[StringEntry(D(q), makeString(an, a))]
231+ else ak
232+[StringEntry(C(p), makeString(am, a))]
236233 }
237234
238235
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)
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)
244241 }
245242
246243
247-@Callable(Z)
248-func setAssetName (ar,as) = {
249- let at = ab(Z)
250- if ((at == at))
251- then [StringEntry(F(ar), as)]
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)]
252262 else throw("Strict value is not equal to itself.")
253263 }
254264
255265
256266
257-@Callable(Z)
258-func setAssetDescription (ar,au) = {
259- let at = ab(Z)
260- if ((at == at))
261- then [StringEntry(G(ar), au)]
267+@Callable(Y)
268+func setAssetDescription (at,aw) = {
269+ let av = aa(Y)
270+ if ((av == av))
271+ then [StringEntry(F(at), aw)]
262272 else throw("Strict value is not equal to itself.")
263273 }
264274
265275
266276
267-@Callable(Z)
268-func constructor (av,ak) = {
269- let at = Y(Z)
270- if ((at == at))
277+@Callable(Y)
278+func constructor (ax,aj) = {
279+ let av = X(Y)
280+ if ((av == av))
271281 then {
272- let aw = valueOrErrorMessage(addressFromString(av), "Invalid address")
273- if ((aw == aw))
274- then [StringEntry(n(), av), StringEntry(E(), makeString((g ++ ak), a))]
282+ let ay = valueOrErrorMessage(addressFromString(ax), "Invalid address")
283+ if ((ay == ay))
284+ then [StringEntry(m(), ax), StringEntry(D(), makeString((g ++ aj), a))]
275285 else throw("Strict value is not equal to itself.")
276286 }
277287 else throw("Strict value is not equal to itself.")
279289
280290
281291
282-@Callable(Z)
283-func constructorV2 (ax) = {
284- let at = Y(Z)
285- if ((at == at))
292+@Callable(Y)
293+func constructorV2 (az) = {
294+ let av = X(Y)
295+ if ((av == av))
286296 then {
287- let ay = valueOrErrorMessage(addressFromString(ax), "invalid factory contract address")
288- if ((ay == ay))
289- then [StringEntry(o(), ax)]
297+ let aA = valueOrErrorMessage(addressFromString(az), "invalid factory contract address")
298+ if ((aA == aA))
299+ then [StringEntry(n(), az)]
290300 else throw("Strict value is not equal to itself.")
291301 }
292302 else throw("Strict value is not equal to itself.")
294304
295305
296306
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))]
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))]
302312 else throw("Strict value is not equal to itself.")
303313 }
304314
305315
306316
307-@Callable(Z)
308-func increaseAssetPoolsNumber (q) = {
309- let at = ab(Z)
310- if ((at == at))
317+@Callable(Y)
318+func increaseAssetPoolsNumber (p) = {
319+ let av = aa(Y)
320+ if ((av == av))
311321 then {
312- let az = u(q)
313- let aA = valueOrElse(getInteger(az), 0)
314-[IntegerEntry(az, (aA + 1))]
322+ let aB = t(p)
323+ let aC = valueOrElse(getInteger(aB), 0)
324+[IntegerEntry(aB, (aC + 1))]
315325 }
316326 else throw("Strict value is not equal to itself.")
317327 }
318328
319329
320330
321-@Callable(Z)
322-func createLabel (ai) = {
323- let ak = T()
324- let at = ab(Z)
325- if ((at == at))
331+@Callable(Y)
332+func createLabel (ah) = {
333+ let aj = S()
334+ let av = aa(Y)
335+ if ((av == av))
326336 then {
327- let am = [if (!(contains(ai, a)))
337+ let al = [if (!(contains(ah, a)))
328338 then true
329- else throw("Invalid label name"), if (!(containsElement(ak, ai)))
339+ else throw("Invalid label name"), if (!(containsElement(aj, ah)))
330340 then true
331341 else throw("Label exists")]
332- if ((am == am))
333- then [StringEntry(E(), makeString((ak :+ ai), a))]
342+ if ((al == al))
343+ then [StringEntry(D(), makeString((aj :+ ah), a))]
334344 else throw("Strict value is not equal to itself.")
335345 }
336346 else throw("Strict value is not equal to itself.")
338348
339349
340350
341-@Callable(Z)
342-func dropLabel (ai) = {
343- let ak = T()
344- let at = Y(Z)
345- if ((at == at))
351+@Callable(Y)
352+func dropLabel (ah) = {
353+ let aj = S()
354+ let av = X(Y)
355+ if ((av == av))
346356 then {
347- let am = if (containsElement(ak, ai))
357+ let al = if (containsElement(aj, ah))
348358 then true
349359 else throw("Label doesn't exist")
350- if ((am == am))
351- then [StringEntry(E(), makeString(removeByIndex(ak, value(indexOf(ak, ai))), a))]
360+ if ((al == al))
361+ then [StringEntry(D(), makeString(removeByIndex(aj, value(indexOf(aj, ah))), a))]
352362 else throw("Strict value is not equal to itself.")
353363 }
354364 else throw("Strict value is not equal to itself.")
356366
357367
358368
359-@Callable(Z)
360-func addLabel (q,ai) = {
361- let at = ab(Z)
362- if ((at == at))
363- then ah(q, ai, true)
369+@Callable(Y)
370+func addLabel (p,ah) = {
371+ let av = aa(Y)
372+ if ((av == av))
373+ then ag(p, ah, true)
364374 else throw("Strict value is not equal to itself.")
365375 }
366376
367377
368378
369-@Callable(Z)
370-func deleteLabel (q,ai) = {
371- let at = ab(Z)
372- if ((at == at))
373- then ao(q, ai, true)
379+@Callable(Y)
380+func deleteLabel (p,ah) = {
381+ let av = aa(Y)
382+ if ((av == av))
383+ then an(p, ah, true)
374384 else throw("Strict value is not equal to itself.")
375385 }
376386
377387
378388
379-@Callable(Z)
380-func updateTicker (q,w) = {
381- let at = ab(Z)
382- if ((at == at))
389+@Callable(Y)
390+func updateTicker (p,v) = {
391+ let av = aa(Y)
392+ if ((av == av))
383393 then {
384- let aB = if (ae(q))
394+ let aD = if (ad(p))
385395 then true
386396 else i()
387- if ((aB == aB))
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))
388426 then {
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.")
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)
419431 }
420432 else throw("Strict value is not equal to itself.")
421433 }
424436
425437
426438
427-@Callable(Z)
428-func deleteTicker (q) = {
429- let at = ab(Z)
430- if ((at == at))
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))
431445 then {
432- let w = valueOrErrorMessage(getString(x(q)), "Invalid asset")
433-[DeleteEntry(x(q)), DeleteEntry(v(w))]
446+ let aI = if ((aE == ""))
447+ then DeleteEntry(q(p))
448+ else StringEntry(q(p), aE)
449+[aI]
434450 }
435451 else throw("Strict value is not equal to itself.")
436452 }
437453
438454
439455
440-@Callable(Z)
441-func createOrUpdate (q,aH,ag) = {
442- let at = ab(Z)
443- if ((at == at))
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))
444462 then {
445- let aI = !(ae(q))
446- if ((aI == aI))
463+ let aJ = if (!(af))
447464 then {
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)
465+ let az = valueOrErrorMessage(addressFromString(O(this, n())), "invalid factory contract address")
466+ invoke(az, "onVerificationLoss", [p], nil)
452467 }
468+ else unit
469+ if ((aJ == aJ))
470+ then $Tuple2(ao(p, af), unit)
453471 else throw("Strict value is not equal to itself.")
454472 }
455473 else throw("Strict value is not equal to itself.")
457475
458476
459477
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- }
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))]
472494 else throw("Strict value is not equal to itself.")
473495 }
474496
475497
476498
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))
499+@Callable(Y)
500+func setManager (aN) = {
501+ let av = X(Y)
502+ if ((av == av))
483503 then {
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)
504+ let aO = fromBase58String(aN)
505+ if ((aO == aO))
506+ then [StringEntry(k(), aN)]
492507 else throw("Strict value is not equal to itself.")
493508 }
494509 else throw("Strict value is not equal to itself.")
496511
497512
498513
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))
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))
524521 then {
525- let aR = fromBase58String(aQ)
522+ let aR = if ((Y.callerPublicKey == value(aP)))
523+ then true
524+ else throw("You are not pending manager")
526525 if ((aR == aR))
527- then [StringEntry(l(), aQ)]
526+ then [StringEntry(j(), toBase58String(value(aP))), DeleteEntry(k())]
528527 else throw("Strict value is not equal to itself.")
529528 }
530529 else throw("Strict value is not equal to itself.")
532531
533532
534533
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- }
534+@Callable(Y)
535+func isVerifiedREADONLY (p) = $Tuple2(nil, R(p))
552536
553537
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"))
538+@Verifier(aS)
539+func aT () = {
540+ let aU = {
541+ let L = V()
542+ if ($isInstanceOf(L, "ByteVector"))
564543 then {
565- let aa = M
566- aa
544+ let Z = L
545+ Z
567546 }
568- else if ($isInstanceOf(M, "Unit"))
569- then aV.senderPublicKey
547+ else if ($isInstanceOf(L, "Unit"))
548+ then aS.senderPublicKey
570549 else throw("Match error")
571550 }
572- sigVerify(aV.bodyBytes, aV.proofs[0], aX)
551+ sigVerify(aS.bodyBytes, aS.proofs[0], aU)
573552 }
574553
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 () = throw("Invalid ticker")
24+func j () = "%s__managerPublicKey"
2525
2626
27-func k () = "%s__managerPublicKey"
27+func k () = "%s__pendingManagerPublicKey"
2828
2929
30-func l () = "%s__pendingManagerPublicKey"
30+func l () = "%s__adminPubKeys"
3131
3232
33-func m () = "%s__adminPubKeys"
33+func m () = "%s__userPoolsContract"
3434
3535
36-func n () = "%s__userPoolsContract"
36+func n () = "%s__factoryContract"
3737
3838
39-func o () = "%s__factoryContract"
39+func o (p) = (("created_<" + p) + ">")
4040
4141
42-func p (q) = (("created_<" + q) + ">")
42+func q (p) = (("logo_<" + p) + ">")
4343
4444
45-func r (q) = (("logo_<" + q) + ">")
45+func r (p) = (("ticker_<" + p) + ">")
4646
4747
48-func s (q) = (("ticker_<" + q) + ">")
48+func s (p) = (("status_<" + p) + ">")
4949
5050
51-func t (q) = (("status_<" + q) + ">")
51+func t (p) = makeString(["%s%s", "pools", p], a)
5252
5353
54-func u (q) = makeString(["%s%s", "pools", q], a)
54+func u (v) = makeString(["%s%s", "ticker2assetId", v], a)
5555
5656
57-func v (w) = makeString(["%s%s", "ticker2assetId", w], a)
57+func w (p) = makeString(["%s%s", "assetId2ticker", p], a)
5858
5959
60-func x (q) = makeString(["%s%s", "assetId2ticker", q], a)
60+func x (y,z) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", y, z], a)
6161
6262
63-func y (z,A) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", z, A], a)
63+func A (B) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", B], a)
6464
6565
66-func B (C) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", C], a)
66+func C (p) = makeString(["%s%s", "labels", p], a)
6767
6868
69-func D (q) = makeString(["%s%s", "labels", q], a)
69+func D () = makeString(["%s", "labels"], a)
7070
7171
72-func E () = makeString(["%s", "labels"], a)
72+func E (p) = makeString(["%s%s", "assetName", p], a)
7373
7474
75-func F (q) = makeString(["%s%s", "assetName", q], a)
75+func F (p) = makeString(["%s%s", "assetDescription", p], a)
7676
7777
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"], "")
78+func G (H,I,J) = {
79+ let K = makeString(["mandatory ", toString(H), ".", I, " is not defined"], "")
8380 valueOrErrorMessage({
84- let M = K
85- if ($isInstanceOf(M, "String"))
81+ let L = J
82+ if ($isInstanceOf(L, "String"))
8683 then {
87- let N = M
88- getString(I, J)
84+ let M = L
85+ getString(H, I)
8986 }
90- else if ($isInstanceOf(M, "Int"))
87+ else if ($isInstanceOf(L, "Int"))
9188 then {
92- let O = M
93- getInteger(I, J)
89+ let N = L
90+ getInteger(H, I)
9491 }
9592 else throw("invalid entry type")
96- }, L)
93+ }, K)
9794 }
9895
9996
100-func P (I,J) = {
101- let Q = H(I, J, "")
102- if ($isInstanceOf(Q, "String"))
103- then Q
97+func O (H,I) = {
98+ let P = G(H, I, "")
99+ if ($isInstanceOf(P, "String"))
100+ then P
104101 else throw("Couldn't cast Int|String to String")
105102 }
106103
107104
108-func R (I,J) = {
109- let Q = H(I, J, 0)
110- if ($isInstanceOf(Q, "Int"))
111- then Q
105+func Q (H,I) = {
106+ let P = G(H, I, 0)
107+ if ($isInstanceOf(P, "Int"))
108+ then P
112109 else throw("Couldn't cast Int|String to Int")
113110 }
114111
115112
116-func S (q) = (valueOrElse(getInteger(t(q)), d) == c)
113+func R (p) = (valueOrElse(getInteger(s(p)), d) == c)
117114
118115
119-func T () = {
120- let M = getString(E())
121- if ($isInstanceOf(M, "String"))
116+func S () = {
117+ let L = getString(D())
118+ if ($isInstanceOf(L, "String"))
122119 then {
123- let U = M
124- if ((size(U) == 0))
120+ let T = L
121+ if ((size(T) == 0))
125122 then nil
126- else split(U, a)
123+ else split(T, a)
127124 }
128125 else nil
129126 }
130127
131128
132-func V (q) = {
133- let M = getString(D(q))
134- if ($isInstanceOf(M, "String"))
129+func U (p) = {
130+ let L = getString(C(p))
131+ if ($isInstanceOf(L, "String"))
135132 then {
136- let U = M
137- if ((size(U) == 0))
133+ let T = L
134+ if ((size(T) == 0))
138135 then nil
139- else split(U, a)
136+ else split(T, a)
140137 }
141138 else nil
142139 }
143140
144141
145-func W () = {
146- let M = getString(k())
147- if ($isInstanceOf(M, "String"))
142+func V () = {
143+ let L = getString(j())
144+ if ($isInstanceOf(L, "String"))
148145 then {
149- let U = M
150- fromBase58String(U)
146+ let T = L
147+ fromBase58String(T)
151148 }
152- else if ($isInstanceOf(M, "Unit"))
149+ else if ($isInstanceOf(L, "Unit"))
153150 then unit
154151 else throw("Match error")
155152 }
156153
157154
158-func X () = {
159- let M = getString(l())
160- if ($isInstanceOf(M, "String"))
155+func W () = {
156+ let L = getString(k())
157+ if ($isInstanceOf(L, "String"))
161158 then {
162- let U = M
163- fromBase58String(U)
159+ let T = L
160+ fromBase58String(T)
164161 }
165- else if ($isInstanceOf(M, "Unit"))
162+ else if ($isInstanceOf(L, "Unit"))
166163 then unit
167164 else throw("Match error")
168165 }
169166
170167
171-func Y (Z) = {
172- let M = W()
173- if ($isInstanceOf(M, "ByteVector"))
168+func X (Y) = {
169+ let L = V()
170+ if ($isInstanceOf(L, "ByteVector"))
174171 then {
175- let aa = M
176- if ((Z.callerPublicKey == aa))
172+ let Z = L
173+ if ((Y.callerPublicKey == Z))
177174 then true
178175 else h()
179176 }
180- else if ($isInstanceOf(M, "Unit"))
181- then if ((Z.caller == this))
177+ else if ($isInstanceOf(L, "Unit"))
178+ then if ((Y.caller == this))
182179 then true
183180 else h()
184181 else throw("Match error")
185182 }
186183
187184
188-func ab (Z) = {
189- let ac = split(valueOrElse(getString(m()), b), a)
190- if (containsElement(ac, toBase58String(Z.callerPublicKey)))
185+func aa (Y) = {
186+ let ab = split(valueOrElse(getString(l()), b), a)
187+ if (containsElement(ab, toBase58String(Y.callerPublicKey)))
191188 then true
192189 else {
193- let ad = Y(Z)
194- if ((ad == ad))
190+ let ac = X(Y)
191+ if ((ac == ac))
195192 then true
196193 else throw("Strict value is not equal to itself.")
197194 }
198195 }
199196
200197
201-func ae (q) = valueOrElse(getBoolean(p(q)), false)
198+func ad (p) = valueOrElse(getBoolean(o(p)), false)
202199
203200
204-func af (ag) = if (ag)
201+func ae (af) = if (af)
205202 then c
206203 else d
207204
208205
209-func ah (q,ai,aj) = {
210- let ak = T()
211- let al = V(q)
212- let am = if (containsElement(ak, ai))
206+func ag (p,ah,ai) = {
207+ let aj = S()
208+ let ak = U(p)
209+ let al = if (containsElement(aj, ah))
213210 then true
214211 else throw("Label doesn't exist")
215- if ((am == am))
212+ if ((al == al))
216213 then {
217- let an = if (containsElement(al, ai))
218- then if (aj)
214+ let am = if (containsElement(ak, ah))
215+ then if (ai)
219216 then throw("Label has already been added")
220- else al
221- else (al :+ ai)
222-[StringEntry(D(q), makeString(an, a))]
217+ else ak
218+ else (ak :+ ah)
219+[StringEntry(C(p), makeString(am, a))]
223220 }
224221 else throw("Strict value is not equal to itself.")
225222 }
226223
227224
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)
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)
233230 then throw("Label wasn't added")
234- else al
235-[StringEntry(D(q), makeString(an, a))]
231+ else ak
232+[StringEntry(C(p), makeString(am, a))]
236233 }
237234
238235
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)
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)
244241 }
245242
246243
247-@Callable(Z)
248-func setAssetName (ar,as) = {
249- let at = ab(Z)
250- if ((at == at))
251- then [StringEntry(F(ar), as)]
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)]
252262 else throw("Strict value is not equal to itself.")
253263 }
254264
255265
256266
257-@Callable(Z)
258-func setAssetDescription (ar,au) = {
259- let at = ab(Z)
260- if ((at == at))
261- then [StringEntry(G(ar), au)]
267+@Callable(Y)
268+func setAssetDescription (at,aw) = {
269+ let av = aa(Y)
270+ if ((av == av))
271+ then [StringEntry(F(at), aw)]
262272 else throw("Strict value is not equal to itself.")
263273 }
264274
265275
266276
267-@Callable(Z)
268-func constructor (av,ak) = {
269- let at = Y(Z)
270- if ((at == at))
277+@Callable(Y)
278+func constructor (ax,aj) = {
279+ let av = X(Y)
280+ if ((av == av))
271281 then {
272- let aw = valueOrErrorMessage(addressFromString(av), "Invalid address")
273- if ((aw == aw))
274- then [StringEntry(n(), av), StringEntry(E(), makeString((g ++ ak), a))]
282+ let ay = valueOrErrorMessage(addressFromString(ax), "Invalid address")
283+ if ((ay == ay))
284+ then [StringEntry(m(), ax), StringEntry(D(), makeString((g ++ aj), a))]
275285 else throw("Strict value is not equal to itself.")
276286 }
277287 else throw("Strict value is not equal to itself.")
278288 }
279289
280290
281291
282-@Callable(Z)
283-func constructorV2 (ax) = {
284- let at = Y(Z)
285- if ((at == at))
292+@Callable(Y)
293+func constructorV2 (az) = {
294+ let av = X(Y)
295+ if ((av == av))
286296 then {
287- let ay = valueOrErrorMessage(addressFromString(ax), "invalid factory contract address")
288- if ((ay == ay))
289- then [StringEntry(o(), ax)]
297+ let aA = valueOrErrorMessage(addressFromString(az), "invalid factory contract address")
298+ if ((aA == aA))
299+ then [StringEntry(n(), az)]
290300 else throw("Strict value is not equal to itself.")
291301 }
292302 else throw("Strict value is not equal to itself.")
293303 }
294304
295305
296306
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))]
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))]
302312 else throw("Strict value is not equal to itself.")
303313 }
304314
305315
306316
307-@Callable(Z)
308-func increaseAssetPoolsNumber (q) = {
309- let at = ab(Z)
310- if ((at == at))
317+@Callable(Y)
318+func increaseAssetPoolsNumber (p) = {
319+ let av = aa(Y)
320+ if ((av == av))
311321 then {
312- let az = u(q)
313- let aA = valueOrElse(getInteger(az), 0)
314-[IntegerEntry(az, (aA + 1))]
322+ let aB = t(p)
323+ let aC = valueOrElse(getInteger(aB), 0)
324+[IntegerEntry(aB, (aC + 1))]
315325 }
316326 else throw("Strict value is not equal to itself.")
317327 }
318328
319329
320330
321-@Callable(Z)
322-func createLabel (ai) = {
323- let ak = T()
324- let at = ab(Z)
325- if ((at == at))
331+@Callable(Y)
332+func createLabel (ah) = {
333+ let aj = S()
334+ let av = aa(Y)
335+ if ((av == av))
326336 then {
327- let am = [if (!(contains(ai, a)))
337+ let al = [if (!(contains(ah, a)))
328338 then true
329- else throw("Invalid label name"), if (!(containsElement(ak, ai)))
339+ else throw("Invalid label name"), if (!(containsElement(aj, ah)))
330340 then true
331341 else throw("Label exists")]
332- if ((am == am))
333- then [StringEntry(E(), makeString((ak :+ ai), a))]
342+ if ((al == al))
343+ then [StringEntry(D(), makeString((aj :+ ah), a))]
334344 else throw("Strict value is not equal to itself.")
335345 }
336346 else throw("Strict value is not equal to itself.")
337347 }
338348
339349
340350
341-@Callable(Z)
342-func dropLabel (ai) = {
343- let ak = T()
344- let at = Y(Z)
345- if ((at == at))
351+@Callable(Y)
352+func dropLabel (ah) = {
353+ let aj = S()
354+ let av = X(Y)
355+ if ((av == av))
346356 then {
347- let am = if (containsElement(ak, ai))
357+ let al = if (containsElement(aj, ah))
348358 then true
349359 else throw("Label doesn't exist")
350- if ((am == am))
351- then [StringEntry(E(), makeString(removeByIndex(ak, value(indexOf(ak, ai))), a))]
360+ if ((al == al))
361+ then [StringEntry(D(), makeString(removeByIndex(aj, value(indexOf(aj, ah))), a))]
352362 else throw("Strict value is not equal to itself.")
353363 }
354364 else throw("Strict value is not equal to itself.")
355365 }
356366
357367
358368
359-@Callable(Z)
360-func addLabel (q,ai) = {
361- let at = ab(Z)
362- if ((at == at))
363- then ah(q, ai, true)
369+@Callable(Y)
370+func addLabel (p,ah) = {
371+ let av = aa(Y)
372+ if ((av == av))
373+ then ag(p, ah, true)
364374 else throw("Strict value is not equal to itself.")
365375 }
366376
367377
368378
369-@Callable(Z)
370-func deleteLabel (q,ai) = {
371- let at = ab(Z)
372- if ((at == at))
373- then ao(q, ai, true)
379+@Callable(Y)
380+func deleteLabel (p,ah) = {
381+ let av = aa(Y)
382+ if ((av == av))
383+ then an(p, ah, true)
374384 else throw("Strict value is not equal to itself.")
375385 }
376386
377387
378388
379-@Callable(Z)
380-func updateTicker (q,w) = {
381- let at = ab(Z)
382- if ((at == at))
389+@Callable(Y)
390+func updateTicker (p,v) = {
391+ let av = aa(Y)
392+ if ((av == av))
383393 then {
384- let aB = if (ae(q))
394+ let aD = if (ad(p))
385395 then true
386396 else i()
387- if ((aB == aB))
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))
388426 then {
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.")
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)
419431 }
420432 else throw("Strict value is not equal to itself.")
421433 }
422434 else throw("Strict value is not equal to itself.")
423435 }
424436
425437
426438
427-@Callable(Z)
428-func deleteTicker (q) = {
429- let at = ab(Z)
430- if ((at == at))
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))
431445 then {
432- let w = valueOrErrorMessage(getString(x(q)), "Invalid asset")
433-[DeleteEntry(x(q)), DeleteEntry(v(w))]
446+ let aI = if ((aE == ""))
447+ then DeleteEntry(q(p))
448+ else StringEntry(q(p), aE)
449+[aI]
434450 }
435451 else throw("Strict value is not equal to itself.")
436452 }
437453
438454
439455
440-@Callable(Z)
441-func createOrUpdate (q,aH,ag) = {
442- let at = ab(Z)
443- if ((at == at))
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))
444462 then {
445- let aI = !(ae(q))
446- if ((aI == aI))
463+ let aJ = if (!(af))
447464 then {
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)
465+ let az = valueOrErrorMessage(addressFromString(O(this, n())), "invalid factory contract address")
466+ invoke(az, "onVerificationLoss", [p], nil)
452467 }
468+ else unit
469+ if ((aJ == aJ))
470+ then $Tuple2(ao(p, af), unit)
453471 else throw("Strict value is not equal to itself.")
454472 }
455473 else throw("Strict value is not equal to itself.")
456474 }
457475
458476
459477
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- }
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))]
472494 else throw("Strict value is not equal to itself.")
473495 }
474496
475497
476498
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))
499+@Callable(Y)
500+func setManager (aN) = {
501+ let av = X(Y)
502+ if ((av == av))
483503 then {
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)
504+ let aO = fromBase58String(aN)
505+ if ((aO == aO))
506+ then [StringEntry(k(), aN)]
492507 else throw("Strict value is not equal to itself.")
493508 }
494509 else throw("Strict value is not equal to itself.")
495510 }
496511
497512
498513
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))
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))
524521 then {
525- let aR = fromBase58String(aQ)
522+ let aR = if ((Y.callerPublicKey == value(aP)))
523+ then true
524+ else throw("You are not pending manager")
526525 if ((aR == aR))
527- then [StringEntry(l(), aQ)]
526+ then [StringEntry(j(), toBase58String(value(aP))), DeleteEntry(k())]
528527 else throw("Strict value is not equal to itself.")
529528 }
530529 else throw("Strict value is not equal to itself.")
531530 }
532531
533532
534533
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- }
534+@Callable(Y)
535+func isVerifiedREADONLY (p) = $Tuple2(nil, R(p))
552536
553537
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"))
538+@Verifier(aS)
539+func aT () = {
540+ let aU = {
541+ let L = V()
542+ if ($isInstanceOf(L, "ByteVector"))
564543 then {
565- let aa = M
566- aa
544+ let Z = L
545+ Z
567546 }
568- else if ($isInstanceOf(M, "Unit"))
569- then aV.senderPublicKey
547+ else if ($isInstanceOf(L, "Unit"))
548+ then aS.senderPublicKey
570549 else throw("Match error")
571550 }
572- sigVerify(aV.bodyBytes, aV.proofs[0], aX)
551+ sigVerify(aS.bodyBytes, aS.proofs[0], aU)
573552 }
574553

github/deemru/w8io/026f985 
117.16 ms