tx · 8obEV2TDj7P5fE1bhzEkQioMWRqSkP3wpgMJbp2aQRru 3NC9dyrMheMhHXcaeCXkuKqaTkLFa5Ahzd2: -0.01400000 Waves 2023.11.16 12:37 [2845757] smart account 3NC9dyrMheMhHXcaeCXkuKqaTkLFa5Ahzd2 > SELF 0.00000000 Waves
{ "type": 13, "id": "8obEV2TDj7P5fE1bhzEkQioMWRqSkP3wpgMJbp2aQRru", "fee": 1400000, "feeAssetId": null, "timestamp": 1700127501224, "version": 2, "chainId": 84, "sender": "3NC9dyrMheMhHXcaeCXkuKqaTkLFa5Ahzd2", "senderPublicKey": "8fS13zFL61wF3maPyR7vTayhasoH9StToqd7wGuecHXN", "proofs": [ "4notrkLfPMVG4CZPVaTG4sNL5S3g418sjcJg1AY92UHTEnoxA1xG8qXMHBjoYW1C4464h3uoqALaYYSAuJsAHTZJ" ], "script": "base64:BgJiCAISBAoCCAgSBAoCCAESBAoCCAQSBAoCCAISAwoBCBIFCgMCAQQSBAoCAgESBQoDAgECEgUKAwISERIECgICARILCgkICAgICAgBARgSCAoGCAgIAQIBEgQKAggYEgMKAQg0AAlzZXBhcmF0b3ICAl9fAAdjaGFpbklkCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAhjaGFpbklkVAEBVAAIY2hhaW5JZFcBAVcBC211c3RBZGRyZXNzAgFpB2FkZHJlc3MDCQAAAggFAWkGY2FsbGVyBQdhZGRyZXNzBgkAAgECEXBlcm1pc3Npb24gZGVuaWVkAQhtdXN0VGhpcwEBaQkBC211c3RBZGRyZXNzAgUBaQUEdGhpcwADU0VQAgJfXwAFV0FWRVMCBVdBVkVTABBjb250cmFjdEZpbGVuYW1lAhJ3eGRhb19mYWN0b3J5LnJpZGUBB3dyYXBFcnIBAXMJAKwCAgkArAICBRBjb250cmFjdEZpbGVuYW1lAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMBD3N0cmluZ1RvQXNzZXRJZAEBcwMJAAACBQFz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yUHVibGljS2V5AwMFCmJ5UHJvcG9zYWwGBQhieUFkbWlucwYFB2J5T3duZXKKPrHC", "height": 2845757, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AJitddCyvvx7w6fnSJrVnNy6sH4Gb78aCAYzGk828oZr Next: uB44RXKFqm3HwYRnSXDQ11gzmRX9ka4q1ZVhhK7KBwW Diff:
Old | New | Differences | |
---|---|---|---|
167 | 167 | func ah () = "%s__calculatorAddress" | |
168 | 168 | ||
169 | 169 | ||
170 | - | func ai () = "%s__ | |
170 | + | func ai () = "%s__poolsFactoryAddress" | |
171 | 171 | ||
172 | 172 | ||
173 | - | func aj () = | |
173 | + | func aj () = "%s__treasuryAddress" | |
174 | 174 | ||
175 | 175 | ||
176 | - | func ak ( | |
176 | + | func ak () = "%s__lpAssetId" | |
177 | 177 | ||
178 | 178 | ||
179 | - | func | |
179 | + | func al () = makeString(["%s", "currentPeriod"], i) | |
180 | 180 | ||
181 | 181 | ||
182 | - | func | |
182 | + | func am (an) = makeString(["%s%d", "startHeight", toString(an)], i) | |
183 | 183 | ||
184 | 184 | ||
185 | - | func ao () = makeString(["%s", " | |
185 | + | func ao () = makeString(["%s", "periodLength"], i) | |
186 | 186 | ||
187 | 187 | ||
188 | - | let ap = { | |
188 | + | func ap (an) = makeString(["%s%d", "treasuryValue", toString(an)], i) | |
189 | + | ||
190 | + | ||
191 | + | let aq = { | |
189 | 192 | let D = getString(this, ah()) | |
190 | 193 | if ($isInstanceOf(D, "String")) | |
191 | 194 | then { | |
197 | 200 | else throw("Match error") | |
198 | 201 | } | |
199 | 202 | ||
200 | - | let | |
203 | + | let ar = valueOrErrorMessage(aq, l("invalid calculator address")) | |
201 | 204 | ||
202 | - | func | |
205 | + | func as () = "%s__powerConfigAddress" | |
203 | 206 | ||
204 | 207 | ||
205 | - | func | |
208 | + | func at () = "%s__powerContractAddress" | |
206 | 209 | ||
207 | 210 | ||
208 | - | func | |
211 | + | func au () = "%s__assets" | |
209 | 212 | ||
210 | 213 | ||
211 | - | func | |
214 | + | func av () = "contract_voting_result" | |
212 | 215 | ||
213 | 216 | ||
214 | - | func | |
217 | + | func aw (g,t) = ((("proposal_allow_broadcast_" + toString(g)) + "_") + toBase58String(t)) | |
215 | 218 | ||
216 | 219 | ||
217 | - | let | |
218 | - | let D = getString(this, | |
220 | + | let ax = { | |
221 | + | let D = getString(this, as()) | |
219 | 222 | if ($isInstanceOf(D, "String")) | |
220 | 223 | then { | |
221 | 224 | let m = D | |
226 | 229 | else throw("Match error") | |
227 | 230 | } | |
228 | 231 | ||
229 | - | let | |
230 | - | let D = | |
232 | + | let ay = { | |
233 | + | let D = ax | |
231 | 234 | if ($isInstanceOf(D, "Address")) | |
232 | 235 | then { | |
233 | 236 | let G = D | |
234 | - | let | |
235 | - | if ($isInstanceOf( | |
237 | + | let az = getString(G, av()) | |
238 | + | if ($isInstanceOf(az, "String")) | |
236 | 239 | then { | |
237 | - | let m = | |
240 | + | let m = az | |
238 | 241 | addressFromString(m) | |
239 | 242 | } | |
240 | - | else if ($isInstanceOf( | |
243 | + | else if ($isInstanceOf(az, "Unit")) | |
241 | 244 | then unit | |
242 | 245 | else throw("Match error") | |
243 | 246 | } | |
246 | 249 | else throw("Match error") | |
247 | 250 | } | |
248 | 251 | ||
249 | - | let | |
252 | + | let aA = valueOrErrorMessage(ay, l("invalid voting result address")) | |
250 | 253 | ||
251 | - | let | |
252 | - | let D = getString(this, | |
254 | + | let aB = { | |
255 | + | let D = getString(this, ak()) | |
253 | 256 | if ($isInstanceOf(D, "String")) | |
254 | 257 | then { | |
255 | 258 | let m = D | |
260 | 263 | else throw("Match error") | |
261 | 264 | } | |
262 | 265 | ||
263 | - | let | |
266 | + | let aC = valueOrErrorMessage(aB, l("invalid lpAssetId")) | |
264 | 267 | ||
265 | - | func | |
268 | + | func aD (f,g) = if ((f.caller == g)) | |
266 | 269 | then true | |
267 | 270 | else n("permission denied") | |
268 | 271 | ||
269 | 272 | ||
270 | - | func | |
273 | + | func aE (f) = aD(f, this) | |
271 | 274 | ||
272 | 275 | ||
273 | - | func | |
276 | + | func aF (f) = aD(f, ar) | |
274 | 277 | ||
275 | 278 | ||
276 | 279 | @Callable(f) | |
277 | - | func stringEntry (Y, | |
278 | - | then $Tuple2([StringEntry(Y, | |
280 | + | func stringEntry (Y,aG) = if (aF(f)) | |
281 | + | then $Tuple2([StringEntry(Y, aG)], Y) | |
279 | 282 | else $Tuple2(nil, unit) | |
280 | 283 | ||
281 | 284 | ||
282 | 285 | ||
283 | 286 | @Callable(f) | |
284 | - | func integerEntry (Y, | |
285 | - | then $Tuple2([IntegerEntry(Y, | |
287 | + | func integerEntry (Y,aG) = if (aF(f)) | |
288 | + | then $Tuple2([IntegerEntry(Y, aG)], Y) | |
286 | 289 | else $Tuple2(nil, unit) | |
287 | 290 | ||
288 | 291 | ||
289 | 292 | ||
290 | 293 | @Callable(f) | |
291 | - | func booleanEntry (Y, | |
292 | - | then $Tuple2([BooleanEntry(Y, | |
294 | + | func booleanEntry (Y,aG) = if (aF(f)) | |
295 | + | then $Tuple2([BooleanEntry(Y, aG)], Y) | |
293 | 296 | else $Tuple2(nil, unit) | |
294 | 297 | ||
295 | 298 | ||
296 | 299 | ||
297 | 300 | @Callable(f) | |
298 | - | func binaryEntry (Y, | |
299 | - | then $Tuple2([BinaryEntry(Y, | |
301 | + | func binaryEntry (Y,aG) = if (aF(f)) | |
302 | + | then $Tuple2([BinaryEntry(Y, aG)], Y) | |
300 | 303 | else $Tuple2(nil, unit) | |
301 | 304 | ||
302 | 305 | ||
303 | 306 | ||
304 | 307 | @Callable(f) | |
305 | - | func deleteEntry (Y) = if ( | |
308 | + | func deleteEntry (Y) = if (aF(f)) | |
306 | 309 | then $Tuple2([DeleteEntry(Y)], Y) | |
307 | 310 | else $Tuple2(nil, unit) | |
308 | 311 | ||
309 | 312 | ||
310 | 313 | ||
311 | 314 | @Callable(f) | |
312 | - | func reissue ( | |
313 | - | then $Tuple2([Reissue( | |
315 | + | func reissue (aH,aI,aJ) = if (aF(f)) | |
316 | + | then $Tuple2([Reissue(aH, aI, aJ)], aI) | |
314 | 317 | else $Tuple2(nil, unit) | |
315 | 318 | ||
316 | 319 | ||
317 | 320 | ||
318 | 321 | @Callable(f) | |
319 | - | func burn ( | |
320 | - | then $Tuple2([Burn( | |
322 | + | func burn (aH,aI) = if (aF(f)) | |
323 | + | then $Tuple2([Burn(aH, aI)], aI) | |
321 | 324 | else $Tuple2(nil, unit) | |
322 | 325 | ||
323 | 326 | ||
324 | 327 | ||
325 | 328 | @Callable(f) | |
326 | - | func transferAsset ( | |
327 | - | then $Tuple2([ScriptTransfer(Address( | |
329 | + | func transferAsset (aK,aI,aH) = if (aF(f)) | |
330 | + | then $Tuple2([ScriptTransfer(Address(aK), aI, aH)], aI) | |
328 | 331 | else $Tuple2(nil, unit) | |
329 | 332 | ||
330 | 333 | ||
331 | 334 | ||
332 | 335 | @Callable(f) | |
333 | - | func transferAssets ( | |
336 | + | func transferAssets (aK,aL,aM) = if (aF(f)) | |
334 | 337 | then { | |
335 | - | func | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | $Tuple2( | |
338 | + | func aN (aO,aP) = { | |
339 | + | let aQ = aO | |
340 | + | let aR = aQ._1 | |
341 | + | let aS = aQ._2 | |
342 | + | let aT = ScriptTransfer(Address(aK), aM[aS], aL[aS]) | |
343 | + | let aU = (aR :+ aT) | |
344 | + | $Tuple2(aU, (aS + 1)) | |
342 | 345 | } | |
343 | 346 | ||
344 | - | let | |
345 | - | let N = | |
347 | + | let aV = { | |
348 | + | let N = aL | |
346 | 349 | let O = size(N) | |
347 | 350 | let P = $Tuple2(nil, 0) | |
348 | 351 | func Q (R,S) = if ((S >= O)) | |
349 | 352 | then R | |
350 | - | else | |
353 | + | else aN(R, N[S]) | |
351 | 354 | ||
352 | 355 | func T (R,S) = if ((S >= O)) | |
353 | 356 | then R | |
355 | 358 | ||
356 | 359 | T(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(P, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
357 | 360 | } | |
358 | - | let | |
359 | - | let | |
360 | - | $Tuple2( | |
361 | + | let aW = aV._1 | |
362 | + | let aX = aV._2 | |
363 | + | $Tuple2(aW, unit) | |
361 | 364 | } | |
362 | 365 | else $Tuple2(nil, unit) | |
363 | 366 | ||
364 | 367 | ||
365 | 368 | ||
366 | 369 | @Callable(f) | |
367 | - | func transferWaves ( | |
368 | - | then $Tuple2([ScriptTransfer(Address( | |
370 | + | func transferWaves (aK,aI) = if (aF(f)) | |
371 | + | then $Tuple2([ScriptTransfer(Address(aK), aI, unit)], aI) | |
369 | 372 | else $Tuple2(nil, unit) | |
370 | 373 | ||
371 | 374 | ||
372 | 375 | ||
373 | 376 | @Callable(f) | |
374 | - | func init ( | |
375 | - | let | |
376 | - | if (( | |
377 | - | then $Tuple2([StringEntry( | |
377 | + | func init (aY,aZ,ba,bb,bc,bd,be,bf,bg) = { | |
378 | + | let bh = h(f) | |
379 | + | if ((bh == bh)) | |
380 | + | then $Tuple2([StringEntry(ak(), aY), StringEntry(aj(), aZ), StringEntry(ah(), ba), StringEntry(as(), bb), StringEntry(at(), bc), StringEntry(ai(), bd), IntegerEntry(ao(), be), IntegerEntry(ap(0), bf), IntegerEntry(al(), 0), IntegerEntry(am(0), height), StringEntry(au(), makeString(bg, i))], unit) | |
378 | 381 | else throw("Strict value is not equal to itself.") | |
379 | 382 | } | |
380 | 383 | ||
381 | 384 | ||
382 | 385 | ||
383 | 386 | @Callable(f) | |
384 | - | func commitAfterStartWithLockRoundFor ( | |
387 | + | func commitAfterStartWithLockRoundFor (bi,bj,g,bk,bl,bm) = $Tuple2(nil, invoke(addressFromStringValue(bi), "commitAfterStartWithLockRoundFor", [bj, g, bk], [AttachedPayment(bl, bm)])) | |
385 | 388 | ||
386 | 389 | ||
387 | 390 | ||
388 | 391 | @Callable(f) | |
389 | - | func call ( | |
390 | - | let I = reentrantInvoke( | |
392 | + | func call (bn,bo) = { | |
393 | + | let I = reentrantInvoke(ar, bn, [f.callerPublicKey, bo], f.payments) | |
391 | 394 | $Tuple2(nil, I) | |
392 | 395 | } | |
393 | 396 | ||
398 | 401 | let ab = toBase58String(f.caller.bytes) | |
399 | 402 | let K = s(t) | |
400 | 403 | let I = [StringEntry(y(), t)] | |
401 | - | let | |
404 | + | let bp = getString(this, y()) | |
402 | 405 | let af = [if ((size(fromBase58String(t)) == r)) | |
403 | 406 | then true | |
404 | - | else n((t + " is not valid txId")), if (if (( | |
407 | + | else n((t + " is not valid txId")), if (if ((bp == unit)) | |
405 | 408 | then true | |
406 | - | else (value( | |
409 | + | else (value(bp) != t)) | |
407 | 410 | then true | |
408 | 411 | else n((t + " is already allowed"))] | |
409 | 412 | if ((af == af)) | |
412 | 415 | } | |
413 | 416 | ||
414 | 417 | ||
415 | - | @Verifier( | |
416 | - | func | |
417 | - | let | |
418 | - | let D = | |
418 | + | @Verifier(bq) | |
419 | + | func br () = { | |
420 | + | let bs = { | |
421 | + | let D = ay | |
419 | 422 | if ($isInstanceOf(D, "Address")) | |
420 | 423 | then { | |
421 | - | let | |
422 | - | valueOrElse(getBoolean( | |
424 | + | let bt = D | |
425 | + | valueOrElse(getBoolean(bt, aw(this, bq.id)), false) | |
423 | 426 | } | |
424 | 427 | else false | |
425 | 428 | } | |
426 | - | let | |
427 | - | let | |
429 | + | let bu = (bq.id == fromBase58String(valueOrElse(getString(this, y()), ""))) | |
430 | + | let bv = if ((size(C()) >= q)) | |
428 | 431 | then false | |
429 | - | else sigVerify( | |
430 | - | if (if ( | |
432 | + | else sigVerify(bq.bodyBytes, bq.proofs[0], bq.senderPublicKey) | |
433 | + | if (if (bs) | |
431 | 434 | then true | |
432 | - | else | |
435 | + | else bu) | |
433 | 436 | then true | |
434 | - | else | |
437 | + | else bv | |
435 | 438 | } | |
436 | 439 |
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 = take(drop(this.bytes, 1), 1) | |
7 | 7 | ||
8 | 8 | let c = base58'2T' | |
9 | 9 | ||
10 | 10 | let d = base58'2W' | |
11 | 11 | ||
12 | 12 | func e (f,g) = if ((f.caller == g)) | |
13 | 13 | then true | |
14 | 14 | else throw("permission denied") | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func h (f) = e(f, this) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | let i = "__" | |
21 | 21 | ||
22 | 22 | let j = "WAVES" | |
23 | 23 | ||
24 | 24 | let k = "wxdao_factory.ride" | |
25 | 25 | ||
26 | 26 | func l (m) = ((k + ": ") + m) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func n (m) = throw(l(m)) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func o (m) = if ((m == j)) | |
33 | 33 | then unit | |
34 | 34 | else fromBase58String(m) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | let p = 5 | |
38 | 38 | ||
39 | 39 | let q = 3 | |
40 | 40 | ||
41 | 41 | let r = 32 | |
42 | 42 | ||
43 | 43 | func s (t) = makeString(["%s%s%s", "allowTxId", t], i) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func u (v,w) = makeString([v, w], i) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func x () = makeString(["%s", "adminAddressList"], i) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func y () = makeString(["%s", "txId"], i) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func z (v,A) = { | |
56 | 56 | let B = u(v, A) | |
57 | 57 | valueOrElse(getInteger(B), 0) | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func C () = { | |
62 | 62 | let D = getString(this, x()) | |
63 | 63 | if ($isInstanceOf(D, "String")) | |
64 | 64 | then { | |
65 | 65 | let m = D | |
66 | 66 | split(m, i) | |
67 | 67 | } | |
68 | 68 | else nil | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func E (g) = containsElement(C(), g) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func F (G,w) = { | |
76 | 76 | let H = G | |
77 | 77 | let I = H._1 | |
78 | 78 | let v = H._2 | |
79 | 79 | $Tuple2((I :+ u(v, w)), v) | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func J (K) = { | |
84 | 84 | let L = x() | |
85 | 85 | let M = { | |
86 | 86 | let N = C() | |
87 | 87 | let O = size(N) | |
88 | 88 | let P = $Tuple2(nil, K) | |
89 | 89 | func Q (R,S) = if ((S >= O)) | |
90 | 90 | then R | |
91 | 91 | else F(R, N[S]) | |
92 | 92 | ||
93 | 93 | func T (R,S) = if ((S >= O)) | |
94 | 94 | then R | |
95 | 95 | else throw("List size exceeds 5") | |
96 | 96 | ||
97 | 97 | T(Q(Q(Q(Q(Q(P, 0), 1), 2), 3), 4), 5) | |
98 | 98 | } | |
99 | 99 | let I = M._1 | |
100 | 100 | let v = M._2 | |
101 | 101 | I | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func U (I,B) = (I + valueOrElse(getInteger(B), 0)) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func V (v) = { | |
109 | 109 | let W = J(v) | |
110 | 110 | let N = W | |
111 | 111 | let O = size(N) | |
112 | 112 | let P = 0 | |
113 | 113 | func Q (R,S) = if ((S >= O)) | |
114 | 114 | then R | |
115 | 115 | else U(R, N[S]) | |
116 | 116 | ||
117 | 117 | func T (R,S) = if ((S >= O)) | |
118 | 118 | then R | |
119 | 119 | else throw("List size exceeds 5") | |
120 | 120 | ||
121 | 121 | T(Q(Q(Q(Q(Q(P, 0), 1), 2), 3), 4), 5) | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func X (I,Y) = (I :+ DeleteEntry(Y)) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func Z (v) = { | |
129 | 129 | let W = J(v) | |
130 | 130 | let N = W | |
131 | 131 | let O = size(N) | |
132 | 132 | let P = nil | |
133 | 133 | func Q (R,S) = if ((S >= O)) | |
134 | 134 | then R | |
135 | 135 | else X(R, N[S]) | |
136 | 136 | ||
137 | 137 | func T (R,S) = if ((S >= O)) | |
138 | 138 | then R | |
139 | 139 | else throw("List size exceeds 5") | |
140 | 140 | ||
141 | 141 | T(Q(Q(Q(Q(Q(P, 0), 1), 2), 3), 4), 5) | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func aa (ab,K,ac,ad) = { | |
146 | 146 | let B = u(K, ab) | |
147 | 147 | let ae = z(K, ab) | |
148 | 148 | let af = if (!(E(ab))) | |
149 | 149 | then n((("Address: " + ab) + " not in Admin list")) | |
150 | 150 | else if ((ae == 1)) | |
151 | 151 | then n((B + " you already voted")) | |
152 | 152 | else unit | |
153 | 153 | if ((af == af)) | |
154 | 154 | then { | |
155 | 155 | let W = V(K) | |
156 | 156 | if (((W + 1) >= ac)) | |
157 | 157 | then { | |
158 | 158 | let ag = Z(K) | |
159 | 159 | (ag ++ ad) | |
160 | 160 | } | |
161 | 161 | else [IntegerEntry(B, 1)] | |
162 | 162 | } | |
163 | 163 | else throw("Strict value is not equal to itself.") | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func ah () = "%s__calculatorAddress" | |
168 | 168 | ||
169 | 169 | ||
170 | - | func ai () = "%s__ | |
170 | + | func ai () = "%s__poolsFactoryAddress" | |
171 | 171 | ||
172 | 172 | ||
173 | - | func aj () = | |
173 | + | func aj () = "%s__treasuryAddress" | |
174 | 174 | ||
175 | 175 | ||
176 | - | func ak ( | |
176 | + | func ak () = "%s__lpAssetId" | |
177 | 177 | ||
178 | 178 | ||
179 | - | func | |
179 | + | func al () = makeString(["%s", "currentPeriod"], i) | |
180 | 180 | ||
181 | 181 | ||
182 | - | func | |
182 | + | func am (an) = makeString(["%s%d", "startHeight", toString(an)], i) | |
183 | 183 | ||
184 | 184 | ||
185 | - | func ao () = makeString(["%s", " | |
185 | + | func ao () = makeString(["%s", "periodLength"], i) | |
186 | 186 | ||
187 | 187 | ||
188 | - | let ap = { | |
188 | + | func ap (an) = makeString(["%s%d", "treasuryValue", toString(an)], i) | |
189 | + | ||
190 | + | ||
191 | + | let aq = { | |
189 | 192 | let D = getString(this, ah()) | |
190 | 193 | if ($isInstanceOf(D, "String")) | |
191 | 194 | then { | |
192 | 195 | let m = D | |
193 | 196 | addressFromString(m) | |
194 | 197 | } | |
195 | 198 | else if ($isInstanceOf(D, "Unit")) | |
196 | 199 | then unit | |
197 | 200 | else throw("Match error") | |
198 | 201 | } | |
199 | 202 | ||
200 | - | let | |
203 | + | let ar = valueOrErrorMessage(aq, l("invalid calculator address")) | |
201 | 204 | ||
202 | - | func | |
205 | + | func as () = "%s__powerConfigAddress" | |
203 | 206 | ||
204 | 207 | ||
205 | - | func | |
208 | + | func at () = "%s__powerContractAddress" | |
206 | 209 | ||
207 | 210 | ||
208 | - | func | |
211 | + | func au () = "%s__assets" | |
209 | 212 | ||
210 | 213 | ||
211 | - | func | |
214 | + | func av () = "contract_voting_result" | |
212 | 215 | ||
213 | 216 | ||
214 | - | func | |
217 | + | func aw (g,t) = ((("proposal_allow_broadcast_" + toString(g)) + "_") + toBase58String(t)) | |
215 | 218 | ||
216 | 219 | ||
217 | - | let | |
218 | - | let D = getString(this, | |
220 | + | let ax = { | |
221 | + | let D = getString(this, as()) | |
219 | 222 | if ($isInstanceOf(D, "String")) | |
220 | 223 | then { | |
221 | 224 | let m = D | |
222 | 225 | addressFromString(m) | |
223 | 226 | } | |
224 | 227 | else if ($isInstanceOf(D, "Unit")) | |
225 | 228 | then unit | |
226 | 229 | else throw("Match error") | |
227 | 230 | } | |
228 | 231 | ||
229 | - | let | |
230 | - | let D = | |
232 | + | let ay = { | |
233 | + | let D = ax | |
231 | 234 | if ($isInstanceOf(D, "Address")) | |
232 | 235 | then { | |
233 | 236 | let G = D | |
234 | - | let | |
235 | - | if ($isInstanceOf( | |
237 | + | let az = getString(G, av()) | |
238 | + | if ($isInstanceOf(az, "String")) | |
236 | 239 | then { | |
237 | - | let m = | |
240 | + | let m = az | |
238 | 241 | addressFromString(m) | |
239 | 242 | } | |
240 | - | else if ($isInstanceOf( | |
243 | + | else if ($isInstanceOf(az, "Unit")) | |
241 | 244 | then unit | |
242 | 245 | else throw("Match error") | |
243 | 246 | } | |
244 | 247 | else if ($isInstanceOf(D, "Unit")) | |
245 | 248 | then unit | |
246 | 249 | else throw("Match error") | |
247 | 250 | } | |
248 | 251 | ||
249 | - | let | |
252 | + | let aA = valueOrErrorMessage(ay, l("invalid voting result address")) | |
250 | 253 | ||
251 | - | let | |
252 | - | let D = getString(this, | |
254 | + | let aB = { | |
255 | + | let D = getString(this, ak()) | |
253 | 256 | if ($isInstanceOf(D, "String")) | |
254 | 257 | then { | |
255 | 258 | let m = D | |
256 | 259 | fromBase58String(m) | |
257 | 260 | } | |
258 | 261 | else if ($isInstanceOf(D, "Unit")) | |
259 | 262 | then unit | |
260 | 263 | else throw("Match error") | |
261 | 264 | } | |
262 | 265 | ||
263 | - | let | |
266 | + | let aC = valueOrErrorMessage(aB, l("invalid lpAssetId")) | |
264 | 267 | ||
265 | - | func | |
268 | + | func aD (f,g) = if ((f.caller == g)) | |
266 | 269 | then true | |
267 | 270 | else n("permission denied") | |
268 | 271 | ||
269 | 272 | ||
270 | - | func | |
273 | + | func aE (f) = aD(f, this) | |
271 | 274 | ||
272 | 275 | ||
273 | - | func | |
276 | + | func aF (f) = aD(f, ar) | |
274 | 277 | ||
275 | 278 | ||
276 | 279 | @Callable(f) | |
277 | - | func stringEntry (Y, | |
278 | - | then $Tuple2([StringEntry(Y, | |
280 | + | func stringEntry (Y,aG) = if (aF(f)) | |
281 | + | then $Tuple2([StringEntry(Y, aG)], Y) | |
279 | 282 | else $Tuple2(nil, unit) | |
280 | 283 | ||
281 | 284 | ||
282 | 285 | ||
283 | 286 | @Callable(f) | |
284 | - | func integerEntry (Y, | |
285 | - | then $Tuple2([IntegerEntry(Y, | |
287 | + | func integerEntry (Y,aG) = if (aF(f)) | |
288 | + | then $Tuple2([IntegerEntry(Y, aG)], Y) | |
286 | 289 | else $Tuple2(nil, unit) | |
287 | 290 | ||
288 | 291 | ||
289 | 292 | ||
290 | 293 | @Callable(f) | |
291 | - | func booleanEntry (Y, | |
292 | - | then $Tuple2([BooleanEntry(Y, | |
294 | + | func booleanEntry (Y,aG) = if (aF(f)) | |
295 | + | then $Tuple2([BooleanEntry(Y, aG)], Y) | |
293 | 296 | else $Tuple2(nil, unit) | |
294 | 297 | ||
295 | 298 | ||
296 | 299 | ||
297 | 300 | @Callable(f) | |
298 | - | func binaryEntry (Y, | |
299 | - | then $Tuple2([BinaryEntry(Y, | |
301 | + | func binaryEntry (Y,aG) = if (aF(f)) | |
302 | + | then $Tuple2([BinaryEntry(Y, aG)], Y) | |
300 | 303 | else $Tuple2(nil, unit) | |
301 | 304 | ||
302 | 305 | ||
303 | 306 | ||
304 | 307 | @Callable(f) | |
305 | - | func deleteEntry (Y) = if ( | |
308 | + | func deleteEntry (Y) = if (aF(f)) | |
306 | 309 | then $Tuple2([DeleteEntry(Y)], Y) | |
307 | 310 | else $Tuple2(nil, unit) | |
308 | 311 | ||
309 | 312 | ||
310 | 313 | ||
311 | 314 | @Callable(f) | |
312 | - | func reissue ( | |
313 | - | then $Tuple2([Reissue( | |
315 | + | func reissue (aH,aI,aJ) = if (aF(f)) | |
316 | + | then $Tuple2([Reissue(aH, aI, aJ)], aI) | |
314 | 317 | else $Tuple2(nil, unit) | |
315 | 318 | ||
316 | 319 | ||
317 | 320 | ||
318 | 321 | @Callable(f) | |
319 | - | func burn ( | |
320 | - | then $Tuple2([Burn( | |
322 | + | func burn (aH,aI) = if (aF(f)) | |
323 | + | then $Tuple2([Burn(aH, aI)], aI) | |
321 | 324 | else $Tuple2(nil, unit) | |
322 | 325 | ||
323 | 326 | ||
324 | 327 | ||
325 | 328 | @Callable(f) | |
326 | - | func transferAsset ( | |
327 | - | then $Tuple2([ScriptTransfer(Address( | |
329 | + | func transferAsset (aK,aI,aH) = if (aF(f)) | |
330 | + | then $Tuple2([ScriptTransfer(Address(aK), aI, aH)], aI) | |
328 | 331 | else $Tuple2(nil, unit) | |
329 | 332 | ||
330 | 333 | ||
331 | 334 | ||
332 | 335 | @Callable(f) | |
333 | - | func transferAssets ( | |
336 | + | func transferAssets (aK,aL,aM) = if (aF(f)) | |
334 | 337 | then { | |
335 | - | func | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | $Tuple2( | |
338 | + | func aN (aO,aP) = { | |
339 | + | let aQ = aO | |
340 | + | let aR = aQ._1 | |
341 | + | let aS = aQ._2 | |
342 | + | let aT = ScriptTransfer(Address(aK), aM[aS], aL[aS]) | |
343 | + | let aU = (aR :+ aT) | |
344 | + | $Tuple2(aU, (aS + 1)) | |
342 | 345 | } | |
343 | 346 | ||
344 | - | let | |
345 | - | let N = | |
347 | + | let aV = { | |
348 | + | let N = aL | |
346 | 349 | let O = size(N) | |
347 | 350 | let P = $Tuple2(nil, 0) | |
348 | 351 | func Q (R,S) = if ((S >= O)) | |
349 | 352 | then R | |
350 | - | else | |
353 | + | else aN(R, N[S]) | |
351 | 354 | ||
352 | 355 | func T (R,S) = if ((S >= O)) | |
353 | 356 | then R | |
354 | 357 | else throw("List size exceeds 10") | |
355 | 358 | ||
356 | 359 | T(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(P, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
357 | 360 | } | |
358 | - | let | |
359 | - | let | |
360 | - | $Tuple2( | |
361 | + | let aW = aV._1 | |
362 | + | let aX = aV._2 | |
363 | + | $Tuple2(aW, unit) | |
361 | 364 | } | |
362 | 365 | else $Tuple2(nil, unit) | |
363 | 366 | ||
364 | 367 | ||
365 | 368 | ||
366 | 369 | @Callable(f) | |
367 | - | func transferWaves ( | |
368 | - | then $Tuple2([ScriptTransfer(Address( | |
370 | + | func transferWaves (aK,aI) = if (aF(f)) | |
371 | + | then $Tuple2([ScriptTransfer(Address(aK), aI, unit)], aI) | |
369 | 372 | else $Tuple2(nil, unit) | |
370 | 373 | ||
371 | 374 | ||
372 | 375 | ||
373 | 376 | @Callable(f) | |
374 | - | func init ( | |
375 | - | let | |
376 | - | if (( | |
377 | - | then $Tuple2([StringEntry( | |
377 | + | func init (aY,aZ,ba,bb,bc,bd,be,bf,bg) = { | |
378 | + | let bh = h(f) | |
379 | + | if ((bh == bh)) | |
380 | + | then $Tuple2([StringEntry(ak(), aY), StringEntry(aj(), aZ), StringEntry(ah(), ba), StringEntry(as(), bb), StringEntry(at(), bc), StringEntry(ai(), bd), IntegerEntry(ao(), be), IntegerEntry(ap(0), bf), IntegerEntry(al(), 0), IntegerEntry(am(0), height), StringEntry(au(), makeString(bg, i))], unit) | |
378 | 381 | else throw("Strict value is not equal to itself.") | |
379 | 382 | } | |
380 | 383 | ||
381 | 384 | ||
382 | 385 | ||
383 | 386 | @Callable(f) | |
384 | - | func commitAfterStartWithLockRoundFor ( | |
387 | + | func commitAfterStartWithLockRoundFor (bi,bj,g,bk,bl,bm) = $Tuple2(nil, invoke(addressFromStringValue(bi), "commitAfterStartWithLockRoundFor", [bj, g, bk], [AttachedPayment(bl, bm)])) | |
385 | 388 | ||
386 | 389 | ||
387 | 390 | ||
388 | 391 | @Callable(f) | |
389 | - | func call ( | |
390 | - | let I = reentrantInvoke( | |
392 | + | func call (bn,bo) = { | |
393 | + | let I = reentrantInvoke(ar, bn, [f.callerPublicKey, bo], f.payments) | |
391 | 394 | $Tuple2(nil, I) | |
392 | 395 | } | |
393 | 396 | ||
394 | 397 | ||
395 | 398 | ||
396 | 399 | @Callable(f) | |
397 | 400 | func voteForTxId (t) = { | |
398 | 401 | let ab = toBase58String(f.caller.bytes) | |
399 | 402 | let K = s(t) | |
400 | 403 | let I = [StringEntry(y(), t)] | |
401 | - | let | |
404 | + | let bp = getString(this, y()) | |
402 | 405 | let af = [if ((size(fromBase58String(t)) == r)) | |
403 | 406 | then true | |
404 | - | else n((t + " is not valid txId")), if (if (( | |
407 | + | else n((t + " is not valid txId")), if (if ((bp == unit)) | |
405 | 408 | then true | |
406 | - | else (value( | |
409 | + | else (value(bp) != t)) | |
407 | 410 | then true | |
408 | 411 | else n((t + " is already allowed"))] | |
409 | 412 | if ((af == af)) | |
410 | 413 | then aa(ab, K, q, I) | |
411 | 414 | else throw("Strict value is not equal to itself.") | |
412 | 415 | } | |
413 | 416 | ||
414 | 417 | ||
415 | - | @Verifier( | |
416 | - | func | |
417 | - | let | |
418 | - | let D = | |
418 | + | @Verifier(bq) | |
419 | + | func br () = { | |
420 | + | let bs = { | |
421 | + | let D = ay | |
419 | 422 | if ($isInstanceOf(D, "Address")) | |
420 | 423 | then { | |
421 | - | let | |
422 | - | valueOrElse(getBoolean( | |
424 | + | let bt = D | |
425 | + | valueOrElse(getBoolean(bt, aw(this, bq.id)), false) | |
423 | 426 | } | |
424 | 427 | else false | |
425 | 428 | } | |
426 | - | let | |
427 | - | let | |
429 | + | let bu = (bq.id == fromBase58String(valueOrElse(getString(this, y()), ""))) | |
430 | + | let bv = if ((size(C()) >= q)) | |
428 | 431 | then false | |
429 | - | else sigVerify( | |
430 | - | if (if ( | |
432 | + | else sigVerify(bq.bodyBytes, bq.proofs[0], bq.senderPublicKey) | |
433 | + | if (if (bs) | |
431 | 434 | then true | |
432 | - | else | |
435 | + | else bu) | |
433 | 436 | then true | |
434 | - | else | |
437 | + | else bv | |
435 | 438 | } | |
436 | 439 |
github/deemru/w8io/026f985 74.38 ms ◑