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