tx · 2Fy3EBWKijGFHWFoDvT994B2TS7NtL4hpcbsCzRwmQwq 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh: -0.01400000 Waves 2022.04.13 17:39 [2006932] smart account 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh > SELF 0.00000000 Waves
{ "type": 13, "id": "2Fy3EBWKijGFHWFoDvT994B2TS7NtL4hpcbsCzRwmQwq", "fee": 1400000, "feeAssetId": null, "timestamp": 1649860810710, "version": 1, "sender": "3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh", "senderPublicKey": "Ap7CkWd6fzBU34kGo4GJJzC5q4qWXuLVunzE25PchdGS", "proofs": [ "3jxyVvcupTjLxaJwfAHcEUVxQ3eZtw5TJeR66XzENLUGfm4M7UpJzedsbg5uUdqu9qwYs161EyVfpHpk6qEUGerP" ], "script": "base64:AAIFAAAAAAAAAC0IAhIJCgcICBgYAQgBEgASBQoDCAgIEgcKBQgICAgIEgMKARgSAwoBCBIAEgAAAAAsAAAAAANTRVACAAAAAl9fAAAAAAVFTVBUWQIAAAAAAAAAABFpbnZhbGlkUHJpY2VBc3NldAIAAAATSW52YWxpZCBwcmljZSBhc3NldAEAAAAHdGhyb3dQRAAAAAAJAAACAAAAAQIAAAARUGVybWlzc2lvbiBkZW5pZWQBAAAAFHRocm93Q3JlYXRlTm90Q2FsbGVkAAAAAAkAAAIAAAABAgAAACRDcmVhdGUgaXMgbm90IGNhbGxlZCBmb3IgYXNzZXRzIHBhaXIBAAAAEXRocm93WW91Tm90SXNzdWVyAAAAAAkAAAIAAAABAgAAAB5Zb3UgYXJlIG5vdCBhbW91bnRBc3NldCBpc3N1ZXIBAAAAD3Rocm93UG9vbEV4aXN0cwAAAAAJAAACAAAAAQIAAAAkUG9vbCB3aXRoIHN1Y2ggYXNzZXRzIGFscmVhZHkgZXhpc3RzAQAAABV0aHJvd0Fzc2V0Tm90VmVyaWZpZWQAAAAACQAAAgAAAAECAAAAFUFzc2V0I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Jvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXnePam/", "chainId": 84, "height": 2006932, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: TrRaCCk58qfzWhc2axGrmkbYVCGByZHbPxjtjoEQaFZ Next: FD55p2Px3Mzaqc9pBFSfAdpxZYHweBcZWUyETht3CEnh Diff:
Old | New | Differences | |
---|---|---|---|
62 | 62 | ||
63 | 63 | let x = "declined" | |
64 | 64 | ||
65 | - | let y = " | |
65 | + | let y = "active" | |
66 | 66 | ||
67 | - | let z = | |
67 | + | let z = [w, x, y] | |
68 | 68 | ||
69 | - | let A = "bot_disabled" | |
70 | - | ||
71 | - | let B = [w, x, y, z, A] | |
72 | - | ||
73 | - | func C (u,v) = makeString(["%s%s%s", "createCalled", u, v], a) | |
69 | + | func A (u,v) = makeString(["%s%s%s", "createCalled", u, v], a) | |
74 | 70 | ||
75 | 71 | ||
76 | - | func | |
72 | + | func B (u,v) = makeString(["%s%s%s", "amountAssetAmount", u, v], a) | |
77 | 73 | ||
78 | 74 | ||
79 | - | func | |
75 | + | func C (u,v) = makeString(["%s%s%s", "priceAssetAmount", u, v], a) | |
80 | 76 | ||
81 | 77 | ||
82 | - | func | |
78 | + | func D (u,v) = makeString(["%s%s%s", "height", u, v], a) | |
83 | 79 | ||
84 | 80 | ||
85 | - | func | |
81 | + | func E () = makeString(["%s", "feeAssetId"], a) | |
86 | 82 | ||
87 | 83 | ||
88 | - | func | |
84 | + | func F () = makeString(["%s", "feeAmount"], a) | |
89 | 85 | ||
90 | 86 | ||
91 | - | func | |
87 | + | func G () = makeString(["%s", "amountAssetMinAmount"], a) | |
92 | 88 | ||
93 | 89 | ||
94 | - | func | |
90 | + | func H () = makeString(["%s", "priceAssetsMinAmount"], a) | |
95 | 91 | ||
96 | 92 | ||
97 | - | func | |
93 | + | func I () = makeString(["%s", "priceAssetIds"], a) | |
98 | 94 | ||
99 | 95 | ||
100 | - | func | |
96 | + | func J (K) = valueOrErrorMessage(getString(this, K), (K + " is not defined")) | |
101 | 97 | ||
102 | 98 | ||
103 | - | let | |
99 | + | let L = addressFromStringValue(J(r())) | |
104 | 100 | ||
105 | - | func | |
101 | + | func M (u,v) = valueOrElse(getBoolean(A(u, v)), false) | |
106 | 102 | ||
107 | 103 | ||
108 | - | func | |
104 | + | func N (u,v) = if (M(u, v)) | |
109 | 105 | then true | |
110 | 106 | else e() | |
111 | 107 | ||
112 | 108 | ||
113 | - | func | |
114 | - | let | |
115 | - | if ($isInstanceOf( | |
109 | + | func O () = { | |
110 | + | let P = getString(o()) | |
111 | + | if ($isInstanceOf(P, "String")) | |
116 | 112 | then { | |
117 | - | let | |
118 | - | fromBase58String( | |
113 | + | let Q = P | |
114 | + | fromBase58String(Q) | |
119 | 115 | } | |
120 | - | else if ($isInstanceOf( | |
116 | + | else if ($isInstanceOf(P, "Unit")) | |
121 | 117 | then unit | |
122 | 118 | else throw("Match error") | |
123 | 119 | } | |
124 | 120 | ||
125 | 121 | ||
126 | - | func | |
127 | - | let | |
128 | - | if ($isInstanceOf( | |
122 | + | func R () = { | |
123 | + | let P = getString(p()) | |
124 | + | if ($isInstanceOf(P, "String")) | |
129 | 125 | then { | |
130 | - | let | |
131 | - | fromBase58String( | |
126 | + | let Q = P | |
127 | + | fromBase58String(Q) | |
132 | 128 | } | |
133 | - | else if ($isInstanceOf( | |
129 | + | else if ($isInstanceOf(P, "Unit")) | |
134 | 130 | then unit | |
135 | 131 | else throw("Match error") | |
136 | 132 | } | |
137 | 133 | ||
138 | 134 | ||
139 | - | func | |
140 | - | let | |
141 | - | if ($isInstanceOf( | |
135 | + | func S (T) = { | |
136 | + | let P = O() | |
137 | + | if ($isInstanceOf(P, "ByteVector")) | |
142 | 138 | then { | |
143 | - | let | |
144 | - | if (( | |
139 | + | let U = P | |
140 | + | if ((T.callerPublicKey == U)) | |
145 | 141 | then true | |
146 | 142 | else d() | |
147 | 143 | } | |
148 | - | else if ($isInstanceOf( | |
149 | - | then if (( | |
144 | + | else if ($isInstanceOf(P, "Unit")) | |
145 | + | then if ((T.caller == this)) | |
150 | 146 | then true | |
151 | 147 | else d() | |
152 | 148 | else throw("Match error") | |
153 | 149 | } | |
154 | 150 | ||
155 | 151 | ||
156 | - | func | |
157 | - | let | |
158 | - | if (containsElement( | |
152 | + | func V (T) = { | |
153 | + | let W = split(valueOrElse(getString(q()), b), a) | |
154 | + | if (containsElement(W, toBase58String(T.callerPublicKey))) | |
159 | 155 | then true | |
160 | 156 | else { | |
161 | - | let | |
162 | - | if (( | |
157 | + | let X = S(T) | |
158 | + | if ((X == X)) | |
163 | 159 | then true | |
164 | 160 | else throw("Strict value is not equal to itself.") | |
165 | 161 | } | |
166 | 162 | } | |
167 | 163 | ||
168 | 164 | ||
169 | - | func | |
165 | + | func Y (Z) = (valueOrElse(getInteger(addressFromStringValue(J(s())), (("status_<" + Z) + ">")), 0) == 2) | |
170 | 166 | ||
171 | 167 | ||
172 | - | func | |
173 | - | let | |
174 | - | let | |
175 | - | $Tuple2(toBase58String( | |
168 | + | func aa (ab) = { | |
169 | + | let ac = value(ab.assetId) | |
170 | + | let ad = value(assetInfo(ac)) | |
171 | + | $Tuple2(toBase58String(ac), ad) | |
176 | 172 | } | |
177 | 173 | ||
178 | 174 | ||
179 | - | func | |
175 | + | func ae (af) = containsElement(z, af) | |
180 | 176 | ||
181 | 177 | ||
182 | - | @Callable( | |
183 | - | func constructor (ai,aj,ak,al,am | |
184 | - | let | |
185 | - | if (( | |
186 | - | then [StringEntry(r(), | |
178 | + | @Callable(T) | |
179 | + | func constructor (ag,ah,ai,aj,ak,al,am) = { | |
180 | + | let an = S(T) | |
181 | + | if ((an == an)) | |
182 | + | then [StringEntry(r(), ag), StringEntry(s(), ah), StringEntry(I(), makeString(ai, a)), StringEntry(H(), makeString(aj, a)), IntegerEntry(G(), ak), StringEntry(E(), al), IntegerEntry(F(), am)] | |
187 | 183 | else throw("Strict value is not equal to itself.") | |
188 | 184 | } | |
189 | 185 | ||
190 | 186 | ||
191 | 187 | ||
192 | - | @Callable( | |
188 | + | @Callable(T) | |
193 | 189 | func create () = { | |
194 | - | let aq = value(V.payments[0]) | |
195 | - | let ar = value(V.payments[1]) | |
196 | - | let as = value(V.payments[2]) | |
197 | - | let at = ac(aq) | |
198 | - | let u = at._1 | |
190 | + | let ao = value(T.payments[0]) | |
191 | + | let ap = value(T.payments[1]) | |
192 | + | let aq = value(T.payments[2]) | |
193 | + | let ar = aa(ao) | |
194 | + | let u = ar._1 | |
195 | + | let as = ar._2 | |
196 | + | let at = aa(ap) | |
197 | + | let v = at._1 | |
199 | 198 | let au = at._2 | |
200 | - | let av = | |
201 | - | let | |
199 | + | let av = aa(aq) | |
200 | + | let al = av._1 | |
202 | 201 | let aw = av._2 | |
203 | - | let ax = ac(as) | |
204 | - | let an = ax._1 | |
205 | - | let ay = ax._2 | |
206 | - | let az = split(valueOrElse(getString(K()), b), a) | |
207 | - | let aA = valueOrErrorMessage(indexOf(az, v), c) | |
208 | - | let aB = [if (!(O(u, v))) | |
202 | + | let ax = split(valueOrElse(getString(I()), b), a) | |
203 | + | let ay = valueOrErrorMessage(indexOf(ax, v), c) | |
204 | + | let az = [if (!(M(u, v))) | |
209 | 205 | then true | |
210 | - | else g(), if (( | |
206 | + | else g(), if ((as.issuer == T.caller)) | |
211 | 207 | then true | |
212 | - | else f(), if ( | |
208 | + | else f(), if (Y(u)) | |
213 | 209 | then true | |
214 | - | else h(), if ((getString( | |
210 | + | else h(), if ((getString(E()) == al)) | |
215 | 211 | then true | |
216 | - | else j(), if (( | |
212 | + | else j(), if ((ao.amount >= getIntegerValue(G()))) | |
217 | 213 | then true | |
218 | - | else k(), if (( | |
214 | + | else k(), if ((ap.amount >= value(parseInt(split(valueOrElse(getString(H()), b), a)[ay])))) | |
219 | 215 | then true | |
220 | - | else throw(), if (( | |
216 | + | else throw(), if ((aq.amount == getInteger(F()))) | |
221 | 217 | then true | |
222 | 218 | else throw()] | |
223 | - | if (( | |
224 | - | then [BooleanEntry( | |
219 | + | if ((az == az)) | |
220 | + | then [BooleanEntry(A(u, v), true), IntegerEntry(D(u, v), height), StringEntry(t(u, v), w), IntegerEntry(B(u, v), ao.amount), IntegerEntry(C(u, v), ap.amount)] | |
225 | 221 | else throw("Strict value is not equal to itself.") | |
226 | 222 | } | |
227 | 223 | ||
228 | 224 | ||
229 | 225 | ||
230 | - | @Callable( | |
231 | - | func setStatus (u,v, | |
232 | - | let | |
226 | + | @Callable(T) | |
227 | + | func setStatus (u,v,aA) = { | |
228 | + | let az = [V(T), if (M(u, v)) | |
233 | 229 | then true | |
234 | - | else e(), if ( | |
230 | + | else e(), if (ae(aA)) | |
235 | 231 | then true | |
236 | 232 | else l()] | |
237 | - | if (( | |
238 | - | then [StringEntry(t(u, v), | |
233 | + | if ((az == az)) | |
234 | + | then [StringEntry(t(u, v), aA)] | |
239 | 235 | else throw("Strict value is not equal to itself.") | |
240 | 236 | } | |
241 | 237 | ||
242 | 238 | ||
243 | 239 | ||
244 | - | @Callable( | |
245 | - | func activate ( | |
246 | - | let | |
240 | + | @Callable(T) | |
241 | + | func activate (aB,u,aC,v,aD) = { | |
242 | + | let az = [S(T), if (M(u, v)) | |
247 | 243 | then true | |
248 | 244 | else e(), if ((value(getString(t(u, v))) == w)) | |
249 | 245 | then true | |
250 | 246 | else m()] | |
251 | - | if (( | |
247 | + | if ((az == az)) | |
252 | 248 | then { | |
253 | - | let | |
254 | - | if (( | |
249 | + | let aE = invoke(L, "activateNewPool", [aB, u, v, ((aC + aD) + "LP"), (((("WX " + aC) + "/") + aD) + " pool liquidity provider token"), 0, "VLTPOOL"], nil) | |
250 | + | if ((aE == aE)) | |
255 | 251 | then { | |
256 | - | let | |
257 | - | let | |
258 | - | if ($isInstanceOf( | |
252 | + | let aF = { | |
253 | + | let P = aE | |
254 | + | if ($isInstanceOf(P, "String")) | |
259 | 255 | then { | |
260 | - | let | |
261 | - | | |
256 | + | let ac = P | |
257 | + | ac | |
262 | 258 | } | |
263 | 259 | else n() | |
264 | 260 | } | |
265 | - | if (( | |
261 | + | if ((aF == aF)) | |
266 | 262 | then { | |
267 | - | let | |
268 | - | if (( | |
263 | + | let aG = assetBalance(this, fromBase58String(aF)) | |
264 | + | if ((aG == aG)) | |
269 | 265 | then { | |
270 | - | let | |
271 | - | if (( | |
266 | + | let aH = invoke(addressFromStringValue(aB), "put", [0, false], [AttachedPayment(fromBase58String(u), value(getInteger(B(u, v)))), AttachedPayment(fromBase58String(v), value(getInteger(C(u, v))))]) | |
267 | + | if ((aH == aH)) | |
272 | 268 | then { | |
273 | - | let | |
274 | - | if (( | |
269 | + | let aI = assetBalance(this, fromBase58String(aF)) | |
270 | + | if ((aI == aI)) | |
275 | 271 | then { | |
276 | - | let | |
277 | - | [StringEntry(t(u, v), y), ScriptTransfer( | |
272 | + | let aJ = value(assetInfo(fromBase58String(u))).issuer | |
273 | + | [StringEntry(t(u, v), y), ScriptTransfer(aJ, (aI - aG), fromBase58String(aF))] | |
278 | 274 | } | |
279 | 275 | else throw("Strict value is not equal to itself.") | |
280 | 276 | } | |
291 | 287 | ||
292 | 288 | ||
293 | 289 | ||
294 | - | @Callable( | |
295 | - | func setAdmins ( | |
296 | - | let | |
297 | - | if (( | |
298 | - | then [StringEntry(q(), makeString( | |
290 | + | @Callable(T) | |
291 | + | func setAdmins (aK) = { | |
292 | + | let an = S(T) | |
293 | + | if ((an == an)) | |
294 | + | then [StringEntry(q(), makeString(aK, a))] | |
299 | 295 | else throw("Strict value is not equal to itself.") | |
300 | 296 | } | |
301 | 297 | ||
302 | 298 | ||
303 | 299 | ||
304 | - | @Callable( | |
305 | - | func setManager ( | |
306 | - | let | |
307 | - | if (( | |
300 | + | @Callable(T) | |
301 | + | func setManager (aL) = { | |
302 | + | let an = S(T) | |
303 | + | if ((an == an)) | |
308 | 304 | then { | |
309 | - | let | |
310 | - | if (( | |
311 | - | then [StringEntry(p(), | |
305 | + | let aM = fromBase58String(aL) | |
306 | + | if ((aM == aM)) | |
307 | + | then [StringEntry(p(), aL)] | |
312 | 308 | else throw("Strict value is not equal to itself.") | |
313 | 309 | } | |
314 | 310 | else throw("Strict value is not equal to itself.") | |
316 | 312 | ||
317 | 313 | ||
318 | 314 | ||
319 | - | @Callable( | |
315 | + | @Callable(T) | |
320 | 316 | func confirmManager () = { | |
321 | - | let | |
322 | - | let | |
317 | + | let aN = R() | |
318 | + | let aO = if (isDefined(aN)) | |
323 | 319 | then true | |
324 | 320 | else throw("No pending manager") | |
325 | - | if (( | |
321 | + | if ((aO == aO)) | |
326 | 322 | then { | |
327 | - | let | |
323 | + | let aP = if ((T.callerPublicKey == value(aN))) | |
328 | 324 | then true | |
329 | 325 | else throw("You are not pending manager") | |
330 | - | if (( | |
331 | - | then [StringEntry(o(), toBase58String(value( | |
326 | + | if ((aP == aP)) | |
327 | + | then [StringEntry(o(), toBase58String(value(aN))), DeleteEntry(p())] | |
332 | 328 | else throw("Strict value is not equal to itself.") | |
333 | 329 | } | |
334 | 330 | else throw("Strict value is not equal to itself.") | |
336 | 332 | ||
337 | 333 | ||
338 | 334 | ||
339 | - | @Callable(V) | |
340 | - | func priceAssetsREADONLY () = $Tuple2(nil, split(valueOrElse(getString(K()), b), a)) | |
335 | + | @Callable(T) | |
336 | + | func priceAssetsREADONLY () = { | |
337 | + | let aQ = getString(I()) | |
338 | + | $Tuple2(nil, if ((aQ == unit)) | |
339 | + | then nil | |
340 | + | else split(value(aQ), a)) | |
341 | + | } | |
341 | 342 | ||
342 | 343 | ||
343 | - | @Verifier( | |
344 | - | func | |
345 | - | let | |
346 | - | let | |
347 | - | if ($isInstanceOf( | |
344 | + | @Verifier(aR) | |
345 | + | func aS () = { | |
346 | + | let aT = { | |
347 | + | let P = O() | |
348 | + | if ($isInstanceOf(P, "ByteVector")) | |
348 | 349 | then { | |
349 | - | let | |
350 | - | | |
350 | + | let U = P | |
351 | + | U | |
351 | 352 | } | |
352 | - | else if ($isInstanceOf( | |
353 | - | then | |
353 | + | else if ($isInstanceOf(P, "Unit")) | |
354 | + | then aR.senderPublicKey | |
354 | 355 | else throw("Match error") | |
355 | 356 | } | |
356 | - | sigVerify( | |
357 | + | sigVerify(aR.bodyBytes, aR.proofs[0], aT) | |
357 | 358 | } | |
358 | 359 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "" | |
7 | 7 | ||
8 | 8 | let c = "Invalid price asset" | |
9 | 9 | ||
10 | 10 | func d () = throw("Permission denied") | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func e () = throw("Create is not called for assets pair") | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func f () = throw("You are not amountAsset issuer") | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func g () = throw("Pool with such assets already exists") | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func h () = throw("Asset is not verified") | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func i () = throw(c) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func j () = throw("Invalid fee asset") | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func k () = throw("Invalid amount asset attached") | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func l () = throw("Invalid status") | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func m () = throw("Can activate pool only in 'pending' status") | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func n () = throw("FactoryV2 returned not string") | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func o () = makeString(["%s", "managerPublicKey"], a) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func p () = makeString(["%s", "pendingManagerPublicKey"], a) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func q () = makeString(["%s", "adminPubKeys"], a) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func r () = makeString(["%s", "factoryContract"], a) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func s () = makeString(["%s", "assetsStoreContract"], a) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func t (u,v) = makeString(["%s%s%s", "status", u, v], a) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | let w = "pending" | |
62 | 62 | ||
63 | 63 | let x = "declined" | |
64 | 64 | ||
65 | - | let y = " | |
65 | + | let y = "active" | |
66 | 66 | ||
67 | - | let z = | |
67 | + | let z = [w, x, y] | |
68 | 68 | ||
69 | - | let A = "bot_disabled" | |
70 | - | ||
71 | - | let B = [w, x, y, z, A] | |
72 | - | ||
73 | - | func C (u,v) = makeString(["%s%s%s", "createCalled", u, v], a) | |
69 | + | func A (u,v) = makeString(["%s%s%s", "createCalled", u, v], a) | |
74 | 70 | ||
75 | 71 | ||
76 | - | func | |
72 | + | func B (u,v) = makeString(["%s%s%s", "amountAssetAmount", u, v], a) | |
77 | 73 | ||
78 | 74 | ||
79 | - | func | |
75 | + | func C (u,v) = makeString(["%s%s%s", "priceAssetAmount", u, v], a) | |
80 | 76 | ||
81 | 77 | ||
82 | - | func | |
78 | + | func D (u,v) = makeString(["%s%s%s", "height", u, v], a) | |
83 | 79 | ||
84 | 80 | ||
85 | - | func | |
81 | + | func E () = makeString(["%s", "feeAssetId"], a) | |
86 | 82 | ||
87 | 83 | ||
88 | - | func | |
84 | + | func F () = makeString(["%s", "feeAmount"], a) | |
89 | 85 | ||
90 | 86 | ||
91 | - | func | |
87 | + | func G () = makeString(["%s", "amountAssetMinAmount"], a) | |
92 | 88 | ||
93 | 89 | ||
94 | - | func | |
90 | + | func H () = makeString(["%s", "priceAssetsMinAmount"], a) | |
95 | 91 | ||
96 | 92 | ||
97 | - | func | |
93 | + | func I () = makeString(["%s", "priceAssetIds"], a) | |
98 | 94 | ||
99 | 95 | ||
100 | - | func | |
96 | + | func J (K) = valueOrErrorMessage(getString(this, K), (K + " is not defined")) | |
101 | 97 | ||
102 | 98 | ||
103 | - | let | |
99 | + | let L = addressFromStringValue(J(r())) | |
104 | 100 | ||
105 | - | func | |
101 | + | func M (u,v) = valueOrElse(getBoolean(A(u, v)), false) | |
106 | 102 | ||
107 | 103 | ||
108 | - | func | |
104 | + | func N (u,v) = if (M(u, v)) | |
109 | 105 | then true | |
110 | 106 | else e() | |
111 | 107 | ||
112 | 108 | ||
113 | - | func | |
114 | - | let | |
115 | - | if ($isInstanceOf( | |
109 | + | func O () = { | |
110 | + | let P = getString(o()) | |
111 | + | if ($isInstanceOf(P, "String")) | |
116 | 112 | then { | |
117 | - | let | |
118 | - | fromBase58String( | |
113 | + | let Q = P | |
114 | + | fromBase58String(Q) | |
119 | 115 | } | |
120 | - | else if ($isInstanceOf( | |
116 | + | else if ($isInstanceOf(P, "Unit")) | |
121 | 117 | then unit | |
122 | 118 | else throw("Match error") | |
123 | 119 | } | |
124 | 120 | ||
125 | 121 | ||
126 | - | func | |
127 | - | let | |
128 | - | if ($isInstanceOf( | |
122 | + | func R () = { | |
123 | + | let P = getString(p()) | |
124 | + | if ($isInstanceOf(P, "String")) | |
129 | 125 | then { | |
130 | - | let | |
131 | - | fromBase58String( | |
126 | + | let Q = P | |
127 | + | fromBase58String(Q) | |
132 | 128 | } | |
133 | - | else if ($isInstanceOf( | |
129 | + | else if ($isInstanceOf(P, "Unit")) | |
134 | 130 | then unit | |
135 | 131 | else throw("Match error") | |
136 | 132 | } | |
137 | 133 | ||
138 | 134 | ||
139 | - | func | |
140 | - | let | |
141 | - | if ($isInstanceOf( | |
135 | + | func S (T) = { | |
136 | + | let P = O() | |
137 | + | if ($isInstanceOf(P, "ByteVector")) | |
142 | 138 | then { | |
143 | - | let | |
144 | - | if (( | |
139 | + | let U = P | |
140 | + | if ((T.callerPublicKey == U)) | |
145 | 141 | then true | |
146 | 142 | else d() | |
147 | 143 | } | |
148 | - | else if ($isInstanceOf( | |
149 | - | then if (( | |
144 | + | else if ($isInstanceOf(P, "Unit")) | |
145 | + | then if ((T.caller == this)) | |
150 | 146 | then true | |
151 | 147 | else d() | |
152 | 148 | else throw("Match error") | |
153 | 149 | } | |
154 | 150 | ||
155 | 151 | ||
156 | - | func | |
157 | - | let | |
158 | - | if (containsElement( | |
152 | + | func V (T) = { | |
153 | + | let W = split(valueOrElse(getString(q()), b), a) | |
154 | + | if (containsElement(W, toBase58String(T.callerPublicKey))) | |
159 | 155 | then true | |
160 | 156 | else { | |
161 | - | let | |
162 | - | if (( | |
157 | + | let X = S(T) | |
158 | + | if ((X == X)) | |
163 | 159 | then true | |
164 | 160 | else throw("Strict value is not equal to itself.") | |
165 | 161 | } | |
166 | 162 | } | |
167 | 163 | ||
168 | 164 | ||
169 | - | func | |
165 | + | func Y (Z) = (valueOrElse(getInteger(addressFromStringValue(J(s())), (("status_<" + Z) + ">")), 0) == 2) | |
170 | 166 | ||
171 | 167 | ||
172 | - | func | |
173 | - | let | |
174 | - | let | |
175 | - | $Tuple2(toBase58String( | |
168 | + | func aa (ab) = { | |
169 | + | let ac = value(ab.assetId) | |
170 | + | let ad = value(assetInfo(ac)) | |
171 | + | $Tuple2(toBase58String(ac), ad) | |
176 | 172 | } | |
177 | 173 | ||
178 | 174 | ||
179 | - | func | |
175 | + | func ae (af) = containsElement(z, af) | |
180 | 176 | ||
181 | 177 | ||
182 | - | @Callable( | |
183 | - | func constructor (ai,aj,ak,al,am | |
184 | - | let | |
185 | - | if (( | |
186 | - | then [StringEntry(r(), | |
178 | + | @Callable(T) | |
179 | + | func constructor (ag,ah,ai,aj,ak,al,am) = { | |
180 | + | let an = S(T) | |
181 | + | if ((an == an)) | |
182 | + | then [StringEntry(r(), ag), StringEntry(s(), ah), StringEntry(I(), makeString(ai, a)), StringEntry(H(), makeString(aj, a)), IntegerEntry(G(), ak), StringEntry(E(), al), IntegerEntry(F(), am)] | |
187 | 183 | else throw("Strict value is not equal to itself.") | |
188 | 184 | } | |
189 | 185 | ||
190 | 186 | ||
191 | 187 | ||
192 | - | @Callable( | |
188 | + | @Callable(T) | |
193 | 189 | func create () = { | |
194 | - | let aq = value(V.payments[0]) | |
195 | - | let ar = value(V.payments[1]) | |
196 | - | let as = value(V.payments[2]) | |
197 | - | let at = ac(aq) | |
198 | - | let u = at._1 | |
190 | + | let ao = value(T.payments[0]) | |
191 | + | let ap = value(T.payments[1]) | |
192 | + | let aq = value(T.payments[2]) | |
193 | + | let ar = aa(ao) | |
194 | + | let u = ar._1 | |
195 | + | let as = ar._2 | |
196 | + | let at = aa(ap) | |
197 | + | let v = at._1 | |
199 | 198 | let au = at._2 | |
200 | - | let av = | |
201 | - | let | |
199 | + | let av = aa(aq) | |
200 | + | let al = av._1 | |
202 | 201 | let aw = av._2 | |
203 | - | let ax = ac(as) | |
204 | - | let an = ax._1 | |
205 | - | let ay = ax._2 | |
206 | - | let az = split(valueOrElse(getString(K()), b), a) | |
207 | - | let aA = valueOrErrorMessage(indexOf(az, v), c) | |
208 | - | let aB = [if (!(O(u, v))) | |
202 | + | let ax = split(valueOrElse(getString(I()), b), a) | |
203 | + | let ay = valueOrErrorMessage(indexOf(ax, v), c) | |
204 | + | let az = [if (!(M(u, v))) | |
209 | 205 | then true | |
210 | - | else g(), if (( | |
206 | + | else g(), if ((as.issuer == T.caller)) | |
211 | 207 | then true | |
212 | - | else f(), if ( | |
208 | + | else f(), if (Y(u)) | |
213 | 209 | then true | |
214 | - | else h(), if ((getString( | |
210 | + | else h(), if ((getString(E()) == al)) | |
215 | 211 | then true | |
216 | - | else j(), if (( | |
212 | + | else j(), if ((ao.amount >= getIntegerValue(G()))) | |
217 | 213 | then true | |
218 | - | else k(), if (( | |
214 | + | else k(), if ((ap.amount >= value(parseInt(split(valueOrElse(getString(H()), b), a)[ay])))) | |
219 | 215 | then true | |
220 | - | else throw(), if (( | |
216 | + | else throw(), if ((aq.amount == getInteger(F()))) | |
221 | 217 | then true | |
222 | 218 | else throw()] | |
223 | - | if (( | |
224 | - | then [BooleanEntry( | |
219 | + | if ((az == az)) | |
220 | + | then [BooleanEntry(A(u, v), true), IntegerEntry(D(u, v), height), StringEntry(t(u, v), w), IntegerEntry(B(u, v), ao.amount), IntegerEntry(C(u, v), ap.amount)] | |
225 | 221 | else throw("Strict value is not equal to itself.") | |
226 | 222 | } | |
227 | 223 | ||
228 | 224 | ||
229 | 225 | ||
230 | - | @Callable( | |
231 | - | func setStatus (u,v, | |
232 | - | let | |
226 | + | @Callable(T) | |
227 | + | func setStatus (u,v,aA) = { | |
228 | + | let az = [V(T), if (M(u, v)) | |
233 | 229 | then true | |
234 | - | else e(), if ( | |
230 | + | else e(), if (ae(aA)) | |
235 | 231 | then true | |
236 | 232 | else l()] | |
237 | - | if (( | |
238 | - | then [StringEntry(t(u, v), | |
233 | + | if ((az == az)) | |
234 | + | then [StringEntry(t(u, v), aA)] | |
239 | 235 | else throw("Strict value is not equal to itself.") | |
240 | 236 | } | |
241 | 237 | ||
242 | 238 | ||
243 | 239 | ||
244 | - | @Callable( | |
245 | - | func activate ( | |
246 | - | let | |
240 | + | @Callable(T) | |
241 | + | func activate (aB,u,aC,v,aD) = { | |
242 | + | let az = [S(T), if (M(u, v)) | |
247 | 243 | then true | |
248 | 244 | else e(), if ((value(getString(t(u, v))) == w)) | |
249 | 245 | then true | |
250 | 246 | else m()] | |
251 | - | if (( | |
247 | + | if ((az == az)) | |
252 | 248 | then { | |
253 | - | let | |
254 | - | if (( | |
249 | + | let aE = invoke(L, "activateNewPool", [aB, u, v, ((aC + aD) + "LP"), (((("WX " + aC) + "/") + aD) + " pool liquidity provider token"), 0, "VLTPOOL"], nil) | |
250 | + | if ((aE == aE)) | |
255 | 251 | then { | |
256 | - | let | |
257 | - | let | |
258 | - | if ($isInstanceOf( | |
252 | + | let aF = { | |
253 | + | let P = aE | |
254 | + | if ($isInstanceOf(P, "String")) | |
259 | 255 | then { | |
260 | - | let | |
261 | - | | |
256 | + | let ac = P | |
257 | + | ac | |
262 | 258 | } | |
263 | 259 | else n() | |
264 | 260 | } | |
265 | - | if (( | |
261 | + | if ((aF == aF)) | |
266 | 262 | then { | |
267 | - | let | |
268 | - | if (( | |
263 | + | let aG = assetBalance(this, fromBase58String(aF)) | |
264 | + | if ((aG == aG)) | |
269 | 265 | then { | |
270 | - | let | |
271 | - | if (( | |
266 | + | let aH = invoke(addressFromStringValue(aB), "put", [0, false], [AttachedPayment(fromBase58String(u), value(getInteger(B(u, v)))), AttachedPayment(fromBase58String(v), value(getInteger(C(u, v))))]) | |
267 | + | if ((aH == aH)) | |
272 | 268 | then { | |
273 | - | let | |
274 | - | if (( | |
269 | + | let aI = assetBalance(this, fromBase58String(aF)) | |
270 | + | if ((aI == aI)) | |
275 | 271 | then { | |
276 | - | let | |
277 | - | [StringEntry(t(u, v), y), ScriptTransfer( | |
272 | + | let aJ = value(assetInfo(fromBase58String(u))).issuer | |
273 | + | [StringEntry(t(u, v), y), ScriptTransfer(aJ, (aI - aG), fromBase58String(aF))] | |
278 | 274 | } | |
279 | 275 | else throw("Strict value is not equal to itself.") | |
280 | 276 | } | |
281 | 277 | else throw("Strict value is not equal to itself.") | |
282 | 278 | } | |
283 | 279 | else throw("Strict value is not equal to itself.") | |
284 | 280 | } | |
285 | 281 | else throw("Strict value is not equal to itself.") | |
286 | 282 | } | |
287 | 283 | else throw("Strict value is not equal to itself.") | |
288 | 284 | } | |
289 | 285 | else throw("Strict value is not equal to itself.") | |
290 | 286 | } | |
291 | 287 | ||
292 | 288 | ||
293 | 289 | ||
294 | - | @Callable( | |
295 | - | func setAdmins ( | |
296 | - | let | |
297 | - | if (( | |
298 | - | then [StringEntry(q(), makeString( | |
290 | + | @Callable(T) | |
291 | + | func setAdmins (aK) = { | |
292 | + | let an = S(T) | |
293 | + | if ((an == an)) | |
294 | + | then [StringEntry(q(), makeString(aK, a))] | |
299 | 295 | else throw("Strict value is not equal to itself.") | |
300 | 296 | } | |
301 | 297 | ||
302 | 298 | ||
303 | 299 | ||
304 | - | @Callable( | |
305 | - | func setManager ( | |
306 | - | let | |
307 | - | if (( | |
300 | + | @Callable(T) | |
301 | + | func setManager (aL) = { | |
302 | + | let an = S(T) | |
303 | + | if ((an == an)) | |
308 | 304 | then { | |
309 | - | let | |
310 | - | if (( | |
311 | - | then [StringEntry(p(), | |
305 | + | let aM = fromBase58String(aL) | |
306 | + | if ((aM == aM)) | |
307 | + | then [StringEntry(p(), aL)] | |
312 | 308 | else throw("Strict value is not equal to itself.") | |
313 | 309 | } | |
314 | 310 | else throw("Strict value is not equal to itself.") | |
315 | 311 | } | |
316 | 312 | ||
317 | 313 | ||
318 | 314 | ||
319 | - | @Callable( | |
315 | + | @Callable(T) | |
320 | 316 | func confirmManager () = { | |
321 | - | let | |
322 | - | let | |
317 | + | let aN = R() | |
318 | + | let aO = if (isDefined(aN)) | |
323 | 319 | then true | |
324 | 320 | else throw("No pending manager") | |
325 | - | if (( | |
321 | + | if ((aO == aO)) | |
326 | 322 | then { | |
327 | - | let | |
323 | + | let aP = if ((T.callerPublicKey == value(aN))) | |
328 | 324 | then true | |
329 | 325 | else throw("You are not pending manager") | |
330 | - | if (( | |
331 | - | then [StringEntry(o(), toBase58String(value( | |
326 | + | if ((aP == aP)) | |
327 | + | then [StringEntry(o(), toBase58String(value(aN))), DeleteEntry(p())] | |
332 | 328 | else throw("Strict value is not equal to itself.") | |
333 | 329 | } | |
334 | 330 | else throw("Strict value is not equal to itself.") | |
335 | 331 | } | |
336 | 332 | ||
337 | 333 | ||
338 | 334 | ||
339 | - | @Callable(V) | |
340 | - | func priceAssetsREADONLY () = $Tuple2(nil, split(valueOrElse(getString(K()), b), a)) | |
335 | + | @Callable(T) | |
336 | + | func priceAssetsREADONLY () = { | |
337 | + | let aQ = getString(I()) | |
338 | + | $Tuple2(nil, if ((aQ == unit)) | |
339 | + | then nil | |
340 | + | else split(value(aQ), a)) | |
341 | + | } | |
341 | 342 | ||
342 | 343 | ||
343 | - | @Verifier( | |
344 | - | func | |
345 | - | let | |
346 | - | let | |
347 | - | if ($isInstanceOf( | |
344 | + | @Verifier(aR) | |
345 | + | func aS () = { | |
346 | + | let aT = { | |
347 | + | let P = O() | |
348 | + | if ($isInstanceOf(P, "ByteVector")) | |
348 | 349 | then { | |
349 | - | let | |
350 | - | | |
350 | + | let U = P | |
351 | + | U | |
351 | 352 | } | |
352 | - | else if ($isInstanceOf( | |
353 | - | then | |
353 | + | else if ($isInstanceOf(P, "Unit")) | |
354 | + | then aR.senderPublicKey | |
354 | 355 | else throw("Match error") | |
355 | 356 | } | |
356 | - | sigVerify( | |
357 | + | sigVerify(aR.bodyBytes, aR.proofs[0], aT) | |
357 | 358 | } | |
358 | 359 |
github/deemru/w8io/026f985 97.76 ms ◑