tx · 32rWApqw4nfbKJoFxdMFrUFXtGB8yYeLgj8qWy66mrff 3Mu5kJR7ECoKqV4RjdtjBkeKaQoTgR1WBZc: -0.01800000 Waves 2022.11.25 17:46 [2332761] smart account 3Mu5kJR7ECoKqV4RjdtjBkeKaQoTgR1WBZc > SELF 0.00000000 Waves
{ "type": 13, "id": "32rWApqw4nfbKJoFxdMFrUFXtGB8yYeLgj8qWy66mrff", "fee": 1800000, "feeAssetId": null, "timestamp": 1669387549434, "version": 2, "chainId": 84, "sender": "3Mu5kJR7ECoKqV4RjdtjBkeKaQoTgR1WBZc", "senderPublicKey": "242mibE5dTci8wD6vghuCGxjDZdnNJr88H7gcWWehpEX", "proofs": [ "5Lff5og8D5kEf9wamXEFUfnwA9UtvZmmZ4GGi5Zdpjt9hGxxmJZQwr4XYwc6o6E5waL8oYaopC1tPtW8ubaUjpLz" ], "script": "base64:BgIvCAISBwoFCAEBAQESBAoCAQESBwoFCAgBARgSBwoFCAgBARgSAwoBARIDCgEBEgBXAAtyZXZpc2lvbk51bQIAAANTRVACAl9fAAdMSVNUU0VQAgE6AA1ERUZBVUxUUVVPUlVNAKDCHgAKVVJMUEFUVEVSTgIaaHR0cHM6Ly9mb3J1bS5uZXV0cmluby5hdC8ACE1BWFRJVExFAKABAAZNQVhVUkwA+gEADU1BWFZPVElOR1RJTUUAgJDkwAQABU1VTFQ2AMCEPQAOREVGQVVMVFBBWU1FTlQAgJTr3AMAFERFRkFVTFRDUkVBVElPTkdOU0JUAICU69wDAApQQVNUTUFSR0lOAIC6twMADEZVVFVSRU1BUkdJTgDAy8kCABJnb3ZJZHhQcm9wb3NhbFR4SWQAAQAKZ292SWR4VHlwZQACAAxnb3ZJZHhBdXRob3IAAwAJZ292SWR4VXJsAAQAC2dvdklkeFRpdGxlAAUAEmdvdklkeENyZWF0aW9uVGltZQAGAAtnb3ZJZHhTdGFydAAHAAlnb3ZJZHhFbmQACAALZ292SWR4VHhJZHMACQAMZ292SWR4UXVvcnVtAAoAD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UCJGkFAiRzBQIkYQkBB2NoZWNrZXICBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECFExpc3Qgc2l6ZSBleGNlZWRzIDIwCQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAQHdmVyc2lvbgkAZAIJAQxnZXRJbnRPckVsc2UCCQEUa2V5TGFzdFVwZGF0ZVZlcnNpb24AAAAAAQkAlAoCCQDMCAIJAQtEZWxldGVFbnRyeQEJARJrZXlBcHBseUluUHJvZ3Jlc3MACQDMCAIJAQxJbnRlZ2VyRW50cnkCCQEUa2V5TGFzdFVwZGF0ZVZlcnNpb24ABQd2ZXJzaW9uCQDMCAIJAQtTdHJpbmdFbnRyeQIJARlrZXlQcm9wb3NhbFN0YXR1c0RhdGFCeUlkAQUKcHJvcG9zYWxJZAkBEXN0YXR1c0FwcGx5U2NyaXB0AQULZHluYW1pY0RhdGEJAMwIAgkBEEV4ZWN1dGlvbkhpc3RvcnkEBQd2ZXJzaW9uCQCRAwIFCHByb3BEYXRhBQtnb3ZJZHhUaXRsZQkAkQMCBQhwcm9wRGF0YQUJZ292SWR4VXJsBQpwcm9wb3NhbElkBQNuaWwFB2lnbm9yZWQAAIfGLw==", "height": 2332761, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7yi5kjcnMygdpLjk43ua7TnSBwiqNdAfrXZqrffrb2ZY Next: GxL9CvM9LxmCNdf1RrDZFwMfLEhe8SWsSvSPpLvvbZ78 Diff:
Old | New | Differences | |
---|---|---|---|
346 | 346 | func ch (cd) = makeString(["%b%d%d%d%b%d%b", cd[y], cd[z], cd[A], cd[B], "true", cd[D], cd[E]], b) | |
347 | 347 | ||
348 | 348 | ||
349 | - | func ci ( | |
349 | + | func ci (cj,aZ,bD,ao) = { | |
350 | 350 | let bL = bu("")[bs] | |
351 | - | let | |
352 | - | StringEntry(aF(lastBlock.timestamp), makeString(["%d%d%d%s%s", toString( | |
351 | + | let ck = 500000 | |
352 | + | StringEntry(aF(lastBlock.timestamp), makeString(["%d%d%d%s%s%d", toString(cj), toString(bL), toString(ck), aZ, bD, toString(ao)], b)) | |
353 | 353 | } | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | @Callable(aM) | |
357 | - | func constructor ( | |
357 | + | func constructor (cl,cm,cn,co,cp) = if ((aM.caller != this)) | |
358 | 358 | then throw("Permission denied") | |
359 | - | else [StringEntry(X(), | |
359 | + | else [StringEntry(X(), cl), IntegerEntry(ak(), cm), IntegerEntry(aj(), cn), IntegerEntry(ah("IDEA"), co), IntegerEntry(ah("UPDATE"), cp)] | |
360 | 360 | ||
361 | 361 | ||
362 | 362 | ||
363 | 363 | @Callable(aM) | |
364 | - | func castVote (ao, | |
365 | - | let | |
366 | - | let | |
367 | - | if (( | |
364 | + | func castVote (ao,cq) = { | |
365 | + | let cr = toString(aM.caller) | |
366 | + | let cs = split(F(this, an(ao)), b) | |
367 | + | if ((cs[E] == "true")) | |
368 | 368 | then throw("Voting is canceled by team") | |
369 | 369 | else { | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | if (( | |
370 | + | let ct = split(F(this, ap(ao)), b) | |
371 | + | let cu = parseIntValue(ct[t]) | |
372 | + | let cv = parseIntValue(ct[u]) | |
373 | + | let cw = lastBlock.timestamp | |
374 | + | if ((cu > cw)) | |
375 | 375 | then throw("Voting not started yet") | |
376 | - | else if (( | |
376 | + | else if ((cw >= cv)) | |
377 | 377 | then throw("Voting already finished") | |
378 | 378 | else { | |
379 | - | let | |
380 | - | let | |
381 | - | if ((1 >= | |
379 | + | let cx = split(ct[x], c) | |
380 | + | let cy = size(cx) | |
381 | + | if ((1 >= cy)) | |
382 | 382 | then throw("Too few choices to vote") | |
383 | - | else if (( | |
384 | - | then throw(("Unknown choice! Must be 0.." + toString(( | |
383 | + | else if ((cq >= cy)) | |
384 | + | then throw(("Unknown choice! Must be 0.." + toString((cy - 1)))) | |
385 | 385 | else { | |
386 | - | let bK = bu( | |
387 | - | let | |
388 | - | if ((0 >= | |
386 | + | let bK = bu(cr) | |
387 | + | let cz = bK[bt] | |
388 | + | if ((0 >= cz)) | |
389 | 389 | then throw("no gnsbt to vote") | |
390 | 390 | else { | |
391 | 391 | let bL = bK[bs] | |
392 | - | let bV = getInteger(au(ao, | |
393 | - | let | |
392 | + | let bV = getInteger(au(ao, cr)) | |
393 | + | let cA = if (!(isDefined(bV))) | |
394 | 394 | then 0 | |
395 | - | else I(as(ao, | |
396 | - | let | |
395 | + | else I(as(ao, cr), 0) | |
396 | + | let cB = if (isDefined(bV)) | |
397 | 397 | then I(aq(ao, value(bV)), 0) | |
398 | 398 | else 0 | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
399 | + | let cC = I(aq(ao, cq), 0) | |
400 | + | let cD = parseIntValue(cs[B]) | |
401 | + | let cE = if (!(isDefined(bV))) | |
402 | 402 | then 0 | |
403 | - | else (( | |
404 | - | then | |
403 | + | else ((cB - cA) + (if ((value(bV) == cq)) | |
404 | + | then cz | |
405 | 405 | else 0)) | |
406 | 406 | let bY = if (if (isDefined(bV)) | |
407 | - | then (value(bV) == | |
407 | + | then (value(bV) == cq) | |
408 | 408 | else false) | |
409 | - | then | |
410 | - | else ( | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
409 | + | then cE | |
410 | + | else (cC + cz) | |
411 | + | let cF = ((cD - cA) + cz) | |
412 | + | let cG = (cF >= parseIntValue(ct[w])) | |
413 | + | let cH = I(az(ao), 0) | |
414 | + | let cI = I(aA(), 0) | |
415 | + | let cJ = getIntegerValue(al()) | |
416 | + | let cK = if ((cA == 0)) | |
417 | 417 | then 1 | |
418 | 418 | else 0 | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
419 | + | let cL = (cI + fraction(cK, i, cJ)) | |
420 | + | let cM = I(aB(), 0) | |
421 | + | let cN = (cM + ((cz - cA) / cJ)) | |
422 | 422 | let bU = if (!(isDefined(bV))) | |
423 | 423 | then true | |
424 | - | else (value(bV) == | |
424 | + | else (value(bV) == cq) | |
425 | 425 | let bW = if (bU) | |
426 | 426 | then nil | |
427 | - | else [IntegerEntry(aq(ao, value(bV)), | |
428 | - | let | |
429 | - | let | |
430 | - | $Tuple2(([IntegerEntry(au(ao, | |
427 | + | else [IntegerEntry(aq(ao, value(bV)), cE)] | |
428 | + | let cO = bT(ao, cx, bU, bV, cE, cq, bY) | |
429 | + | let cP = max([cv, I(ay(cr), 0)]) | |
430 | + | $Tuple2(([IntegerEntry(au(ao, cr), cq), IntegerEntry(as(ao, cr), cz), IntegerEntry(aq(ao, cq), bY), IntegerEntry(az(ao), (cH + cK)), IntegerEntry(ay(cr), cP), IntegerEntry(aA(), cL), IntegerEntry(aB(), cN), StringEntry(an(ao), cc(cs, cG, cO, cF))] ++ bW), unit) | |
431 | 431 | } | |
432 | 432 | } | |
433 | 433 | } | |
464 | 464 | func cancelVoting (ao) = if ((aM.caller != this)) | |
465 | 465 | then throw("not authorized") | |
466 | 466 | else { | |
467 | - | let | |
468 | - | let | |
469 | - | $Tuple2([StringEntry(an(ao), | |
467 | + | let cQ = F(this, an(ao)) | |
468 | + | let cR = ((take(cQ, value(lastIndexOf(cQ, b))) + b) + "true") | |
469 | + | $Tuple2([StringEntry(an(ao), cR)], unit) | |
470 | 470 | } | |
471 | 471 | ||
472 | 472 | ||
473 | 473 | ||
474 | 474 | @Callable(aM) | |
475 | 475 | func applyUpdate (ao) = { | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | if (( | |
476 | + | let ct = split(F(this, ap(ao)), b) | |
477 | + | let cv = parseIntValue(ct[u]) | |
478 | + | let cw = lastBlock.timestamp | |
479 | + | if ((cv > cw)) | |
480 | 480 | then throw("Voting is not finished yet") | |
481 | - | else if (("UPDATE" != | |
481 | + | else if (("UPDATE" != ct[o])) | |
482 | 482 | then throw("Only UPDATE type can be applied") | |
483 | 483 | else { | |
484 | - | let | |
485 | - | if (( | |
484 | + | let cs = split(F(this, an(ao)), b) | |
485 | + | if ((cs[E] == "true")) | |
486 | 486 | then throw("Voting is canceled") | |
487 | - | else if (( | |
487 | + | else if ((cs[y] != "true")) | |
488 | 488 | then throw("Voting status invalid") | |
489 | - | else if (( | |
489 | + | else if ((cs[z] != "1")) | |
490 | 490 | then throw("Winner is 'NO' - nothing to apply") | |
491 | - | else if (( | |
491 | + | else if ((cs[C] == "true")) | |
492 | 492 | then throw("Scripts are already applied") | |
493 | 493 | else { | |
494 | - | let | |
495 | - | if ((( | |
496 | - | then throw((("Scripts timestamp=" + toString( | |
497 | - | else if (( | |
498 | - | then throw((("Scripts timestamp=" + toString( | |
494 | + | let cS = parseIntValue(cs[D]) | |
495 | + | if (((cw - l) > cS)) | |
496 | + | then throw((("Scripts timestamp=" + toString(cS)) + " is too far in the past, max 2 hrs allowed")) | |
497 | + | else if ((cS > (cw + m))) | |
498 | + | then throw((("Scripts timestamp=" + toString(cS)) + " is too far in the future, max 1.5 hrs allowed")) | |
499 | 499 | else { | |
500 | - | let | |
501 | - | if (( | |
502 | - | then throw((("proposalId=" + toString( | |
500 | + | let cT = I(av(), -1) | |
501 | + | if ((cT != -1)) | |
502 | + | then throw((("proposalId=" + toString(cT)) + " is already being applied. Finish it first!")) | |
503 | 503 | else { | |
504 | - | let | |
505 | - | if (( | |
504 | + | let cU = invoke(ae, "callEmergencyShutdown", ["Applying Governance UPDATE"], nil) | |
505 | + | if ((cU == cU)) | |
506 | 506 | then $Tuple2([IntegerEntry(av(), ao)], unit) | |
507 | 507 | else throw("Strict value is not equal to itself.") | |
508 | 508 | } | |
516 | 516 | @Callable(aM) | |
517 | 517 | func finishApply () = { | |
518 | 518 | let ao = valueOrErrorMessage(getInteger(av()), "No apply in progress, nothing to finish") | |
519 | - | let | |
520 | - | let bh = split( | |
521 | - | let | |
522 | - | if (( | |
519 | + | let ct = split(F(this, ap(ao)), b) | |
520 | + | let bh = split(ct[v], c) | |
521 | + | let cs = split(F(this, an(ao)), b) | |
522 | + | if ((cs[C] == "true")) | |
523 | 523 | then throw("Scripts are already applied") | |
524 | 524 | else { | |
525 | - | func | |
525 | + | func cV (bj,bk) = if (!(isDefined(transactionHeightById(fromBase58String(bk))))) | |
526 | 526 | then throw(("NOT applied txId: " + bk)) | |
527 | 527 | else unit | |
528 | 528 | ||
529 | - | let | |
529 | + | let cW = { | |
530 | 530 | let bl = bh | |
531 | 531 | let bm = size(bl) | |
532 | 532 | let bn = unit | |
533 | 533 | func bo (bp,bq) = if ((bq >= bm)) | |
534 | 534 | then bp | |
535 | - | else | |
535 | + | else cV(bp, bl[bq]) | |
536 | 536 | ||
537 | 537 | func br (bp,bq) = if ((bq >= bm)) | |
538 | 538 | then bp | |
540 | 540 | ||
541 | 541 | br(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bn, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
542 | 542 | } | |
543 | - | let | |
544 | - | $Tuple2([DeleteEntry(av()), IntegerEntry(am(), | |
543 | + | let cX = (I(am(), 0) + 1) | |
544 | + | $Tuple2([DeleteEntry(av()), IntegerEntry(am(), cX), StringEntry(an(ao), ch(cs)), ci(cX, ct[r], ct[q], ao)], cW) | |
545 | 545 | } | |
546 | 546 | } | |
547 | 547 |
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 = "__" | |
7 | 7 | ||
8 | 8 | let c = ":" | |
9 | 9 | ||
10 | 10 | let d = 500000 | |
11 | 11 | ||
12 | 12 | let e = "https://forum.neutrino.at/" | |
13 | 13 | ||
14 | 14 | let f = 160 | |
15 | 15 | ||
16 | 16 | let g = 250 | |
17 | 17 | ||
18 | 18 | let h = 1209600000 | |
19 | 19 | ||
20 | 20 | let i = 1000000 | |
21 | 21 | ||
22 | 22 | let j = 1000000000 | |
23 | 23 | ||
24 | 24 | let k = 1000000000 | |
25 | 25 | ||
26 | 26 | let l = 7200000 | |
27 | 27 | ||
28 | 28 | let m = 5400000 | |
29 | 29 | ||
30 | 30 | let n = 1 | |
31 | 31 | ||
32 | 32 | let o = 2 | |
33 | 33 | ||
34 | 34 | let p = 3 | |
35 | 35 | ||
36 | 36 | let q = 4 | |
37 | 37 | ||
38 | 38 | let r = 5 | |
39 | 39 | ||
40 | 40 | let s = 6 | |
41 | 41 | ||
42 | 42 | let t = 7 | |
43 | 43 | ||
44 | 44 | let u = 8 | |
45 | 45 | ||
46 | 46 | let v = 9 | |
47 | 47 | ||
48 | 48 | let w = 10 | |
49 | 49 | ||
50 | 50 | let x = 11 | |
51 | 51 | ||
52 | 52 | let y = 1 | |
53 | 53 | ||
54 | 54 | let z = 2 | |
55 | 55 | ||
56 | 56 | let A = 3 | |
57 | 57 | ||
58 | 58 | let B = 4 | |
59 | 59 | ||
60 | 60 | let C = 5 | |
61 | 61 | ||
62 | 62 | let D = 6 | |
63 | 63 | ||
64 | 64 | let E = 7 | |
65 | 65 | ||
66 | 66 | func F (G,H) = valueOrErrorMessage(getString(G, H), makeString(["mandatory ", toString(G), ".", H, " is not defined"], "")) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func I (H,J) = valueOrElse(getInteger(this, H), J) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | let K = 1 | |
73 | 73 | ||
74 | 74 | let L = 2 | |
75 | 75 | ||
76 | 76 | let M = 3 | |
77 | 77 | ||
78 | 78 | let N = 4 | |
79 | 79 | ||
80 | 80 | let O = 5 | |
81 | 81 | ||
82 | 82 | let P = 6 | |
83 | 83 | ||
84 | 84 | let Q = 7 | |
85 | 85 | ||
86 | 86 | let R = 8 | |
87 | 87 | ||
88 | 88 | let S = 9 | |
89 | 89 | ||
90 | 90 | let T = 10 | |
91 | 91 | ||
92 | 92 | let U = 11 | |
93 | 93 | ||
94 | 94 | let V = 12 | |
95 | 95 | ||
96 | 96 | let W = 13 | |
97 | 97 | ||
98 | 98 | func X () = "%s%s__config__controlAddress" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func Y () = "%s__controlConfig" | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func Z (aa) = split_4C(F(aa, Y()), b) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func ab (ac,ad) = valueOrErrorMessage(addressFromString(ac[ad]), ("Control cfg doesn't contain address at index " + toString(ad))) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | let ae = addressFromStringValue(valueOrElse(getString(this, X()), "3P5Bfd58PPfNvBM2Hy8QfbcDqMeNtzg7KfP")) | |
111 | 111 | ||
112 | 112 | let ac = Z(ae) | |
113 | 113 | ||
114 | 114 | let af = ab(ac, K) | |
115 | 115 | ||
116 | 116 | let ag = ab(ac, U) | |
117 | 117 | ||
118 | 118 | func ah (ai) = ("%s%s__quorumRequired__" + ai) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func aj () = "%s__paymentRequired" | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func ak () = "%s__gNsbtRequired" | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func al () = "%s__proposalId" | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func am () = "%s__updateVersion" | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func an (ao) = ("%s%d__proposalStatusData__" + toString(ao)) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func ap (ao) = ("%s%d__proposalData__" + toString(ao)) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func aq (ao,ar) = makeString(["%s%d%d", "votesByOpt", toString(ao), toString(ar)], b) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func as (ao,at) = makeString(["%s%d%s", "votesByUser", toString(ao), at], b) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func au (ao,at) = makeString(["%s%d%s", "optionByUser", toString(ao), at], b) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func av () = "%s__applyInProgress" | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func aw (ax) = ("%s%d__proposalIdByTopicId__" + toString(ax)) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ay (at) = ("%s%s_userGnsbtReleaseTime__" + at) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func az (ao) = ("%s%d__numVoters__" + toString(ao)) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func aA () = "%s%s%s__stats__avg__uniqueVoters" | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func aB () = "%s%s%s__stats__avg__gnsbtVoted" | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func aC () = "%s%s__stats__uniqueAuthors" | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func aD (aE) = ("%s%s__numProposalsByAuthor__" + aE) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func aF (aG) = ("%s%d__applyHistory__" + toString(aG)) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func aH (aI) = { | |
176 | 176 | let aJ = aI | |
177 | 177 | if ($isInstanceOf(aJ, "List[Any]")) | |
178 | 178 | then { | |
179 | 179 | let aK = aJ | |
180 | 180 | aK | |
181 | 181 | } | |
182 | 182 | else throw("fail to cast into List[Any]") | |
183 | 183 | } | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func aL (aI) = { | |
187 | 187 | let aJ = aI | |
188 | 188 | if ($isInstanceOf(aJ, "Int")) | |
189 | 189 | then { | |
190 | 190 | let aM = aJ | |
191 | 191 | aM | |
192 | 192 | } | |
193 | 193 | else throw("fail to cast into Int") | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func aN (aO,aP,aQ,aR,aS,aT,aU) = makeString(["%b%d%d%d%b%d%b", toString(aO), toString(aP), toString(aQ), toString(aR), toString(aS), toString(aT), toString(aU)], b) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func aV (aW,ai,aX,aY,aZ,ba,bb,bc,bd,be,bf) = makeString(["%s%s%s%s%s%d%d%d%s%d%s", aW, ai, aX, aY, aZ, toString(ba), toString(bb), toString(bc), bd, toString(be), bf], b) | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func bg (bh) = if ((size(bh) > 20)) | |
204 | 204 | then throw(("Too many transactions: " + toString(size(bh)))) | |
205 | 205 | else { | |
206 | 206 | func bi (bj,bk) = if ((size(fromBase58String(bk)) != 32)) | |
207 | 207 | then throw(("Wrong txId: " + bk)) | |
208 | 208 | else if ((bj == "")) | |
209 | 209 | then bk | |
210 | 210 | else ((bj + c) + bk) | |
211 | 211 | ||
212 | 212 | let bl = bh | |
213 | 213 | let bm = size(bl) | |
214 | 214 | let bn = "" | |
215 | 215 | func bo (bp,bq) = if ((bq >= bm)) | |
216 | 216 | then bp | |
217 | 217 | else bi(bp, bl[bq]) | |
218 | 218 | ||
219 | 219 | func br (bp,bq) = if ((bq >= bm)) | |
220 | 220 | then bp | |
221 | 221 | else throw("List size exceeds 20") | |
222 | 222 | ||
223 | 223 | br(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bn, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
224 | 224 | } | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | let bs = 0 | |
228 | 228 | ||
229 | 229 | let bt = 1 | |
230 | 230 | ||
231 | 231 | func bu (bv) = { | |
232 | 232 | let bw = aH(invoke(ag, "gnsbtInfoSYSREADONLY", [bv, 0, 0], nil)) | |
233 | 233 | let bx = aH(bw[2]) | |
234 | 234 | let by = aL(bx[2]) | |
235 | 235 | let bz = aL(bx[3]) | |
236 | 236 | let bA = aL(bw[9]) | |
237 | 237 | let bB = aL(bw[6]) | |
238 | 238 | [(bz + bB), (by + bA)] | |
239 | 239 | } | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func bC (bD) = if ((value(indexOf(bD, e)) != 0)) | |
243 | 243 | then throw("Invalid url") | |
244 | 244 | else if ((size(bD) > g)) | |
245 | 245 | then throw("Url too long!") | |
246 | 246 | else { | |
247 | 247 | let ax = valueOrErrorMessage(parseInt(drop(bD, (value(lastIndexOf(bD, "/")) + 1))), "Wrong topicId") | |
248 | 248 | let bE = getInteger(aw(ax)) | |
249 | 249 | if (isDefined(bE)) | |
250 | 250 | then throw(("Voting with such forum link is already registered by id=" + toString(value(bE)))) | |
251 | 251 | else ax | |
252 | 252 | } | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func bF (bG,aW,ai,aX,aY,aZ,bb,bc,bH,bh,bI) = if ((bG.assetId != unit)) | |
256 | 256 | then throw("Allowed WAVES payment only!") | |
257 | 257 | else { | |
258 | 258 | let bJ = I(aj(), j) | |
259 | 259 | if ((bJ > bG.amount)) | |
260 | 260 | then throw(("Payment attached should be at least " + toString(bJ))) | |
261 | 261 | else { | |
262 | 262 | let ax = bC(aY) | |
263 | 263 | if ((aZ == "")) | |
264 | 264 | then throw("Title is empty") | |
265 | 265 | else if ((size(aZ) > f)) | |
266 | 266 | then throw("Too long title") | |
267 | 267 | else { | |
268 | 268 | let ba = lastBlock.timestamp | |
269 | 269 | if ((ba > bb)) | |
270 | 270 | then throw(((("votingStartTime=" + toString(bb)) + " < proposalTime=") + toString(ba))) | |
271 | 271 | else if ((bb > bc)) | |
272 | 272 | then throw(((("votingEndTime=" + toString(bc)) + " < votingStartTime=") + toString(bb))) | |
273 | 273 | else if (((bc - bb) > h)) | |
274 | 274 | then throw(((("Voting period exceeds max: " + toString((bc - bb))) + " > ") + toString(h))) | |
275 | 275 | else { | |
276 | 276 | let bd = if ((ai == "IDEA")) | |
277 | 277 | then "" | |
278 | 278 | else bg(bh) | |
279 | 279 | if ((1 >= size(bI))) | |
280 | 280 | then throw("Too few choices to vote") | |
281 | 281 | else { | |
282 | 282 | let bK = bu(aX) | |
283 | 283 | let bL = bK[bs] | |
284 | 284 | let bM = bK[bt] | |
285 | 285 | let bN = I(ak(), k) | |
286 | 286 | if ((bN > bM)) | |
287 | 287 | then throw((("You need at least " + toString(bN)) + " gNsbt to create voting")) | |
288 | 288 | else { | |
289 | 289 | let bO = invoke(af, "acceptWaves", nil, [bG]) | |
290 | 290 | if ((bO == bO)) | |
291 | 291 | then { | |
292 | 292 | let bP = I(ah(ai), d) | |
293 | 293 | let be = fraction(bP, bL, i) | |
294 | 294 | let ao = (I(al(), 0) + 1) | |
295 | 295 | let bQ = (I(aD(aX), 0) + 1) | |
296 | 296 | let bR = (I(aC(), 0) + (if ((bQ == 1)) | |
297 | 297 | then 1 | |
298 | 298 | else 0)) | |
299 | 299 | let bS = makeString(bI, c) | |
300 | 300 | $Tuple2([IntegerEntry(al(), ao), IntegerEntry(aw(ax), ao), StringEntry(an(ao), aN(false, 0, 0, 0, false, 0, false)), StringEntry(ap(ao), aV(aW, ai, aX, toBase58String(toBytes(aY)), toBase58String(toBytes(aZ)), ba, bb, bc, bd, be, bS)), IntegerEntry(aD(aX), bQ), IntegerEntry(aC(), bR)], aW) | |
301 | 301 | } | |
302 | 302 | else throw("Strict value is not equal to itself.") | |
303 | 303 | } | |
304 | 304 | } | |
305 | 305 | } | |
306 | 306 | } | |
307 | 307 | } | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | func bT (ao,bI,bU,bV,bW,bX,bY) = { | |
312 | 312 | func bZ (bj,ca) = { | |
313 | 313 | let ad = value(indexOf(bI, ca)) | |
314 | 314 | let cb = if (bU) | |
315 | 315 | then if ((ad == bX)) | |
316 | 316 | then bY | |
317 | 317 | else I(aq(ao, ad), 0) | |
318 | 318 | else if ((ad == value(bV))) | |
319 | 319 | then bW | |
320 | 320 | else if ((ad == bX)) | |
321 | 321 | then bY | |
322 | 322 | else I(aq(ao, ad), 0) | |
323 | 323 | if ((bj._2 > cb)) | |
324 | 324 | then bj | |
325 | 325 | else $Tuple2(ad, cb) | |
326 | 326 | } | |
327 | 327 | ||
328 | 328 | let bl = bI | |
329 | 329 | let bm = size(bl) | |
330 | 330 | let bn = $Tuple2(0, 0) | |
331 | 331 | func bo (bp,bq) = if ((bq >= bm)) | |
332 | 332 | then bp | |
333 | 333 | else bZ(bp, bl[bq]) | |
334 | 334 | ||
335 | 335 | func br (bp,bq) = if ((bq >= bm)) | |
336 | 336 | then bp | |
337 | 337 | else throw("List size exceeds 10") | |
338 | 338 | ||
339 | 339 | br(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bn, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
340 | 340 | } | |
341 | 341 | ||
342 | 342 | ||
343 | 343 | func cc (cd,ce,cf,cg) = makeString(["%b%d%d%d%b%d%b", toString(ce), toString(cf._1), toString(cf._2), toString(cg), cd[C], cd[D], cd[E]], b) | |
344 | 344 | ||
345 | 345 | ||
346 | 346 | func ch (cd) = makeString(["%b%d%d%d%b%d%b", cd[y], cd[z], cd[A], cd[B], "true", cd[D], cd[E]], b) | |
347 | 347 | ||
348 | 348 | ||
349 | - | func ci ( | |
349 | + | func ci (cj,aZ,bD,ao) = { | |
350 | 350 | let bL = bu("")[bs] | |
351 | - | let | |
352 | - | StringEntry(aF(lastBlock.timestamp), makeString(["%d%d%d%s%s", toString( | |
351 | + | let ck = 500000 | |
352 | + | StringEntry(aF(lastBlock.timestamp), makeString(["%d%d%d%s%s%d", toString(cj), toString(bL), toString(ck), aZ, bD, toString(ao)], b)) | |
353 | 353 | } | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | @Callable(aM) | |
357 | - | func constructor ( | |
357 | + | func constructor (cl,cm,cn,co,cp) = if ((aM.caller != this)) | |
358 | 358 | then throw("Permission denied") | |
359 | - | else [StringEntry(X(), | |
359 | + | else [StringEntry(X(), cl), IntegerEntry(ak(), cm), IntegerEntry(aj(), cn), IntegerEntry(ah("IDEA"), co), IntegerEntry(ah("UPDATE"), cp)] | |
360 | 360 | ||
361 | 361 | ||
362 | 362 | ||
363 | 363 | @Callable(aM) | |
364 | - | func castVote (ao, | |
365 | - | let | |
366 | - | let | |
367 | - | if (( | |
364 | + | func castVote (ao,cq) = { | |
365 | + | let cr = toString(aM.caller) | |
366 | + | let cs = split(F(this, an(ao)), b) | |
367 | + | if ((cs[E] == "true")) | |
368 | 368 | then throw("Voting is canceled by team") | |
369 | 369 | else { | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | if (( | |
370 | + | let ct = split(F(this, ap(ao)), b) | |
371 | + | let cu = parseIntValue(ct[t]) | |
372 | + | let cv = parseIntValue(ct[u]) | |
373 | + | let cw = lastBlock.timestamp | |
374 | + | if ((cu > cw)) | |
375 | 375 | then throw("Voting not started yet") | |
376 | - | else if (( | |
376 | + | else if ((cw >= cv)) | |
377 | 377 | then throw("Voting already finished") | |
378 | 378 | else { | |
379 | - | let | |
380 | - | let | |
381 | - | if ((1 >= | |
379 | + | let cx = split(ct[x], c) | |
380 | + | let cy = size(cx) | |
381 | + | if ((1 >= cy)) | |
382 | 382 | then throw("Too few choices to vote") | |
383 | - | else if (( | |
384 | - | then throw(("Unknown choice! Must be 0.." + toString(( | |
383 | + | else if ((cq >= cy)) | |
384 | + | then throw(("Unknown choice! Must be 0.." + toString((cy - 1)))) | |
385 | 385 | else { | |
386 | - | let bK = bu( | |
387 | - | let | |
388 | - | if ((0 >= | |
386 | + | let bK = bu(cr) | |
387 | + | let cz = bK[bt] | |
388 | + | if ((0 >= cz)) | |
389 | 389 | then throw("no gnsbt to vote") | |
390 | 390 | else { | |
391 | 391 | let bL = bK[bs] | |
392 | - | let bV = getInteger(au(ao, | |
393 | - | let | |
392 | + | let bV = getInteger(au(ao, cr)) | |
393 | + | let cA = if (!(isDefined(bV))) | |
394 | 394 | then 0 | |
395 | - | else I(as(ao, | |
396 | - | let | |
395 | + | else I(as(ao, cr), 0) | |
396 | + | let cB = if (isDefined(bV)) | |
397 | 397 | then I(aq(ao, value(bV)), 0) | |
398 | 398 | else 0 | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
399 | + | let cC = I(aq(ao, cq), 0) | |
400 | + | let cD = parseIntValue(cs[B]) | |
401 | + | let cE = if (!(isDefined(bV))) | |
402 | 402 | then 0 | |
403 | - | else (( | |
404 | - | then | |
403 | + | else ((cB - cA) + (if ((value(bV) == cq)) | |
404 | + | then cz | |
405 | 405 | else 0)) | |
406 | 406 | let bY = if (if (isDefined(bV)) | |
407 | - | then (value(bV) == | |
407 | + | then (value(bV) == cq) | |
408 | 408 | else false) | |
409 | - | then | |
410 | - | else ( | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
409 | + | then cE | |
410 | + | else (cC + cz) | |
411 | + | let cF = ((cD - cA) + cz) | |
412 | + | let cG = (cF >= parseIntValue(ct[w])) | |
413 | + | let cH = I(az(ao), 0) | |
414 | + | let cI = I(aA(), 0) | |
415 | + | let cJ = getIntegerValue(al()) | |
416 | + | let cK = if ((cA == 0)) | |
417 | 417 | then 1 | |
418 | 418 | else 0 | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
419 | + | let cL = (cI + fraction(cK, i, cJ)) | |
420 | + | let cM = I(aB(), 0) | |
421 | + | let cN = (cM + ((cz - cA) / cJ)) | |
422 | 422 | let bU = if (!(isDefined(bV))) | |
423 | 423 | then true | |
424 | - | else (value(bV) == | |
424 | + | else (value(bV) == cq) | |
425 | 425 | let bW = if (bU) | |
426 | 426 | then nil | |
427 | - | else [IntegerEntry(aq(ao, value(bV)), | |
428 | - | let | |
429 | - | let | |
430 | - | $Tuple2(([IntegerEntry(au(ao, | |
427 | + | else [IntegerEntry(aq(ao, value(bV)), cE)] | |
428 | + | let cO = bT(ao, cx, bU, bV, cE, cq, bY) | |
429 | + | let cP = max([cv, I(ay(cr), 0)]) | |
430 | + | $Tuple2(([IntegerEntry(au(ao, cr), cq), IntegerEntry(as(ao, cr), cz), IntegerEntry(aq(ao, cq), bY), IntegerEntry(az(ao), (cH + cK)), IntegerEntry(ay(cr), cP), IntegerEntry(aA(), cL), IntegerEntry(aB(), cN), StringEntry(an(ao), cc(cs, cG, cO, cF))] ++ bW), unit) | |
431 | 431 | } | |
432 | 432 | } | |
433 | 433 | } | |
434 | 434 | } | |
435 | 435 | } | |
436 | 436 | ||
437 | 437 | ||
438 | 438 | ||
439 | 439 | @Callable(aM) | |
440 | 440 | func initiateIdeaVoting (aY,aZ,bb,bc,bI) = if ((size(aM.payments) != 1)) | |
441 | 441 | then throw("Exactly one payment required") | |
442 | 442 | else if ((size(bI) != 2)) | |
443 | 443 | then throw("Exactly 2 option ['NO', 'YES'] are expected") | |
444 | 444 | else if ((bI[0] != "NO")) | |
445 | 445 | then throw("Option NO should be the first") | |
446 | 446 | else if ((bI[1] != "YES")) | |
447 | 447 | then throw("Option YES should be the second") | |
448 | 448 | else bF(value(aM.payments[0]), toBase58String(aM.transactionId), "IDEA", toString(aM.caller), aY, aZ, bb, bc, "PENDING", nil, bI) | |
449 | 449 | ||
450 | 450 | ||
451 | 451 | ||
452 | 452 | @Callable(aM) | |
453 | 453 | func initiateUpdateVoting (aY,aZ,bb,bc,bh) = if ((size(aM.payments) != 1)) | |
454 | 454 | then throw("Exactly one payment required") | |
455 | 455 | else if ((1 > size(bh))) | |
456 | 456 | then throw("Transactions list is empty") | |
457 | 457 | else if ((aM.caller != this)) | |
458 | 458 | then throw("not authorized") | |
459 | 459 | else bF(value(aM.payments[0]), toBase58String(aM.transactionId), "UPDATE", toString(aM.caller), aY, aZ, bb, bc, "PENDING", bh, ["NO", "YES"]) | |
460 | 460 | ||
461 | 461 | ||
462 | 462 | ||
463 | 463 | @Callable(aM) | |
464 | 464 | func cancelVoting (ao) = if ((aM.caller != this)) | |
465 | 465 | then throw("not authorized") | |
466 | 466 | else { | |
467 | - | let | |
468 | - | let | |
469 | - | $Tuple2([StringEntry(an(ao), | |
467 | + | let cQ = F(this, an(ao)) | |
468 | + | let cR = ((take(cQ, value(lastIndexOf(cQ, b))) + b) + "true") | |
469 | + | $Tuple2([StringEntry(an(ao), cR)], unit) | |
470 | 470 | } | |
471 | 471 | ||
472 | 472 | ||
473 | 473 | ||
474 | 474 | @Callable(aM) | |
475 | 475 | func applyUpdate (ao) = { | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | if (( | |
476 | + | let ct = split(F(this, ap(ao)), b) | |
477 | + | let cv = parseIntValue(ct[u]) | |
478 | + | let cw = lastBlock.timestamp | |
479 | + | if ((cv > cw)) | |
480 | 480 | then throw("Voting is not finished yet") | |
481 | - | else if (("UPDATE" != | |
481 | + | else if (("UPDATE" != ct[o])) | |
482 | 482 | then throw("Only UPDATE type can be applied") | |
483 | 483 | else { | |
484 | - | let | |
485 | - | if (( | |
484 | + | let cs = split(F(this, an(ao)), b) | |
485 | + | if ((cs[E] == "true")) | |
486 | 486 | then throw("Voting is canceled") | |
487 | - | else if (( | |
487 | + | else if ((cs[y] != "true")) | |
488 | 488 | then throw("Voting status invalid") | |
489 | - | else if (( | |
489 | + | else if ((cs[z] != "1")) | |
490 | 490 | then throw("Winner is 'NO' - nothing to apply") | |
491 | - | else if (( | |
491 | + | else if ((cs[C] == "true")) | |
492 | 492 | then throw("Scripts are already applied") | |
493 | 493 | else { | |
494 | - | let | |
495 | - | if ((( | |
496 | - | then throw((("Scripts timestamp=" + toString( | |
497 | - | else if (( | |
498 | - | then throw((("Scripts timestamp=" + toString( | |
494 | + | let cS = parseIntValue(cs[D]) | |
495 | + | if (((cw - l) > cS)) | |
496 | + | then throw((("Scripts timestamp=" + toString(cS)) + " is too far in the past, max 2 hrs allowed")) | |
497 | + | else if ((cS > (cw + m))) | |
498 | + | then throw((("Scripts timestamp=" + toString(cS)) + " is too far in the future, max 1.5 hrs allowed")) | |
499 | 499 | else { | |
500 | - | let | |
501 | - | if (( | |
502 | - | then throw((("proposalId=" + toString( | |
500 | + | let cT = I(av(), -1) | |
501 | + | if ((cT != -1)) | |
502 | + | then throw((("proposalId=" + toString(cT)) + " is already being applied. Finish it first!")) | |
503 | 503 | else { | |
504 | - | let | |
505 | - | if (( | |
504 | + | let cU = invoke(ae, "callEmergencyShutdown", ["Applying Governance UPDATE"], nil) | |
505 | + | if ((cU == cU)) | |
506 | 506 | then $Tuple2([IntegerEntry(av(), ao)], unit) | |
507 | 507 | else throw("Strict value is not equal to itself.") | |
508 | 508 | } | |
509 | 509 | } | |
510 | 510 | } | |
511 | 511 | } | |
512 | 512 | } | |
513 | 513 | ||
514 | 514 | ||
515 | 515 | ||
516 | 516 | @Callable(aM) | |
517 | 517 | func finishApply () = { | |
518 | 518 | let ao = valueOrErrorMessage(getInteger(av()), "No apply in progress, nothing to finish") | |
519 | - | let | |
520 | - | let bh = split( | |
521 | - | let | |
522 | - | if (( | |
519 | + | let ct = split(F(this, ap(ao)), b) | |
520 | + | let bh = split(ct[v], c) | |
521 | + | let cs = split(F(this, an(ao)), b) | |
522 | + | if ((cs[C] == "true")) | |
523 | 523 | then throw("Scripts are already applied") | |
524 | 524 | else { | |
525 | - | func | |
525 | + | func cV (bj,bk) = if (!(isDefined(transactionHeightById(fromBase58String(bk))))) | |
526 | 526 | then throw(("NOT applied txId: " + bk)) | |
527 | 527 | else unit | |
528 | 528 | ||
529 | - | let | |
529 | + | let cW = { | |
530 | 530 | let bl = bh | |
531 | 531 | let bm = size(bl) | |
532 | 532 | let bn = unit | |
533 | 533 | func bo (bp,bq) = if ((bq >= bm)) | |
534 | 534 | then bp | |
535 | - | else | |
535 | + | else cV(bp, bl[bq]) | |
536 | 536 | ||
537 | 537 | func br (bp,bq) = if ((bq >= bm)) | |
538 | 538 | then bp | |
539 | 539 | else throw("List size exceeds 20") | |
540 | 540 | ||
541 | 541 | br(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bo(bn, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
542 | 542 | } | |
543 | - | let | |
544 | - | $Tuple2([DeleteEntry(av()), IntegerEntry(am(), | |
543 | + | let cX = (I(am(), 0) + 1) | |
544 | + | $Tuple2([DeleteEntry(av()), IntegerEntry(am(), cX), StringEntry(an(ao), ch(cs)), ci(cX, ct[r], ct[q], ao)], cW) | |
545 | 545 | } | |
546 | 546 | } | |
547 | 547 | ||
548 | 548 |
github/deemru/w8io/026f985 129.99 ms ◑