tx · 37TExifogww359RfURTGDrep7n1gNyn53g5hGEQsSndX

3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9:  -0.01600000 Waves

2022.09.01 14:01 [2209983] smart account 3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9 > SELF 0.00000000 Waves

{ "type": 13, "id": "37TExifogww359RfURTGDrep7n1gNyn53g5hGEQsSndX", "fee": 1600000, "feeAssetId": null, "timestamp": 1662030054344, "version": 2, "chainId": 84, "sender": "3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9", "senderPublicKey": "D1X9WatF6ARMCmm3jC4Ex5Wd5VQ3LY8i1xbHNqeHqeAa", "proofs": [ "5pfn7dbepzkmdjdiyw4E4A5qFfCz1Ci5Gng5g7ZUigw8kYjksijYrPmyhszMDe4TPTonD96QC4onJM2zFAK1KUZk", "W9it2jSpY3SEBQciNnwdgesru39eF2raVR4uk228MwwZCLQo7NUp8qLKzadBWUPdePBYACMyP2DkJZMPJ21MUYo" ], "script": "base64:BgIfCAISABIECgIICBIECgIICBIDCgEEEgMKAQgSAwoBCBIAD2tQcmVmaXhQb29sTmFtZQIFcG9vbF8ABWtQYWlyAgVwYWlyXwAJa0Fzc2V0SWRBAgpBX2Fzc2V0X2lkAAlrQXNzZXRJZEICCkJfYXNzZXRfaWQAH2tMYXVuY2hwYWREYXRhVHJhbnNhY3Rpb25TdGF0dXMCIWxhdW5jaHBhZF9kYXRhX3RyYW5zYWN0aW9uX3N0YXR1cwANa0FkbWluUHViS2V5MQILYWRtaW5fcHViXzEADWtBZG1pblB1YktleTICC2FkbWluX3B1Yl8yAA1rQWRtaW5QdWJLZXkzAgthZG1pbl9wdWJfMwASa0FkbWluSW52b2tlUHViS2V5AhBhZG1pbl9pbnZva2VfcHViABRrQWNoaWV2ZW1lbnRzV3JpdGVycwIUYWNoaWV2ZW1lbnRzX3dyaXRlcnMADGFkbWluUHViS2V5MQEg4qeMQDuGzRfmtEuH2+Whg6yuKqHsNy5eZQUT8rXs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ifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "pools"
4+let a = "pool_"
55
6-let b = "pool_"
6+let b = "pair_"
77
8-let c = "index_"
8+let c = "A_asset_id"
99
10-let d = "pair_"
10+let d = "B_asset_id"
1111
12-let e = "A_asset_id"
12+let e = "launchpad_data_transaction_status"
1313
14-let f = "B_asset_id"
14+let f = "admin_pub_1"
1515
16-let g = "launchpad_data_transaction_status"
16+let g = "admin_pub_2"
1717
18-let h = "admin_pub_1"
18+let h = "admin_pub_3"
1919
20-let i = "admin_pub_2"
20+let i = "admin_invoke_pub"
2121
22-let j = "admin_pub_3"
22+let j = "achievements_writers"
2323
24-let k = "admin_invoke_pub"
24+let k = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy'
2525
26-let l = "achievements_writers"
26+let l = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk'
2727
28-let m = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy'
28+let m = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP'
2929
30-let n = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk'
30+let n = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
3131
32-let o = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP'
33-
34-let p = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
35-
36-let q = {
37- let r = getString(this, a)
38- if ($isInstanceOf(r, "String"))
39- then {
40- let s = r
41- split(s, ",")
42- }
43- else {
44- let t = r
45- nil
46- }
47- }
48-
49-func u (v) = if ((v.caller == this))
32+func o (p) = if ((p.caller == this))
5033 then unit
5134 else throw("Only the Oracle itself can invoke this function")
5235
5336
54-func w (x) = {
55- let y = valueOrElse(indexOf(x, "_"), -1)
56- let z = valueOrElse(lastIndexOf(x, "_"), -1)
57- let A = if (if ((y == z))
58- then (y > 0)
37+func q (r) = {
38+ let s = valueOrElse(indexOf(r, "_"), -1)
39+ let t = valueOrElse(lastIndexOf(r, "_"), -1)
40+ let u = if (if ((s == t))
41+ then (s > 0)
5942 else false)
60- then (y != (size(x) - 1))
43+ then (s != (size(r) - 1))
6144 else false
62- if (A)
63- then x
45+ if (u)
46+ then r
6447 else throw("Pool name must consist of two asset names separated by an underscore character")
6548 }
6649
6750
68-func B (C) = toString(valueOrErrorMessage(addressFromString(C), (("Can't parse \"" + C) + "\" as address")))
51+func v (w) = {
52+ let x = valueOrErrorMessage(getString(w, "version"), "Pool is not initialized")
53+ if ((x == "1.0.0"))
54+ then "cpmm"
55+ else if ((x == "2.0.0"))
56+ then "flat"
57+ else if ((x == "3.0.0"))
58+ then "multycurve"
59+ else throw("Unknown version of pool")
60+ }
6961
7062
71-@Callable(v)
72-func setAdmin () = valueOrElse(u(v), [StringEntry(h, toBase58String(m)), StringEntry(i, toBase58String(n)), StringEntry(j, toBase58String(o)), StringEntry(k, toBase58String(p))])
63+func y (z) = toString(valueOrErrorMessage(addressFromString(z), (("Can't parse \"" + z) + "\" as address")))
64+
65+
66+@Callable(p)
67+func setAdmin () = valueOrElse(o(p), [StringEntry(f, toBase58String(k)), StringEntry(g, toBase58String(l)), StringEntry(h, toBase58String(m)), StringEntry(i, toBase58String(n))])
7368
7469
7570
76-@Callable(v)
77-func addPool (D,x) = valueOrElse(u(v), {
78- let E = B(D)
79- let F = (b + E)
80- let G = (c + E)
81- let H = valueOrErrorMessage(getString(value(addressFromString(D)), e), "Asset id A is incorrect")
82- let I = valueOrErrorMessage(getString(value(addressFromString(D)), f), "Asset id B is incorrect")
83- let J = getString(this, F)
84- if (isDefined(J))
85- then throw((((("Pool with address \"" + E) + "\" is already defined with name \"") + value(J)) + "\""))
86- else [IntegerEntry(G, size(q)), StringEntry(F, w(x)), StringEntry((((d + H) + "_") + I), D), StringEntry(a, makeString((q :+ E), ","))]
71+@Callable(p)
72+func addPool (w,r) = valueOrElse(o(p), {
73+ let A = y(w)
74+ let B = (a + A)
75+ let C = getString(this, B)
76+ if (isDefined(C))
77+ then throw((((("Pool with address \"" + A) + "\" is already defined with name \"") + value(C)) + "\""))
78+ else ([StringEntry(B, q(r))] ++ (if ((v(value(addressFromString(w))) == "multycurve"))
79+ then nil
80+ else {
81+ let D = valueOrErrorMessage(getString(value(addressFromString(w)), c), "Asset id A is incorrect")
82+ let E = valueOrErrorMessage(getString(value(addressFromString(w)), d), "Asset id B is incorrect")
83+[StringEntry((((b + D) + "_") + E), w)]
84+ }))
8785 })
8886
8987
9088
91-@Callable(v)
92-func renamePool (D,K) = valueOrElse(u(v), {
93- let E = B(D)
94- let F = (b + E)
95- let J = getString(this, F)
96- if (isDefined(J))
97- then [StringEntry(F, w(K))]
98- else throw((("Pool with address \"" + E) + "\" has not yet been added"))
89+@Callable(p)
90+func renamePool (w,F) = valueOrElse(o(p), {
91+ let A = y(w)
92+ let B = (a + A)
93+ let C = getString(this, B)
94+ if (isDefined(C))
95+ then [StringEntry(B, q(F))]
96+ else throw((("Pool with address \"" + A) + "\" has not yet been added"))
9997 })
10098
10199
102100
103-@Callable(v)
104-func launchpadDataTransactionStatus (L) = valueOrElse(u(v), [BooleanEntry(g, L)])
101+@Callable(p)
102+func launchpadDataTransactionStatus (G) = valueOrElse(o(p), [BooleanEntry(e, G)])
105103
106104
107105
108-@Callable(v)
109-func addAchievementsWriter (C) = valueOrElse(u(v), {
110- let M = valueOrElse(getString(this, l), "")
111- let N = if ((M == ""))
106+@Callable(p)
107+func addAchievementsWriter (z) = valueOrElse(o(p), {
108+ let H = valueOrElse(getString(this, j), "")
109+ let I = if ((H == ""))
112110 then nil
113- else split(M, ",")
114-[StringEntry(l, makeString((N :+ C), ","))]
111+ else split(H, ",")
112+[StringEntry(j, makeString((I :+ z), ","))]
115113 })
116114
117115
118116
119-@Callable(v)
120-func removeAchievementsWriter (C) = valueOrElse(u(v), {
121- let M = split(valueOrElse(getString(this, l), ""), ",")
122- let O = valueOrErrorMessage(indexOf(M, C), "Can't find address in the list")
123-[StringEntry(l, makeString(removeByIndex(M, O), ","))]
117+@Callable(p)
118+func removeAchievementsWriter (z) = valueOrElse(o(p), {
119+ let H = split(valueOrElse(getString(this, j), ""), ",")
120+ let J = valueOrErrorMessage(indexOf(H, z), "Can't find address in the list")
121+[StringEntry(j, makeString(removeByIndex(H, J), ","))]
124122 })
125123
126124
127-@Verifier(P)
128-func Q () = {
129- let R = if (sigVerify(P.bodyBytes, P.proofs[0], m))
125+@Verifier(K)
126+func L () = {
127+ let M = if (sigVerify(K.bodyBytes, K.proofs[0], k))
130128 then 1
131129 else 0
132- let S = if (sigVerify(P.bodyBytes, P.proofs[1], n))
130+ let N = if (sigVerify(K.bodyBytes, K.proofs[1], l))
133131 then 1
134132 else 0
135- let T = if (sigVerify(P.bodyBytes, P.proofs[2], o))
133+ let O = if (sigVerify(K.bodyBytes, K.proofs[2], m))
136134 then 1
137135 else 0
138- let U = (((R + S) + T) >= 2)
139- let V = (((R + S) + T) >= 1)
140- let r = P
141- if ($isInstanceOf(r, "InvokeScriptTransaction"))
136+ let P = (((M + N) + O) >= 2)
137+ let Q = (((M + N) + O) >= 1)
138+ let R = K
139+ if ($isInstanceOf(R, "InvokeScriptTransaction"))
142140 then {
143- let W = r
144- let X = if ((W.dApp == this))
145- then containsElement(["renamePool"], W.function)
141+ let S = R
142+ let T = if ((S.dApp == this))
143+ then containsElement(["renamePool"], S.function)
146144 else false
147- let Y = if ((W.dApp == this))
148- then containsElement(["setAdmin"], W.function)
145+ let U = if ((S.dApp == this))
146+ then containsElement(["setAdmin"], S.function)
149147 else false
150- let Z = if ((W.dApp == this))
151- then containsElement(["addPool"], W.function)
148+ let V = if ((S.dApp == this))
149+ then containsElement(["addPool"], S.function)
152150 else false
153- let aa = if ((W.dApp == this))
154- then containsElement(["launchpadDataTransactionStatus"], W.function)
151+ let W = if ((S.dApp == this))
152+ then containsElement(["launchpadDataTransactionStatus"], S.function)
155153 else false
156- let ab = if ((W.dApp == this))
157- then containsElement(["addAchievementsWriter"], W.function)
154+ let X = if ((S.dApp == this))
155+ then containsElement(["addAchievementsWriter"], S.function)
158156 else false
159- let ac = if ((W.dApp == this))
160- then containsElement(["removeAchievementsWriter"], W.function)
157+ let Y = if ((S.dApp == this))
158+ then containsElement(["removeAchievementsWriter"], S.function)
161159 else false
162- if (if (if (if (if (if (if (U)
163- then (size(W.payments) == 0)
160+ if (if (if (if (if (if (if (P)
161+ then (size(S.payments) == 0)
164162 else false)
165- then X
163+ then T
166164 else false)
167165 then true
168- else if (if (V)
169- then (size(W.payments) == 0)
166+ else if (if (Q)
167+ then (size(S.payments) == 0)
170168 else false)
171- then Z
169+ then V
172170 else false)
173171 then true
174- else if (if (U)
175- then (size(W.payments) == 0)
172+ else if (if (P)
173+ then (size(S.payments) == 0)
174+ else false)
175+ then U
176+ else false)
177+ then true
178+ else if (if (P)
179+ then (size(S.payments) == 0)
180+ else false)
181+ then W
182+ else false)
183+ then true
184+ else if (if (P)
185+ then (size(S.payments) == 0)
186+ else false)
187+ then X
188+ else false)
189+ then true
190+ else if (if (P)
191+ then (size(S.payments) == 0)
176192 else false)
177193 then Y
178- else false)
179- then true
180- else if (if (U)
181- then (size(W.payments) == 0)
182- else false)
183- then aa
184- else false)
185- then true
186- else if (if (U)
187- then (size(W.payments) == 0)
188- else false)
189- then ab
190- else false)
191- then true
192- else if (if (U)
193- then (size(W.payments) == 0)
194- else false)
195- then ac
196194 else false
197195 }
198- else if (if ($isInstanceOf(r, "Order"))
196+ else if (if ($isInstanceOf(R, "Order"))
199197 then true
200- else if ($isInstanceOf(r, "DataTransaction"))
198+ else if ($isInstanceOf(R, "DataTransaction"))
201199 then true
202- else if ($isInstanceOf(r, "SponsorFeeTransaction"))
200+ else if ($isInstanceOf(R, "SponsorFeeTransaction"))
203201 then true
204- else if ($isInstanceOf(r, "SetScriptTransaction"))
202+ else if ($isInstanceOf(R, "SetScriptTransaction"))
205203 then true
206- else if ($isInstanceOf(r, "CreateAliasTransaction"))
204+ else if ($isInstanceOf(R, "CreateAliasTransaction"))
207205 then true
208- else if ($isInstanceOf(r, "LeaseCancelTransaction"))
206+ else if ($isInstanceOf(R, "LeaseCancelTransaction"))
209207 then true
210- else if ($isInstanceOf(r, "LeaseTransaction"))
208+ else if ($isInstanceOf(R, "LeaseTransaction"))
211209 then true
212- else if ($isInstanceOf(r, "IssueTransaction"))
210+ else if ($isInstanceOf(R, "IssueTransaction"))
213211 then true
214- else if ($isInstanceOf(r, "UpdateAssetInfoTransaction"))
212+ else if ($isInstanceOf(R, "InvokeExpressionTransaction"))
215213 then true
216- else if ($isInstanceOf(r, "InvokeScriptTransaction"))
214+ else if ($isInstanceOf(R, "UpdateAssetInfoTransaction"))
217215 then true
218- else if ($isInstanceOf(r, "SetAssetScriptTransaction"))
216+ else if ($isInstanceOf(R, "InvokeScriptTransaction"))
219217 then true
220- else if ($isInstanceOf(r, "TransferTransaction"))
218+ else if ($isInstanceOf(R, "SetAssetScriptTransaction"))
221219 then true
222- else if ($isInstanceOf(r, "ExchangeTransaction"))
220+ else if ($isInstanceOf(R, "TransferTransaction"))
223221 then true
224- else if ($isInstanceOf(r, "MassTransferTransaction"))
222+ else if ($isInstanceOf(R, "ExchangeTransaction"))
225223 then true
226- else if ($isInstanceOf(r, "BurnTransaction"))
224+ else if ($isInstanceOf(R, "MassTransferTransaction"))
227225 then true
228- else $isInstanceOf(r, "ReissueTransaction"))
229- then U
226+ else if ($isInstanceOf(R, "BurnTransaction"))
227+ then true
228+ else $isInstanceOf(R, "ReissueTransaction"))
229+ then P
230230 else throw("Match error")
231231 }
232232

github/deemru/w8io/169f3d6 
91.95 ms