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+Whg6yuKqHsNy5eZQUT8rXs7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differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = " | |
4 | + | let a = "pool_" | |
5 | 5 | ||
6 | - | let b = " | |
6 | + | let b = "pair_" | |
7 | 7 | ||
8 | - | let c = " | |
8 | + | let c = "A_asset_id" | |
9 | 9 | ||
10 | - | let d = " | |
10 | + | let d = "B_asset_id" | |
11 | 11 | ||
12 | - | let e = " | |
12 | + | let e = "launchpad_data_transaction_status" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "admin_pub_1" | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "admin_pub_2" | |
17 | 17 | ||
18 | - | let h = "admin_pub_ | |
18 | + | let h = "admin_pub_3" | |
19 | 19 | ||
20 | - | let i = "admin_pub | |
20 | + | let i = "admin_invoke_pub" | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "achievements_writers" | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy' | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk' | |
27 | 27 | ||
28 | - | let m = base58' | |
28 | + | let m = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP' | |
29 | 29 | ||
30 | - | let n = base58' | |
30 | + | let n = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
31 | 31 | ||
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)) | |
50 | 33 | then unit | |
51 | 34 | else throw("Only the Oracle itself can invoke this function") | |
52 | 35 | ||
53 | 36 | ||
54 | - | func | |
55 | - | let | |
56 | - | let | |
57 | - | let | |
58 | - | then ( | |
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) | |
59 | 42 | else false) | |
60 | - | then ( | |
43 | + | then (s != (size(r) - 1)) | |
61 | 44 | else false | |
62 | - | if ( | |
63 | - | then | |
45 | + | if (u) | |
46 | + | then r | |
64 | 47 | else throw("Pool name must consist of two asset names separated by an underscore character") | |
65 | 48 | } | |
66 | 49 | ||
67 | 50 | ||
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 | + | } | |
69 | 61 | ||
70 | 62 | ||
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))]) | |
73 | 68 | ||
74 | 69 | ||
75 | 70 | ||
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 | + | })) | |
87 | 85 | }) | |
88 | 86 | ||
89 | 87 | ||
90 | 88 | ||
91 | - | @Callable( | |
92 | - | func renamePool ( | |
93 | - | let | |
94 | - | let | |
95 | - | let | |
96 | - | if (isDefined( | |
97 | - | then [StringEntry( | |
98 | - | else throw((("Pool with address \"" + | |
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")) | |
99 | 97 | }) | |
100 | 98 | ||
101 | 99 | ||
102 | 100 | ||
103 | - | @Callable( | |
104 | - | func launchpadDataTransactionStatus ( | |
101 | + | @Callable(p) | |
102 | + | func launchpadDataTransactionStatus (G) = valueOrElse(o(p), [BooleanEntry(e, G)]) | |
105 | 103 | ||
106 | 104 | ||
107 | 105 | ||
108 | - | @Callable( | |
109 | - | func addAchievementsWriter ( | |
110 | - | let | |
111 | - | let | |
106 | + | @Callable(p) | |
107 | + | func addAchievementsWriter (z) = valueOrElse(o(p), { | |
108 | + | let H = valueOrElse(getString(this, j), "") | |
109 | + | let I = if ((H == "")) | |
112 | 110 | then nil | |
113 | - | else split( | |
114 | - | [StringEntry( | |
111 | + | else split(H, ",") | |
112 | + | [StringEntry(j, makeString((I :+ z), ","))] | |
115 | 113 | }) | |
116 | 114 | ||
117 | 115 | ||
118 | 116 | ||
119 | - | @Callable( | |
120 | - | func removeAchievementsWriter ( | |
121 | - | let | |
122 | - | let | |
123 | - | [StringEntry( | |
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), ","))] | |
124 | 122 | }) | |
125 | 123 | ||
126 | 124 | ||
127 | - | @Verifier( | |
128 | - | func | |
129 | - | let | |
125 | + | @Verifier(K) | |
126 | + | func L () = { | |
127 | + | let M = if (sigVerify(K.bodyBytes, K.proofs[0], k)) | |
130 | 128 | then 1 | |
131 | 129 | else 0 | |
132 | - | let | |
130 | + | let N = if (sigVerify(K.bodyBytes, K.proofs[1], l)) | |
133 | 131 | then 1 | |
134 | 132 | else 0 | |
135 | - | let | |
133 | + | let O = if (sigVerify(K.bodyBytes, K.proofs[2], m)) | |
136 | 134 | then 1 | |
137 | 135 | else 0 | |
138 | - | let | |
139 | - | let | |
140 | - | let | |
141 | - | if ($isInstanceOf( | |
136 | + | let P = (((M + N) + O) >= 2) | |
137 | + | let Q = (((M + N) + O) >= 1) | |
138 | + | let R = K | |
139 | + | if ($isInstanceOf(R, "InvokeScriptTransaction")) | |
142 | 140 | then { | |
143 | - | let | |
144 | - | let | |
145 | - | then containsElement(["renamePool"], | |
141 | + | let S = R | |
142 | + | let T = if ((S.dApp == this)) | |
143 | + | then containsElement(["renamePool"], S.function) | |
146 | 144 | else false | |
147 | - | let | |
148 | - | then containsElement(["setAdmin"], | |
145 | + | let U = if ((S.dApp == this)) | |
146 | + | then containsElement(["setAdmin"], S.function) | |
149 | 147 | else false | |
150 | - | let | |
151 | - | then containsElement(["addPool"], | |
148 | + | let V = if ((S.dApp == this)) | |
149 | + | then containsElement(["addPool"], S.function) | |
152 | 150 | else false | |
153 | - | let | |
154 | - | then containsElement(["launchpadDataTransactionStatus"], | |
151 | + | let W = if ((S.dApp == this)) | |
152 | + | then containsElement(["launchpadDataTransactionStatus"], S.function) | |
155 | 153 | else false | |
156 | - | let | |
157 | - | then containsElement(["addAchievementsWriter"], | |
154 | + | let X = if ((S.dApp == this)) | |
155 | + | then containsElement(["addAchievementsWriter"], S.function) | |
158 | 156 | else false | |
159 | - | let | |
160 | - | then containsElement(["removeAchievementsWriter"], | |
157 | + | let Y = if ((S.dApp == this)) | |
158 | + | then containsElement(["removeAchievementsWriter"], S.function) | |
161 | 159 | else false | |
162 | - | if (if (if (if (if (if (if ( | |
163 | - | then (size( | |
160 | + | if (if (if (if (if (if (if (P) | |
161 | + | then (size(S.payments) == 0) | |
164 | 162 | else false) | |
165 | - | then | |
163 | + | then T | |
166 | 164 | else false) | |
167 | 165 | then true | |
168 | - | else if (if ( | |
169 | - | then (size( | |
166 | + | else if (if (Q) | |
167 | + | then (size(S.payments) == 0) | |
170 | 168 | else false) | |
171 | - | then | |
169 | + | then V | |
172 | 170 | else false) | |
173 | 171 | 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) | |
176 | 192 | else false) | |
177 | 193 | 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 | |
196 | 194 | else false | |
197 | 195 | } | |
198 | - | else if (if ($isInstanceOf( | |
196 | + | else if (if ($isInstanceOf(R, "Order")) | |
199 | 197 | then true | |
200 | - | else if ($isInstanceOf( | |
198 | + | else if ($isInstanceOf(R, "DataTransaction")) | |
201 | 199 | then true | |
202 | - | else if ($isInstanceOf( | |
200 | + | else if ($isInstanceOf(R, "SponsorFeeTransaction")) | |
203 | 201 | then true | |
204 | - | else if ($isInstanceOf( | |
202 | + | else if ($isInstanceOf(R, "SetScriptTransaction")) | |
205 | 203 | then true | |
206 | - | else if ($isInstanceOf( | |
204 | + | else if ($isInstanceOf(R, "CreateAliasTransaction")) | |
207 | 205 | then true | |
208 | - | else if ($isInstanceOf( | |
206 | + | else if ($isInstanceOf(R, "LeaseCancelTransaction")) | |
209 | 207 | then true | |
210 | - | else if ($isInstanceOf( | |
208 | + | else if ($isInstanceOf(R, "LeaseTransaction")) | |
211 | 209 | then true | |
212 | - | else if ($isInstanceOf( | |
210 | + | else if ($isInstanceOf(R, "IssueTransaction")) | |
213 | 211 | then true | |
214 | - | else if ($isInstanceOf( | |
212 | + | else if ($isInstanceOf(R, "InvokeExpressionTransaction")) | |
215 | 213 | then true | |
216 | - | else if ($isInstanceOf( | |
214 | + | else if ($isInstanceOf(R, "UpdateAssetInfoTransaction")) | |
217 | 215 | then true | |
218 | - | else if ($isInstanceOf( | |
216 | + | else if ($isInstanceOf(R, "InvokeScriptTransaction")) | |
219 | 217 | then true | |
220 | - | else if ($isInstanceOf( | |
218 | + | else if ($isInstanceOf(R, "SetAssetScriptTransaction")) | |
221 | 219 | then true | |
222 | - | else if ($isInstanceOf( | |
220 | + | else if ($isInstanceOf(R, "TransferTransaction")) | |
223 | 221 | then true | |
224 | - | else if ($isInstanceOf( | |
222 | + | else if ($isInstanceOf(R, "ExchangeTransaction")) | |
225 | 223 | then true | |
226 | - | else if ($isInstanceOf( | |
224 | + | else if ($isInstanceOf(R, "MassTransferTransaction")) | |
227 | 225 | 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 | |
230 | 230 | else throw("Match error") | |
231 | 231 | } | |
232 | 232 |
github/deemru/w8io/169f3d6 91.95 ms ◑