tx · 5Z1JkyR2dz4cb2Dj5tp9UrMtWcPMpuen9D5L3xvJzgxu 3Mx4GxjrawhKHBgMKH9C5Hmbj8ePZDrs8ed: -0.01500000 Waves 2023.05.11 10:15 [2572909] smart account 3Mx4GxjrawhKHBgMKH9C5Hmbj8ePZDrs8ed > SELF 0.00000000 Waves
{ "type": 13, "id": "5Z1JkyR2dz4cb2Dj5tp9UrMtWcPMpuen9D5L3xvJzgxu", "fee": 1500000, "feeAssetId": null, "timestamp": 1683789365317, "version": 2, "chainId": 84, "sender": "3Mx4GxjrawhKHBgMKH9C5Hmbj8ePZDrs8ed", "senderPublicKey": "9DpEgmia9fGpxtGGDeSMtER4g9qB7WQPPYTKTHzqSFuX", "proofs": [ "tBrWjLXzgHGKauwNYaAzNzAYGzYig6qcTvxjU1KxoWAKC1Cydfc6U413QUXGJqUWzxRbRPEWQ9TWZmNRYZfNqgE" ], "script": "base64:BgJUCAISBgoECAgICBIJCgcICAgICAgIEgUKAwEIARIECgIBCBIDCgEIEgQKAgEEEgMKAQgSBQoDAQgBEgsKCQEICAEBAQEBBBIAEgASAwoBCBIDCgEIPwAJU0VQQVJBVE9SAgJfXwAIS0VZX0lOSVQCBElOSVQADEtFWV9NVUxUSVNJRwIITVVMVElTSUcACktFWV9TVEFUVVMCBlNUQVRVUwAKS0VZX1BBVVNFRAIGUEFVU0VEAApLRVlfUEFVU0VSAgZQQVVTRVIADEtFWV9FWEVDVVRPUgIIRVhFQ1VUT1IAEEtFWV9ST09UX0FEQVBURVICDFJPT1RfQURBUFRFUgATS0VZX0NBTExFUl9DT05UUkFDVAIPQ0FMTEVSX0NPTlRSQUNUAAlLRVlfQ0hBSU4CBUNIQUlOAAtLRVlfQklORElORwIHQklORElORwAHS0VZX0ZFRQIDRkVFABFLRVlfRkVFX1JFQ0lQSUVOVAINRkVFX1JFQ0lQSUVOVAAYS0VZX1JFRkVSUkVSX0ZFRV9QRVJDRU5UAhRSRUZFUlJFUl9GRUVfUEVSQ0VOVAATR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5CQIJAMwIAgUKS0VZX1NUQVRVUwkAzAgCCQClCAEFBHRoaXMJAMwIAgkA2AQBCAUCdHgCaWQFA25pbAUJU0VQQVJBVE9SBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleXdm2AQ=", "height": 2572909, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AYFnp5rYW8kJxTU3XfHTS36TQmnTRmvNWWLoDDyZfUDy Next: CutHDDT3ZWqnnsLpCRLmXhXX1GbbmRJseeNLkgQeUveE Diff:
Old | New | Differences | |
---|---|---|---|
27 | 27 | ||
28 | 28 | let m = "FEE_RECIPIENT" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "REFERRER_FEE_PERCENT" | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "releaseTokens" | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = "WAVES" | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 8 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 6 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 1000000 | |
41 | 41 | ||
42 | - | func t (u,v) = { | |
43 | - | let w = addressFromString(u) | |
44 | - | if ($isInstanceOf(w, "Address")) | |
42 | + | let t = 200000 | |
43 | + | ||
44 | + | let u = 9223372036854775807 | |
45 | + | ||
46 | + | func v (w,x) = { | |
47 | + | let y = addressFromString(w) | |
48 | + | if ($isInstanceOf(y, "Address")) | |
45 | 49 | then { | |
46 | - | let | |
50 | + | let z = y | |
47 | 51 | true | |
48 | 52 | } | |
49 | - | else throw( | |
53 | + | else throw(x) | |
50 | 54 | } | |
51 | 55 | ||
52 | 56 | ||
53 | - | func | |
54 | - | let | |
55 | - | if ($isInstanceOf( | |
57 | + | func A (B,x) = { | |
58 | + | let y = assetInfo(fromBase58String(B)) | |
59 | + | if ($isInstanceOf(y, "Asset")) | |
56 | 60 | then { | |
57 | - | let | |
61 | + | let z = y | |
58 | 62 | true | |
59 | 63 | } | |
60 | - | else throw( | |
64 | + | else throw(x) | |
61 | 65 | } | |
62 | 66 | ||
63 | 67 | ||
64 | - | func | |
68 | + | func C (D,E,F,x) = if (if ((E > D)) | |
65 | 69 | then true | |
66 | - | else ( | |
67 | - | then throw( | |
70 | + | else (D > F)) | |
71 | + | then throw(x) | |
68 | 72 | else true | |
69 | 73 | ||
70 | 74 | ||
71 | - | func | |
72 | - | then throw( | |
75 | + | func G (D,H,x) = if ((D != H)) | |
76 | + | then throw(x) | |
73 | 77 | else true | |
74 | 78 | ||
75 | 79 | ||
76 | - | func | |
77 | - | then throw( | |
80 | + | func I (J,H,x) = if ((size(J) != H)) | |
81 | + | then throw(x) | |
78 | 82 | else true | |
79 | 83 | ||
80 | 84 | ||
81 | - | func | |
82 | - | then ( | |
83 | - | else ( | |
85 | + | func K (L,M,N) = if ((M >= N)) | |
86 | + | then (L / pow(10, 0, (M - N), 0, 0, DOWN)) | |
87 | + | else (L * pow(10, 0, (N - M), 0, 0, DOWN)) | |
84 | 88 | ||
85 | 89 | ||
86 | - | func | |
87 | - | let | |
88 | - | if ($isInstanceOf( | |
90 | + | func O () = { | |
91 | + | let y = getBoolean(b) | |
92 | + | if ($isInstanceOf(y, "Boolean")) | |
89 | 93 | then { | |
90 | - | let | |
91 | - | | |
94 | + | let z = y | |
95 | + | z | |
92 | 96 | } | |
93 | 97 | else false | |
94 | 98 | } | |
95 | 99 | ||
96 | 100 | ||
97 | - | func | |
101 | + | func P (Q) = [BooleanEntry(b, Q)] | |
98 | 102 | ||
99 | 103 | ||
100 | - | func | |
101 | - | let | |
102 | - | if ($isInstanceOf( | |
104 | + | func R () = { | |
105 | + | let y = getBoolean(e) | |
106 | + | if ($isInstanceOf(y, "Boolean")) | |
103 | 107 | then { | |
104 | - | let | |
105 | - | | |
108 | + | let z = y | |
109 | + | z | |
106 | 110 | } | |
107 | 111 | else false | |
108 | 112 | } | |
109 | 113 | ||
110 | 114 | ||
111 | - | func | |
115 | + | func S (T) = [BooleanEntry(e, T)] | |
112 | 116 | ||
113 | 117 | ||
114 | - | func | |
115 | - | let | |
116 | - | if ($isInstanceOf( | |
118 | + | func U () = { | |
119 | + | let y = getString(f) | |
120 | + | if ($isInstanceOf(y, "String")) | |
117 | 121 | then { | |
118 | - | let | |
119 | - | addressFromStringValue( | |
122 | + | let z = y | |
123 | + | addressFromStringValue(z) | |
120 | 124 | } | |
121 | 125 | else Address(base58'') | |
122 | 126 | } | |
123 | 127 | ||
124 | 128 | ||
125 | - | func | |
129 | + | func V (W) = [StringEntry(f, toString(W))] | |
126 | 130 | ||
127 | 131 | ||
128 | - | func | |
129 | - | let | |
130 | - | if ($isInstanceOf( | |
132 | + | func X () = { | |
133 | + | let y = getString(c) | |
134 | + | if ($isInstanceOf(y, "String")) | |
131 | 135 | then { | |
132 | - | let | |
133 | - | addressFromStringValue( | |
136 | + | let z = y | |
137 | + | addressFromStringValue(z) | |
134 | 138 | } | |
135 | 139 | else Address(base58'') | |
136 | 140 | } | |
137 | 141 | ||
138 | 142 | ||
139 | - | func | |
143 | + | func Y (Z) = [StringEntry(c, toString(Z))] | |
140 | 144 | ||
141 | 145 | ||
142 | - | func | |
143 | - | let | |
144 | - | if ($isInstanceOf( | |
146 | + | func aa () = { | |
147 | + | let y = getString(g) | |
148 | + | if ($isInstanceOf(y, "String")) | |
145 | 149 | then { | |
146 | - | let | |
147 | - | addressFromStringValue( | |
150 | + | let z = y | |
151 | + | addressFromStringValue(z) | |
148 | 152 | } | |
149 | 153 | else Address(base58'') | |
150 | 154 | } | |
151 | 155 | ||
152 | 156 | ||
153 | - | func | |
157 | + | func ab (ac) = [StringEntry(g, toString(ac))] | |
154 | 158 | ||
155 | 159 | ||
156 | - | func | |
157 | - | let | |
158 | - | if ($isInstanceOf( | |
160 | + | func ad () = { | |
161 | + | let y = getString(i) | |
162 | + | if ($isInstanceOf(y, "String")) | |
159 | 163 | then { | |
160 | - | let | |
161 | - | | |
164 | + | let z = y | |
165 | + | z | |
162 | 166 | } | |
163 | 167 | else "" | |
164 | 168 | } | |
165 | 169 | ||
166 | 170 | ||
167 | - | func | |
171 | + | func ae (af) = [StringEntry(i, af)] | |
168 | 172 | ||
169 | 173 | ||
170 | - | func | |
171 | - | let | |
172 | - | if ($isInstanceOf( | |
174 | + | func ag (ah) = { | |
175 | + | let y = getBoolean(makeString([j, toString(ah)], a)) | |
176 | + | if ($isInstanceOf(y, "Boolean")) | |
173 | 177 | then { | |
174 | - | let | |
175 | - | | |
178 | + | let z = y | |
179 | + | z | |
176 | 180 | } | |
177 | 181 | else false | |
178 | 182 | } | |
179 | 183 | ||
180 | 184 | ||
181 | - | func | |
185 | + | func ai (ah,D) = [BooleanEntry(makeString([j, toString(ah)], a), D)] | |
182 | 186 | ||
183 | 187 | ||
184 | - | func | |
185 | - | let | |
186 | - | if ($isInstanceOf( | |
188 | + | func aj (ak,B) = { | |
189 | + | let y = getString(makeString([k, toString(ak), toBase58String(B)], a)) | |
190 | + | if ($isInstanceOf(y, "String")) | |
187 | 191 | then { | |
188 | - | let | |
189 | - | let | |
190 | - | $Tuple8(addressFromStringValue( | |
192 | + | let z = y | |
193 | + | let al = split(z, a) | |
194 | + | $Tuple8(addressFromStringValue(al[0]), al[1], parseIntValue(al[2]), parseIntValue(al[3]), parseIntValue(al[4]), parseIntValue(al[5]), parseIntValue(al[6]), if ((al[7] == "1")) | |
191 | 195 | then true | |
192 | 196 | else false) | |
193 | 197 | } | |
195 | 199 | } | |
196 | 200 | ||
197 | 201 | ||
198 | - | func | |
202 | + | func am (ak,B,an) = [StringEntry(makeString([k, toString(ak), toBase58String(B)], a), makeString([toString(an._1), an._2, toString(an._3), toString(an._4), toString(an._5), toString(an._6), toString(an._7), if (an._8) | |
199 | 203 | then "1" | |
200 | 204 | else "0"], a))] | |
201 | 205 | ||
202 | 206 | ||
203 | - | func | |
204 | - | let | |
205 | - | if ($isInstanceOf( | |
207 | + | func ao (B) = { | |
208 | + | let y = getInteger(makeString([l, toBase58String(B)], a)) | |
209 | + | if ($isInstanceOf(y, "Int")) | |
206 | 210 | then { | |
207 | - | let | |
208 | - | | |
211 | + | let z = y | |
212 | + | z | |
209 | 213 | } | |
210 | 214 | else 0 | |
211 | 215 | } | |
212 | 216 | ||
213 | 217 | ||
214 | - | func | |
218 | + | func ap (B,D) = [IntegerEntry(makeString([l, toBase58String(B)], a), D)] | |
215 | 219 | ||
216 | 220 | ||
217 | - | func | |
218 | - | let | |
219 | - | if ($isInstanceOf( | |
221 | + | func aq () = { | |
222 | + | let y = getString(h) | |
223 | + | if ($isInstanceOf(y, "String")) | |
220 | 224 | then { | |
221 | - | let | |
222 | - | addressFromStringValue( | |
225 | + | let z = y | |
226 | + | addressFromStringValue(z) | |
223 | 227 | } | |
224 | 228 | else Address(base58'') | |
225 | 229 | } | |
226 | 230 | ||
227 | 231 | ||
228 | - | func | |
232 | + | func ar (as) = [StringEntry(h, toString(as))] | |
229 | 233 | ||
230 | 234 | ||
231 | - | func | |
232 | - | let | |
233 | - | if ($isInstanceOf( | |
235 | + | func at () = { | |
236 | + | let y = getString(m) | |
237 | + | if ($isInstanceOf(y, "String")) | |
234 | 238 | then { | |
235 | - | let | |
236 | - | addressFromStringValue( | |
239 | + | let z = y | |
240 | + | addressFromStringValue(z) | |
237 | 241 | } | |
238 | 242 | else Address(base58'') | |
239 | 243 | } | |
240 | 244 | ||
241 | 245 | ||
242 | - | func | |
246 | + | func au (D) = [StringEntry(m, toString(D))] | |
243 | 247 | ||
244 | 248 | ||
245 | - | func at (ad) = if ((ad != this)) | |
249 | + | func av (ak,aw) = { | |
250 | + | let y = getInteger(makeString([n, toString(ak), toString(aw)], a)) | |
251 | + | if ($isInstanceOf(y, "Int")) | |
252 | + | then { | |
253 | + | let z = y | |
254 | + | z | |
255 | + | } | |
256 | + | else 0 | |
257 | + | } | |
258 | + | ||
259 | + | ||
260 | + | func ax (ak,aw,D) = [IntegerEntry(makeString([n, toString(ak), toString(aw)], a), D)] | |
261 | + | ||
262 | + | ||
263 | + | func ay (af) = if ((af != this)) | |
246 | 264 | then throw("_onlyThisContract: revert") | |
247 | 265 | else true | |
248 | 266 | ||
249 | 267 | ||
250 | - | func | |
268 | + | func az () = if ((X() == Address(base58''))) | |
251 | 269 | then throw("_whenMultisigSet: revert") | |
252 | 270 | else true | |
253 | 271 | ||
254 | 272 | ||
255 | - | func | |
273 | + | func aA () = if (O()) | |
256 | 274 | then throw("_whenNotInitialized: revert") | |
257 | 275 | else true | |
258 | 276 | ||
259 | 277 | ||
260 | - | func | |
278 | + | func aB () = if (!(O())) | |
261 | 279 | then throw("_whenInitialized: revert") | |
262 | 280 | else true | |
263 | 281 | ||
264 | 282 | ||
265 | - | func | |
283 | + | func aC () = if (R()) | |
266 | 284 | then throw("_whenNotPaused: revert") | |
267 | 285 | else true | |
268 | 286 | ||
269 | 287 | ||
270 | - | func | |
288 | + | func aD () = if (!(R())) | |
271 | 289 | then throw("_whenPaused: revert") | |
272 | 290 | else true | |
273 | 291 | ||
274 | 292 | ||
275 | - | func | |
293 | + | func aE (af) = if ((af != U())) | |
276 | 294 | then throw("_onlyPauser: revert") | |
277 | 295 | else true | |
278 | 296 | ||
279 | 297 | ||
280 | - | func | |
281 | - | let | |
282 | - | if ($isInstanceOf( | |
298 | + | func aF (D) = { | |
299 | + | let y = D | |
300 | + | if ($isInstanceOf(y, "Int")) | |
283 | 301 | then { | |
284 | - | let | |
285 | - | | |
302 | + | let z = y | |
303 | + | z | |
286 | 304 | } | |
287 | 305 | else throw("_asInt: revert") | |
288 | 306 | } | |
289 | 307 | ||
290 | 308 | ||
291 | - | func | |
292 | - | let | |
293 | - | if ($isInstanceOf( | |
309 | + | func aG (D) = { | |
310 | + | let y = D | |
311 | + | if ($isInstanceOf(y, "ByteVector")) | |
294 | 312 | then { | |
295 | - | let | |
296 | - | | |
313 | + | let z = y | |
314 | + | z | |
297 | 315 | } | |
298 | 316 | else throw("_asBytes: revert") | |
299 | 317 | } | |
300 | 318 | ||
301 | 319 | ||
302 | - | func | |
303 | - | then throw( | |
320 | + | func aH (D,x) = if ((D != aa())) | |
321 | + | then throw(x) | |
304 | 322 | else true | |
305 | 323 | ||
306 | 324 | ||
307 | - | func | |
308 | - | then throw( | |
325 | + | func aI (D,x) = if ((D != ad())) | |
326 | + | then throw(x) | |
309 | 327 | else true | |
310 | 328 | ||
311 | 329 | ||
312 | - | func | |
313 | - | then throw( | |
330 | + | func aJ (ak,x) = if (!(ag(ak))) | |
331 | + | then throw(x) | |
314 | 332 | else true | |
315 | 333 | ||
316 | 334 | ||
317 | - | @Callable( | |
318 | - | func init ( | |
319 | - | let | |
320 | - | then | |
335 | + | @Callable(aK) | |
336 | + | func init (ac,as,W,aL) = { | |
337 | + | let aM = if (if (if (if (if (if (ay(aK.caller)) | |
338 | + | then aA() | |
321 | 339 | else false) | |
322 | - | then | |
340 | + | then az() | |
323 | 341 | else false) | |
324 | - | then | |
342 | + | then v(ac, "init: invalid executor") | |
325 | 343 | else false) | |
326 | - | then | |
344 | + | then v(as, "init: invalid adapter") | |
327 | 345 | else false) | |
328 | - | then | |
346 | + | then v(W, "init: invalid pauser") | |
329 | 347 | else false) | |
330 | - | then | |
348 | + | then v(aL, "init: invalid feeRecipient") | |
331 | 349 | else false | |
332 | - | if (( | |
333 | - | then $Tuple2((((( | |
350 | + | if ((aM == aM)) | |
351 | + | then $Tuple2(((((P(true) ++ ab(addressFromStringValue(ac))) ++ ar(addressFromStringValue(as))) ++ V(addressFromStringValue(W))) ++ au(addressFromStringValue(aL))), unit) | |
334 | 352 | else throw("Strict value is not equal to itself.") | |
335 | 353 | } | |
336 | 354 | ||
337 | 355 | ||
338 | 356 | ||
339 | - | @Callable( | |
340 | - | func mintTokens ( | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | then | |
357 | + | @Callable(aK) | |
358 | + | func mintTokens (aN,aO,L,aP,aQ,aw,aR) = { | |
359 | + | let aS = valueOrErrorMessage(parseInt(L), "mint: amount is not Int") | |
360 | + | let aT = valueOrErrorMessage(parseInt(aQ), "mint: gaslessReward is not Int") | |
361 | + | let aU = valueOrErrorMessage(parseInt(aR), "mint: referrerFee is not Int") | |
362 | + | let aM = if (if (if (if (if (if (if (if (aB()) | |
363 | + | then aC() | |
346 | 364 | else false) | |
347 | - | then | |
365 | + | then v(aO, "mint: invalid asset contract") | |
348 | 366 | else false) | |
349 | - | then | |
367 | + | then aH(aK.caller, "mint: invalid executor") | |
350 | 368 | else false) | |
351 | - | then | |
369 | + | then aI(aN, "mint: invalid caller") | |
352 | 370 | else false) | |
353 | - | then | |
371 | + | then v(aP, "mint: invalid recipient address") | |
354 | 372 | else false) | |
355 | - | then | |
373 | + | then C(aS, 0, u, "mint: invalid amount") | |
356 | 374 | else false) | |
357 | - | then | |
375 | + | then C(aT, 0, u, "mint: invalid gaslessReward") | |
358 | 376 | else false) | |
359 | - | then | |
377 | + | then C(aU, 0, u, "mint: invalid referrer fee") | |
360 | 378 | else false | |
361 | - | if (( | |
379 | + | if ((aM == aM)) | |
362 | 380 | then { | |
363 | - | let | |
364 | - | if (( | |
381 | + | let aV = aG(invoke(addressFromStringValue(aO), "getAssetId", nil, nil)) | |
382 | + | if ((aV == aV)) | |
365 | 383 | then { | |
366 | - | let | |
367 | - | if (( | |
384 | + | let aW = aF(invoke(addressFromStringValue(aO), "getDecimals", nil, nil)) | |
385 | + | if ((aW == aW)) | |
368 | 386 | then { | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | if ($isInstanceOf( | |
387 | + | let aX = K(aS, r, aW) | |
388 | + | let aY = K(aT, r, aW) | |
389 | + | let aZ = { | |
390 | + | let y = addressFromString(aw) | |
391 | + | if ($isInstanceOf(y, "Address")) | |
374 | 392 | then { | |
375 | - | let | |
376 | - | let | |
377 | - | $Tuple2( | |
393 | + | let ba = y | |
394 | + | let bb = K(aU, r, aW) | |
395 | + | $Tuple2(bb, [ScriptTransfer(ba, bb, aV)]) | |
378 | 396 | } | |
379 | 397 | else $Tuple2(0, nil) | |
380 | 398 | } | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | if (( | |
399 | + | let bb = aZ._1 | |
400 | + | let bc = aZ._2 | |
401 | + | let bd = invoke(addressFromStringValue(aO), "mint", [(aX + bb), toString(this)], nil) | |
402 | + | if ((bd == bd)) | |
385 | 403 | then { | |
386 | - | let | |
387 | - | then (addressFromStringValue( | |
404 | + | let be = if (if ((aY > 0)) | |
405 | + | then (addressFromStringValue(aP) != aK.originCaller) | |
388 | 406 | else false) | |
389 | - | then [ScriptTransfer(addressFromStringValue( | |
390 | - | else [ScriptTransfer(addressFromStringValue( | |
391 | - | $Tuple2(( | |
407 | + | then [ScriptTransfer(addressFromStringValue(aP), (aX - aY), aV), ScriptTransfer(aK.originCaller, aY, aV)] | |
408 | + | else [ScriptTransfer(addressFromStringValue(aP), aX, aV)] | |
409 | + | $Tuple2((be ++ bc), unit) | |
392 | 410 | } | |
393 | 411 | else throw("Strict value is not equal to itself.") | |
394 | 412 | } | |
401 | 419 | ||
402 | 420 | ||
403 | 421 | ||
404 | - | @Callable( | |
405 | - | func burnTokens ( | |
406 | - | let | |
407 | - | then | |
422 | + | @Callable(aK) | |
423 | + | func burnTokens (ak,aP,aQ) = { | |
424 | + | let aM = if (if (if (if (if (aB()) | |
425 | + | then aC() | |
408 | 426 | else false) | |
409 | - | then | |
427 | + | then aJ(ak, "burn: invalid execution chain") | |
410 | 428 | else false) | |
411 | - | then | |
429 | + | then I(aK.payments, 1, "burn: no payment") | |
412 | 430 | else false) | |
413 | - | then A(aF.payments[0].amount, 0, s, "burn: invalid payment amount") | |
431 | + | then C(aQ, 0, u, "burn: invalid gaslessReward") | |
432 | + | else false) | |
433 | + | then C(aK.payments[0].amount, 0, u, "burn: invalid payment amount") | |
414 | 434 | else false | |
415 | - | if (( | |
435 | + | if ((aM == aM)) | |
416 | 436 | then { | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | if ($isInstanceOf( | |
437 | + | let aS = aK.payments[0].amount | |
438 | + | let aV = { | |
439 | + | let y = aK.payments[0].assetId | |
440 | + | if ($isInstanceOf(y, "ByteVector")) | |
421 | 441 | then { | |
422 | - | let | |
423 | - | | |
442 | + | let z = y | |
443 | + | z | |
424 | 444 | } | |
425 | 445 | else throw("burn: invalid asset") | |
426 | 446 | } | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | then | |
447 | + | let bf = aj(ak, aV) | |
448 | + | let bg = bf._1 | |
449 | + | let bh = bf._2 | |
450 | + | let bi = bf._3 | |
451 | + | let bj = bf._4 | |
452 | + | let bk = bf._5 | |
453 | + | let bl = bf._6 | |
454 | + | let bm = bf._7 | |
455 | + | let bn = bf._8 | |
456 | + | let bo = if (if (v(toString(bg), "burn: no such binding")) | |
457 | + | then C(aS, bi, u, "burn: less than min") | |
438 | 458 | else false) | |
439 | - | then | |
459 | + | then G(bn, true, "burn: token is disabled") | |
440 | 460 | else false | |
441 | - | if (( | |
461 | + | if ((bo == bo)) | |
442 | 462 | then { | |
443 | - | let | |
444 | - | if (( | |
463 | + | let aW = aF(invoke(bg, "getDecimals", nil, nil)) | |
464 | + | if ((aW == aW)) | |
445 | 465 | then { | |
446 | - | let | |
447 | - | then | |
448 | - | else | |
449 | - | let | |
450 | - | let | |
451 | - | if (( | |
466 | + | let bp = if ((aS > bk)) | |
467 | + | then bm | |
468 | + | else bl | |
469 | + | let bq = (bj + fraction(aS, bp, s)) | |
470 | + | let br = C(aS, (bq + 1), u, "burn: fee more than amount") | |
471 | + | if ((br == br)) | |
452 | 472 | then { | |
453 | - | let | |
454 | - | let | |
455 | - | if (( | |
473 | + | let bs = (aS - bq) | |
474 | + | let bt = C(bs, (aQ + 1), u, "burn: reward more than amount") | |
475 | + | if ((bt == bt)) | |
456 | 476 | then { | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | if (( | |
462 | - | then $Tuple2(( | |
477 | + | let bu = (ao(aV) + bq) | |
478 | + | let aX = K(bs, aW, r) | |
479 | + | let aY = K(aQ, aW, r) | |
480 | + | let bd = invoke(aq(), o, [ak, bh, aX, aP, aY], nil) | |
481 | + | if ((bd == bd)) | |
482 | + | then $Tuple2((ap(aV, bu) ++ [Burn(aV, bs)]), unit) | |
463 | 483 | else throw("Strict value is not equal to itself.") | |
464 | 484 | } | |
465 | 485 | else throw("Strict value is not equal to itself.") | |
475 | 495 | ||
476 | 496 | ||
477 | 497 | ||
478 | - | @Callable( | |
479 | - | func transferFee ( | |
480 | - | let | |
481 | - | then | |
498 | + | @Callable(aK) | |
499 | + | func transferFee (ak,B) = { | |
500 | + | let aM = if (if (aB()) | |
501 | + | then aC() | |
482 | 502 | else false) | |
483 | - | then | |
503 | + | then A(B, "transferFee: invalid asset") | |
484 | 504 | else false | |
485 | - | if (( | |
505 | + | if ((aM == aM)) | |
486 | 506 | then { | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | then | |
507 | + | let aV = fromBase58String(B) | |
508 | + | let bf = aj(ak, aV) | |
509 | + | let bg = bf._1 | |
510 | + | let bn = bf._8 | |
511 | + | let bo = if (v(toString(bg), "transferFee: no such binding")) | |
512 | + | then G(bn, true, "transferFee: token is disabled") | |
493 | 513 | else false | |
494 | - | if (( | |
495 | - | then $Tuple2(( | |
514 | + | if ((bo == bo)) | |
515 | + | then $Tuple2((ap(aV, 0) ++ [ScriptTransfer(at(), ao(aV), aV)]), unit) | |
496 | 516 | else throw("Strict value is not equal to itself.") | |
497 | 517 | } | |
498 | 518 | else throw("Strict value is not equal to itself.") | |
500 | 520 | ||
501 | 521 | ||
502 | 522 | ||
503 | - | @Callable( | |
504 | - | func updateCallerContract ( | |
505 | - | let | |
506 | - | then | |
523 | + | @Callable(aK) | |
524 | + | func updateCallerContract (aN) = { | |
525 | + | let aM = if (ay(aK.caller)) | |
526 | + | then aB() | |
507 | 527 | else false | |
508 | - | if (( | |
509 | - | then $Tuple2( | |
528 | + | if ((aM == aM)) | |
529 | + | then $Tuple2(ae(aN), unit) | |
510 | 530 | else throw("Strict value is not equal to itself.") | |
511 | 531 | } | |
512 | 532 | ||
513 | 533 | ||
514 | 534 | ||
515 | - | @Callable( | |
516 | - | func updateExecutionChain ( | |
517 | - | let | |
518 | - | then | |
535 | + | @Callable(aK) | |
536 | + | func updateExecutionChain (ak,bv) = { | |
537 | + | let aM = if (if (ay(aK.caller)) | |
538 | + | then aB() | |
519 | 539 | else false) | |
520 | - | then | |
540 | + | then C(ak, 0, u, "updateExecutionChain: invalid executionChainId") | |
521 | 541 | else false | |
522 | - | if (( | |
523 | - | then $Tuple2( | |
542 | + | if ((aM == aM)) | |
543 | + | then $Tuple2(ai(ak, bv), unit) | |
524 | 544 | else throw("Strict value is not equal to itself.") | |
525 | 545 | } | |
526 | 546 | ||
527 | 547 | ||
528 | 548 | ||
529 | - | @Callable( | |
530 | - | func updateFeeRecipient ( | |
531 | - | let | |
532 | - | then | |
549 | + | @Callable(aK) | |
550 | + | func updateFeeRecipient (aL) = { | |
551 | + | let aM = if (if (ay(aK.caller)) | |
552 | + | then aB() | |
533 | 553 | else false) | |
534 | - | then | |
554 | + | then v(aL, "updateFeeRecipient: invalid feeRecipient") | |
535 | 555 | else false | |
536 | - | if (( | |
537 | - | then $Tuple2( | |
556 | + | if ((aM == aM)) | |
557 | + | then $Tuple2(au(addressFromStringValue(aL)), unit) | |
538 | 558 | else throw("Strict value is not equal to itself.") | |
539 | 559 | } | |
540 | 560 | ||
541 | 561 | ||
542 | 562 | ||
543 | - | @Callable( | |
544 | - | func | |
545 | - | let | |
546 | - | then | |
563 | + | @Callable(aK) | |
564 | + | func updateReferrer (ak,aw,bw) = { | |
565 | + | let aM = if (if (if (if (ay(aK.caller)) | |
566 | + | then aB() | |
547 | 567 | else false) | |
548 | - | then | |
568 | + | then aJ(ak, "updateReferrer: invalid execution chain") | |
549 | 569 | else false) | |
550 | - | then | |
570 | + | then v(aw, "updateReferrer: invalid referrer") | |
551 | 571 | else false) | |
552 | - | then A(bt, 0, s, "updateBindingInfo: invalid minAmount") | |
572 | + | then C(bw, 0, t, "updateReferrer: invalid fee") | |
573 | + | else false | |
574 | + | if ((aM == aM)) | |
575 | + | then $Tuple2(ax(ak, addressFromStringValue(aw), bw), unit) | |
576 | + | else throw("Strict value is not equal to itself.") | |
577 | + | } | |
578 | + | ||
579 | + | ||
580 | + | ||
581 | + | @Callable(aK) | |
582 | + | func updateBindingInfo (ak,aO,bx,by,bz,bA,bB,bC,bv) = { | |
583 | + | let aM = if (if (if (if (if (if (if (if (ay(aK.caller)) | |
584 | + | then aB() | |
553 | 585 | else false) | |
554 | - | then | |
586 | + | then v(aO, "updateBindingInfo: invalid asset contract") | |
555 | 587 | else false) | |
556 | - | then | |
588 | + | then C(ak, 0, u, "updateBindingInfo: invalid executionChainId") | |
557 | 589 | else false) | |
558 | - | then | |
590 | + | then C(by, 0, u, "updateBindingInfo: invalid minAmount") | |
559 | 591 | else false) | |
560 | - | then A(bx, 0, s, "updateBindingInfo: invalid afterPercentFee") | |
592 | + | then C(bz, 0, u, "updateBindingInfo: invalid minFee") | |
593 | + | else false) | |
594 | + | then C(bA, 0, u, "updateBindingInfo: invalid thresholdFee") | |
595 | + | else false) | |
596 | + | then C(bB, 0, u, "updateBindingInfo: invalid beforePercentFee") | |
597 | + | else false) | |
598 | + | then C(bC, 0, u, "updateBindingInfo: invalid afterPercentFee") | |
561 | 599 | else false | |
562 | - | if (( | |
600 | + | if ((aM == aM)) | |
563 | 601 | then { | |
564 | - | let | |
565 | - | if (( | |
602 | + | let aV = aG(invoke(addressFromStringValue(aO), "getAssetId", nil, nil)) | |
603 | + | if ((aV == aV)) | |
566 | 604 | then { | |
567 | - | let | |
568 | - | $Tuple2(ak | |
605 | + | let bf = $Tuple8(addressFromStringValue(aO), bx, by, bz, bA, bB, bC, bv) | |
606 | + | $Tuple2(am(ak, aV, bf), unit) | |
569 | 607 | } | |
570 | 608 | else throw("Strict value is not equal to itself.") | |
571 | 609 | } | |
574 | 612 | ||
575 | 613 | ||
576 | 614 | ||
577 | - | @Callable( | |
615 | + | @Callable(aK) | |
578 | 616 | func pause () = { | |
579 | - | let | |
580 | - | then | |
617 | + | let aM = if (if (aE(aK.caller)) | |
618 | + | then aB() | |
581 | 619 | else false) | |
582 | - | then | |
620 | + | then aC() | |
583 | 621 | else false | |
584 | - | if (( | |
585 | - | then $Tuple2( | |
622 | + | if ((aM == aM)) | |
623 | + | then $Tuple2(S(true), unit) | |
586 | 624 | else throw("Strict value is not equal to itself.") | |
587 | 625 | } | |
588 | 626 | ||
589 | 627 | ||
590 | 628 | ||
591 | - | @Callable( | |
629 | + | @Callable(aK) | |
592 | 630 | func unpause () = { | |
593 | - | let | |
594 | - | then | |
631 | + | let aM = if (if (aE(aK.caller)) | |
632 | + | then aB() | |
595 | 633 | else false) | |
596 | - | then | |
634 | + | then aD() | |
597 | 635 | else false | |
598 | - | if (( | |
599 | - | then $Tuple2( | |
636 | + | if ((aM == aM)) | |
637 | + | then $Tuple2(S(false), unit) | |
600 | 638 | else throw("Strict value is not equal to itself.") | |
601 | 639 | } | |
602 | 640 | ||
603 | 641 | ||
604 | 642 | ||
605 | - | @Callable( | |
606 | - | func updatePauser ( | |
607 | - | let | |
608 | - | then | |
643 | + | @Callable(aK) | |
644 | + | func updatePauser (W) = { | |
645 | + | let aM = if (if (ay(aK.caller)) | |
646 | + | then aB() | |
609 | 647 | else false) | |
610 | - | then | |
648 | + | then v(W, "init: invalid pauser") | |
611 | 649 | else false | |
612 | - | if (( | |
613 | - | then $Tuple2( | |
650 | + | if ((aM == aM)) | |
651 | + | then $Tuple2(V(addressFromStringValue(W)), unit) | |
614 | 652 | else throw("Strict value is not equal to itself.") | |
615 | 653 | } | |
616 | 654 | ||
617 | 655 | ||
618 | 656 | ||
619 | - | @Callable( | |
620 | - | func setMultisig ( | |
621 | - | let | |
622 | - | then | |
657 | + | @Callable(aK) | |
658 | + | func setMultisig (Z) = { | |
659 | + | let aM = if (ay(aK.caller)) | |
660 | + | then v(Z, "setMultisig: invalid multisig") | |
623 | 661 | else false | |
624 | - | if (( | |
625 | - | then $Tuple2( | |
662 | + | if ((aM == aM)) | |
663 | + | then $Tuple2(Y(addressFromStringValue(Z)), unit) | |
626 | 664 | else throw("Strict value is not equal to itself.") | |
627 | 665 | } | |
628 | 666 | ||
629 | 667 | ||
630 | - | @Verifier( | |
631 | - | func | |
632 | - | let | |
633 | - | if ($isInstanceOf( | |
668 | + | @Verifier(bD) | |
669 | + | func bE () = { | |
670 | + | let y = getString(c) | |
671 | + | if ($isInstanceOf(y, "String")) | |
634 | 672 | then { | |
635 | - | let | |
636 | - | valueOrElse(getBoolean(addressFromStringValue( | |
673 | + | let bF = y | |
674 | + | valueOrElse(getBoolean(addressFromStringValue(bF), makeString([d, toString(this), toBase58String(bD.id)], a)), false) | |
637 | 675 | } | |
638 | - | else sigVerify( | |
676 | + | else sigVerify(bD.bodyBytes, bD.proofs[0], bD.senderPublicKey) | |
639 | 677 | } | |
640 | 678 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "INIT" | |
7 | 7 | ||
8 | 8 | let c = "MULTISIG" | |
9 | 9 | ||
10 | 10 | let d = "STATUS" | |
11 | 11 | ||
12 | 12 | let e = "PAUSED" | |
13 | 13 | ||
14 | 14 | let f = "PAUSER" | |
15 | 15 | ||
16 | 16 | let g = "EXECUTOR" | |
17 | 17 | ||
18 | 18 | let h = "ROOT_ADAPTER" | |
19 | 19 | ||
20 | 20 | let i = "CALLER_CONTRACT" | |
21 | 21 | ||
22 | 22 | let j = "CHAIN" | |
23 | 23 | ||
24 | 24 | let k = "BINDING" | |
25 | 25 | ||
26 | 26 | let l = "FEE" | |
27 | 27 | ||
28 | 28 | let m = "FEE_RECIPIENT" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "REFERRER_FEE_PERCENT" | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "releaseTokens" | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = "WAVES" | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 8 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 6 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 1000000 | |
41 | 41 | ||
42 | - | func t (u,v) = { | |
43 | - | let w = addressFromString(u) | |
44 | - | if ($isInstanceOf(w, "Address")) | |
42 | + | let t = 200000 | |
43 | + | ||
44 | + | let u = 9223372036854775807 | |
45 | + | ||
46 | + | func v (w,x) = { | |
47 | + | let y = addressFromString(w) | |
48 | + | if ($isInstanceOf(y, "Address")) | |
45 | 49 | then { | |
46 | - | let | |
50 | + | let z = y | |
47 | 51 | true | |
48 | 52 | } | |
49 | - | else throw( | |
53 | + | else throw(x) | |
50 | 54 | } | |
51 | 55 | ||
52 | 56 | ||
53 | - | func | |
54 | - | let | |
55 | - | if ($isInstanceOf( | |
57 | + | func A (B,x) = { | |
58 | + | let y = assetInfo(fromBase58String(B)) | |
59 | + | if ($isInstanceOf(y, "Asset")) | |
56 | 60 | then { | |
57 | - | let | |
61 | + | let z = y | |
58 | 62 | true | |
59 | 63 | } | |
60 | - | else throw( | |
64 | + | else throw(x) | |
61 | 65 | } | |
62 | 66 | ||
63 | 67 | ||
64 | - | func | |
68 | + | func C (D,E,F,x) = if (if ((E > D)) | |
65 | 69 | then true | |
66 | - | else ( | |
67 | - | then throw( | |
70 | + | else (D > F)) | |
71 | + | then throw(x) | |
68 | 72 | else true | |
69 | 73 | ||
70 | 74 | ||
71 | - | func | |
72 | - | then throw( | |
75 | + | func G (D,H,x) = if ((D != H)) | |
76 | + | then throw(x) | |
73 | 77 | else true | |
74 | 78 | ||
75 | 79 | ||
76 | - | func | |
77 | - | then throw( | |
80 | + | func I (J,H,x) = if ((size(J) != H)) | |
81 | + | then throw(x) | |
78 | 82 | else true | |
79 | 83 | ||
80 | 84 | ||
81 | - | func | |
82 | - | then ( | |
83 | - | else ( | |
85 | + | func K (L,M,N) = if ((M >= N)) | |
86 | + | then (L / pow(10, 0, (M - N), 0, 0, DOWN)) | |
87 | + | else (L * pow(10, 0, (N - M), 0, 0, DOWN)) | |
84 | 88 | ||
85 | 89 | ||
86 | - | func | |
87 | - | let | |
88 | - | if ($isInstanceOf( | |
90 | + | func O () = { | |
91 | + | let y = getBoolean(b) | |
92 | + | if ($isInstanceOf(y, "Boolean")) | |
89 | 93 | then { | |
90 | - | let | |
91 | - | | |
94 | + | let z = y | |
95 | + | z | |
92 | 96 | } | |
93 | 97 | else false | |
94 | 98 | } | |
95 | 99 | ||
96 | 100 | ||
97 | - | func | |
101 | + | func P (Q) = [BooleanEntry(b, Q)] | |
98 | 102 | ||
99 | 103 | ||
100 | - | func | |
101 | - | let | |
102 | - | if ($isInstanceOf( | |
104 | + | func R () = { | |
105 | + | let y = getBoolean(e) | |
106 | + | if ($isInstanceOf(y, "Boolean")) | |
103 | 107 | then { | |
104 | - | let | |
105 | - | | |
108 | + | let z = y | |
109 | + | z | |
106 | 110 | } | |
107 | 111 | else false | |
108 | 112 | } | |
109 | 113 | ||
110 | 114 | ||
111 | - | func | |
115 | + | func S (T) = [BooleanEntry(e, T)] | |
112 | 116 | ||
113 | 117 | ||
114 | - | func | |
115 | - | let | |
116 | - | if ($isInstanceOf( | |
118 | + | func U () = { | |
119 | + | let y = getString(f) | |
120 | + | if ($isInstanceOf(y, "String")) | |
117 | 121 | then { | |
118 | - | let | |
119 | - | addressFromStringValue( | |
122 | + | let z = y | |
123 | + | addressFromStringValue(z) | |
120 | 124 | } | |
121 | 125 | else Address(base58'') | |
122 | 126 | } | |
123 | 127 | ||
124 | 128 | ||
125 | - | func | |
129 | + | func V (W) = [StringEntry(f, toString(W))] | |
126 | 130 | ||
127 | 131 | ||
128 | - | func | |
129 | - | let | |
130 | - | if ($isInstanceOf( | |
132 | + | func X () = { | |
133 | + | let y = getString(c) | |
134 | + | if ($isInstanceOf(y, "String")) | |
131 | 135 | then { | |
132 | - | let | |
133 | - | addressFromStringValue( | |
136 | + | let z = y | |
137 | + | addressFromStringValue(z) | |
134 | 138 | } | |
135 | 139 | else Address(base58'') | |
136 | 140 | } | |
137 | 141 | ||
138 | 142 | ||
139 | - | func | |
143 | + | func Y (Z) = [StringEntry(c, toString(Z))] | |
140 | 144 | ||
141 | 145 | ||
142 | - | func | |
143 | - | let | |
144 | - | if ($isInstanceOf( | |
146 | + | func aa () = { | |
147 | + | let y = getString(g) | |
148 | + | if ($isInstanceOf(y, "String")) | |
145 | 149 | then { | |
146 | - | let | |
147 | - | addressFromStringValue( | |
150 | + | let z = y | |
151 | + | addressFromStringValue(z) | |
148 | 152 | } | |
149 | 153 | else Address(base58'') | |
150 | 154 | } | |
151 | 155 | ||
152 | 156 | ||
153 | - | func | |
157 | + | func ab (ac) = [StringEntry(g, toString(ac))] | |
154 | 158 | ||
155 | 159 | ||
156 | - | func | |
157 | - | let | |
158 | - | if ($isInstanceOf( | |
160 | + | func ad () = { | |
161 | + | let y = getString(i) | |
162 | + | if ($isInstanceOf(y, "String")) | |
159 | 163 | then { | |
160 | - | let | |
161 | - | | |
164 | + | let z = y | |
165 | + | z | |
162 | 166 | } | |
163 | 167 | else "" | |
164 | 168 | } | |
165 | 169 | ||
166 | 170 | ||
167 | - | func | |
171 | + | func ae (af) = [StringEntry(i, af)] | |
168 | 172 | ||
169 | 173 | ||
170 | - | func | |
171 | - | let | |
172 | - | if ($isInstanceOf( | |
174 | + | func ag (ah) = { | |
175 | + | let y = getBoolean(makeString([j, toString(ah)], a)) | |
176 | + | if ($isInstanceOf(y, "Boolean")) | |
173 | 177 | then { | |
174 | - | let | |
175 | - | | |
178 | + | let z = y | |
179 | + | z | |
176 | 180 | } | |
177 | 181 | else false | |
178 | 182 | } | |
179 | 183 | ||
180 | 184 | ||
181 | - | func | |
185 | + | func ai (ah,D) = [BooleanEntry(makeString([j, toString(ah)], a), D)] | |
182 | 186 | ||
183 | 187 | ||
184 | - | func | |
185 | - | let | |
186 | - | if ($isInstanceOf( | |
188 | + | func aj (ak,B) = { | |
189 | + | let y = getString(makeString([k, toString(ak), toBase58String(B)], a)) | |
190 | + | if ($isInstanceOf(y, "String")) | |
187 | 191 | then { | |
188 | - | let | |
189 | - | let | |
190 | - | $Tuple8(addressFromStringValue( | |
192 | + | let z = y | |
193 | + | let al = split(z, a) | |
194 | + | $Tuple8(addressFromStringValue(al[0]), al[1], parseIntValue(al[2]), parseIntValue(al[3]), parseIntValue(al[4]), parseIntValue(al[5]), parseIntValue(al[6]), if ((al[7] == "1")) | |
191 | 195 | then true | |
192 | 196 | else false) | |
193 | 197 | } | |
194 | 198 | else $Tuple8(Address(base58''), "", 0, 0, 0, 0, 0, false) | |
195 | 199 | } | |
196 | 200 | ||
197 | 201 | ||
198 | - | func | |
202 | + | func am (ak,B,an) = [StringEntry(makeString([k, toString(ak), toBase58String(B)], a), makeString([toString(an._1), an._2, toString(an._3), toString(an._4), toString(an._5), toString(an._6), toString(an._7), if (an._8) | |
199 | 203 | then "1" | |
200 | 204 | else "0"], a))] | |
201 | 205 | ||
202 | 206 | ||
203 | - | func | |
204 | - | let | |
205 | - | if ($isInstanceOf( | |
207 | + | func ao (B) = { | |
208 | + | let y = getInteger(makeString([l, toBase58String(B)], a)) | |
209 | + | if ($isInstanceOf(y, "Int")) | |
206 | 210 | then { | |
207 | - | let | |
208 | - | | |
211 | + | let z = y | |
212 | + | z | |
209 | 213 | } | |
210 | 214 | else 0 | |
211 | 215 | } | |
212 | 216 | ||
213 | 217 | ||
214 | - | func | |
218 | + | func ap (B,D) = [IntegerEntry(makeString([l, toBase58String(B)], a), D)] | |
215 | 219 | ||
216 | 220 | ||
217 | - | func | |
218 | - | let | |
219 | - | if ($isInstanceOf( | |
221 | + | func aq () = { | |
222 | + | let y = getString(h) | |
223 | + | if ($isInstanceOf(y, "String")) | |
220 | 224 | then { | |
221 | - | let | |
222 | - | addressFromStringValue( | |
225 | + | let z = y | |
226 | + | addressFromStringValue(z) | |
223 | 227 | } | |
224 | 228 | else Address(base58'') | |
225 | 229 | } | |
226 | 230 | ||
227 | 231 | ||
228 | - | func | |
232 | + | func ar (as) = [StringEntry(h, toString(as))] | |
229 | 233 | ||
230 | 234 | ||
231 | - | func | |
232 | - | let | |
233 | - | if ($isInstanceOf( | |
235 | + | func at () = { | |
236 | + | let y = getString(m) | |
237 | + | if ($isInstanceOf(y, "String")) | |
234 | 238 | then { | |
235 | - | let | |
236 | - | addressFromStringValue( | |
239 | + | let z = y | |
240 | + | addressFromStringValue(z) | |
237 | 241 | } | |
238 | 242 | else Address(base58'') | |
239 | 243 | } | |
240 | 244 | ||
241 | 245 | ||
242 | - | func | |
246 | + | func au (D) = [StringEntry(m, toString(D))] | |
243 | 247 | ||
244 | 248 | ||
245 | - | func at (ad) = if ((ad != this)) | |
249 | + | func av (ak,aw) = { | |
250 | + | let y = getInteger(makeString([n, toString(ak), toString(aw)], a)) | |
251 | + | if ($isInstanceOf(y, "Int")) | |
252 | + | then { | |
253 | + | let z = y | |
254 | + | z | |
255 | + | } | |
256 | + | else 0 | |
257 | + | } | |
258 | + | ||
259 | + | ||
260 | + | func ax (ak,aw,D) = [IntegerEntry(makeString([n, toString(ak), toString(aw)], a), D)] | |
261 | + | ||
262 | + | ||
263 | + | func ay (af) = if ((af != this)) | |
246 | 264 | then throw("_onlyThisContract: revert") | |
247 | 265 | else true | |
248 | 266 | ||
249 | 267 | ||
250 | - | func | |
268 | + | func az () = if ((X() == Address(base58''))) | |
251 | 269 | then throw("_whenMultisigSet: revert") | |
252 | 270 | else true | |
253 | 271 | ||
254 | 272 | ||
255 | - | func | |
273 | + | func aA () = if (O()) | |
256 | 274 | then throw("_whenNotInitialized: revert") | |
257 | 275 | else true | |
258 | 276 | ||
259 | 277 | ||
260 | - | func | |
278 | + | func aB () = if (!(O())) | |
261 | 279 | then throw("_whenInitialized: revert") | |
262 | 280 | else true | |
263 | 281 | ||
264 | 282 | ||
265 | - | func | |
283 | + | func aC () = if (R()) | |
266 | 284 | then throw("_whenNotPaused: revert") | |
267 | 285 | else true | |
268 | 286 | ||
269 | 287 | ||
270 | - | func | |
288 | + | func aD () = if (!(R())) | |
271 | 289 | then throw("_whenPaused: revert") | |
272 | 290 | else true | |
273 | 291 | ||
274 | 292 | ||
275 | - | func | |
293 | + | func aE (af) = if ((af != U())) | |
276 | 294 | then throw("_onlyPauser: revert") | |
277 | 295 | else true | |
278 | 296 | ||
279 | 297 | ||
280 | - | func | |
281 | - | let | |
282 | - | if ($isInstanceOf( | |
298 | + | func aF (D) = { | |
299 | + | let y = D | |
300 | + | if ($isInstanceOf(y, "Int")) | |
283 | 301 | then { | |
284 | - | let | |
285 | - | | |
302 | + | let z = y | |
303 | + | z | |
286 | 304 | } | |
287 | 305 | else throw("_asInt: revert") | |
288 | 306 | } | |
289 | 307 | ||
290 | 308 | ||
291 | - | func | |
292 | - | let | |
293 | - | if ($isInstanceOf( | |
309 | + | func aG (D) = { | |
310 | + | let y = D | |
311 | + | if ($isInstanceOf(y, "ByteVector")) | |
294 | 312 | then { | |
295 | - | let | |
296 | - | | |
313 | + | let z = y | |
314 | + | z | |
297 | 315 | } | |
298 | 316 | else throw("_asBytes: revert") | |
299 | 317 | } | |
300 | 318 | ||
301 | 319 | ||
302 | - | func | |
303 | - | then throw( | |
320 | + | func aH (D,x) = if ((D != aa())) | |
321 | + | then throw(x) | |
304 | 322 | else true | |
305 | 323 | ||
306 | 324 | ||
307 | - | func | |
308 | - | then throw( | |
325 | + | func aI (D,x) = if ((D != ad())) | |
326 | + | then throw(x) | |
309 | 327 | else true | |
310 | 328 | ||
311 | 329 | ||
312 | - | func | |
313 | - | then throw( | |
330 | + | func aJ (ak,x) = if (!(ag(ak))) | |
331 | + | then throw(x) | |
314 | 332 | else true | |
315 | 333 | ||
316 | 334 | ||
317 | - | @Callable( | |
318 | - | func init ( | |
319 | - | let | |
320 | - | then | |
335 | + | @Callable(aK) | |
336 | + | func init (ac,as,W,aL) = { | |
337 | + | let aM = if (if (if (if (if (if (ay(aK.caller)) | |
338 | + | then aA() | |
321 | 339 | else false) | |
322 | - | then | |
340 | + | then az() | |
323 | 341 | else false) | |
324 | - | then | |
342 | + | then v(ac, "init: invalid executor") | |
325 | 343 | else false) | |
326 | - | then | |
344 | + | then v(as, "init: invalid adapter") | |
327 | 345 | else false) | |
328 | - | then | |
346 | + | then v(W, "init: invalid pauser") | |
329 | 347 | else false) | |
330 | - | then | |
348 | + | then v(aL, "init: invalid feeRecipient") | |
331 | 349 | else false | |
332 | - | if (( | |
333 | - | then $Tuple2((((( | |
350 | + | if ((aM == aM)) | |
351 | + | then $Tuple2(((((P(true) ++ ab(addressFromStringValue(ac))) ++ ar(addressFromStringValue(as))) ++ V(addressFromStringValue(W))) ++ au(addressFromStringValue(aL))), unit) | |
334 | 352 | else throw("Strict value is not equal to itself.") | |
335 | 353 | } | |
336 | 354 | ||
337 | 355 | ||
338 | 356 | ||
339 | - | @Callable( | |
340 | - | func mintTokens ( | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | then | |
357 | + | @Callable(aK) | |
358 | + | func mintTokens (aN,aO,L,aP,aQ,aw,aR) = { | |
359 | + | let aS = valueOrErrorMessage(parseInt(L), "mint: amount is not Int") | |
360 | + | let aT = valueOrErrorMessage(parseInt(aQ), "mint: gaslessReward is not Int") | |
361 | + | let aU = valueOrErrorMessage(parseInt(aR), "mint: referrerFee is not Int") | |
362 | + | let aM = if (if (if (if (if (if (if (if (aB()) | |
363 | + | then aC() | |
346 | 364 | else false) | |
347 | - | then | |
365 | + | then v(aO, "mint: invalid asset contract") | |
348 | 366 | else false) | |
349 | - | then | |
367 | + | then aH(aK.caller, "mint: invalid executor") | |
350 | 368 | else false) | |
351 | - | then | |
369 | + | then aI(aN, "mint: invalid caller") | |
352 | 370 | else false) | |
353 | - | then | |
371 | + | then v(aP, "mint: invalid recipient address") | |
354 | 372 | else false) | |
355 | - | then | |
373 | + | then C(aS, 0, u, "mint: invalid amount") | |
356 | 374 | else false) | |
357 | - | then | |
375 | + | then C(aT, 0, u, "mint: invalid gaslessReward") | |
358 | 376 | else false) | |
359 | - | then | |
377 | + | then C(aU, 0, u, "mint: invalid referrer fee") | |
360 | 378 | else false | |
361 | - | if (( | |
379 | + | if ((aM == aM)) | |
362 | 380 | then { | |
363 | - | let | |
364 | - | if (( | |
381 | + | let aV = aG(invoke(addressFromStringValue(aO), "getAssetId", nil, nil)) | |
382 | + | if ((aV == aV)) | |
365 | 383 | then { | |
366 | - | let | |
367 | - | if (( | |
384 | + | let aW = aF(invoke(addressFromStringValue(aO), "getDecimals", nil, nil)) | |
385 | + | if ((aW == aW)) | |
368 | 386 | then { | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | if ($isInstanceOf( | |
387 | + | let aX = K(aS, r, aW) | |
388 | + | let aY = K(aT, r, aW) | |
389 | + | let aZ = { | |
390 | + | let y = addressFromString(aw) | |
391 | + | if ($isInstanceOf(y, "Address")) | |
374 | 392 | then { | |
375 | - | let | |
376 | - | let | |
377 | - | $Tuple2( | |
393 | + | let ba = y | |
394 | + | let bb = K(aU, r, aW) | |
395 | + | $Tuple2(bb, [ScriptTransfer(ba, bb, aV)]) | |
378 | 396 | } | |
379 | 397 | else $Tuple2(0, nil) | |
380 | 398 | } | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | if (( | |
399 | + | let bb = aZ._1 | |
400 | + | let bc = aZ._2 | |
401 | + | let bd = invoke(addressFromStringValue(aO), "mint", [(aX + bb), toString(this)], nil) | |
402 | + | if ((bd == bd)) | |
385 | 403 | then { | |
386 | - | let | |
387 | - | then (addressFromStringValue( | |
404 | + | let be = if (if ((aY > 0)) | |
405 | + | then (addressFromStringValue(aP) != aK.originCaller) | |
388 | 406 | else false) | |
389 | - | then [ScriptTransfer(addressFromStringValue( | |
390 | - | else [ScriptTransfer(addressFromStringValue( | |
391 | - | $Tuple2(( | |
407 | + | then [ScriptTransfer(addressFromStringValue(aP), (aX - aY), aV), ScriptTransfer(aK.originCaller, aY, aV)] | |
408 | + | else [ScriptTransfer(addressFromStringValue(aP), aX, aV)] | |
409 | + | $Tuple2((be ++ bc), unit) | |
392 | 410 | } | |
393 | 411 | else throw("Strict value is not equal to itself.") | |
394 | 412 | } | |
395 | 413 | else throw("Strict value is not equal to itself.") | |
396 | 414 | } | |
397 | 415 | else throw("Strict value is not equal to itself.") | |
398 | 416 | } | |
399 | 417 | else throw("Strict value is not equal to itself.") | |
400 | 418 | } | |
401 | 419 | ||
402 | 420 | ||
403 | 421 | ||
404 | - | @Callable( | |
405 | - | func burnTokens ( | |
406 | - | let | |
407 | - | then | |
422 | + | @Callable(aK) | |
423 | + | func burnTokens (ak,aP,aQ) = { | |
424 | + | let aM = if (if (if (if (if (aB()) | |
425 | + | then aC() | |
408 | 426 | else false) | |
409 | - | then | |
427 | + | then aJ(ak, "burn: invalid execution chain") | |
410 | 428 | else false) | |
411 | - | then | |
429 | + | then I(aK.payments, 1, "burn: no payment") | |
412 | 430 | else false) | |
413 | - | then A(aF.payments[0].amount, 0, s, "burn: invalid payment amount") | |
431 | + | then C(aQ, 0, u, "burn: invalid gaslessReward") | |
432 | + | else false) | |
433 | + | then C(aK.payments[0].amount, 0, u, "burn: invalid payment amount") | |
414 | 434 | else false | |
415 | - | if (( | |
435 | + | if ((aM == aM)) | |
416 | 436 | then { | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | if ($isInstanceOf( | |
437 | + | let aS = aK.payments[0].amount | |
438 | + | let aV = { | |
439 | + | let y = aK.payments[0].assetId | |
440 | + | if ($isInstanceOf(y, "ByteVector")) | |
421 | 441 | then { | |
422 | - | let | |
423 | - | | |
442 | + | let z = y | |
443 | + | z | |
424 | 444 | } | |
425 | 445 | else throw("burn: invalid asset") | |
426 | 446 | } | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | then | |
447 | + | let bf = aj(ak, aV) | |
448 | + | let bg = bf._1 | |
449 | + | let bh = bf._2 | |
450 | + | let bi = bf._3 | |
451 | + | let bj = bf._4 | |
452 | + | let bk = bf._5 | |
453 | + | let bl = bf._6 | |
454 | + | let bm = bf._7 | |
455 | + | let bn = bf._8 | |
456 | + | let bo = if (if (v(toString(bg), "burn: no such binding")) | |
457 | + | then C(aS, bi, u, "burn: less than min") | |
438 | 458 | else false) | |
439 | - | then | |
459 | + | then G(bn, true, "burn: token is disabled") | |
440 | 460 | else false | |
441 | - | if (( | |
461 | + | if ((bo == bo)) | |
442 | 462 | then { | |
443 | - | let | |
444 | - | if (( | |
463 | + | let aW = aF(invoke(bg, "getDecimals", nil, nil)) | |
464 | + | if ((aW == aW)) | |
445 | 465 | then { | |
446 | - | let | |
447 | - | then | |
448 | - | else | |
449 | - | let | |
450 | - | let | |
451 | - | if (( | |
466 | + | let bp = if ((aS > bk)) | |
467 | + | then bm | |
468 | + | else bl | |
469 | + | let bq = (bj + fraction(aS, bp, s)) | |
470 | + | let br = C(aS, (bq + 1), u, "burn: fee more than amount") | |
471 | + | if ((br == br)) | |
452 | 472 | then { | |
453 | - | let | |
454 | - | let | |
455 | - | if (( | |
473 | + | let bs = (aS - bq) | |
474 | + | let bt = C(bs, (aQ + 1), u, "burn: reward more than amount") | |
475 | + | if ((bt == bt)) | |
456 | 476 | then { | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | if (( | |
462 | - | then $Tuple2(( | |
477 | + | let bu = (ao(aV) + bq) | |
478 | + | let aX = K(bs, aW, r) | |
479 | + | let aY = K(aQ, aW, r) | |
480 | + | let bd = invoke(aq(), o, [ak, bh, aX, aP, aY], nil) | |
481 | + | if ((bd == bd)) | |
482 | + | then $Tuple2((ap(aV, bu) ++ [Burn(aV, bs)]), unit) | |
463 | 483 | else throw("Strict value is not equal to itself.") | |
464 | 484 | } | |
465 | 485 | else throw("Strict value is not equal to itself.") | |
466 | 486 | } | |
467 | 487 | else throw("Strict value is not equal to itself.") | |
468 | 488 | } | |
469 | 489 | else throw("Strict value is not equal to itself.") | |
470 | 490 | } | |
471 | 491 | else throw("Strict value is not equal to itself.") | |
472 | 492 | } | |
473 | 493 | else throw("Strict value is not equal to itself.") | |
474 | 494 | } | |
475 | 495 | ||
476 | 496 | ||
477 | 497 | ||
478 | - | @Callable( | |
479 | - | func transferFee ( | |
480 | - | let | |
481 | - | then | |
498 | + | @Callable(aK) | |
499 | + | func transferFee (ak,B) = { | |
500 | + | let aM = if (if (aB()) | |
501 | + | then aC() | |
482 | 502 | else false) | |
483 | - | then | |
503 | + | then A(B, "transferFee: invalid asset") | |
484 | 504 | else false | |
485 | - | if (( | |
505 | + | if ((aM == aM)) | |
486 | 506 | then { | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | then | |
507 | + | let aV = fromBase58String(B) | |
508 | + | let bf = aj(ak, aV) | |
509 | + | let bg = bf._1 | |
510 | + | let bn = bf._8 | |
511 | + | let bo = if (v(toString(bg), "transferFee: no such binding")) | |
512 | + | then G(bn, true, "transferFee: token is disabled") | |
493 | 513 | else false | |
494 | - | if (( | |
495 | - | then $Tuple2(( | |
514 | + | if ((bo == bo)) | |
515 | + | then $Tuple2((ap(aV, 0) ++ [ScriptTransfer(at(), ao(aV), aV)]), unit) | |
496 | 516 | else throw("Strict value is not equal to itself.") | |
497 | 517 | } | |
498 | 518 | else throw("Strict value is not equal to itself.") | |
499 | 519 | } | |
500 | 520 | ||
501 | 521 | ||
502 | 522 | ||
503 | - | @Callable( | |
504 | - | func updateCallerContract ( | |
505 | - | let | |
506 | - | then | |
523 | + | @Callable(aK) | |
524 | + | func updateCallerContract (aN) = { | |
525 | + | let aM = if (ay(aK.caller)) | |
526 | + | then aB() | |
507 | 527 | else false | |
508 | - | if (( | |
509 | - | then $Tuple2( | |
528 | + | if ((aM == aM)) | |
529 | + | then $Tuple2(ae(aN), unit) | |
510 | 530 | else throw("Strict value is not equal to itself.") | |
511 | 531 | } | |
512 | 532 | ||
513 | 533 | ||
514 | 534 | ||
515 | - | @Callable( | |
516 | - | func updateExecutionChain ( | |
517 | - | let | |
518 | - | then | |
535 | + | @Callable(aK) | |
536 | + | func updateExecutionChain (ak,bv) = { | |
537 | + | let aM = if (if (ay(aK.caller)) | |
538 | + | then aB() | |
519 | 539 | else false) | |
520 | - | then | |
540 | + | then C(ak, 0, u, "updateExecutionChain: invalid executionChainId") | |
521 | 541 | else false | |
522 | - | if (( | |
523 | - | then $Tuple2( | |
542 | + | if ((aM == aM)) | |
543 | + | then $Tuple2(ai(ak, bv), unit) | |
524 | 544 | else throw("Strict value is not equal to itself.") | |
525 | 545 | } | |
526 | 546 | ||
527 | 547 | ||
528 | 548 | ||
529 | - | @Callable( | |
530 | - | func updateFeeRecipient ( | |
531 | - | let | |
532 | - | then | |
549 | + | @Callable(aK) | |
550 | + | func updateFeeRecipient (aL) = { | |
551 | + | let aM = if (if (ay(aK.caller)) | |
552 | + | then aB() | |
533 | 553 | else false) | |
534 | - | then | |
554 | + | then v(aL, "updateFeeRecipient: invalid feeRecipient") | |
535 | 555 | else false | |
536 | - | if (( | |
537 | - | then $Tuple2( | |
556 | + | if ((aM == aM)) | |
557 | + | then $Tuple2(au(addressFromStringValue(aL)), unit) | |
538 | 558 | else throw("Strict value is not equal to itself.") | |
539 | 559 | } | |
540 | 560 | ||
541 | 561 | ||
542 | 562 | ||
543 | - | @Callable( | |
544 | - | func | |
545 | - | let | |
546 | - | then | |
563 | + | @Callable(aK) | |
564 | + | func updateReferrer (ak,aw,bw) = { | |
565 | + | let aM = if (if (if (if (ay(aK.caller)) | |
566 | + | then aB() | |
547 | 567 | else false) | |
548 | - | then | |
568 | + | then aJ(ak, "updateReferrer: invalid execution chain") | |
549 | 569 | else false) | |
550 | - | then | |
570 | + | then v(aw, "updateReferrer: invalid referrer") | |
551 | 571 | else false) | |
552 | - | then A(bt, 0, s, "updateBindingInfo: invalid minAmount") | |
572 | + | then C(bw, 0, t, "updateReferrer: invalid fee") | |
573 | + | else false | |
574 | + | if ((aM == aM)) | |
575 | + | then $Tuple2(ax(ak, addressFromStringValue(aw), bw), unit) | |
576 | + | else throw("Strict value is not equal to itself.") | |
577 | + | } | |
578 | + | ||
579 | + | ||
580 | + | ||
581 | + | @Callable(aK) | |
582 | + | func updateBindingInfo (ak,aO,bx,by,bz,bA,bB,bC,bv) = { | |
583 | + | let aM = if (if (if (if (if (if (if (if (ay(aK.caller)) | |
584 | + | then aB() | |
553 | 585 | else false) | |
554 | - | then | |
586 | + | then v(aO, "updateBindingInfo: invalid asset contract") | |
555 | 587 | else false) | |
556 | - | then | |
588 | + | then C(ak, 0, u, "updateBindingInfo: invalid executionChainId") | |
557 | 589 | else false) | |
558 | - | then | |
590 | + | then C(by, 0, u, "updateBindingInfo: invalid minAmount") | |
559 | 591 | else false) | |
560 | - | then A(bx, 0, s, "updateBindingInfo: invalid afterPercentFee") | |
592 | + | then C(bz, 0, u, "updateBindingInfo: invalid minFee") | |
593 | + | else false) | |
594 | + | then C(bA, 0, u, "updateBindingInfo: invalid thresholdFee") | |
595 | + | else false) | |
596 | + | then C(bB, 0, u, "updateBindingInfo: invalid beforePercentFee") | |
597 | + | else false) | |
598 | + | then C(bC, 0, u, "updateBindingInfo: invalid afterPercentFee") | |
561 | 599 | else false | |
562 | - | if (( | |
600 | + | if ((aM == aM)) | |
563 | 601 | then { | |
564 | - | let | |
565 | - | if (( | |
602 | + | let aV = aG(invoke(addressFromStringValue(aO), "getAssetId", nil, nil)) | |
603 | + | if ((aV == aV)) | |
566 | 604 | then { | |
567 | - | let | |
568 | - | $Tuple2(ak | |
605 | + | let bf = $Tuple8(addressFromStringValue(aO), bx, by, bz, bA, bB, bC, bv) | |
606 | + | $Tuple2(am(ak, aV, bf), unit) | |
569 | 607 | } | |
570 | 608 | else throw("Strict value is not equal to itself.") | |
571 | 609 | } | |
572 | 610 | else throw("Strict value is not equal to itself.") | |
573 | 611 | } | |
574 | 612 | ||
575 | 613 | ||
576 | 614 | ||
577 | - | @Callable( | |
615 | + | @Callable(aK) | |
578 | 616 | func pause () = { | |
579 | - | let | |
580 | - | then | |
617 | + | let aM = if (if (aE(aK.caller)) | |
618 | + | then aB() | |
581 | 619 | else false) | |
582 | - | then | |
620 | + | then aC() | |
583 | 621 | else false | |
584 | - | if (( | |
585 | - | then $Tuple2( | |
622 | + | if ((aM == aM)) | |
623 | + | then $Tuple2(S(true), unit) | |
586 | 624 | else throw("Strict value is not equal to itself.") | |
587 | 625 | } | |
588 | 626 | ||
589 | 627 | ||
590 | 628 | ||
591 | - | @Callable( | |
629 | + | @Callable(aK) | |
592 | 630 | func unpause () = { | |
593 | - | let | |
594 | - | then | |
631 | + | let aM = if (if (aE(aK.caller)) | |
632 | + | then aB() | |
595 | 633 | else false) | |
596 | - | then | |
634 | + | then aD() | |
597 | 635 | else false | |
598 | - | if (( | |
599 | - | then $Tuple2( | |
636 | + | if ((aM == aM)) | |
637 | + | then $Tuple2(S(false), unit) | |
600 | 638 | else throw("Strict value is not equal to itself.") | |
601 | 639 | } | |
602 | 640 | ||
603 | 641 | ||
604 | 642 | ||
605 | - | @Callable( | |
606 | - | func updatePauser ( | |
607 | - | let | |
608 | - | then | |
643 | + | @Callable(aK) | |
644 | + | func updatePauser (W) = { | |
645 | + | let aM = if (if (ay(aK.caller)) | |
646 | + | then aB() | |
609 | 647 | else false) | |
610 | - | then | |
648 | + | then v(W, "init: invalid pauser") | |
611 | 649 | else false | |
612 | - | if (( | |
613 | - | then $Tuple2( | |
650 | + | if ((aM == aM)) | |
651 | + | then $Tuple2(V(addressFromStringValue(W)), unit) | |
614 | 652 | else throw("Strict value is not equal to itself.") | |
615 | 653 | } | |
616 | 654 | ||
617 | 655 | ||
618 | 656 | ||
619 | - | @Callable( | |
620 | - | func setMultisig ( | |
621 | - | let | |
622 | - | then | |
657 | + | @Callable(aK) | |
658 | + | func setMultisig (Z) = { | |
659 | + | let aM = if (ay(aK.caller)) | |
660 | + | then v(Z, "setMultisig: invalid multisig") | |
623 | 661 | else false | |
624 | - | if (( | |
625 | - | then $Tuple2( | |
662 | + | if ((aM == aM)) | |
663 | + | then $Tuple2(Y(addressFromStringValue(Z)), unit) | |
626 | 664 | else throw("Strict value is not equal to itself.") | |
627 | 665 | } | |
628 | 666 | ||
629 | 667 | ||
630 | - | @Verifier( | |
631 | - | func | |
632 | - | let | |
633 | - | if ($isInstanceOf( | |
668 | + | @Verifier(bD) | |
669 | + | func bE () = { | |
670 | + | let y = getString(c) | |
671 | + | if ($isInstanceOf(y, "String")) | |
634 | 672 | then { | |
635 | - | let | |
636 | - | valueOrElse(getBoolean(addressFromStringValue( | |
673 | + | let bF = y | |
674 | + | valueOrElse(getBoolean(addressFromStringValue(bF), makeString([d, toString(this), toBase58String(bD.id)], a)), false) | |
637 | 675 | } | |
638 | - | else sigVerify( | |
676 | + | else sigVerify(bD.bodyBytes, bD.proofs[0], bD.senderPublicKey) | |
639 | 677 | } | |
640 | 678 |
github/deemru/w8io/026f985 184.94 ms ◑