tx · Bf9DMGwZUbrHSHgXu7EMaormBccEpGgtwivYXnZRd8b2 3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW: -0.14000000 Waves 2023.05.09 15:29 [2570348] smart account 3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW > SELF 0.00000000 Waves
{ "type": 13, "id": "Bf9DMGwZUbrHSHgXu7EMaormBccEpGgtwivYXnZRd8b2", "fee": 14000000, "feeAssetId": null, "timestamp": 1683635374478, "version": 2, "chainId": 84, "sender": "3N7oHnMaDFKYTEgumQs9mjRESDco6KhQiXW", "senderPublicKey": "2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj", "proofs": [ "2qY7uk15zUsZZ7dBgSDShLzfmteksAc4mmrP69wMFEDb12xkzK9RU38ekod24H9AaZd69fzf9YA8mKUQ1MJFnAhk", "2LBRu7M5gxHNffxH2LGEZY7q1Ye55c16oj6M1X5jKsAZKdFJBDB5NjYTnXTQdGWnBvhPqaqZoN6NCpvaqCn6koHF" ], "script": "base64:AAIFAAAAAAAAABIIAhIHCgUBAQEICBIDCgEEEgAAAAAYAAAAAAxhZG1pblB1YktleTEBAAAAIBQCDFCxss6zrB0AAB1lFGH++bkS6T79aRXaqXigSMwKAAAAAAxhZG1pblB1YktleTIBAAAAIBQCDFCxss6zrB0AAB1lFGH++bkS6T79aRXaqXigSMwKAAAAAAxhZG1pblB1YktleTMBAAAAIBQCDFCxss6zrB0AAB1lFGH++bkS6T79aRXaqXigSMwKAAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgFAIMULGyzrOsHQAAHWUUYf75uRLpPv1pFdqpeKBIzAoAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAAEWtleVVzZXJWT1RFQW1vdW50AgAAAAxfVk9URV9hbW91bnQAAAAAC2tleVVzZXJWT1RFAgAAAAVfVk9URQAAAAAMa2V5VG90YWxWT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RoaXMgZnVuY3Rpb24JAQAAAAdzdXNwZW5kAAAAAQIAAAAPUGF1c2VkIGJ5IGFkbWluAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkEAAAAEmFkbWluUHViS2V5MVNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTEAAAAAAAAAAAEAAAAAAAAAAAAEAAAAEmFkbWluUHViS2V5MlNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAxhZG1pblB1YktleTIAAAAAAAAAAAEAAAAAAAAAAAAEAAAAEmFkbWluUHViS2V5M1NpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACBQAAAAxhZG1pblB1YktleTMAAAAAAAAAAAEAAAAAAAAAAAAJAABnAAAAAgkAAGQAAAACCQAAZAAAAAIFAAAAEmFkbWluUHViS2V5MVNpZ25lZAUAAAASYWRtaW5QdWJLZXkyU2lnbmVkBQAAABJhZG1pblB1YktleTNTaWduZWQAAAAAAAAAAALnEW0e", "height": 2570348, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D5xCmrAPMw27rec2myMbJsmp7yDyGPHu5U1MgAsdXJc3 Next: 4ryAmjCzkm8j48gKaaV8rc5Y74exWeoaxfivozkXNV6j Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj' | |
5 | 5 | ||
6 | - | let b = base58' | |
6 | + | let b = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj' | |
7 | 7 | ||
8 | - | let c = base58' | |
8 | + | let c = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj' | |
9 | 9 | ||
10 | - | let d = base58' | |
10 | + | let d = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj' | |
11 | 11 | ||
12 | 12 | let e = "active" | |
13 | 13 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj' | |
5 | 5 | ||
6 | - | let b = base58' | |
6 | + | let b = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj' | |
7 | 7 | ||
8 | - | let c = base58' | |
8 | + | let c = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj' | |
9 | 9 | ||
10 | - | let d = base58' | |
10 | + | let d = base58'2M6xzJiyT4ZPQhyMEQoo9GUqBsKBtgTD1BaZ8L4PfPVj' | |
11 | 11 | ||
12 | 12 | let e = "active" | |
13 | 13 | ||
14 | 14 | let f = "shutdown_cause" | |
15 | 15 | ||
16 | 16 | let g = "_VOTE_amount" | |
17 | 17 | ||
18 | 18 | let h = "_VOTE" | |
19 | 19 | ||
20 | 20 | let i = "_total_VOTE_amount" | |
21 | 21 | ||
22 | 22 | let j = "vote_session" | |
23 | 23 | ||
24 | 24 | let k = "vote_start_height" | |
25 | 25 | ||
26 | 26 | let l = "vote_end_height" | |
27 | 27 | ||
28 | 28 | let m = "_yes_amount" | |
29 | 29 | ||
30 | 30 | let n = "_no_amount" | |
31 | 31 | ||
32 | 32 | let o = "_ENNO_amount" | |
33 | 33 | ||
34 | 34 | let p = "vote_name" | |
35 | 35 | ||
36 | 36 | let q = "vote_description" | |
37 | 37 | ||
38 | 38 | let r = valueOrElse(getBoolean(this, e), true) | |
39 | 39 | ||
40 | 40 | let s = addressFromPublicKey(base58'Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8') | |
41 | 41 | ||
42 | 42 | func t (u) = valueOrElse(getInteger(s, (toString(u) + o)), 0) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func v (u) = valueOrElse(getInteger(this, (toString(u) + g)), 0) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func w (u) = valueOrElse(getBoolean(this, (toString(u) + h)), false) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func x (y) = valueOrElse(getInteger(this, y), 0) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func z (A) = [BooleanEntry(e, false), StringEntry(f, A)] | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | @Callable(B) | |
58 | 58 | func initVote (C,D,E,F,G) = if (!(r)) | |
59 | 59 | then throw("DApp is inactive at this moment") | |
60 | 60 | else if (!(containsElement([a, b, c, d], B.callerPublicKey))) | |
61 | 61 | then throw("Only admin can call this function") | |
62 | 62 | else [IntegerEntry(j, C), IntegerEntry(((k + "_") + toString(C)), D), IntegerEntry(((l + "_") + toString(C)), E), IntegerEntry((toString(C) + m), 0), IntegerEntry((toString(C) + n), 0), StringEntry(((p + "_") + toString(C)), F), StringEntry(((q + "_") + toString(C)), G)] | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | ||
66 | 66 | @Callable(B) | |
67 | 67 | func vote (H) = if (!(r)) | |
68 | 68 | then throw("DApp is inactive at this moment") | |
69 | 69 | else if ((x(k) > height)) | |
70 | 70 | then throw("Voting has not started yet.") | |
71 | 71 | else if ((height > x(l))) | |
72 | 72 | then throw("Voting has already ended.") | |
73 | 73 | else { | |
74 | 74 | let I = x((j + m)) | |
75 | 75 | let J = x((j + n)) | |
76 | 76 | let K = v(B.caller) | |
77 | 77 | let L = w(B.caller) | |
78 | 78 | let M = t(B.caller) | |
79 | 79 | let N = M | |
80 | 80 | if ((0 > N)) | |
81 | 81 | then throw("Vote must be more than 0") | |
82 | 82 | else { | |
83 | 83 | let O = (I + (if ((H == L)) | |
84 | 84 | then if (H) | |
85 | 85 | then M | |
86 | 86 | else 0 | |
87 | 87 | else (-1 * M))) | |
88 | 88 | let P = (J + (if ((L == H)) | |
89 | 89 | then if (!(H)) | |
90 | 90 | then M | |
91 | 91 | else 0 | |
92 | 92 | else (-1 * M))) | |
93 | 93 | [IntegerEntry((((toString(B.caller) + g) + "_") + j), M), BooleanEntry((((toString(B.caller) + h) + "_") + j), H), IntegerEntry((j + m), O), IntegerEntry((j + n), P), IntegerEntry((j + i), (P + O))] | |
94 | 94 | } | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | ||
99 | 99 | @Callable(B) | |
100 | 100 | func shutdown () = if (!(r)) | |
101 | 101 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, f), "the cause wasn't specified"))) | |
102 | 102 | else if (!(containsElement([a, b, c, d], B.callerPublicKey))) | |
103 | 103 | then throw("Only admin can call this function") | |
104 | 104 | else z("Paused by admin") | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | @Verifier(Q) | |
108 | 108 | func R () = { | |
109 | 109 | let S = Q | |
110 | 110 | if ($isInstanceOf(S, "DataTransaction")) | |
111 | 111 | then { | |
112 | 112 | let T = S | |
113 | 113 | sigVerify(Q.bodyBytes, Q.proofs[0], Q.senderPublicKey) | |
114 | 114 | } | |
115 | 115 | else { | |
116 | 116 | let U = if (sigVerify(Q.bodyBytes, Q.proofs[0], a)) | |
117 | 117 | then 1 | |
118 | 118 | else 0 | |
119 | 119 | let V = if (sigVerify(Q.bodyBytes, Q.proofs[1], b)) | |
120 | 120 | then 1 | |
121 | 121 | else 0 | |
122 | 122 | let W = if (sigVerify(Q.bodyBytes, Q.proofs[2], c)) | |
123 | 123 | then 1 | |
124 | 124 | else 0 | |
125 | 125 | (((U + V) + W) >= 2) | |
126 | 126 | } | |
127 | 127 | } | |
128 | 128 |
github/deemru/w8io/169f3d6 32.18 ms ◑