tx · T5DaWMF5sN7FDy8CzqtdaVLxjYFyy2EfHFf37jBqoV2 3MrpGcZZ569vFiRHpB54Z8TJkusrDwPoeqD: -0.01300000 Waves 2023.05.04 13:11 [2562877] smart account 3MrpGcZZ569vFiRHpB54Z8TJkusrDwPoeqD > SELF 0.00000000 Waves
{ "type": 13, "id": "T5DaWMF5sN7FDy8CzqtdaVLxjYFyy2EfHFf37jBqoV2", "fee": 1300000, "feeAssetId": null, "timestamp": 1683195153276, "version": 2, "chainId": 84, "sender": "3MrpGcZZ569vFiRHpB54Z8TJkusrDwPoeqD", "senderPublicKey": "9NE8zsj5DuGfzA1TTJTEv7qQqc1ERk5iDcrFqX8KgxoB", "proofs": [ "2Cwr9K6X5WeKmLETxh2z2ayxcZsh447t3ksEMVWknnb5WgSEAHe5sdPNWedqGTYsKUpXqJNYyFNemxkQMkYSSN5H" ], "script": "base64:BgIgCAISBgoECAgBARIECgIBBBIDCgEBEgQKAgEEEgMKAQESAANTRVACAl9fARBibG9ja0hlaWdodEVycm9yAAkAAgECL1RoZSBibG9jaydzIGhlaWdodCBpcyB0b28gYmlnIGZvciB0aGlzIHByb3Bvc2FsARBhbHJlYWR5Vm90ZUVycm9yAAkAAgECFllvdSBoYXZlIGFscmVhZHkgdm90ZWQBC25vVm90ZUVycm9yAAkAAgECGllvdSBoYXZlIG5vdCBhbHJlYWR5IHZvdGVkARJnd3hDb250cmFjdEFkZHJlc3MACQC5CQIJAMwIAgICJXMJAMwIAgISZ3d4Q29udHJhY3RBZGRyZXNzBQNuaWwFA1NFUAEPa2V5Q3VycmVudEluZGV4AAkAuQkCCQDMCAICAiVzCQDMCAICDGN1cnJlbnRJbmRleAUDbmlsBQNTRVABD2tleVByb3Bvc2FsSW5mbwEGbnVtYmVyCQC5CQIJAMwIAgIEJXMlZAkAzAgCAgxwcm9wb3NhbEluZm8JAMwIAgkApAMBBQZudW1iZXIFA25pbAUDU0VQARVrZXlVc2VyVm90ZU9uUHJvcG9zYWwCBm51bWJlc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n55p48voyBwFSvWLY7ZwB Next: none Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | - | func b () = " | |
6 | + | func b () = throw("The block's height is too big for this proposal") | |
7 | 7 | ||
8 | 8 | ||
9 | - | func c () = " | |
9 | + | func c () = throw("You have already voted") | |
10 | 10 | ||
11 | 11 | ||
12 | - | func d () = throw(" | |
12 | + | func d () = throw("You have not already voted") | |
13 | 13 | ||
14 | 14 | ||
15 | - | func e () = | |
15 | + | func e () = makeString(["%s", "gwxContractAddress"], a) | |
16 | 16 | ||
17 | 17 | ||
18 | - | func f () = | |
18 | + | func f () = makeString(["%s", "currentIndex"], a) | |
19 | 19 | ||
20 | 20 | ||
21 | - | func g () = makeString(["%s", " | |
21 | + | func g (h) = makeString(["%s%d", "proposalInfo", toString(h)], a) | |
22 | 22 | ||
23 | 23 | ||
24 | - | func | |
24 | + | func i (h,j) = makeString(["%s%d%s", "userVoteOnProposal", toString(h), j], a) | |
25 | 25 | ||
26 | 26 | ||
27 | - | func | |
27 | + | func k () = "%s__managerPublicKey" | |
28 | 28 | ||
29 | 29 | ||
30 | - | func | |
30 | + | func l () = "%s__managerVaultAddress" | |
31 | 31 | ||
32 | 32 | ||
33 | - | func m () = getIntegerValue(this, | |
33 | + | func m () = getIntegerValue(this, f()) | |
34 | 34 | ||
35 | 35 | ||
36 | - | func n ( | |
36 | + | func n () = addressFromStringValue(getStringValue(l())) | |
37 | 37 | ||
38 | 38 | ||
39 | - | func | |
39 | + | func o (p,q,r,s,t,u) = makeString(["%d%d%d%d%d%d", p, q, r, s, t, u], a) | |
40 | 40 | ||
41 | 41 | ||
42 | - | func x (y) = { | |
43 | - | let z = y | |
44 | - | if ($isInstanceOf(z, "Int")) | |
42 | + | func v (w,x) = makeString(["%d%d", w, x], a) | |
43 | + | ||
44 | + | ||
45 | + | func y (z) = { | |
46 | + | let A = z | |
47 | + | if ($isInstanceOf(A, "Int")) | |
45 | 48 | then { | |
46 | - | let | |
47 | - | | |
49 | + | let B = A | |
50 | + | B | |
48 | 51 | } | |
49 | 52 | else throw("fail to cast into Int") | |
50 | 53 | } | |
51 | 54 | ||
52 | 55 | ||
53 | - | func B () = { | |
54 | - | let z = getString(b()) | |
55 | - | if ($isInstanceOf(z, "String")) | |
56 | + | func C () = { | |
57 | + | let D = n() | |
58 | + | let A = getString(D, k()) | |
59 | + | if ($isInstanceOf(A, "String")) | |
56 | 60 | then { | |
57 | - | let | |
58 | - | fromBase58String( | |
61 | + | let E = A | |
62 | + | fromBase58String(E) | |
59 | 63 | } | |
60 | - | else if ($isInstanceOf( | |
64 | + | else if ($isInstanceOf(A, "Unit")) | |
61 | 65 | then unit | |
62 | 66 | else throw("Match error") | |
63 | 67 | } | |
64 | 68 | ||
65 | 69 | ||
66 | - | func | |
67 | - | let | |
68 | - | if ($isInstanceOf( | |
70 | + | func F (G) = { | |
71 | + | let A = C() | |
72 | + | if ($isInstanceOf(A, "ByteVector")) | |
69 | 73 | then { | |
70 | - | let | |
71 | - | | |
74 | + | let H = A | |
75 | + | (G.callerPublicKey == H) | |
72 | 76 | } | |
73 | - | else if ($isInstanceOf( | |
74 | - | then | |
77 | + | else if ($isInstanceOf(A, "Unit")) | |
78 | + | then (G.caller == this) | |
75 | 79 | else throw("Match error") | |
76 | 80 | } | |
77 | 81 | ||
78 | 82 | ||
79 | - | func E (F) = { | |
80 | - | let z = B() | |
81 | - | if ($isInstanceOf(z, "ByteVector")) | |
82 | - | then { | |
83 | - | let G = z | |
84 | - | (F.callerPublicKey == G) | |
85 | - | } | |
86 | - | else if ($isInstanceOf(z, "Unit")) | |
87 | - | then (F.caller == this) | |
88 | - | else throw("Match error") | |
89 | - | } | |
90 | - | ||
91 | - | ||
92 | - | func H (F) = if (E(F)) | |
83 | + | func I (G) = if (F(G)) | |
93 | 84 | then true | |
94 | 85 | else throw("permission denied") | |
95 | 86 | ||
96 | 87 | ||
97 | - | @Callable( | |
98 | - | func startNewVote ( | |
99 | - | let | |
100 | - | if (( | |
88 | + | @Callable(G) | |
89 | + | func startNewVote (p,q,J,s) = { | |
90 | + | let K = [I(G)] | |
91 | + | if ((K == K)) | |
101 | 92 | then { | |
102 | - | let | |
103 | - | [IntegerEntry( | |
93 | + | let L = m() | |
94 | + | [IntegerEntry(f(), (L + 1)), StringEntry(g(L), o(p, q, toString((lastBlock.height + J)), toString(s), "0", "0"))] | |
104 | 95 | } | |
105 | 96 | else throw("Strict value is not equal to itself.") | |
106 | 97 | } | |
107 | 98 | ||
108 | 99 | ||
109 | 100 | ||
110 | - | @Callable( | |
111 | - | func voteFor ( | |
112 | - | let | |
113 | - | let | |
114 | - | let | |
115 | - | let | |
116 | - | let | |
101 | + | @Callable(G) | |
102 | + | func voteFor (M,N) = { | |
103 | + | let O = "EMPTY" | |
104 | + | let P = valueOrElse(getString(this, g(M)), O) | |
105 | + | let Q = split(P, a) | |
106 | + | let R = valueOrElse(getString(this, i(M, toString(G.caller))), O) | |
107 | + | let K = [if ((P != O)) | |
117 | 108 | then true | |
118 | - | else throw("No such vote"), if ((value(parseInt( | |
109 | + | else throw("No such vote"), if ((value(parseInt(Q[3])) > lastBlock.height)) | |
119 | 110 | then true | |
120 | - | else | |
111 | + | else b(), if ((R == O)) | |
121 | 112 | then true | |
122 | - | else | |
123 | - | if (( | |
113 | + | else c()] | |
114 | + | if ((K == K)) | |
124 | 115 | then { | |
125 | - | let | |
126 | - | let | |
116 | + | let x = y(invoke(addressFromStringValue(getStringValue(e())), "getUserGwxAmountAtHeightREADONLY", [toString(G.caller), value(parseInt(Q[3]))], nil)) | |
117 | + | let S = if (N) | |
127 | 118 | then { | |
128 | - | let | |
129 | - | let | |
130 | - | $Tuple2( | |
119 | + | let T = StringEntry(g(M), o(Q[1], Q[2], Q[3], Q[4], toString((value(parseInt(Q[5])) + x)), Q[6])) | |
120 | + | let U = StringEntry(i(M, toString(G.caller)), v("1", toString(x))) | |
121 | + | $Tuple2(T, U) | |
131 | 122 | } | |
132 | 123 | else { | |
133 | - | let | |
134 | - | let | |
135 | - | $Tuple2( | |
124 | + | let T = StringEntry(g(M), o(Q[1], Q[2], Q[3], Q[4], Q[5], toString((value(parseInt(Q[6])) + x)))) | |
125 | + | let U = StringEntry(i(M, toString(G.caller)), v("0", toString(x))) | |
126 | + | $Tuple2(T, U) | |
136 | 127 | } | |
137 | - | let | |
138 | - | let | |
139 | - | [ | |
128 | + | let T = S._1 | |
129 | + | let U = S._2 | |
130 | + | [T, U] | |
140 | 131 | } | |
141 | 132 | else throw("Strict value is not equal to itself.") | |
142 | 133 | } | |
143 | 134 | ||
144 | 135 | ||
145 | 136 | ||
146 | - | @Callable( | |
147 | - | func deleteVote ( | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
137 | + | @Callable(G) | |
138 | + | func deleteVote (M) = { | |
139 | + | let O = "EMPTY" | |
140 | + | let P = valueOrElse(getString(this, g(M)), O) | |
141 | + | let Q = split(P, a) | |
142 | + | let R = valueOrElse(getString(this, i(M, toString(G.caller))), O) | |
143 | + | let V = split(R, a) | |
144 | + | let K = [if ((P != O)) | |
154 | 145 | then true | |
155 | - | else throw("No such vote"), if ((value(parseInt( | |
146 | + | else throw("No such vote"), if ((value(parseInt(Q[3])) > lastBlock.height)) | |
156 | 147 | then true | |
157 | - | else | |
148 | + | else b(), if ((R != O)) | |
158 | 149 | then true | |
159 | - | else | |
160 | - | if (( | |
150 | + | else d()] | |
151 | + | if ((K == K)) | |
161 | 152 | then { | |
162 | - | let | |
163 | - | then StringEntry( | |
164 | - | else StringEntry( | |
165 | - | [ | |
153 | + | let W = if ((V[1] == "1")) | |
154 | + | then StringEntry(g(M), o(Q[1], Q[2], Q[3], Q[4], toString((value(parseInt(Q[5])) - value(parseInt(V[2])))), Q[6])) | |
155 | + | else StringEntry(g(M), o(Q[1], Q[2], Q[3], Q[4], Q[5], toString((value(parseInt(Q[6])) - value(parseInt(V[2])))))) | |
156 | + | [W, DeleteEntry(i(M, toString(G.caller)))] | |
166 | 157 | } | |
167 | 158 | else throw("Strict value is not equal to itself.") | |
168 | 159 | } | |
169 | 160 | ||
170 | 161 | ||
171 | 162 | ||
172 | - | @Callable( | |
173 | - | func changeVote ( | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
163 | + | @Callable(G) | |
164 | + | func changeVote (M,N) = { | |
165 | + | let O = "EMPTY" | |
166 | + | let P = valueOrElse(getString(this, g(M)), O) | |
167 | + | let Q = split(P, a) | |
168 | + | let R = valueOrElse(getString(this, i(M, toString(G.caller))), O) | |
169 | + | let V = split(R, a) | |
170 | + | let K = [if ((P != O)) | |
180 | 171 | then true | |
181 | - | else throw("No such vote"), if ((value(parseInt( | |
172 | + | else throw("No such vote"), if ((value(parseInt(Q[3])) > lastBlock.height)) | |
182 | 173 | then true | |
183 | - | else | |
174 | + | else b(), if ((R != O)) | |
184 | 175 | then true | |
185 | - | else | |
186 | - | if (( | |
176 | + | else d()] | |
177 | + | if ((K == K)) | |
187 | 178 | then { | |
188 | - | let | |
189 | - | let | |
179 | + | let x = y(invoke(addressFromStringValue(getStringValue(e())), "getUserGwxAmountAtHeightREADONLY", [toString(G.caller), value(parseInt(Q[3]))], nil)) | |
180 | + | let X = if (N) | |
190 | 181 | then { | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | $Tuple3( | |
182 | + | let Y = x | |
183 | + | let Z = 0 | |
184 | + | let aa = 1 | |
185 | + | $Tuple3(Y, Z, aa) | |
195 | 186 | } | |
196 | 187 | else { | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | $Tuple3( | |
188 | + | let Y = 0 | |
189 | + | let Z = x | |
190 | + | let aa = 0 | |
191 | + | $Tuple3(Y, Z, aa) | |
201 | 192 | } | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | then StringEntry( | |
207 | - | else StringEntry( | |
208 | - | [ | |
193 | + | let ab = X._1 | |
194 | + | let ac = X._2 | |
195 | + | let ad = X._3 | |
196 | + | let W = if ((V[1] == "1")) | |
197 | + | then StringEntry(g(M), o(Q[1], Q[2], Q[3], Q[4], toString(((value(parseInt(Q[5])) - value(parseInt(V[2]))) + ab)), toString((value(parseInt(Q[6])) + ac)))) | |
198 | + | else StringEntry(g(M), o(Q[1], Q[2], Q[3], Q[4], toString((value(parseInt(Q[5])) + ab)), toString(((value(parseInt(Q[6])) - value(parseInt(V[2]))) + ac)))) | |
199 | + | [W, StringEntry(i(M, toString(G.caller)), v(toString(ad), toString(x)))] | |
209 | 200 | } | |
210 | 201 | else throw("Strict value is not equal to itself.") | |
211 | 202 | } | |
212 | 203 | ||
213 | 204 | ||
214 | 205 | ||
215 | - | @Callable( | |
216 | - | func getResultREADONLY ( | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
206 | + | @Callable(G) | |
207 | + | func getResultREADONLY (M) = { | |
208 | + | let O = "EMPTY" | |
209 | + | let P = valueOrElse(getString(this, g(M)), O) | |
210 | + | let Q = split(P, a) | |
211 | + | let K = [if ((P != O)) | |
221 | 212 | then true | |
222 | 213 | else throw("No such vote")] | |
223 | - | if (( | |
214 | + | if ((K == K)) | |
224 | 215 | then { | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | $Tuple2(nil, [ | |
216 | + | let t = Q[5] | |
217 | + | let u = Q[6] | |
218 | + | let s = Q[4] | |
219 | + | $Tuple2(nil, [t, u, s]) | |
229 | 220 | } | |
230 | 221 | else throw("Strict value is not equal to itself.") | |
231 | 222 | } | |
232 | 223 | ||
233 | 224 | ||
234 | - | ||
235 | - | @Callable(F) | |
236 | - | func setManager (ad) = { | |
237 | - | let ae = H(F) | |
238 | - | if ((ae == ae)) | |
239 | - | then { | |
240 | - | let af = fromBase58String(ad) | |
241 | - | if ((af == af)) | |
242 | - | then [StringEntry(c(), ad)] | |
243 | - | else throw("Strict value is not equal to itself.") | |
244 | - | } | |
245 | - | else throw("Strict value is not equal to itself.") | |
246 | - | } | |
247 | - | ||
248 | - | ||
249 | - | ||
250 | - | @Callable(F) | |
251 | - | func confirmManager () = { | |
252 | - | let ag = D() | |
253 | - | let ah = if (isDefined(ag)) | |
254 | - | then true | |
255 | - | else throw("no pending manager") | |
256 | - | if ((ah == ah)) | |
257 | - | then { | |
258 | - | let ai = if ((F.callerPublicKey == value(ag))) | |
259 | - | then true | |
260 | - | else throw("you are not pending manager") | |
261 | - | if ((ai == ai)) | |
262 | - | then [StringEntry(b(), toBase58String(value(ag))), DeleteEntry(c())] | |
263 | - | else throw("Strict value is not equal to itself.") | |
264 | - | } | |
265 | - | else throw("Strict value is not equal to itself.") | |
266 | - | } | |
267 | - | ||
268 | - | ||
269 | - | @Verifier(aj) | |
270 | - | func ak () = { | |
271 | - | let al = { | |
272 | - | let z = B() | |
273 | - | if ($isInstanceOf(z, "ByteVector")) | |
225 | + | @Verifier(ae) | |
226 | + | func af () = { | |
227 | + | let ag = { | |
228 | + | let A = C() | |
229 | + | if ($isInstanceOf(A, "ByteVector")) | |
274 | 230 | then { | |
275 | - | let | |
276 | - | | |
231 | + | let H = A | |
232 | + | H | |
277 | 233 | } | |
278 | - | else if ($isInstanceOf( | |
279 | - | then | |
234 | + | else if ($isInstanceOf(A, "Unit")) | |
235 | + | then ae.senderPublicKey | |
280 | 236 | else throw("Match error") | |
281 | 237 | } | |
282 | - | sigVerify( | |
238 | + | sigVerify(ae.bodyBytes, ae.proofs[0], ag) | |
283 | 239 | } | |
284 | 240 |
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 | - | func b () = " | |
6 | + | func b () = throw("The block's height is too big for this proposal") | |
7 | 7 | ||
8 | 8 | ||
9 | - | func c () = " | |
9 | + | func c () = throw("You have already voted") | |
10 | 10 | ||
11 | 11 | ||
12 | - | func d () = throw(" | |
12 | + | func d () = throw("You have not already voted") | |
13 | 13 | ||
14 | 14 | ||
15 | - | func e () = | |
15 | + | func e () = makeString(["%s", "gwxContractAddress"], a) | |
16 | 16 | ||
17 | 17 | ||
18 | - | func f () = | |
18 | + | func f () = makeString(["%s", "currentIndex"], a) | |
19 | 19 | ||
20 | 20 | ||
21 | - | func g () = makeString(["%s", " | |
21 | + | func g (h) = makeString(["%s%d", "proposalInfo", toString(h)], a) | |
22 | 22 | ||
23 | 23 | ||
24 | - | func | |
24 | + | func i (h,j) = makeString(["%s%d%s", "userVoteOnProposal", toString(h), j], a) | |
25 | 25 | ||
26 | 26 | ||
27 | - | func | |
27 | + | func k () = "%s__managerPublicKey" | |
28 | 28 | ||
29 | 29 | ||
30 | - | func | |
30 | + | func l () = "%s__managerVaultAddress" | |
31 | 31 | ||
32 | 32 | ||
33 | - | func m () = getIntegerValue(this, | |
33 | + | func m () = getIntegerValue(this, f()) | |
34 | 34 | ||
35 | 35 | ||
36 | - | func n ( | |
36 | + | func n () = addressFromStringValue(getStringValue(l())) | |
37 | 37 | ||
38 | 38 | ||
39 | - | func | |
39 | + | func o (p,q,r,s,t,u) = makeString(["%d%d%d%d%d%d", p, q, r, s, t, u], a) | |
40 | 40 | ||
41 | 41 | ||
42 | - | func x (y) = { | |
43 | - | let z = y | |
44 | - | if ($isInstanceOf(z, "Int")) | |
42 | + | func v (w,x) = makeString(["%d%d", w, x], a) | |
43 | + | ||
44 | + | ||
45 | + | func y (z) = { | |
46 | + | let A = z | |
47 | + | if ($isInstanceOf(A, "Int")) | |
45 | 48 | then { | |
46 | - | let | |
47 | - | | |
49 | + | let B = A | |
50 | + | B | |
48 | 51 | } | |
49 | 52 | else throw("fail to cast into Int") | |
50 | 53 | } | |
51 | 54 | ||
52 | 55 | ||
53 | - | func B () = { | |
54 | - | let z = getString(b()) | |
55 | - | if ($isInstanceOf(z, "String")) | |
56 | + | func C () = { | |
57 | + | let D = n() | |
58 | + | let A = getString(D, k()) | |
59 | + | if ($isInstanceOf(A, "String")) | |
56 | 60 | then { | |
57 | - | let | |
58 | - | fromBase58String( | |
61 | + | let E = A | |
62 | + | fromBase58String(E) | |
59 | 63 | } | |
60 | - | else if ($isInstanceOf( | |
64 | + | else if ($isInstanceOf(A, "Unit")) | |
61 | 65 | then unit | |
62 | 66 | else throw("Match error") | |
63 | 67 | } | |
64 | 68 | ||
65 | 69 | ||
66 | - | func | |
67 | - | let | |
68 | - | if ($isInstanceOf( | |
70 | + | func F (G) = { | |
71 | + | let A = C() | |
72 | + | if ($isInstanceOf(A, "ByteVector")) | |
69 | 73 | then { | |
70 | - | let | |
71 | - | | |
74 | + | let H = A | |
75 | + | (G.callerPublicKey == H) | |
72 | 76 | } | |
73 | - | else if ($isInstanceOf( | |
74 | - | then | |
77 | + | else if ($isInstanceOf(A, "Unit")) | |
78 | + | then (G.caller == this) | |
75 | 79 | else throw("Match error") | |
76 | 80 | } | |
77 | 81 | ||
78 | 82 | ||
79 | - | func E (F) = { | |
80 | - | let z = B() | |
81 | - | if ($isInstanceOf(z, "ByteVector")) | |
82 | - | then { | |
83 | - | let G = z | |
84 | - | (F.callerPublicKey == G) | |
85 | - | } | |
86 | - | else if ($isInstanceOf(z, "Unit")) | |
87 | - | then (F.caller == this) | |
88 | - | else throw("Match error") | |
89 | - | } | |
90 | - | ||
91 | - | ||
92 | - | func H (F) = if (E(F)) | |
83 | + | func I (G) = if (F(G)) | |
93 | 84 | then true | |
94 | 85 | else throw("permission denied") | |
95 | 86 | ||
96 | 87 | ||
97 | - | @Callable( | |
98 | - | func startNewVote ( | |
99 | - | let | |
100 | - | if (( | |
88 | + | @Callable(G) | |
89 | + | func startNewVote (p,q,J,s) = { | |
90 | + | let K = [I(G)] | |
91 | + | if ((K == K)) | |
101 | 92 | then { | |
102 | - | let | |
103 | - | [IntegerEntry( | |
93 | + | let L = m() | |
94 | + | [IntegerEntry(f(), (L + 1)), StringEntry(g(L), o(p, q, toString((lastBlock.height + J)), toString(s), "0", "0"))] | |
104 | 95 | } | |
105 | 96 | else throw("Strict value is not equal to itself.") | |
106 | 97 | } | |
107 | 98 | ||
108 | 99 | ||
109 | 100 | ||
110 | - | @Callable( | |
111 | - | func voteFor ( | |
112 | - | let | |
113 | - | let | |
114 | - | let | |
115 | - | let | |
116 | - | let | |
101 | + | @Callable(G) | |
102 | + | func voteFor (M,N) = { | |
103 | + | let O = "EMPTY" | |
104 | + | let P = valueOrElse(getString(this, g(M)), O) | |
105 | + | let Q = split(P, a) | |
106 | + | let R = valueOrElse(getString(this, i(M, toString(G.caller))), O) | |
107 | + | let K = [if ((P != O)) | |
117 | 108 | then true | |
118 | - | else throw("No such vote"), if ((value(parseInt( | |
109 | + | else throw("No such vote"), if ((value(parseInt(Q[3])) > lastBlock.height)) | |
119 | 110 | then true | |
120 | - | else | |
111 | + | else b(), if ((R == O)) | |
121 | 112 | then true | |
122 | - | else | |
123 | - | if (( | |
113 | + | else c()] | |
114 | + | if ((K == K)) | |
124 | 115 | then { | |
125 | - | let | |
126 | - | let | |
116 | + | let x = y(invoke(addressFromStringValue(getStringValue(e())), "getUserGwxAmountAtHeightREADONLY", [toString(G.caller), value(parseInt(Q[3]))], nil)) | |
117 | + | let S = if (N) | |
127 | 118 | then { | |
128 | - | let | |
129 | - | let | |
130 | - | $Tuple2( | |
119 | + | let T = StringEntry(g(M), o(Q[1], Q[2], Q[3], Q[4], toString((value(parseInt(Q[5])) + x)), Q[6])) | |
120 | + | let U = StringEntry(i(M, toString(G.caller)), v("1", toString(x))) | |
121 | + | $Tuple2(T, U) | |
131 | 122 | } | |
132 | 123 | else { | |
133 | - | let | |
134 | - | let | |
135 | - | $Tuple2( | |
124 | + | let T = StringEntry(g(M), o(Q[1], Q[2], Q[3], Q[4], Q[5], toString((value(parseInt(Q[6])) + x)))) | |
125 | + | let U = StringEntry(i(M, toString(G.caller)), v("0", toString(x))) | |
126 | + | $Tuple2(T, U) | |
136 | 127 | } | |
137 | - | let | |
138 | - | let | |
139 | - | [ | |
128 | + | let T = S._1 | |
129 | + | let U = S._2 | |
130 | + | [T, U] | |
140 | 131 | } | |
141 | 132 | else throw("Strict value is not equal to itself.") | |
142 | 133 | } | |
143 | 134 | ||
144 | 135 | ||
145 | 136 | ||
146 | - | @Callable( | |
147 | - | func deleteVote ( | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
137 | + | @Callable(G) | |
138 | + | func deleteVote (M) = { | |
139 | + | let O = "EMPTY" | |
140 | + | let P = valueOrElse(getString(this, g(M)), O) | |
141 | + | let Q = split(P, a) | |
142 | + | let R = valueOrElse(getString(this, i(M, toString(G.caller))), O) | |
143 | + | let V = split(R, a) | |
144 | + | let K = [if ((P != O)) | |
154 | 145 | then true | |
155 | - | else throw("No such vote"), if ((value(parseInt( | |
146 | + | else throw("No such vote"), if ((value(parseInt(Q[3])) > lastBlock.height)) | |
156 | 147 | then true | |
157 | - | else | |
148 | + | else b(), if ((R != O)) | |
158 | 149 | then true | |
159 | - | else | |
160 | - | if (( | |
150 | + | else d()] | |
151 | + | if ((K == K)) | |
161 | 152 | then { | |
162 | - | let | |
163 | - | then StringEntry( | |
164 | - | else StringEntry( | |
165 | - | [ | |
153 | + | let W = if ((V[1] == "1")) | |
154 | + | then StringEntry(g(M), o(Q[1], Q[2], Q[3], Q[4], toString((value(parseInt(Q[5])) - value(parseInt(V[2])))), Q[6])) | |
155 | + | else StringEntry(g(M), o(Q[1], Q[2], Q[3], Q[4], Q[5], toString((value(parseInt(Q[6])) - value(parseInt(V[2])))))) | |
156 | + | [W, DeleteEntry(i(M, toString(G.caller)))] | |
166 | 157 | } | |
167 | 158 | else throw("Strict value is not equal to itself.") | |
168 | 159 | } | |
169 | 160 | ||
170 | 161 | ||
171 | 162 | ||
172 | - | @Callable( | |
173 | - | func changeVote ( | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
163 | + | @Callable(G) | |
164 | + | func changeVote (M,N) = { | |
165 | + | let O = "EMPTY" | |
166 | + | let P = valueOrElse(getString(this, g(M)), O) | |
167 | + | let Q = split(P, a) | |
168 | + | let R = valueOrElse(getString(this, i(M, toString(G.caller))), O) | |
169 | + | let V = split(R, a) | |
170 | + | let K = [if ((P != O)) | |
180 | 171 | then true | |
181 | - | else throw("No such vote"), if ((value(parseInt( | |
172 | + | else throw("No such vote"), if ((value(parseInt(Q[3])) > lastBlock.height)) | |
182 | 173 | then true | |
183 | - | else | |
174 | + | else b(), if ((R != O)) | |
184 | 175 | then true | |
185 | - | else | |
186 | - | if (( | |
176 | + | else d()] | |
177 | + | if ((K == K)) | |
187 | 178 | then { | |
188 | - | let | |
189 | - | let | |
179 | + | let x = y(invoke(addressFromStringValue(getStringValue(e())), "getUserGwxAmountAtHeightREADONLY", [toString(G.caller), value(parseInt(Q[3]))], nil)) | |
180 | + | let X = if (N) | |
190 | 181 | then { | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | $Tuple3( | |
182 | + | let Y = x | |
183 | + | let Z = 0 | |
184 | + | let aa = 1 | |
185 | + | $Tuple3(Y, Z, aa) | |
195 | 186 | } | |
196 | 187 | else { | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | $Tuple3( | |
188 | + | let Y = 0 | |
189 | + | let Z = x | |
190 | + | let aa = 0 | |
191 | + | $Tuple3(Y, Z, aa) | |
201 | 192 | } | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | then StringEntry( | |
207 | - | else StringEntry( | |
208 | - | [ | |
193 | + | let ab = X._1 | |
194 | + | let ac = X._2 | |
195 | + | let ad = X._3 | |
196 | + | let W = if ((V[1] == "1")) | |
197 | + | then StringEntry(g(M), o(Q[1], Q[2], Q[3], Q[4], toString(((value(parseInt(Q[5])) - value(parseInt(V[2]))) + ab)), toString((value(parseInt(Q[6])) + ac)))) | |
198 | + | else StringEntry(g(M), o(Q[1], Q[2], Q[3], Q[4], toString((value(parseInt(Q[5])) + ab)), toString(((value(parseInt(Q[6])) - value(parseInt(V[2]))) + ac)))) | |
199 | + | [W, StringEntry(i(M, toString(G.caller)), v(toString(ad), toString(x)))] | |
209 | 200 | } | |
210 | 201 | else throw("Strict value is not equal to itself.") | |
211 | 202 | } | |
212 | 203 | ||
213 | 204 | ||
214 | 205 | ||
215 | - | @Callable( | |
216 | - | func getResultREADONLY ( | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
206 | + | @Callable(G) | |
207 | + | func getResultREADONLY (M) = { | |
208 | + | let O = "EMPTY" | |
209 | + | let P = valueOrElse(getString(this, g(M)), O) | |
210 | + | let Q = split(P, a) | |
211 | + | let K = [if ((P != O)) | |
221 | 212 | then true | |
222 | 213 | else throw("No such vote")] | |
223 | - | if (( | |
214 | + | if ((K == K)) | |
224 | 215 | then { | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | $Tuple2(nil, [ | |
216 | + | let t = Q[5] | |
217 | + | let u = Q[6] | |
218 | + | let s = Q[4] | |
219 | + | $Tuple2(nil, [t, u, s]) | |
229 | 220 | } | |
230 | 221 | else throw("Strict value is not equal to itself.") | |
231 | 222 | } | |
232 | 223 | ||
233 | 224 | ||
234 | - | ||
235 | - | @Callable(F) | |
236 | - | func setManager (ad) = { | |
237 | - | let ae = H(F) | |
238 | - | if ((ae == ae)) | |
239 | - | then { | |
240 | - | let af = fromBase58String(ad) | |
241 | - | if ((af == af)) | |
242 | - | then [StringEntry(c(), ad)] | |
243 | - | else throw("Strict value is not equal to itself.") | |
244 | - | } | |
245 | - | else throw("Strict value is not equal to itself.") | |
246 | - | } | |
247 | - | ||
248 | - | ||
249 | - | ||
250 | - | @Callable(F) | |
251 | - | func confirmManager () = { | |
252 | - | let ag = D() | |
253 | - | let ah = if (isDefined(ag)) | |
254 | - | then true | |
255 | - | else throw("no pending manager") | |
256 | - | if ((ah == ah)) | |
257 | - | then { | |
258 | - | let ai = if ((F.callerPublicKey == value(ag))) | |
259 | - | then true | |
260 | - | else throw("you are not pending manager") | |
261 | - | if ((ai == ai)) | |
262 | - | then [StringEntry(b(), toBase58String(value(ag))), DeleteEntry(c())] | |
263 | - | else throw("Strict value is not equal to itself.") | |
264 | - | } | |
265 | - | else throw("Strict value is not equal to itself.") | |
266 | - | } | |
267 | - | ||
268 | - | ||
269 | - | @Verifier(aj) | |
270 | - | func ak () = { | |
271 | - | let al = { | |
272 | - | let z = B() | |
273 | - | if ($isInstanceOf(z, "ByteVector")) | |
225 | + | @Verifier(ae) | |
226 | + | func af () = { | |
227 | + | let ag = { | |
228 | + | let A = C() | |
229 | + | if ($isInstanceOf(A, "ByteVector")) | |
274 | 230 | then { | |
275 | - | let | |
276 | - | | |
231 | + | let H = A | |
232 | + | H | |
277 | 233 | } | |
278 | - | else if ($isInstanceOf( | |
279 | - | then | |
234 | + | else if ($isInstanceOf(A, "Unit")) | |
235 | + | then ae.senderPublicKey | |
280 | 236 | else throw("Match error") | |
281 | 237 | } | |
282 | - | sigVerify( | |
238 | + | sigVerify(ae.bodyBytes, ae.proofs[0], ag) | |
283 | 239 | } | |
284 | 240 |
github/deemru/w8io/169f3d6 87.06 ms ◑