tx · AJitddCyvvx7w6fnSJrVnNy6sH4Gb78aCAYzGk828oZr 3NC9dyrMheMhHXcaeCXkuKqaTkLFa5Ahzd2: -0.01400000 Waves 2023.11.14 08:58 [2842617] smart account 3NC9dyrMheMhHXcaeCXkuKqaTkLFa5Ahzd2 > SELF 0.00000000 Waves
{ "type": 13, "id": "AJitddCyvvx7w6fnSJrVnNy6sH4Gb78aCAYzGk828oZr", "fee": 1400000, "feeAssetId": null, "timestamp": 1699941627897, "version": 2, "chainId": 84, "sender": "3NC9dyrMheMhHXcaeCXkuKqaTkLFa5Ahzd2", "senderPublicKey": "8fS13zFL61wF3maPyR7vTayhasoH9StToqd7wGuecHXN", "proofs": [ "3B5itCb15jkfi9xjb21vi9mikgmMSux654HBTtmyy1rpj7ABDAjKh6vXFfZMTXiSnSuK95KNbnfkkC4t6N1b5zcG" ], "script": "base64:BgJgCAISBAoCCAgSBAoCCAESBAoCCAQSBAoCCAISAwoBCBIFCgMCAQQSBAoCAgESBQoDAgECEgUKAwISERIECgICARIJCgcICAgIAQEYEggKBggICAECARIECgIIGBIDCgEIMwAJc2VwYXJhdG9yAgJfXwAHY2hhaW5JZAkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAIY2hhaW5JZFQBAVQACGNoYWluSWRXAQFXAQttdXN0QWRkcmVzcwIBaQdhZGRyZXNzAwkAAAIIBQFpBmNhbGxlcgUHYWRkcmVzcwYJAAIBAhFwZXJtaXNzaW9uIGRlbmllZAEIbXVzdFRoaXMBAWkJAQttdXN0QWRkcmVzcwIFAWkFBHRoaXMAA1NFUAICX18ABVdBVkVTAgVXQVZFUwAQY29udHJhY3RGaWxlbmFtZQISd3hkYW9fZmFjdG9yeS5yaWRlAQd3cmFwRXJyAQFzCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBCHRocm93RXJyAQFzCQACAQkBB3dyYXBFcnIBBQFzAQ9zdHJpbmdUb0Fzc2V0SWQBAXMDCQAAAgUBcwUF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MJbp2aQRru Diff:
Old | New | Differences | |
---|---|---|---|
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | - | func ah () = "%s__ | |
167 | + | func ah () = "%s__calculatorAddress" | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func ai () = "%s__lpAssetId" | |
199 | 199 | ||
200 | 200 | let aq = valueOrErrorMessage(ap, l("invalid calculator address")) | |
201 | 201 | ||
202 | - | func ar () = "%s__ | |
202 | + | func ar () = "%s__powerConfigAddress" | |
203 | 203 | ||
204 | 204 | ||
205 | - | func as () = "%s__ | |
205 | + | func as () = "%s__powerContractAddress" | |
206 | 206 | ||
207 | 207 | ||
208 | - | func at () = " | |
208 | + | func at () = "%s__assets" | |
209 | 209 | ||
210 | 210 | ||
211 | - | func au ( | |
211 | + | func au () = "contract_voting_result" | |
212 | 212 | ||
213 | 213 | ||
214 | - | let av = { | |
214 | + | func av (g,t) = ((("proposal_allow_broadcast_" + toString(g)) + "_") + toBase58String(t)) | |
215 | + | ||
216 | + | ||
217 | + | let aw = { | |
215 | 218 | let D = getString(this, ar()) | |
216 | 219 | if ($isInstanceOf(D, "String")) | |
217 | 220 | then { | |
223 | 226 | else throw("Match error") | |
224 | 227 | } | |
225 | 228 | ||
226 | - | let | |
227 | - | let D = | |
229 | + | let ax = { | |
230 | + | let D = aw | |
228 | 231 | if ($isInstanceOf(D, "Address")) | |
229 | 232 | then { | |
230 | 233 | let G = D | |
231 | - | let | |
232 | - | if ($isInstanceOf( | |
234 | + | let ay = getString(G, au()) | |
235 | + | if ($isInstanceOf(ay, "String")) | |
233 | 236 | then { | |
234 | - | let m = | |
237 | + | let m = ay | |
235 | 238 | addressFromString(m) | |
236 | 239 | } | |
237 | - | else if ($isInstanceOf( | |
240 | + | else if ($isInstanceOf(ay, "Unit")) | |
238 | 241 | then unit | |
239 | 242 | else throw("Match error") | |
240 | 243 | } | |
243 | 246 | else throw("Match error") | |
244 | 247 | } | |
245 | 248 | ||
246 | - | let | |
249 | + | let az = valueOrErrorMessage(ax, l("invalid voting result address")) | |
247 | 250 | ||
248 | - | let | |
251 | + | let aA = { | |
249 | 252 | let D = getString(this, ai()) | |
250 | 253 | if ($isInstanceOf(D, "String")) | |
251 | 254 | then { | |
257 | 260 | else throw("Match error") | |
258 | 261 | } | |
259 | 262 | ||
260 | - | let | |
263 | + | let aB = valueOrErrorMessage(aA, l("invalid lpAssetId")) | |
261 | 264 | ||
262 | - | func | |
265 | + | func aC (f,g) = if ((f.caller == g)) | |
263 | 266 | then true | |
264 | 267 | else n("permission denied") | |
265 | 268 | ||
266 | 269 | ||
267 | - | func | |
270 | + | func aD (f) = aC(f, this) | |
268 | 271 | ||
269 | 272 | ||
270 | - | func | |
273 | + | func aE (f) = aC(f, aq) | |
271 | 274 | ||
272 | 275 | ||
273 | 276 | @Callable(f) | |
274 | - | func stringEntry (Y, | |
275 | - | then $Tuple2([StringEntry(Y, | |
277 | + | func stringEntry (Y,aF) = if (aE(f)) | |
278 | + | then $Tuple2([StringEntry(Y, aF)], Y) | |
276 | 279 | else $Tuple2(nil, unit) | |
277 | 280 | ||
278 | 281 | ||
279 | 282 | ||
280 | 283 | @Callable(f) | |
281 | - | func integerEntry (Y, | |
282 | - | then $Tuple2([IntegerEntry(Y, | |
284 | + | func integerEntry (Y,aF) = if (aE(f)) | |
285 | + | then $Tuple2([IntegerEntry(Y, aF)], Y) | |
283 | 286 | else $Tuple2(nil, unit) | |
284 | 287 | ||
285 | 288 | ||
286 | 289 | ||
287 | 290 | @Callable(f) | |
288 | - | func booleanEntry (Y, | |
289 | - | then $Tuple2([BooleanEntry(Y, | |
291 | + | func booleanEntry (Y,aF) = if (aE(f)) | |
292 | + | then $Tuple2([BooleanEntry(Y, aF)], Y) | |
290 | 293 | else $Tuple2(nil, unit) | |
291 | 294 | ||
292 | 295 | ||
293 | 296 | ||
294 | 297 | @Callable(f) | |
295 | - | func binaryEntry (Y, | |
296 | - | then $Tuple2([BinaryEntry(Y, | |
298 | + | func binaryEntry (Y,aF) = if (aE(f)) | |
299 | + | then $Tuple2([BinaryEntry(Y, aF)], Y) | |
297 | 300 | else $Tuple2(nil, unit) | |
298 | 301 | ||
299 | 302 | ||
300 | 303 | ||
301 | 304 | @Callable(f) | |
302 | - | func deleteEntry (Y) = if ( | |
305 | + | func deleteEntry (Y) = if (aE(f)) | |
303 | 306 | then $Tuple2([DeleteEntry(Y)], Y) | |
304 | 307 | else $Tuple2(nil, unit) | |
305 | 308 | ||
306 | 309 | ||
307 | 310 | ||
308 | 311 | @Callable(f) | |
309 | - | func reissue ( | |
310 | - | then $Tuple2([Reissue( | |
312 | + | func reissue (aG,aH,aI) = if (aE(f)) | |
313 | + | then $Tuple2([Reissue(aG, aH, aI)], aH) | |
311 | 314 | else $Tuple2(nil, unit) | |
312 | 315 | ||
313 | 316 | ||
314 | 317 | ||
315 | 318 | @Callable(f) | |
316 | - | func burn ( | |
317 | - | then $Tuple2([Burn( | |
319 | + | func burn (aG,aH) = if (aE(f)) | |
320 | + | then $Tuple2([Burn(aG, aH)], aH) | |
318 | 321 | else $Tuple2(nil, unit) | |
319 | 322 | ||
320 | 323 | ||
321 | 324 | ||
322 | 325 | @Callable(f) | |
323 | - | func transferAsset ( | |
324 | - | then $Tuple2([ScriptTransfer(Address( | |
326 | + | func transferAsset (aJ,aH,aG) = if (aE(f)) | |
327 | + | then $Tuple2([ScriptTransfer(Address(aJ), aH, aG)], aH) | |
325 | 328 | else $Tuple2(nil, unit) | |
326 | 329 | ||
327 | 330 | ||
328 | 331 | ||
329 | 332 | @Callable(f) | |
330 | - | func transferAssets ( | |
333 | + | func transferAssets (aJ,aK,aL) = if (aE(f)) | |
331 | 334 | then { | |
332 | - | func | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | $Tuple2( | |
335 | + | func aM (aN,aO) = { | |
336 | + | let aP = aN | |
337 | + | let aQ = aP._1 | |
338 | + | let aR = aP._2 | |
339 | + | let aS = ScriptTransfer(Address(aJ), aL[aR], aK[aR]) | |
340 | + | let aT = (aQ :+ aS) | |
341 | + | $Tuple2(aT, (aR + 1)) | |
339 | 342 | } | |
340 | 343 | ||
341 | - | let | |
342 | - | let N = | |
344 | + | let aU = { | |
345 | + | let N = aK | |
343 | 346 | let O = size(N) | |
344 | 347 | let P = $Tuple2(nil, 0) | |
345 | 348 | func Q (R,S) = if ((S >= O)) | |
346 | 349 | then R | |
347 | - | else | |
350 | + | else aM(R, N[S]) | |
348 | 351 | ||
349 | 352 | func T (R,S) = if ((S >= O)) | |
350 | 353 | then R | |
352 | 355 | ||
353 | 356 | T(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(P, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
354 | 357 | } | |
355 | - | let | |
356 | - | let | |
357 | - | $Tuple2( | |
358 | + | let aV = aU._1 | |
359 | + | let aW = aU._2 | |
360 | + | $Tuple2(aV, unit) | |
358 | 361 | } | |
359 | 362 | else $Tuple2(nil, unit) | |
360 | 363 | ||
361 | 364 | ||
362 | 365 | ||
363 | 366 | @Callable(f) | |
364 | - | func transferWaves ( | |
365 | - | then $Tuple2([ScriptTransfer(Address( | |
367 | + | func transferWaves (aJ,aH) = if (aE(f)) | |
368 | + | then $Tuple2([ScriptTransfer(Address(aJ), aH, unit)], aH) | |
366 | 369 | else $Tuple2(nil, unit) | |
367 | 370 | ||
368 | 371 | ||
369 | 372 | ||
370 | 373 | @Callable(f) | |
371 | - | func commitAfterStartWithLockRoundFor (aV,aW,g,aX,aY,aZ) = $Tuple2(nil, invoke(addressFromStringValue(aV), "commitAfterStartWithLockRoundFor", [aW, g, aX], [AttachedPayment(aY, aZ)])) | |
372 | - | ||
373 | - | ||
374 | - | ||
375 | - | @Callable(f) | |
376 | - | func init (ba,bb,bc) = { | |
377 | - | let bd = h(f) | |
378 | - | if ((bd == bd)) | |
379 | - | then $Tuple2([StringEntry(ah(), ba), StringEntry(ar(), bb), StringEntry(as(), bc)], unit) | |
374 | + | func init (aX,aY,aZ,ba,bb,bc,bd) = { | |
375 | + | let be = h(f) | |
376 | + | if ((be == be)) | |
377 | + | then $Tuple2([StringEntry(ai(), aX), StringEntry(ah(), aY), StringEntry(ar(), aZ), StringEntry(as(), ba), IntegerEntry(am(), bb), IntegerEntry(ao(), bc), IntegerEntry(an(0), bc), IntegerEntry(aj(), 0), IntegerEntry(ak(0), height), StringEntry(at(), makeString(bd, i))], unit) | |
380 | 378 | else throw("Strict value is not equal to itself.") | |
381 | 379 | } | |
382 | 380 | ||
383 | 381 | ||
384 | 382 | ||
385 | 383 | @Callable(f) | |
386 | - | func call (be,bf) = { | |
387 | - | let I = reentrantInvoke(aq, be, [f.callerPublicKey, bf], f.payments) | |
384 | + | func commitAfterStartWithLockRoundFor (bf,bg,g,bh,bi,bj) = $Tuple2(nil, invoke(addressFromStringValue(bf), "commitAfterStartWithLockRoundFor", [bg, g, bh], [AttachedPayment(bi, bj)])) | |
385 | + | ||
386 | + | ||
387 | + | ||
388 | + | @Callable(f) | |
389 | + | func call (bk,bl) = { | |
390 | + | let I = reentrantInvoke(aq, bk, [f.callerPublicKey, bl], f.payments) | |
388 | 391 | $Tuple2(nil, I) | |
389 | 392 | } | |
390 | 393 | ||
395 | 398 | let ab = toBase58String(f.caller.bytes) | |
396 | 399 | let K = s(t) | |
397 | 400 | let I = [StringEntry(y(), t)] | |
398 | - | let | |
401 | + | let bm = getString(this, y()) | |
399 | 402 | let af = [if ((size(fromBase58String(t)) == r)) | |
400 | 403 | then true | |
401 | - | else n((t + " is not valid txId")), if (if (( | |
404 | + | else n((t + " is not valid txId")), if (if ((bm == unit)) | |
402 | 405 | then true | |
403 | - | else (value( | |
406 | + | else (value(bm) != t)) | |
404 | 407 | then true | |
405 | 408 | else n((t + " is already allowed"))] | |
406 | 409 | if ((af == af)) | |
409 | 412 | } | |
410 | 413 | ||
411 | 414 | ||
412 | - | @Verifier( | |
413 | - | func | |
414 | - | let | |
415 | - | let D = | |
415 | + | @Verifier(bn) | |
416 | + | func bo () = { | |
417 | + | let bp = { | |
418 | + | let D = ax | |
416 | 419 | if ($isInstanceOf(D, "Address")) | |
417 | 420 | then { | |
418 | - | let | |
419 | - | valueOrElse(getBoolean( | |
421 | + | let bq = D | |
422 | + | valueOrElse(getBoolean(bq, av(this, bn.id)), false) | |
420 | 423 | } | |
421 | 424 | else false | |
422 | 425 | } | |
423 | - | let | |
424 | - | let | |
426 | + | let br = (bn.id == fromBase58String(valueOrElse(getString(this, y()), ""))) | |
427 | + | let bs = if ((size(C()) >= q)) | |
425 | 428 | then false | |
426 | - | else sigVerify( | |
427 | - | if (if ( | |
429 | + | else sigVerify(bn.bodyBytes, bn.proofs[0], bn.senderPublicKey) | |
430 | + | if (if (bp) | |
428 | 431 | then true | |
429 | - | else | |
432 | + | else br) | |
430 | 433 | then true | |
431 | - | else | |
434 | + | else bs | |
432 | 435 | } | |
433 | 436 |
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 | - | func ah () = "%s__ | |
167 | + | func ah () = "%s__calculatorAddress" | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func ai () = "%s__lpAssetId" | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func aj () = makeString(["%s", "currentPeriod"], i) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func ak (al) = makeString(["%s%d", "startHeight", toString(al)], i) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func am () = makeString(["%s", "periodLength"], i) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func an (al) = makeString(["%s%d", "treasuryValue", toString(al)], i) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func ao () = makeString(["%s", "treasuryValue"], i) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | let ap = { | |
189 | 189 | let D = getString(this, ah()) | |
190 | 190 | if ($isInstanceOf(D, "String")) | |
191 | 191 | then { | |
192 | 192 | let m = D | |
193 | 193 | addressFromString(m) | |
194 | 194 | } | |
195 | 195 | else if ($isInstanceOf(D, "Unit")) | |
196 | 196 | then unit | |
197 | 197 | else throw("Match error") | |
198 | 198 | } | |
199 | 199 | ||
200 | 200 | let aq = valueOrErrorMessage(ap, l("invalid calculator address")) | |
201 | 201 | ||
202 | - | func ar () = "%s__ | |
202 | + | func ar () = "%s__powerConfigAddress" | |
203 | 203 | ||
204 | 204 | ||
205 | - | func as () = "%s__ | |
205 | + | func as () = "%s__powerContractAddress" | |
206 | 206 | ||
207 | 207 | ||
208 | - | func at () = " | |
208 | + | func at () = "%s__assets" | |
209 | 209 | ||
210 | 210 | ||
211 | - | func au ( | |
211 | + | func au () = "contract_voting_result" | |
212 | 212 | ||
213 | 213 | ||
214 | - | let av = { | |
214 | + | func av (g,t) = ((("proposal_allow_broadcast_" + toString(g)) + "_") + toBase58String(t)) | |
215 | + | ||
216 | + | ||
217 | + | let aw = { | |
215 | 218 | let D = getString(this, ar()) | |
216 | 219 | if ($isInstanceOf(D, "String")) | |
217 | 220 | then { | |
218 | 221 | let m = D | |
219 | 222 | addressFromString(m) | |
220 | 223 | } | |
221 | 224 | else if ($isInstanceOf(D, "Unit")) | |
222 | 225 | then unit | |
223 | 226 | else throw("Match error") | |
224 | 227 | } | |
225 | 228 | ||
226 | - | let | |
227 | - | let D = | |
229 | + | let ax = { | |
230 | + | let D = aw | |
228 | 231 | if ($isInstanceOf(D, "Address")) | |
229 | 232 | then { | |
230 | 233 | let G = D | |
231 | - | let | |
232 | - | if ($isInstanceOf( | |
234 | + | let ay = getString(G, au()) | |
235 | + | if ($isInstanceOf(ay, "String")) | |
233 | 236 | then { | |
234 | - | let m = | |
237 | + | let m = ay | |
235 | 238 | addressFromString(m) | |
236 | 239 | } | |
237 | - | else if ($isInstanceOf( | |
240 | + | else if ($isInstanceOf(ay, "Unit")) | |
238 | 241 | then unit | |
239 | 242 | else throw("Match error") | |
240 | 243 | } | |
241 | 244 | else if ($isInstanceOf(D, "Unit")) | |
242 | 245 | then unit | |
243 | 246 | else throw("Match error") | |
244 | 247 | } | |
245 | 248 | ||
246 | - | let | |
249 | + | let az = valueOrErrorMessage(ax, l("invalid voting result address")) | |
247 | 250 | ||
248 | - | let | |
251 | + | let aA = { | |
249 | 252 | let D = getString(this, ai()) | |
250 | 253 | if ($isInstanceOf(D, "String")) | |
251 | 254 | then { | |
252 | 255 | let m = D | |
253 | 256 | fromBase58String(m) | |
254 | 257 | } | |
255 | 258 | else if ($isInstanceOf(D, "Unit")) | |
256 | 259 | then unit | |
257 | 260 | else throw("Match error") | |
258 | 261 | } | |
259 | 262 | ||
260 | - | let | |
263 | + | let aB = valueOrErrorMessage(aA, l("invalid lpAssetId")) | |
261 | 264 | ||
262 | - | func | |
265 | + | func aC (f,g) = if ((f.caller == g)) | |
263 | 266 | then true | |
264 | 267 | else n("permission denied") | |
265 | 268 | ||
266 | 269 | ||
267 | - | func | |
270 | + | func aD (f) = aC(f, this) | |
268 | 271 | ||
269 | 272 | ||
270 | - | func | |
273 | + | func aE (f) = aC(f, aq) | |
271 | 274 | ||
272 | 275 | ||
273 | 276 | @Callable(f) | |
274 | - | func stringEntry (Y, | |
275 | - | then $Tuple2([StringEntry(Y, | |
277 | + | func stringEntry (Y,aF) = if (aE(f)) | |
278 | + | then $Tuple2([StringEntry(Y, aF)], Y) | |
276 | 279 | else $Tuple2(nil, unit) | |
277 | 280 | ||
278 | 281 | ||
279 | 282 | ||
280 | 283 | @Callable(f) | |
281 | - | func integerEntry (Y, | |
282 | - | then $Tuple2([IntegerEntry(Y, | |
284 | + | func integerEntry (Y,aF) = if (aE(f)) | |
285 | + | then $Tuple2([IntegerEntry(Y, aF)], Y) | |
283 | 286 | else $Tuple2(nil, unit) | |
284 | 287 | ||
285 | 288 | ||
286 | 289 | ||
287 | 290 | @Callable(f) | |
288 | - | func booleanEntry (Y, | |
289 | - | then $Tuple2([BooleanEntry(Y, | |
291 | + | func booleanEntry (Y,aF) = if (aE(f)) | |
292 | + | then $Tuple2([BooleanEntry(Y, aF)], Y) | |
290 | 293 | else $Tuple2(nil, unit) | |
291 | 294 | ||
292 | 295 | ||
293 | 296 | ||
294 | 297 | @Callable(f) | |
295 | - | func binaryEntry (Y, | |
296 | - | then $Tuple2([BinaryEntry(Y, | |
298 | + | func binaryEntry (Y,aF) = if (aE(f)) | |
299 | + | then $Tuple2([BinaryEntry(Y, aF)], Y) | |
297 | 300 | else $Tuple2(nil, unit) | |
298 | 301 | ||
299 | 302 | ||
300 | 303 | ||
301 | 304 | @Callable(f) | |
302 | - | func deleteEntry (Y) = if ( | |
305 | + | func deleteEntry (Y) = if (aE(f)) | |
303 | 306 | then $Tuple2([DeleteEntry(Y)], Y) | |
304 | 307 | else $Tuple2(nil, unit) | |
305 | 308 | ||
306 | 309 | ||
307 | 310 | ||
308 | 311 | @Callable(f) | |
309 | - | func reissue ( | |
310 | - | then $Tuple2([Reissue( | |
312 | + | func reissue (aG,aH,aI) = if (aE(f)) | |
313 | + | then $Tuple2([Reissue(aG, aH, aI)], aH) | |
311 | 314 | else $Tuple2(nil, unit) | |
312 | 315 | ||
313 | 316 | ||
314 | 317 | ||
315 | 318 | @Callable(f) | |
316 | - | func burn ( | |
317 | - | then $Tuple2([Burn( | |
319 | + | func burn (aG,aH) = if (aE(f)) | |
320 | + | then $Tuple2([Burn(aG, aH)], aH) | |
318 | 321 | else $Tuple2(nil, unit) | |
319 | 322 | ||
320 | 323 | ||
321 | 324 | ||
322 | 325 | @Callable(f) | |
323 | - | func transferAsset ( | |
324 | - | then $Tuple2([ScriptTransfer(Address( | |
326 | + | func transferAsset (aJ,aH,aG) = if (aE(f)) | |
327 | + | then $Tuple2([ScriptTransfer(Address(aJ), aH, aG)], aH) | |
325 | 328 | else $Tuple2(nil, unit) | |
326 | 329 | ||
327 | 330 | ||
328 | 331 | ||
329 | 332 | @Callable(f) | |
330 | - | func transferAssets ( | |
333 | + | func transferAssets (aJ,aK,aL) = if (aE(f)) | |
331 | 334 | then { | |
332 | - | func | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | $Tuple2( | |
335 | + | func aM (aN,aO) = { | |
336 | + | let aP = aN | |
337 | + | let aQ = aP._1 | |
338 | + | let aR = aP._2 | |
339 | + | let aS = ScriptTransfer(Address(aJ), aL[aR], aK[aR]) | |
340 | + | let aT = (aQ :+ aS) | |
341 | + | $Tuple2(aT, (aR + 1)) | |
339 | 342 | } | |
340 | 343 | ||
341 | - | let | |
342 | - | let N = | |
344 | + | let aU = { | |
345 | + | let N = aK | |
343 | 346 | let O = size(N) | |
344 | 347 | let P = $Tuple2(nil, 0) | |
345 | 348 | func Q (R,S) = if ((S >= O)) | |
346 | 349 | then R | |
347 | - | else | |
350 | + | else aM(R, N[S]) | |
348 | 351 | ||
349 | 352 | func T (R,S) = if ((S >= O)) | |
350 | 353 | then R | |
351 | 354 | else throw("List size exceeds 10") | |
352 | 355 | ||
353 | 356 | T(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(P, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
354 | 357 | } | |
355 | - | let | |
356 | - | let | |
357 | - | $Tuple2( | |
358 | + | let aV = aU._1 | |
359 | + | let aW = aU._2 | |
360 | + | $Tuple2(aV, unit) | |
358 | 361 | } | |
359 | 362 | else $Tuple2(nil, unit) | |
360 | 363 | ||
361 | 364 | ||
362 | 365 | ||
363 | 366 | @Callable(f) | |
364 | - | func transferWaves ( | |
365 | - | then $Tuple2([ScriptTransfer(Address( | |
367 | + | func transferWaves (aJ,aH) = if (aE(f)) | |
368 | + | then $Tuple2([ScriptTransfer(Address(aJ), aH, unit)], aH) | |
366 | 369 | else $Tuple2(nil, unit) | |
367 | 370 | ||
368 | 371 | ||
369 | 372 | ||
370 | 373 | @Callable(f) | |
371 | - | func commitAfterStartWithLockRoundFor (aV,aW,g,aX,aY,aZ) = $Tuple2(nil, invoke(addressFromStringValue(aV), "commitAfterStartWithLockRoundFor", [aW, g, aX], [AttachedPayment(aY, aZ)])) | |
372 | - | ||
373 | - | ||
374 | - | ||
375 | - | @Callable(f) | |
376 | - | func init (ba,bb,bc) = { | |
377 | - | let bd = h(f) | |
378 | - | if ((bd == bd)) | |
379 | - | then $Tuple2([StringEntry(ah(), ba), StringEntry(ar(), bb), StringEntry(as(), bc)], unit) | |
374 | + | func init (aX,aY,aZ,ba,bb,bc,bd) = { | |
375 | + | let be = h(f) | |
376 | + | if ((be == be)) | |
377 | + | then $Tuple2([StringEntry(ai(), aX), StringEntry(ah(), aY), StringEntry(ar(), aZ), StringEntry(as(), ba), IntegerEntry(am(), bb), IntegerEntry(ao(), bc), IntegerEntry(an(0), bc), IntegerEntry(aj(), 0), IntegerEntry(ak(0), height), StringEntry(at(), makeString(bd, i))], unit) | |
380 | 378 | else throw("Strict value is not equal to itself.") | |
381 | 379 | } | |
382 | 380 | ||
383 | 381 | ||
384 | 382 | ||
385 | 383 | @Callable(f) | |
386 | - | func call (be,bf) = { | |
387 | - | let I = reentrantInvoke(aq, be, [f.callerPublicKey, bf], f.payments) | |
384 | + | func commitAfterStartWithLockRoundFor (bf,bg,g,bh,bi,bj) = $Tuple2(nil, invoke(addressFromStringValue(bf), "commitAfterStartWithLockRoundFor", [bg, g, bh], [AttachedPayment(bi, bj)])) | |
385 | + | ||
386 | + | ||
387 | + | ||
388 | + | @Callable(f) | |
389 | + | func call (bk,bl) = { | |
390 | + | let I = reentrantInvoke(aq, bk, [f.callerPublicKey, bl], f.payments) | |
388 | 391 | $Tuple2(nil, I) | |
389 | 392 | } | |
390 | 393 | ||
391 | 394 | ||
392 | 395 | ||
393 | 396 | @Callable(f) | |
394 | 397 | func voteForTxId (t) = { | |
395 | 398 | let ab = toBase58String(f.caller.bytes) | |
396 | 399 | let K = s(t) | |
397 | 400 | let I = [StringEntry(y(), t)] | |
398 | - | let | |
401 | + | let bm = getString(this, y()) | |
399 | 402 | let af = [if ((size(fromBase58String(t)) == r)) | |
400 | 403 | then true | |
401 | - | else n((t + " is not valid txId")), if (if (( | |
404 | + | else n((t + " is not valid txId")), if (if ((bm == unit)) | |
402 | 405 | then true | |
403 | - | else (value( | |
406 | + | else (value(bm) != t)) | |
404 | 407 | then true | |
405 | 408 | else n((t + " is already allowed"))] | |
406 | 409 | if ((af == af)) | |
407 | 410 | then aa(ab, K, q, I) | |
408 | 411 | else throw("Strict value is not equal to itself.") | |
409 | 412 | } | |
410 | 413 | ||
411 | 414 | ||
412 | - | @Verifier( | |
413 | - | func | |
414 | - | let | |
415 | - | let D = | |
415 | + | @Verifier(bn) | |
416 | + | func bo () = { | |
417 | + | let bp = { | |
418 | + | let D = ax | |
416 | 419 | if ($isInstanceOf(D, "Address")) | |
417 | 420 | then { | |
418 | - | let | |
419 | - | valueOrElse(getBoolean( | |
421 | + | let bq = D | |
422 | + | valueOrElse(getBoolean(bq, av(this, bn.id)), false) | |
420 | 423 | } | |
421 | 424 | else false | |
422 | 425 | } | |
423 | - | let | |
424 | - | let | |
426 | + | let br = (bn.id == fromBase58String(valueOrElse(getString(this, y()), ""))) | |
427 | + | let bs = if ((size(C()) >= q)) | |
425 | 428 | then false | |
426 | - | else sigVerify( | |
427 | - | if (if ( | |
429 | + | else sigVerify(bn.bodyBytes, bn.proofs[0], bn.senderPublicKey) | |
430 | + | if (if (bp) | |
428 | 431 | then true | |
429 | - | else | |
432 | + | else br) | |
430 | 433 | then true | |
431 | - | else | |
434 | + | else bs | |
432 | 435 | } | |
433 | 436 |
github/deemru/w8io/026f985 69.67 ms ◑