tx · J5xk3tv5ZG3ejqi8Nb7LUtAzqNrUxLQh2U7ek9ud6Pa3 3Mp3nG9T5fKGziHW8mcCqx3jMFx3towh3WA: -0.02200000 Waves 2023.02.22 16:30 [2460915] smart account 3Mp3nG9T5fKGziHW8mcCqx3jMFx3towh3WA > SELF 0.00000000 Waves
{ "type": 13, "id": "J5xk3tv5ZG3ejqi8Nb7LUtAzqNrUxLQh2U7ek9ud6Pa3", "fee": 2200000, "feeAssetId": null, "timestamp": 1677072632295, "version": 2, "chainId": 84, "sender": "3Mp3nG9T5fKGziHW8mcCqx3jMFx3towh3WA", "senderPublicKey": "D46gQxzmdzdCTYRg6dMcwFoUrc6ZmxF6GKd5ZoTkvzp1", "proofs": [ "28UzqVpKVegKE7BLExznp5BaifouUrggNrfy17pYJj5PZRQ6bwJ1ncGzq1WfD1f9EfDaQ5zita8JdBNzWvzaD7Db" ], "script": "base64:BgKxFAgCEgMKAQgSABIECgIIARIHCgUICAgIARIECgIICBIFCgMICAESBAoCCAgSAwoBARIDCgEBEgQKAggIEgQKAggEEgASAwoBARIAEgQKAggIEgQKAggIEgQKAggIIglzZXBhcmF0b3IiDnBvb2xXZWlnaHRNdWx0Ig9tYXhEZXB0aERlZmF1bHQiFmZpbmFsaXphdGlvblN0YWdlVG90YWwiF2ZpbmFsaXphdGlvblN0YWdlU2hhcmVzIg5rZXlFcG9jaExlbmd0aCIRa2V5RXBvY2hMZW5ndGhOZXciFWtleUVwb2NoTGVuZ3RoQnlFcG9jaCIFZXBvY2giD2tleUN1cnJlbnRFcG9jaCILa2V5TWF4RGVwdGgiImtleVZvdGluZ0VtaXNzaW9uQ2FuZGlkYXRlQ29udHJhY3QiEmtleUZhY3RvcnlDb250cmFjdCITa2V5Qm9vc3RpbmdDb250cmFjdCISa2V5U3Rha2luZ0NvbnRyYWN0IhRrZXlGaW5hbGl6YXRpb25TdGFnZSILa2V5TmV4dFBvb2wiC2tleU5leHRVc2VyIg5rZXlTdGFydEhlaWdodCIRa2V5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YuAmFNAQpkZWxldGVOb2RlAgJhcgJhdgQCYVEJAQJhTgEFAmFNAwkAAAIFAmFRBQJhUQkAlAoCCQECYUUCBQJhcgUCYXYFBHVuaXQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAmNrAQJjbAAEAmNtBAFRCQECYUgAAwkAAQIFAVECCkJ5dGVWZWN0b3IEAmFPBQFRBQJhTwMJAAECBQFRAgRVbml0CAUCY2sPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmNrCWJvZHlCeXRlcwkAkQMCCAUCY2sGcHJvb2ZzAAAFAmNtgymnFQ==", "height": 2460915, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9wNALryRHbvVdvYgPVX7w4vGaoXZQLuQt8cmdKQu1BjK Next: G69cBD6mnqUvtQv7x1MefQPAEzUQs1WqVk9UUc5gCHkd Diff:
Old | New | Differences | |
---|---|---|---|
88 | 88 | func L (i) = makeString(["%s%d", "totalVotes", toString(i)], a) | |
89 | 89 | ||
90 | 90 | ||
91 | - | func M (N) = makeString(["voting_emission.ride:", N], " ") | |
92 | - | ||
93 | - | ||
94 | - | func O (N) = throw(M(N)) | |
95 | - | ||
96 | - | ||
97 | - | func P (E,Q,R) = { | |
98 | - | let S = makeString(["mandatory ", toString(E), ".", Q, " is not defined"], "") | |
91 | + | func M (E,N,O) = { | |
92 | + | let P = makeString(["mandatory ", toString(E), ".", N, " is not defined"], "") | |
99 | 93 | valueOrErrorMessage({ | |
100 | - | let | |
101 | - | if ($isInstanceOf( | |
94 | + | let Q = O | |
95 | + | if ($isInstanceOf(Q, "String")) | |
102 | 96 | then { | |
103 | - | let | |
104 | - | getString(E, | |
97 | + | let R = Q | |
98 | + | getString(E, N) | |
105 | 99 | } | |
106 | - | else if ($isInstanceOf( | |
100 | + | else if ($isInstanceOf(Q, "Int")) | |
107 | 101 | then { | |
108 | - | let | |
109 | - | getInteger(E, | |
102 | + | let S = Q | |
103 | + | getInteger(E, N) | |
110 | 104 | } | |
111 | 105 | else throw("invalid entry type") | |
112 | - | }, | |
106 | + | }, P) | |
113 | 107 | } | |
114 | 108 | ||
115 | 109 | ||
116 | - | func | |
117 | - | let | |
118 | - | if ($isInstanceOf( | |
119 | - | then | |
120 | - | else throw(($getType( | |
110 | + | func T (E,N) = { | |
111 | + | let U = M(E, N, "") | |
112 | + | if ($isInstanceOf(U, "String")) | |
113 | + | then U | |
114 | + | else throw(($getType(U) + " couldn't be cast to String")) | |
121 | 115 | } | |
122 | 116 | ||
123 | 117 | ||
124 | - | func | |
125 | - | let | |
126 | - | if ($isInstanceOf( | |
127 | - | then | |
128 | - | else throw(($getType( | |
118 | + | func V (E,N) = { | |
119 | + | let U = M(E, N, 0) | |
120 | + | if ($isInstanceOf(U, "Int")) | |
121 | + | then U | |
122 | + | else throw(($getType(U) + " couldn't be cast to Int")) | |
129 | 123 | } | |
130 | 124 | ||
131 | 125 | ||
132 | - | func | |
126 | + | func W (z) = ((z._1 + a) + z._2) | |
133 | 127 | ||
134 | 128 | ||
135 | - | func | |
136 | - | let | |
137 | - | if ((size( | |
138 | - | then $Tuple2( | |
129 | + | func X (R) = { | |
130 | + | let Y = split(R, a) | |
131 | + | if ((size(Y) == 2)) | |
132 | + | then $Tuple2(Y[0], Y[1]) | |
139 | 133 | else throw("invalid pool string") | |
140 | 134 | } | |
141 | 135 | ||
142 | 136 | ||
143 | - | func | |
144 | - | func | |
137 | + | func Z (B,C) = { | |
138 | + | func aa (ab) = ("%s%s%s__mappings__baseAsset2internalId__" + ab) | |
145 | 139 | ||
146 | - | func | |
140 | + | func ac (ad,ae) = (((("%d%d%s%s__" + toString(ad)) + "__") + toString(ae)) + "__mappings__poolAssets2PoolContract") | |
147 | 141 | ||
148 | - | func | |
142 | + | func af (ag) = (("%s%s%s__" + ag) + "__mappings__poolContract2LpAsset") | |
149 | 143 | ||
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
155 | - | | |
144 | + | let ah = addressFromStringValue(T(this, m)) | |
145 | + | let ai = V(ah, aa(B)) | |
146 | + | let aj = V(ah, aa(C)) | |
147 | + | let ag = T(ah, ac(ai, aj)) | |
148 | + | let ak = T(ah, af(ag)) | |
149 | + | ak | |
156 | 150 | } | |
157 | 151 | ||
152 | + | ||
153 | + | func al (z) = { | |
154 | + | let am = z | |
155 | + | let B = am._1 | |
156 | + | let C = am._2 | |
157 | + | let ah = addressFromStringValue(T(this, m)) | |
158 | + | let U = invoke(ah, "checkWxEmissionPoolLabel", [B, C], nil) | |
159 | + | if ($isInstanceOf(U, "Boolean")) | |
160 | + | then U | |
161 | + | else throw(($getType(U) + " couldn't be cast to Boolean")) | |
162 | + | } | |
163 | + | ||
164 | + | ||
165 | + | let an = "pools" | |
158 | 166 | ||
159 | 167 | func ao (z) = { | |
160 | 168 | let ap = z | |
161 | 169 | let B = ap._1 | |
162 | 170 | let C = ap._2 | |
163 | - | let ak = addressFromStringValue(W(this, m)) | |
164 | - | let X = invoke(ak, "checkWxEmissionPoolLabel", [B, C], nil) | |
165 | - | if ($isInstanceOf(X, "Boolean")) | |
166 | - | then X | |
167 | - | else throw(($getType(X) + " couldn't be cast to Boolean")) | |
168 | - | } | |
169 | - | ||
170 | - | ||
171 | - | let aq = "pools" | |
172 | - | ||
173 | - | func ar (z) = { | |
174 | - | let as = z | |
175 | - | let B = as._1 | |
176 | - | let C = as._2 | |
177 | 171 | makeString(["votes", B, C], a) | |
178 | 172 | } | |
179 | 173 | ||
180 | 174 | ||
181 | - | func | |
182 | - | let | |
175 | + | func aq (ar) = { | |
176 | + | let as = if ((ar == an)) | |
183 | 177 | then "%s%s" | |
184 | 178 | else "%s%s%s%s" | |
185 | - | makeString([ | |
179 | + | makeString([as, ar, "head"], a) | |
186 | 180 | } | |
187 | 181 | ||
188 | 182 | ||
189 | - | func | |
190 | - | let | |
183 | + | func at (ar) = { | |
184 | + | let as = if ((ar == an)) | |
191 | 185 | then "%s%s" | |
192 | 186 | else "%s%s%s%s" | |
193 | - | makeString([ | |
187 | + | makeString([as, ar, "size"], a) | |
194 | 188 | } | |
195 | 189 | ||
196 | 190 | ||
197 | - | func | |
198 | - | let | |
191 | + | func au (ar,av) = { | |
192 | + | let as = if ((ar == an)) | |
199 | 193 | then "%s%s%s%s" | |
200 | 194 | else "%s%s%s%s%s" | |
201 | - | makeString([ | |
195 | + | makeString([as, ar, av, "prev"], a) | |
202 | 196 | } | |
203 | 197 | ||
204 | 198 | ||
205 | - | func | |
206 | - | let | |
199 | + | func aw (ar,av) = { | |
200 | + | let as = if ((ar == an)) | |
207 | 201 | then "%s%s%s%s" | |
208 | 202 | else "%s%s%s%s%s" | |
209 | - | makeString([ | |
203 | + | makeString([as, ar, av, "next"], a) | |
210 | 204 | } | |
211 | 205 | ||
212 | 206 | ||
213 | - | func | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | if (if (( | |
207 | + | func ax (ar,av) = { | |
208 | + | let ay = getString(this, aq(ar)) | |
209 | + | let az = getString(this, au(ar, av)) | |
210 | + | let aA = getString(this, aw(ar, av)) | |
211 | + | if (if ((av == valueOrElse(ay, ""))) | |
218 | 212 | then true | |
219 | - | else ( | |
213 | + | else (az != unit)) | |
220 | 214 | then true | |
221 | - | else ( | |
215 | + | else (aA != unit) | |
222 | 216 | } | |
223 | 217 | ||
224 | 218 | ||
225 | - | func | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
219 | + | func aB (ar,av) = { | |
220 | + | let ay = getString(this, aq(ar)) | |
221 | + | let aC = valueOrElse(getInteger(this, at(ar)), 0) | |
222 | + | let aD = if (!(ax(ar, av))) | |
229 | 223 | then true | |
230 | 224 | else throw("Node exists") | |
231 | - | if (( | |
232 | - | then (([IntegerEntry( | |
233 | - | then [StringEntry( | |
234 | - | else nil)) ++ [StringEntry( | |
225 | + | if ((aD == aD)) | |
226 | + | then (([IntegerEntry(at(ar), (aC + 1))] ++ (if ((ay != unit)) | |
227 | + | then [StringEntry(aw(ar, av), value(ay)), StringEntry(au(ar, value(ay)), av)] | |
228 | + | else nil)) ++ [StringEntry(aq(ar), av)]) | |
235 | 229 | else throw("Strict value is not equal to itself.") | |
236 | 230 | } | |
237 | 231 | ||
238 | 232 | ||
239 | - | func | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | ([IntegerEntry( | |
245 | - | then ( | |
233 | + | func aE (ar,av) = { | |
234 | + | let ay = getString(this, aq(ar)) | |
235 | + | let aC = valueOrElse(getInteger(this, at(ar)), 0) | |
236 | + | let az = getString(this, au(ar, av)) | |
237 | + | let aA = getString(this, aw(ar, av)) | |
238 | + | ([IntegerEntry(at(ar), (aC - 1))] ++ (if (if ((az != unit)) | |
239 | + | then (aA != unit) | |
246 | 240 | else false) | |
247 | - | then [StringEntry( | |
248 | - | else if (( | |
249 | - | then [StringEntry( | |
250 | - | else if (( | |
251 | - | then [DeleteEntry( | |
252 | - | else if (( | |
253 | - | then [DeleteEntry( | |
254 | - | else throw(((("invalid node: " + | |
241 | + | then [StringEntry(aw(ar, value(az)), value(aA)), StringEntry(au(ar, value(aA)), value(az)), DeleteEntry(au(ar, av)), DeleteEntry(aw(ar, av))] | |
242 | + | else if ((aA != unit)) | |
243 | + | then [StringEntry(aq(ar), value(aA)), DeleteEntry(aw(ar, av)), DeleteEntry(au(ar, value(aA)))] | |
244 | + | else if ((az != unit)) | |
245 | + | then [DeleteEntry(au(ar, av)), DeleteEntry(aw(ar, value(az)))] | |
246 | + | else if ((av == valueOrElse(ay, ""))) | |
247 | + | then [DeleteEntry(aq(ar))] | |
248 | + | else throw(((("invalid node: " + ar) + ".") + av)))) | |
255 | 249 | } | |
256 | 250 | ||
257 | 251 | ||
258 | - | func | |
252 | + | func aF () = "%s__managerPublicKey" | |
259 | 253 | ||
260 | 254 | ||
261 | - | func | |
255 | + | func aG () = "%s__pendingManagerPublicKey" | |
262 | 256 | ||
263 | 257 | ||
264 | - | func | |
265 | - | let | |
266 | - | if ($isInstanceOf( | |
258 | + | func aH () = { | |
259 | + | let Q = getString(aF()) | |
260 | + | if ($isInstanceOf(Q, "String")) | |
267 | 261 | then { | |
268 | - | let | |
269 | - | fromBase58String( | |
262 | + | let aI = Q | |
263 | + | fromBase58String(aI) | |
270 | 264 | } | |
271 | - | else if ($isInstanceOf( | |
265 | + | else if ($isInstanceOf(Q, "Unit")) | |
272 | 266 | then unit | |
273 | 267 | else throw("Match error") | |
274 | 268 | } | |
275 | 269 | ||
276 | 270 | ||
277 | - | func | |
278 | - | let | |
279 | - | if ($isInstanceOf( | |
271 | + | func aJ () = { | |
272 | + | let Q = getString(aG()) | |
273 | + | if ($isInstanceOf(Q, "String")) | |
280 | 274 | then { | |
281 | - | let | |
282 | - | fromBase58String( | |
275 | + | let aI = Q | |
276 | + | fromBase58String(aI) | |
283 | 277 | } | |
284 | - | else if ($isInstanceOf( | |
278 | + | else if ($isInstanceOf(Q, "Unit")) | |
285 | 279 | then unit | |
286 | 280 | else throw("Match error") | |
287 | 281 | } | |
288 | 282 | ||
289 | 283 | ||
290 | - | let | |
284 | + | let aK = throw("Permission denied") | |
291 | 285 | ||
292 | - | func | |
286 | + | func aL (aM) = if ((aM.caller == this)) | |
293 | 287 | then true | |
294 | - | else | |
288 | + | else aK | |
295 | 289 | ||
296 | 290 | ||
297 | - | func | |
298 | - | let | |
299 | - | if ($isInstanceOf( | |
291 | + | func aN (aM) = { | |
292 | + | let Q = aH() | |
293 | + | if ($isInstanceOf(Q, "ByteVector")) | |
300 | 294 | then { | |
301 | - | let | |
302 | - | if (( | |
295 | + | let aO = Q | |
296 | + | if ((aM.callerPublicKey == aO)) | |
303 | 297 | then true | |
304 | - | else | |
298 | + | else aK | |
305 | 299 | } | |
306 | - | else if ($isInstanceOf( | |
307 | - | then | |
300 | + | else if ($isInstanceOf(Q, "Unit")) | |
301 | + | then aL(aM) | |
308 | 302 | else throw("Match error") | |
309 | 303 | } | |
310 | 304 | ||
311 | 305 | ||
312 | - | @Callable( | |
313 | - | func setManager ( | |
314 | - | let | |
315 | - | if (( | |
306 | + | @Callable(aM) | |
307 | + | func setManager (aP) = { | |
308 | + | let aQ = aN(aM) | |
309 | + | if ((aQ == aQ)) | |
316 | 310 | then { | |
317 | - | let | |
318 | - | if (( | |
319 | - | then [StringEntry( | |
311 | + | let aR = fromBase58String(aP) | |
312 | + | if ((aR == aR)) | |
313 | + | then [StringEntry(aG(), aP)] | |
320 | 314 | else throw("Strict value is not equal to itself.") | |
321 | 315 | } | |
322 | 316 | else throw("Strict value is not equal to itself.") | |
324 | 318 | ||
325 | 319 | ||
326 | 320 | ||
327 | - | @Callable( | |
321 | + | @Callable(aM) | |
328 | 322 | func confirmManager () = { | |
329 | - | let | |
330 | - | let | |
323 | + | let aS = aJ() | |
324 | + | let aT = if (isDefined(aS)) | |
331 | 325 | then true | |
332 | 326 | else throw("No pending manager") | |
333 | - | if (( | |
327 | + | if ((aT == aT)) | |
334 | 328 | then { | |
335 | - | let | |
329 | + | let aU = if ((aM.callerPublicKey == value(aS))) | |
336 | 330 | then true | |
337 | 331 | else throw("You are not pending manager") | |
338 | - | if (( | |
339 | - | then [StringEntry( | |
332 | + | if ((aU == aU)) | |
333 | + | then [StringEntry(aF(), toBase58String(value(aS))), DeleteEntry(aG())] | |
340 | 334 | else throw("Strict value is not equal to itself.") | |
341 | 335 | } | |
342 | 336 | else throw("Strict value is not equal to itself.") | |
344 | 338 | ||
345 | 339 | ||
346 | 340 | ||
347 | - | @Callable( | |
348 | - | func getUserGwxAmountAtHeight ( | |
349 | - | let | |
341 | + | @Callable(aM) | |
342 | + | func getUserGwxAmountAtHeight (aV,aW) = { | |
343 | + | let aX = valueOrErrorMessage(addressFromString(T(this, n)), "invalid boosting contract address") | |
350 | 344 | $Tuple2(nil, { | |
351 | - | let | |
352 | - | if ($isInstanceOf( | |
353 | - | then | |
354 | - | else throw(($getType( | |
345 | + | let U = invoke(aX, "getUserGwxAmountAtHeightREADONLY", [aV, aW], nil) | |
346 | + | if ($isInstanceOf(U, "Int")) | |
347 | + | then U | |
348 | + | else throw(($getType(U) + " couldn't be cast to Int")) | |
355 | 349 | }) | |
356 | 350 | } | |
357 | 351 | ||
358 | 352 | ||
359 | 353 | ||
360 | - | @Callable( | |
361 | - | func constructor ( | |
362 | - | let | |
354 | + | @Callable(aM) | |
355 | + | func constructor (ah,aY,aZ,ba,bb) = { | |
356 | + | let bc = [aN(aM), if ((addressFromString(ah) != unit)) | |
363 | 357 | then true | |
364 | - | else "invalid factory contract address", if ((addressFromString( | |
358 | + | else "invalid factory contract address", if ((addressFromString(aY) != unit)) | |
365 | 359 | then true | |
366 | - | else "invalid voting emission candidate contract address", if ((addressFromString( | |
360 | + | else "invalid voting emission candidate contract address", if ((addressFromString(aZ) != unit)) | |
367 | 361 | then true | |
368 | - | else "invalid boosting contract address", if ((addressFromString( | |
362 | + | else "invalid boosting contract address", if ((addressFromString(ba) != unit)) | |
369 | 363 | then true | |
370 | - | else "invalid staking contract address", if (( | |
364 | + | else "invalid staking contract address", if ((bb > 0)) | |
371 | 365 | then true | |
372 | 366 | else throw("invalid epoch length")] | |
373 | - | if (( | |
374 | - | then $Tuple2([StringEntry(m, | |
367 | + | if ((bc == bc)) | |
368 | + | then $Tuple2([StringEntry(m, ah), StringEntry(l, aY), StringEntry(n, aZ), StringEntry(o, ba), IntegerEntry(f, bb)], unit) | |
375 | 369 | else throw("Strict value is not equal to itself.") | |
376 | 370 | } | |
377 | 371 | ||
378 | 372 | ||
379 | 373 | ||
380 | - | @Callable( | |
374 | + | @Callable(aM) | |
381 | 375 | func create (B,C) = { | |
382 | - | let | |
376 | + | let bc = [if ((toBase58String(aM.caller.bytes) == valueOrElse(getString(this, l), ""))) | |
383 | 377 | then true | |
384 | - | else | |
385 | - | if (( | |
378 | + | else aN(aM)] | |
379 | + | if ((bc == bc)) | |
386 | 380 | then { | |
387 | 381 | let z = $Tuple2(B, C) | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
382 | + | let bd = ([BooleanEntry(y(z), true)] ++ aB(an, W(z))) | |
383 | + | let be = (getInteger(this, j) == unit) | |
384 | + | let bf = if (be) | |
391 | 385 | then { | |
392 | 386 | let i = 0 | |
393 | 387 | [IntegerEntry(j, i), IntegerEntry(w(i), height), IntegerEntry(s, height), IntegerEntry(t, i), IntegerEntry(u, height)] | |
394 | 388 | } | |
395 | 389 | else nil | |
396 | - | $Tuple2(( | |
390 | + | $Tuple2((bd ++ bf), unit) | |
397 | 391 | } | |
398 | 392 | else throw("Strict value is not equal to itself.") | |
399 | 393 | } | |
400 | 394 | ||
401 | 395 | ||
402 | 396 | ||
403 | - | @Callable( | |
404 | - | func vote (B,C, | |
397 | + | @Callable(aM) | |
398 | + | func vote (B,C,bg) = { | |
405 | 399 | let z = $Tuple2(B, C) | |
406 | 400 | let i = valueOrElse(getInteger(this, j), 0) | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | if ($isInstanceOf( | |
418 | - | then | |
419 | - | else throw(($getType( | |
401 | + | let bh = V(this, w(i)) | |
402 | + | let bb = V(this, f) | |
403 | + | let bi = (bh + bb) | |
404 | + | let bj = getInteger(this, p) | |
405 | + | let bk = valueOrElse(getInteger(this, D(aM.caller, i)), 0) | |
406 | + | let bl = valueOrElse(getInteger(this, F(z, aM.caller, i)), 0) | |
407 | + | let bm = valueOrElse(getInteger(this, H(z, i)), 0) | |
408 | + | let bn = valueOrElse(getInteger(this, L(i)), 0) | |
409 | + | let bo = { | |
410 | + | let U = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(aM.caller.bytes), bi], nil) | |
411 | + | if ($isInstanceOf(U, "Int")) | |
412 | + | then U | |
413 | + | else throw(($getType(U) + " couldn't be cast to Int")) | |
420 | 414 | } | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
415 | + | let bp = (bo - bk) | |
416 | + | let bq = (bl + bg) | |
417 | + | let br = al(z) | |
418 | + | let bc = [if ((getBoolean(y(z)) != unit)) | |
425 | 419 | then true | |
426 | - | else throw("invalid assets"), if (( | |
420 | + | else throw("invalid assets"), if ((bi > height)) | |
427 | 421 | then true | |
428 | - | else throw("invalid height"), if (( | |
422 | + | else throw("invalid height"), if ((bj == unit)) | |
429 | 423 | then true | |
430 | - | else throw("finalization in progress"), if (( | |
424 | + | else throw("finalization in progress"), if ((bo > 0)) | |
431 | 425 | then true | |
432 | - | else throw("you do not have gWX"), if (if (( | |
433 | - | then ( | |
426 | + | else throw("you do not have gWX"), if (if ((bg > 0)) | |
427 | + | then (bp >= bg) | |
434 | 428 | else false) | |
435 | 429 | then true | |
436 | - | else throw("invalid amount"), if ( | |
430 | + | else throw("invalid amount"), if (br) | |
437 | 431 | then true | |
438 | 432 | else throw("pool hasn't WX_EMISSION label")] | |
439 | - | if (( | |
433 | + | if ((bc == bc)) | |
440 | 434 | then { | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
435 | + | let bs = ao(z) | |
436 | + | let bt = toString(aM.caller) | |
437 | + | let bu = if (ax(bs, bt)) | |
444 | 438 | then nil | |
445 | - | else | |
446 | - | $Tuple2(([IntegerEntry(D( | |
439 | + | else aB(bs, bt) | |
440 | + | $Tuple2(([IntegerEntry(D(aM.caller, i), (bk + bg)), IntegerEntry(F(z, aM.caller, i), bq), IntegerEntry(H(z, i), (bm + bg)), IntegerEntry(L(i), (bn + bg))] ++ bu), unit) | |
447 | 441 | } | |
448 | 442 | else throw("Strict value is not equal to itself.") | |
449 | 443 | } | |
450 | 444 | ||
451 | 445 | ||
452 | 446 | ||
453 | - | @Callable( | |
447 | + | @Callable(aM) | |
454 | 448 | func cancelVote (B,C) = { | |
455 | 449 | let z = $Tuple2(B, C) | |
456 | 450 | let i = valueOrElse(getInteger(this, j), 0) | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
451 | + | let bh = V(this, w(i)) | |
452 | + | let bb = V(this, f) | |
453 | + | let bi = (bh + bb) | |
454 | + | let bj = getInteger(this, p) | |
455 | + | let bk = valueOrElse(getInteger(this, D(aM.caller, i)), 0) | |
456 | + | let bl = valueOrElse(getInteger(this, F(z, aM.caller, i)), 0) | |
457 | + | let bm = valueOrElse(getInteger(this, H(z, i)), 0) | |
458 | + | let bn = valueOrElse(getInteger(this, L(i)), 0) | |
459 | + | let bc = [if ((getBoolean(y(z)) != unit)) | |
466 | 460 | then true | |
467 | - | else throw("invalid assets"), if (( | |
461 | + | else throw("invalid assets"), if ((bi > height)) | |
468 | 462 | then true | |
469 | - | else throw("invalid height"), if (( | |
463 | + | else throw("invalid height"), if ((bj == unit)) | |
470 | 464 | then true | |
471 | - | else throw("finalization in progress"), if (( | |
465 | + | else throw("finalization in progress"), if ((bl > 0)) | |
472 | 466 | then true | |
473 | 467 | else throw("no vote")] | |
474 | - | if (( | |
468 | + | if ((bc == bc)) | |
475 | 469 | then { | |
476 | - | let | |
477 | - | let | |
478 | - | $Tuple2(([IntegerEntry(D( | |
470 | + | let bs = ao(z) | |
471 | + | let bt = toString(aM.caller) | |
472 | + | $Tuple2(([IntegerEntry(D(aM.caller, i), max([(bk - bl), 0])), DeleteEntry(F(z, aM.caller, i)), IntegerEntry(H(z, i), (bm - bl)), IntegerEntry(L(i), (bn - bl))] ++ aE(bs, bt)), unit) | |
479 | 473 | } | |
480 | 474 | else throw("Strict value is not equal to itself.") | |
481 | 475 | } | |
482 | 476 | ||
483 | 477 | ||
484 | 478 | ||
485 | - | @Callable( | |
486 | - | func setEpochLength ( | |
487 | - | let | |
479 | + | @Callable(aM) | |
480 | + | func setEpochLength (bv) = { | |
481 | + | let bc = [aN(aM), if ((bv > 0)) | |
488 | 482 | then true | |
489 | 483 | else throw("invalid epoch length")] | |
490 | - | if (( | |
491 | - | then $Tuple2([IntegerEntry(g, | |
484 | + | if ((bc == bc)) | |
485 | + | then $Tuple2([IntegerEntry(g, bv)], unit) | |
492 | 486 | else throw("Strict value is not equal to itself.") | |
493 | 487 | } | |
494 | 488 | ||
495 | 489 | ||
496 | 490 | ||
497 | - | @Callable( | |
498 | - | func setMaxDepth ( | |
499 | - | let | |
491 | + | @Callable(aM) | |
492 | + | func setMaxDepth (bw) = { | |
493 | + | let bc = [aN(aM), if ((bw > 0)) | |
500 | 494 | then true | |
501 | 495 | else throw("invalid max depth")] | |
502 | - | if (( | |
503 | - | then $Tuple2([IntegerEntry(k, | |
496 | + | if ((bc == bc)) | |
497 | + | then $Tuple2([IntegerEntry(k, bw)], unit) | |
504 | 498 | else throw("Strict value is not equal to itself.") | |
505 | 499 | } | |
506 | 500 | ||
507 | 501 | ||
508 | 502 | ||
509 | - | @Callable( | |
510 | - | func processVoteINTERNAL ( | |
511 | - | let | |
512 | - | if (( | |
503 | + | @Callable(aM) | |
504 | + | func processVoteINTERNAL (bx,bt) = { | |
505 | + | let aQ = aL(aM) | |
506 | + | if ((aQ == aQ)) | |
513 | 507 | then { | |
514 | - | let | |
515 | - | let i = | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
508 | + | let aV = valueOrErrorMessage(addressFromString(bt), ("processVoteINTERNAL: invalid user address " + bt)) | |
509 | + | let i = V(this, j) | |
510 | + | let by = (i - 1) | |
511 | + | let bb = V(this, f) | |
512 | + | let bh = V(this, w(i)) | |
513 | + | let bi = (bh + bb) | |
514 | + | let bz = V(this, w(by)) | |
515 | + | let bA = V(this, h(by)) | |
516 | + | let bB = (bz + bA) | |
517 | + | let bC = if ((by >= 0)) | |
524 | 518 | then true | |
525 | 519 | else throw("processVoteINTERNAL: invalid previous epoch") | |
526 | - | if (( | |
520 | + | if ((bC == bC)) | |
527 | 521 | then { | |
528 | - | let z = | |
529 | - | let | |
530 | - | let B = | |
531 | - | let C = | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | if ($isInstanceOf( | |
536 | - | then | |
537 | - | else throw(($getType( | |
522 | + | let z = X(bx) | |
523 | + | let bD = z | |
524 | + | let B = bD._1 | |
525 | + | let C = bD._2 | |
526 | + | let br = al(z) | |
527 | + | let bo = { | |
528 | + | let U = invoke(this, "getUserGwxAmountAtHeight", [bt, bi], nil) | |
529 | + | if ($isInstanceOf(U, "Int")) | |
530 | + | then U | |
531 | + | else throw(($getType(U) + " couldn't be cast to Int")) | |
538 | 532 | } | |
539 | - | let | |
540 | - | let | |
541 | - | if ($isInstanceOf( | |
542 | - | then | |
543 | - | else throw(($getType( | |
533 | + | let bE = { | |
534 | + | let U = invoke(this, "getUserGwxAmountAtHeight", [bt, bB], nil) | |
535 | + | if ($isInstanceOf(U, "Int")) | |
536 | + | then U | |
537 | + | else throw(($getType(U) + " couldn't be cast to Int")) | |
544 | 538 | } | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | then fraction( | |
539 | + | let bn = valueOrElse(getInteger(L(i)), 0) | |
540 | + | let bF = valueOrElse(getInteger(H(z, i)), 0) | |
541 | + | let bG = valueOrErrorMessage(getInteger(F(z, aV, by)), (((("processVoteINTERNAL " + bx) + " ") + bt) + ": no previous vote")) | |
542 | + | let bk = valueOrElse(getInteger(this, D(aV, i)), 0) | |
543 | + | let bq = if ((bE > 0)) | |
544 | + | then fraction(bG, bo, bE) | |
551 | 545 | else 0 | |
552 | - | let | |
553 | - | then | |
546 | + | let bH = if (if ((bq > 0)) | |
547 | + | then br | |
554 | 548 | else false) | |
555 | - | then [IntegerEntry(F(z, | |
556 | - | else | |
557 | - | $Tuple2( | |
549 | + | then [IntegerEntry(F(z, aV, i), bq), IntegerEntry(L(i), (bn + bq)), IntegerEntry(H(z, i), (bF + bq)), IntegerEntry(D(aV, i), (bk + bq))] | |
550 | + | else aE(ao(z), bt) | |
551 | + | $Tuple2(bH, unit) | |
558 | 552 | } | |
559 | 553 | else throw("Strict value is not equal to itself.") | |
560 | 554 | } | |
563 | 557 | ||
564 | 558 | ||
565 | 559 | ||
566 | - | @Callable( | |
567 | - | func processPoolINTERNAL ( | |
568 | - | let | |
569 | - | if (( | |
560 | + | @Callable(aM) | |
561 | + | func processPoolINTERNAL (bx,bI) = { | |
562 | + | let aQ = aL(aM) | |
563 | + | if ((aQ == aQ)) | |
570 | 564 | then { | |
571 | - | let | |
572 | - | let | |
573 | - | if ( | |
574 | - | then | |
575 | - | else ( | |
565 | + | let bJ = { | |
566 | + | let bK = V(this, j) | |
567 | + | if (bI) | |
568 | + | then bK | |
569 | + | else (bK - 1) | |
576 | 570 | } | |
577 | - | let | |
571 | + | let bC = if ((bJ >= 0)) | |
578 | 572 | then true | |
579 | 573 | else throw("processPoolINTERNAL: invalid target epoch") | |
580 | - | if (( | |
574 | + | if ((bC == bC)) | |
581 | 575 | then { | |
582 | - | let z = | |
583 | - | let | |
584 | - | let B = | |
585 | - | let C = | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | if ($isInstanceOf( | |
592 | - | then | |
593 | - | else throw(($getType( | |
576 | + | let z = X(bx) | |
577 | + | let bL = z | |
578 | + | let B = bL._1 | |
579 | + | let C = bL._2 | |
580 | + | let ba = addressFromStringValue(T(this, o)) | |
581 | + | let ah = addressFromStringValue(T(this, m)) | |
582 | + | let ak = Z(B, C) | |
583 | + | let bM = { | |
584 | + | let U = invoke(ba, "usersListTraversal", [ak], nil) | |
585 | + | if ($isInstanceOf(U, "Boolean")) | |
586 | + | then U | |
587 | + | else throw(($getType(U) + " couldn't be cast to Boolean")) | |
594 | 588 | } | |
595 | - | if (( | |
596 | - | then if ( | |
589 | + | if ((bM == bM)) | |
590 | + | then if (bM) | |
597 | 591 | then $Tuple2(nil, true) | |
598 | 592 | else { | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
593 | + | let br = al(z) | |
594 | + | let bn = valueOrElse(getInteger(this, L(bJ)), 0) | |
595 | + | let bF = valueOrElse(getInteger(this, H(z, bJ)), 0) | |
596 | + | let bN = if (if ((bn == 0)) | |
603 | 597 | then true | |
604 | - | else !( | |
598 | + | else !(br)) | |
605 | 599 | then 0 | |
606 | - | else fraction( | |
607 | - | let | |
608 | - | if (( | |
600 | + | else fraction(bF, b, bn) | |
601 | + | let bO = invoke(ah, "modifyWeight", [ak, bN], nil) | |
602 | + | if ((bO == bO)) | |
609 | 603 | then { | |
610 | - | let | |
604 | + | let bP = if (if (br) | |
611 | 605 | then true | |
612 | - | else | |
606 | + | else bI) | |
613 | 607 | then nil | |
614 | - | else ([DeleteEntry(y(z))] ++ | |
615 | - | $Tuple2(([IntegerEntry(J(z, | |
608 | + | else ([DeleteEntry(y(z))] ++ aE(an, bx)) | |
609 | + | $Tuple2(([IntegerEntry(J(z, bJ), bN)] ++ bP), false) | |
616 | 610 | } | |
617 | 611 | else throw("Strict value is not equal to itself.") | |
618 | 612 | } | |
625 | 619 | ||
626 | 620 | ||
627 | 621 | ||
628 | - | @Callable( | |
622 | + | @Callable(aM) | |
629 | 623 | func finalizeHelper () = { | |
630 | - | let | |
624 | + | let bI = valueOrElse(getBoolean(v), false) | |
631 | 625 | let i = valueOrElse(getInteger(this, j), 0) | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | if (if (if ((height >= | |
638 | - | then ( | |
626 | + | let bQ = (i - 1) | |
627 | + | let bh = V(this, w(i)) | |
628 | + | let bb = V(this, f) | |
629 | + | let bi = (bh + bb) | |
630 | + | let bj = getInteger(this, p) | |
631 | + | if (if (if ((height >= bi)) | |
632 | + | then (bj == unit) | |
639 | 633 | else false) | |
640 | - | then !( | |
634 | + | then !(bI) | |
641 | 635 | else false) | |
642 | 636 | then { | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | if ($isInstanceOf( | |
637 | + | let bR = (i + 1) | |
638 | + | let bS = getInteger(this, g) | |
639 | + | let bT = { | |
640 | + | let Q = bS | |
641 | + | if ($isInstanceOf(Q, "Int")) | |
648 | 642 | then { | |
649 | - | let | |
650 | - | [IntegerEntry(f, | |
643 | + | let bv = Q | |
644 | + | [IntegerEntry(f, bv), DeleteEntry(g)] | |
651 | 645 | } | |
652 | - | else if ($isInstanceOf( | |
646 | + | else if ($isInstanceOf(Q, "Unit")) | |
653 | 647 | then nil | |
654 | 648 | else throw("Match error") | |
655 | 649 | } | |
656 | - | $Tuple2(([IntegerEntry(w( | |
650 | + | $Tuple2(([IntegerEntry(w(bR), height), IntegerEntry(s, height), IntegerEntry(j, bR), IntegerEntry(p, d), IntegerEntry(h(i), bb)] ++ bT), true) | |
657 | 651 | } | |
658 | - | else if (if ( | |
659 | - | then ( | |
652 | + | else if (if (bI) | |
653 | + | then (bj == unit) | |
660 | 654 | else false) | |
661 | 655 | then $Tuple2([IntegerEntry(p, e)], true) | |
662 | - | else if (( | |
656 | + | else if ((bj == unit)) | |
663 | 657 | then $Tuple2(nil, false) | |
664 | - | else if (( | |
658 | + | else if ((bj == d)) | |
665 | 659 | then { | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | if ($isInstanceOf( | |
660 | + | let bU = getString(q) | |
661 | + | let bV = getString(r) | |
662 | + | let Q = bU | |
663 | + | if ($isInstanceOf(Q, "Unit")) | |
670 | 664 | then { | |
671 | - | let | |
672 | - | if ($isInstanceOf( | |
665 | + | let bW = getString(aq(an)) | |
666 | + | if ($isInstanceOf(bW, "Unit")) | |
673 | 667 | then $Tuple2([IntegerEntry(p, e), DeleteEntry(q), DeleteEntry(r)], true) | |
674 | - | else if ($isInstanceOf( | |
668 | + | else if ($isInstanceOf(bW, "String")) | |
675 | 669 | then { | |
676 | - | let | |
677 | - | $Tuple2([StringEntry(q, | |
670 | + | let bX = bW | |
671 | + | $Tuple2([StringEntry(q, bX)], true) | |
678 | 672 | } | |
679 | 673 | else throw("Match error") | |
680 | 674 | } | |
681 | - | else if ($isInstanceOf( | |
675 | + | else if ($isInstanceOf(Q, "String")) | |
682 | 676 | then { | |
683 | - | let | |
684 | - | let z = | |
685 | - | let | |
686 | - | let | |
687 | - | if ($isInstanceOf( | |
688 | - | then getString( | |
689 | - | else if ($isInstanceOf( | |
677 | + | let bx = Q | |
678 | + | let z = X(bx) | |
679 | + | let bY = { | |
680 | + | let bW = bV | |
681 | + | if ($isInstanceOf(bW, "Unit")) | |
682 | + | then getString(aq(ao(z))) | |
683 | + | else if ($isInstanceOf(bW, "String")) | |
690 | 684 | then { | |
691 | - | let | |
692 | - | let | |
693 | - | if (( | |
685 | + | let bZ = bW | |
686 | + | let ca = getString(aw(ao(z), bZ)) | |
687 | + | if ((ca == ca)) | |
694 | 688 | then { | |
695 | - | let | |
696 | - | if (( | |
697 | - | then | |
689 | + | let cb = invoke(this, "processVoteINTERNAL", [bx, bZ], nil) | |
690 | + | if ((cb == cb)) | |
691 | + | then ca | |
698 | 692 | else throw("Strict value is not equal to itself.") | |
699 | 693 | } | |
700 | 694 | else throw("Strict value is not equal to itself.") | |
701 | 695 | } | |
702 | 696 | else throw("Match error") | |
703 | 697 | } | |
704 | - | let | |
705 | - | if ($isInstanceOf( | |
698 | + | let bW = bY | |
699 | + | if ($isInstanceOf(bW, "Unit")) | |
706 | 700 | then { | |
707 | - | let | |
708 | - | let | |
709 | - | if ($isInstanceOf( | |
701 | + | let cc = getString(aw(an, bx)) | |
702 | + | let cd = cc | |
703 | + | if ($isInstanceOf(cd, "Unit")) | |
710 | 704 | then $Tuple2([IntegerEntry(p, e), DeleteEntry(q), DeleteEntry(r)], true) | |
711 | - | else if ($isInstanceOf( | |
705 | + | else if ($isInstanceOf(cd, "String")) | |
712 | 706 | then { | |
713 | - | let | |
714 | - | $Tuple2([StringEntry(q, | |
707 | + | let aI = cd | |
708 | + | $Tuple2([StringEntry(q, aI), DeleteEntry(r)], true) | |
715 | 709 | } | |
716 | 710 | else throw("Match error") | |
717 | 711 | } | |
718 | - | else if ($isInstanceOf( | |
712 | + | else if ($isInstanceOf(bW, "String")) | |
719 | 713 | then { | |
720 | - | let | |
721 | - | $Tuple2([StringEntry(r, | |
714 | + | let ce = bW | |
715 | + | $Tuple2([StringEntry(r, ce)], true) | |
722 | 716 | } | |
723 | 717 | else throw("Match error") | |
724 | 718 | } | |
725 | 719 | else throw("Match error") | |
726 | 720 | } | |
727 | - | else if (( | |
721 | + | else if ((bj == e)) | |
728 | 722 | then { | |
729 | - | let | |
730 | - | let | |
731 | - | if ($isInstanceOf( | |
723 | + | let bU = getString(q) | |
724 | + | let Q = bU | |
725 | + | if ($isInstanceOf(Q, "Unit")) | |
732 | 726 | then { | |
733 | - | let | |
734 | - | if ($isInstanceOf( | |
727 | + | let bW = getString(aq(an)) | |
728 | + | if ($isInstanceOf(bW, "Unit")) | |
735 | 729 | then { | |
736 | - | let | |
730 | + | let bH = if (bI) | |
737 | 731 | then [DeleteEntry(p), DeleteEntry(v)] | |
738 | - | else [DeleteEntry(p), BooleanEntry(x( | |
739 | - | $Tuple2( | |
732 | + | else [DeleteEntry(p), BooleanEntry(x(bQ), true), IntegerEntry(t, i), IntegerEntry(u, bh)] | |
733 | + | $Tuple2(bH, true) | |
740 | 734 | } | |
741 | - | else if ($isInstanceOf( | |
735 | + | else if ($isInstanceOf(bW, "String")) | |
742 | 736 | then { | |
743 | - | let | |
744 | - | $Tuple2([StringEntry(q, | |
737 | + | let cf = bW | |
738 | + | $Tuple2([StringEntry(q, cf)], true) | |
745 | 739 | } | |
746 | 740 | else throw("Match error") | |
747 | 741 | } | |
748 | - | else if ($isInstanceOf( | |
742 | + | else if ($isInstanceOf(Q, "String")) | |
749 | 743 | then { | |
750 | - | let | |
751 | - | let | |
752 | - | if (( | |
744 | + | let bx = Q | |
745 | + | let cc = getString(aw(an, bx)) | |
746 | + | if ((cc == cc)) | |
753 | 747 | then { | |
754 | - | let | |
755 | - | let | |
756 | - | if ($isInstanceOf( | |
757 | - | then | |
758 | - | else throw(($getType( | |
748 | + | let bM = { | |
749 | + | let U = invoke(this, "processPoolINTERNAL", [bx, bI], nil) | |
750 | + | if ($isInstanceOf(U, "Boolean")) | |
751 | + | then U | |
752 | + | else throw(($getType(U) + " couldn't be cast to Boolean")) | |
759 | 753 | } | |
760 | - | if (( | |
761 | - | then if ( | |
754 | + | if ((bM == bM)) | |
755 | + | then if (bM) | |
762 | 756 | then $Tuple2(nil, true) | |
763 | 757 | else { | |
764 | - | let | |
765 | - | if ($isInstanceOf( | |
758 | + | let bW = cc | |
759 | + | if ($isInstanceOf(bW, "Unit")) | |
766 | 760 | then { | |
767 | - | let | |
761 | + | let bH = if (bI) | |
768 | 762 | then [DeleteEntry(p), DeleteEntry(v), DeleteEntry(q)] | |
769 | - | else [DeleteEntry(p), BooleanEntry(x( | |
770 | - | $Tuple2( | |
763 | + | else [DeleteEntry(p), BooleanEntry(x(bQ), true), IntegerEntry(t, i), IntegerEntry(u, bh), DeleteEntry(q)] | |
764 | + | $Tuple2(bH, true) | |
771 | 765 | } | |
772 | - | else if ($isInstanceOf( | |
766 | + | else if ($isInstanceOf(bW, "String")) | |
773 | 767 | then { | |
774 | - | let | |
775 | - | $Tuple2([StringEntry(q, | |
768 | + | let cf = bW | |
769 | + | $Tuple2([StringEntry(q, cf)], true) | |
776 | 770 | } | |
777 | 771 | else throw("Match error") | |
778 | 772 | } | |
787 | 781 | ||
788 | 782 | ||
789 | 783 | ||
790 | - | @Callable( | |
791 | - | func finalizeWrapper ( | |
792 | - | let | |
793 | - | let | |
794 | - | if ($isInstanceOf( | |
795 | - | then | |
796 | - | else throw(($getType( | |
784 | + | @Callable(aM) | |
785 | + | func finalizeWrapper (cg) = { | |
786 | + | let ch = { | |
787 | + | let U = invoke(this, "finalizeHelper", nil, nil) | |
788 | + | if ($isInstanceOf(U, "Boolean")) | |
789 | + | then U | |
790 | + | else throw(($getType(U) + " couldn't be cast to Boolean")) | |
797 | 791 | } | |
798 | - | if (( | |
799 | - | then if (!( | |
800 | - | then if (( | |
792 | + | if ((ch == ch)) | |
793 | + | then if (!(ch)) | |
794 | + | then if ((cg == 0)) | |
801 | 795 | then throw("Current voting is not over yet") | |
802 | 796 | else $Tuple2(nil, unit) | |
803 | 797 | else { | |
804 | - | let | |
805 | - | if (( | |
798 | + | let ci = valueOrElse(getInteger(this, k), c) | |
799 | + | if ((ci > cg)) | |
806 | 800 | then { | |
807 | - | let | |
808 | - | if (( | |
801 | + | let cj = invoke(this, "finalizeWrapper", [(cg + 1)], nil) | |
802 | + | if ((cj == cj)) | |
809 | 803 | then $Tuple2(nil, unit) | |
810 | 804 | else throw("Strict value is not equal to itself.") | |
811 | 805 | } | |
816 | 810 | ||
817 | 811 | ||
818 | 812 | ||
819 | - | @Callable( | |
813 | + | @Callable(aM) | |
820 | 814 | func finalize () = { | |
821 | - | let | |
822 | - | if (( | |
815 | + | let cj = invoke(this, "finalizeWrapper", [0], nil) | |
816 | + | if ((cj == cj)) | |
823 | 817 | then $Tuple2(nil, unit) | |
824 | 818 | else throw("Strict value is not equal to itself.") | |
825 | 819 | } | |
826 | 820 | ||
827 | 821 | ||
828 | 822 | ||
829 | - | @Callable( | |
830 | - | func containsNodeREADONLY ( | |
823 | + | @Callable(aM) | |
824 | + | func containsNodeREADONLY (ar,av) = $Tuple2(nil, ax(ar, av)) | |
831 | 825 | ||
832 | 826 | ||
833 | 827 | ||
834 | - | @Callable( | |
835 | - | func insertNode ( | |
836 | - | let | |
837 | - | if (( | |
838 | - | then $Tuple2( | |
828 | + | @Callable(aM) | |
829 | + | func insertNode (ar,av) = { | |
830 | + | let aQ = aN(aM) | |
831 | + | if ((aQ == aQ)) | |
832 | + | then $Tuple2(aB(ar, av), unit) | |
839 | 833 | else throw("Strict value is not equal to itself.") | |
840 | 834 | } | |
841 | 835 | ||
842 | 836 | ||
843 | 837 | ||
844 | - | @Callable( | |
845 | - | func deleteNode ( | |
846 | - | let | |
847 | - | if (( | |
848 | - | then $Tuple2( | |
838 | + | @Callable(aM) | |
839 | + | func deleteNode (ar,av) = { | |
840 | + | let aQ = aN(aM) | |
841 | + | if ((aQ == aQ)) | |
842 | + | then $Tuple2(aE(ar, av), unit) | |
849 | 843 | else throw("Strict value is not equal to itself.") | |
850 | 844 | } | |
851 | 845 | ||
852 | 846 | ||
853 | - | @Verifier( | |
854 | - | func | |
855 | - | let | |
856 | - | let | |
857 | - | if ($isInstanceOf( | |
847 | + | @Verifier(ck) | |
848 | + | func cl () = { | |
849 | + | let cm = { | |
850 | + | let Q = aH() | |
851 | + | if ($isInstanceOf(Q, "ByteVector")) | |
858 | 852 | then { | |
859 | - | let | |
860 | - | | |
853 | + | let aO = Q | |
854 | + | aO | |
861 | 855 | } | |
862 | - | else if ($isInstanceOf( | |
863 | - | then | |
856 | + | else if ($isInstanceOf(Q, "Unit")) | |
857 | + | then ck.senderPublicKey | |
864 | 858 | else throw("Match error") | |
865 | 859 | } | |
866 | - | sigVerify( | |
860 | + | sigVerify(ck.bodyBytes, ck.proofs[0], cm) | |
867 | 861 | } | |
868 | 862 |
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 = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 10 | |
9 | 9 | ||
10 | 10 | let d = 0 | |
11 | 11 | ||
12 | 12 | let e = 1 | |
13 | 13 | ||
14 | 14 | let f = makeString(["%s", "epochLength"], a) | |
15 | 15 | ||
16 | 16 | let g = makeString(["%s%s", "epochLength__new"], a) | |
17 | 17 | ||
18 | 18 | func h (i) = makeString(["%s%d", "epochLength", toString(i)], a) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | let j = makeString(["%s", "currentEpoch"], a) | |
22 | 22 | ||
23 | 23 | let k = makeString(["%s", "maxDepth"], a) | |
24 | 24 | ||
25 | 25 | let l = makeString(["%s", "votingEmissionCandidateContract"], a) | |
26 | 26 | ||
27 | 27 | let m = makeString(["%s", "factoryContract"], a) | |
28 | 28 | ||
29 | 29 | let n = makeString(["%s", "boostingContract"], a) | |
30 | 30 | ||
31 | 31 | let o = makeString(["%s", "stakingContract"], a) | |
32 | 32 | ||
33 | 33 | let p = makeString(["%s", "finalizationStage"], a) | |
34 | 34 | ||
35 | 35 | let q = makeString(["%s", "nextPool"], a) | |
36 | 36 | ||
37 | 37 | let r = makeString(["%s", "nextUser"], a) | |
38 | 38 | ||
39 | 39 | let s = makeString(["%s", "startHeight"], a) | |
40 | 40 | ||
41 | 41 | let t = makeString(["%s", "currentEpochUi"], a) | |
42 | 42 | ||
43 | 43 | let u = makeString(["%s", "startHeightUi"], a) | |
44 | 44 | ||
45 | 45 | let v = makeString(["%s", "force"], a) | |
46 | 46 | ||
47 | 47 | func w (i) = makeString(["%s%d", "startHeight", toString(i)], a) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func x (i) = makeString(["%s%d", "finalized", toString(i)], a) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func y (z) = { | |
54 | 54 | let A = z | |
55 | 55 | let B = A._1 | |
56 | 56 | let C = A._2 | |
57 | 57 | makeString(["%s%s%s", "inList", B, C], a) | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func D (E,i) = makeString(["%s%s%d", "used", toString(E), toString(i)], a) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func F (z,E,i) = { | |
65 | 65 | let G = z | |
66 | 66 | let B = G._1 | |
67 | 67 | let C = G._2 | |
68 | 68 | makeString(["%s%s%s%s%d", "vote", B, C, toString(E), toString(i)], a) | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func H (z,i) = { | |
73 | 73 | let I = z | |
74 | 74 | let B = I._1 | |
75 | 75 | let C = I._2 | |
76 | 76 | makeString(["%s%s%s%d", "votingResult", B, C, toString(i)], a) | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func J (z,i) = { | |
81 | 81 | let K = z | |
82 | 82 | let B = K._1 | |
83 | 83 | let C = K._2 | |
84 | 84 | makeString(["%s%s%s%d", "poolShare", B, C, toString(i)], a) | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func L (i) = makeString(["%s%d", "totalVotes", toString(i)], a) | |
89 | 89 | ||
90 | 90 | ||
91 | - | func M (N) = makeString(["voting_emission.ride:", N], " ") | |
92 | - | ||
93 | - | ||
94 | - | func O (N) = throw(M(N)) | |
95 | - | ||
96 | - | ||
97 | - | func P (E,Q,R) = { | |
98 | - | let S = makeString(["mandatory ", toString(E), ".", Q, " is not defined"], "") | |
91 | + | func M (E,N,O) = { | |
92 | + | let P = makeString(["mandatory ", toString(E), ".", N, " is not defined"], "") | |
99 | 93 | valueOrErrorMessage({ | |
100 | - | let | |
101 | - | if ($isInstanceOf( | |
94 | + | let Q = O | |
95 | + | if ($isInstanceOf(Q, "String")) | |
102 | 96 | then { | |
103 | - | let | |
104 | - | getString(E, | |
97 | + | let R = Q | |
98 | + | getString(E, N) | |
105 | 99 | } | |
106 | - | else if ($isInstanceOf( | |
100 | + | else if ($isInstanceOf(Q, "Int")) | |
107 | 101 | then { | |
108 | - | let | |
109 | - | getInteger(E, | |
102 | + | let S = Q | |
103 | + | getInteger(E, N) | |
110 | 104 | } | |
111 | 105 | else throw("invalid entry type") | |
112 | - | }, | |
106 | + | }, P) | |
113 | 107 | } | |
114 | 108 | ||
115 | 109 | ||
116 | - | func | |
117 | - | let | |
118 | - | if ($isInstanceOf( | |
119 | - | then | |
120 | - | else throw(($getType( | |
110 | + | func T (E,N) = { | |
111 | + | let U = M(E, N, "") | |
112 | + | if ($isInstanceOf(U, "String")) | |
113 | + | then U | |
114 | + | else throw(($getType(U) + " couldn't be cast to String")) | |
121 | 115 | } | |
122 | 116 | ||
123 | 117 | ||
124 | - | func | |
125 | - | let | |
126 | - | if ($isInstanceOf( | |
127 | - | then | |
128 | - | else throw(($getType( | |
118 | + | func V (E,N) = { | |
119 | + | let U = M(E, N, 0) | |
120 | + | if ($isInstanceOf(U, "Int")) | |
121 | + | then U | |
122 | + | else throw(($getType(U) + " couldn't be cast to Int")) | |
129 | 123 | } | |
130 | 124 | ||
131 | 125 | ||
132 | - | func | |
126 | + | func W (z) = ((z._1 + a) + z._2) | |
133 | 127 | ||
134 | 128 | ||
135 | - | func | |
136 | - | let | |
137 | - | if ((size( | |
138 | - | then $Tuple2( | |
129 | + | func X (R) = { | |
130 | + | let Y = split(R, a) | |
131 | + | if ((size(Y) == 2)) | |
132 | + | then $Tuple2(Y[0], Y[1]) | |
139 | 133 | else throw("invalid pool string") | |
140 | 134 | } | |
141 | 135 | ||
142 | 136 | ||
143 | - | func | |
144 | - | func | |
137 | + | func Z (B,C) = { | |
138 | + | func aa (ab) = ("%s%s%s__mappings__baseAsset2internalId__" + ab) | |
145 | 139 | ||
146 | - | func | |
140 | + | func ac (ad,ae) = (((("%d%d%s%s__" + toString(ad)) + "__") + toString(ae)) + "__mappings__poolAssets2PoolContract") | |
147 | 141 | ||
148 | - | func | |
142 | + | func af (ag) = (("%s%s%s__" + ag) + "__mappings__poolContract2LpAsset") | |
149 | 143 | ||
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
155 | - | | |
144 | + | let ah = addressFromStringValue(T(this, m)) | |
145 | + | let ai = V(ah, aa(B)) | |
146 | + | let aj = V(ah, aa(C)) | |
147 | + | let ag = T(ah, ac(ai, aj)) | |
148 | + | let ak = T(ah, af(ag)) | |
149 | + | ak | |
156 | 150 | } | |
157 | 151 | ||
152 | + | ||
153 | + | func al (z) = { | |
154 | + | let am = z | |
155 | + | let B = am._1 | |
156 | + | let C = am._2 | |
157 | + | let ah = addressFromStringValue(T(this, m)) | |
158 | + | let U = invoke(ah, "checkWxEmissionPoolLabel", [B, C], nil) | |
159 | + | if ($isInstanceOf(U, "Boolean")) | |
160 | + | then U | |
161 | + | else throw(($getType(U) + " couldn't be cast to Boolean")) | |
162 | + | } | |
163 | + | ||
164 | + | ||
165 | + | let an = "pools" | |
158 | 166 | ||
159 | 167 | func ao (z) = { | |
160 | 168 | let ap = z | |
161 | 169 | let B = ap._1 | |
162 | 170 | let C = ap._2 | |
163 | - | let ak = addressFromStringValue(W(this, m)) | |
164 | - | let X = invoke(ak, "checkWxEmissionPoolLabel", [B, C], nil) | |
165 | - | if ($isInstanceOf(X, "Boolean")) | |
166 | - | then X | |
167 | - | else throw(($getType(X) + " couldn't be cast to Boolean")) | |
168 | - | } | |
169 | - | ||
170 | - | ||
171 | - | let aq = "pools" | |
172 | - | ||
173 | - | func ar (z) = { | |
174 | - | let as = z | |
175 | - | let B = as._1 | |
176 | - | let C = as._2 | |
177 | 171 | makeString(["votes", B, C], a) | |
178 | 172 | } | |
179 | 173 | ||
180 | 174 | ||
181 | - | func | |
182 | - | let | |
175 | + | func aq (ar) = { | |
176 | + | let as = if ((ar == an)) | |
183 | 177 | then "%s%s" | |
184 | 178 | else "%s%s%s%s" | |
185 | - | makeString([ | |
179 | + | makeString([as, ar, "head"], a) | |
186 | 180 | } | |
187 | 181 | ||
188 | 182 | ||
189 | - | func | |
190 | - | let | |
183 | + | func at (ar) = { | |
184 | + | let as = if ((ar == an)) | |
191 | 185 | then "%s%s" | |
192 | 186 | else "%s%s%s%s" | |
193 | - | makeString([ | |
187 | + | makeString([as, ar, "size"], a) | |
194 | 188 | } | |
195 | 189 | ||
196 | 190 | ||
197 | - | func | |
198 | - | let | |
191 | + | func au (ar,av) = { | |
192 | + | let as = if ((ar == an)) | |
199 | 193 | then "%s%s%s%s" | |
200 | 194 | else "%s%s%s%s%s" | |
201 | - | makeString([ | |
195 | + | makeString([as, ar, av, "prev"], a) | |
202 | 196 | } | |
203 | 197 | ||
204 | 198 | ||
205 | - | func | |
206 | - | let | |
199 | + | func aw (ar,av) = { | |
200 | + | let as = if ((ar == an)) | |
207 | 201 | then "%s%s%s%s" | |
208 | 202 | else "%s%s%s%s%s" | |
209 | - | makeString([ | |
203 | + | makeString([as, ar, av, "next"], a) | |
210 | 204 | } | |
211 | 205 | ||
212 | 206 | ||
213 | - | func | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | if (if (( | |
207 | + | func ax (ar,av) = { | |
208 | + | let ay = getString(this, aq(ar)) | |
209 | + | let az = getString(this, au(ar, av)) | |
210 | + | let aA = getString(this, aw(ar, av)) | |
211 | + | if (if ((av == valueOrElse(ay, ""))) | |
218 | 212 | then true | |
219 | - | else ( | |
213 | + | else (az != unit)) | |
220 | 214 | then true | |
221 | - | else ( | |
215 | + | else (aA != unit) | |
222 | 216 | } | |
223 | 217 | ||
224 | 218 | ||
225 | - | func | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
219 | + | func aB (ar,av) = { | |
220 | + | let ay = getString(this, aq(ar)) | |
221 | + | let aC = valueOrElse(getInteger(this, at(ar)), 0) | |
222 | + | let aD = if (!(ax(ar, av))) | |
229 | 223 | then true | |
230 | 224 | else throw("Node exists") | |
231 | - | if (( | |
232 | - | then (([IntegerEntry( | |
233 | - | then [StringEntry( | |
234 | - | else nil)) ++ [StringEntry( | |
225 | + | if ((aD == aD)) | |
226 | + | then (([IntegerEntry(at(ar), (aC + 1))] ++ (if ((ay != unit)) | |
227 | + | then [StringEntry(aw(ar, av), value(ay)), StringEntry(au(ar, value(ay)), av)] | |
228 | + | else nil)) ++ [StringEntry(aq(ar), av)]) | |
235 | 229 | else throw("Strict value is not equal to itself.") | |
236 | 230 | } | |
237 | 231 | ||
238 | 232 | ||
239 | - | func | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | ([IntegerEntry( | |
245 | - | then ( | |
233 | + | func aE (ar,av) = { | |
234 | + | let ay = getString(this, aq(ar)) | |
235 | + | let aC = valueOrElse(getInteger(this, at(ar)), 0) | |
236 | + | let az = getString(this, au(ar, av)) | |
237 | + | let aA = getString(this, aw(ar, av)) | |
238 | + | ([IntegerEntry(at(ar), (aC - 1))] ++ (if (if ((az != unit)) | |
239 | + | then (aA != unit) | |
246 | 240 | else false) | |
247 | - | then [StringEntry( | |
248 | - | else if (( | |
249 | - | then [StringEntry( | |
250 | - | else if (( | |
251 | - | then [DeleteEntry( | |
252 | - | else if (( | |
253 | - | then [DeleteEntry( | |
254 | - | else throw(((("invalid node: " + | |
241 | + | then [StringEntry(aw(ar, value(az)), value(aA)), StringEntry(au(ar, value(aA)), value(az)), DeleteEntry(au(ar, av)), DeleteEntry(aw(ar, av))] | |
242 | + | else if ((aA != unit)) | |
243 | + | then [StringEntry(aq(ar), value(aA)), DeleteEntry(aw(ar, av)), DeleteEntry(au(ar, value(aA)))] | |
244 | + | else if ((az != unit)) | |
245 | + | then [DeleteEntry(au(ar, av)), DeleteEntry(aw(ar, value(az)))] | |
246 | + | else if ((av == valueOrElse(ay, ""))) | |
247 | + | then [DeleteEntry(aq(ar))] | |
248 | + | else throw(((("invalid node: " + ar) + ".") + av)))) | |
255 | 249 | } | |
256 | 250 | ||
257 | 251 | ||
258 | - | func | |
252 | + | func aF () = "%s__managerPublicKey" | |
259 | 253 | ||
260 | 254 | ||
261 | - | func | |
255 | + | func aG () = "%s__pendingManagerPublicKey" | |
262 | 256 | ||
263 | 257 | ||
264 | - | func | |
265 | - | let | |
266 | - | if ($isInstanceOf( | |
258 | + | func aH () = { | |
259 | + | let Q = getString(aF()) | |
260 | + | if ($isInstanceOf(Q, "String")) | |
267 | 261 | then { | |
268 | - | let | |
269 | - | fromBase58String( | |
262 | + | let aI = Q | |
263 | + | fromBase58String(aI) | |
270 | 264 | } | |
271 | - | else if ($isInstanceOf( | |
265 | + | else if ($isInstanceOf(Q, "Unit")) | |
272 | 266 | then unit | |
273 | 267 | else throw("Match error") | |
274 | 268 | } | |
275 | 269 | ||
276 | 270 | ||
277 | - | func | |
278 | - | let | |
279 | - | if ($isInstanceOf( | |
271 | + | func aJ () = { | |
272 | + | let Q = getString(aG()) | |
273 | + | if ($isInstanceOf(Q, "String")) | |
280 | 274 | then { | |
281 | - | let | |
282 | - | fromBase58String( | |
275 | + | let aI = Q | |
276 | + | fromBase58String(aI) | |
283 | 277 | } | |
284 | - | else if ($isInstanceOf( | |
278 | + | else if ($isInstanceOf(Q, "Unit")) | |
285 | 279 | then unit | |
286 | 280 | else throw("Match error") | |
287 | 281 | } | |
288 | 282 | ||
289 | 283 | ||
290 | - | let | |
284 | + | let aK = throw("Permission denied") | |
291 | 285 | ||
292 | - | func | |
286 | + | func aL (aM) = if ((aM.caller == this)) | |
293 | 287 | then true | |
294 | - | else | |
288 | + | else aK | |
295 | 289 | ||
296 | 290 | ||
297 | - | func | |
298 | - | let | |
299 | - | if ($isInstanceOf( | |
291 | + | func aN (aM) = { | |
292 | + | let Q = aH() | |
293 | + | if ($isInstanceOf(Q, "ByteVector")) | |
300 | 294 | then { | |
301 | - | let | |
302 | - | if (( | |
295 | + | let aO = Q | |
296 | + | if ((aM.callerPublicKey == aO)) | |
303 | 297 | then true | |
304 | - | else | |
298 | + | else aK | |
305 | 299 | } | |
306 | - | else if ($isInstanceOf( | |
307 | - | then | |
300 | + | else if ($isInstanceOf(Q, "Unit")) | |
301 | + | then aL(aM) | |
308 | 302 | else throw("Match error") | |
309 | 303 | } | |
310 | 304 | ||
311 | 305 | ||
312 | - | @Callable( | |
313 | - | func setManager ( | |
314 | - | let | |
315 | - | if (( | |
306 | + | @Callable(aM) | |
307 | + | func setManager (aP) = { | |
308 | + | let aQ = aN(aM) | |
309 | + | if ((aQ == aQ)) | |
316 | 310 | then { | |
317 | - | let | |
318 | - | if (( | |
319 | - | then [StringEntry( | |
311 | + | let aR = fromBase58String(aP) | |
312 | + | if ((aR == aR)) | |
313 | + | then [StringEntry(aG(), aP)] | |
320 | 314 | else throw("Strict value is not equal to itself.") | |
321 | 315 | } | |
322 | 316 | else throw("Strict value is not equal to itself.") | |
323 | 317 | } | |
324 | 318 | ||
325 | 319 | ||
326 | 320 | ||
327 | - | @Callable( | |
321 | + | @Callable(aM) | |
328 | 322 | func confirmManager () = { | |
329 | - | let | |
330 | - | let | |
323 | + | let aS = aJ() | |
324 | + | let aT = if (isDefined(aS)) | |
331 | 325 | then true | |
332 | 326 | else throw("No pending manager") | |
333 | - | if (( | |
327 | + | if ((aT == aT)) | |
334 | 328 | then { | |
335 | - | let | |
329 | + | let aU = if ((aM.callerPublicKey == value(aS))) | |
336 | 330 | then true | |
337 | 331 | else throw("You are not pending manager") | |
338 | - | if (( | |
339 | - | then [StringEntry( | |
332 | + | if ((aU == aU)) | |
333 | + | then [StringEntry(aF(), toBase58String(value(aS))), DeleteEntry(aG())] | |
340 | 334 | else throw("Strict value is not equal to itself.") | |
341 | 335 | } | |
342 | 336 | else throw("Strict value is not equal to itself.") | |
343 | 337 | } | |
344 | 338 | ||
345 | 339 | ||
346 | 340 | ||
347 | - | @Callable( | |
348 | - | func getUserGwxAmountAtHeight ( | |
349 | - | let | |
341 | + | @Callable(aM) | |
342 | + | func getUserGwxAmountAtHeight (aV,aW) = { | |
343 | + | let aX = valueOrErrorMessage(addressFromString(T(this, n)), "invalid boosting contract address") | |
350 | 344 | $Tuple2(nil, { | |
351 | - | let | |
352 | - | if ($isInstanceOf( | |
353 | - | then | |
354 | - | else throw(($getType( | |
345 | + | let U = invoke(aX, "getUserGwxAmountAtHeightREADONLY", [aV, aW], nil) | |
346 | + | if ($isInstanceOf(U, "Int")) | |
347 | + | then U | |
348 | + | else throw(($getType(U) + " couldn't be cast to Int")) | |
355 | 349 | }) | |
356 | 350 | } | |
357 | 351 | ||
358 | 352 | ||
359 | 353 | ||
360 | - | @Callable( | |
361 | - | func constructor ( | |
362 | - | let | |
354 | + | @Callable(aM) | |
355 | + | func constructor (ah,aY,aZ,ba,bb) = { | |
356 | + | let bc = [aN(aM), if ((addressFromString(ah) != unit)) | |
363 | 357 | then true | |
364 | - | else "invalid factory contract address", if ((addressFromString( | |
358 | + | else "invalid factory contract address", if ((addressFromString(aY) != unit)) | |
365 | 359 | then true | |
366 | - | else "invalid voting emission candidate contract address", if ((addressFromString( | |
360 | + | else "invalid voting emission candidate contract address", if ((addressFromString(aZ) != unit)) | |
367 | 361 | then true | |
368 | - | else "invalid boosting contract address", if ((addressFromString( | |
362 | + | else "invalid boosting contract address", if ((addressFromString(ba) != unit)) | |
369 | 363 | then true | |
370 | - | else "invalid staking contract address", if (( | |
364 | + | else "invalid staking contract address", if ((bb > 0)) | |
371 | 365 | then true | |
372 | 366 | else throw("invalid epoch length")] | |
373 | - | if (( | |
374 | - | then $Tuple2([StringEntry(m, | |
367 | + | if ((bc == bc)) | |
368 | + | then $Tuple2([StringEntry(m, ah), StringEntry(l, aY), StringEntry(n, aZ), StringEntry(o, ba), IntegerEntry(f, bb)], unit) | |
375 | 369 | else throw("Strict value is not equal to itself.") | |
376 | 370 | } | |
377 | 371 | ||
378 | 372 | ||
379 | 373 | ||
380 | - | @Callable( | |
374 | + | @Callable(aM) | |
381 | 375 | func create (B,C) = { | |
382 | - | let | |
376 | + | let bc = [if ((toBase58String(aM.caller.bytes) == valueOrElse(getString(this, l), ""))) | |
383 | 377 | then true | |
384 | - | else | |
385 | - | if (( | |
378 | + | else aN(aM)] | |
379 | + | if ((bc == bc)) | |
386 | 380 | then { | |
387 | 381 | let z = $Tuple2(B, C) | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
382 | + | let bd = ([BooleanEntry(y(z), true)] ++ aB(an, W(z))) | |
383 | + | let be = (getInteger(this, j) == unit) | |
384 | + | let bf = if (be) | |
391 | 385 | then { | |
392 | 386 | let i = 0 | |
393 | 387 | [IntegerEntry(j, i), IntegerEntry(w(i), height), IntegerEntry(s, height), IntegerEntry(t, i), IntegerEntry(u, height)] | |
394 | 388 | } | |
395 | 389 | else nil | |
396 | - | $Tuple2(( | |
390 | + | $Tuple2((bd ++ bf), unit) | |
397 | 391 | } | |
398 | 392 | else throw("Strict value is not equal to itself.") | |
399 | 393 | } | |
400 | 394 | ||
401 | 395 | ||
402 | 396 | ||
403 | - | @Callable( | |
404 | - | func vote (B,C, | |
397 | + | @Callable(aM) | |
398 | + | func vote (B,C,bg) = { | |
405 | 399 | let z = $Tuple2(B, C) | |
406 | 400 | let i = valueOrElse(getInteger(this, j), 0) | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | if ($isInstanceOf( | |
418 | - | then | |
419 | - | else throw(($getType( | |
401 | + | let bh = V(this, w(i)) | |
402 | + | let bb = V(this, f) | |
403 | + | let bi = (bh + bb) | |
404 | + | let bj = getInteger(this, p) | |
405 | + | let bk = valueOrElse(getInteger(this, D(aM.caller, i)), 0) | |
406 | + | let bl = valueOrElse(getInteger(this, F(z, aM.caller, i)), 0) | |
407 | + | let bm = valueOrElse(getInteger(this, H(z, i)), 0) | |
408 | + | let bn = valueOrElse(getInteger(this, L(i)), 0) | |
409 | + | let bo = { | |
410 | + | let U = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(aM.caller.bytes), bi], nil) | |
411 | + | if ($isInstanceOf(U, "Int")) | |
412 | + | then U | |
413 | + | else throw(($getType(U) + " couldn't be cast to Int")) | |
420 | 414 | } | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
415 | + | let bp = (bo - bk) | |
416 | + | let bq = (bl + bg) | |
417 | + | let br = al(z) | |
418 | + | let bc = [if ((getBoolean(y(z)) != unit)) | |
425 | 419 | then true | |
426 | - | else throw("invalid assets"), if (( | |
420 | + | else throw("invalid assets"), if ((bi > height)) | |
427 | 421 | then true | |
428 | - | else throw("invalid height"), if (( | |
422 | + | else throw("invalid height"), if ((bj == unit)) | |
429 | 423 | then true | |
430 | - | else throw("finalization in progress"), if (( | |
424 | + | else throw("finalization in progress"), if ((bo > 0)) | |
431 | 425 | then true | |
432 | - | else throw("you do not have gWX"), if (if (( | |
433 | - | then ( | |
426 | + | else throw("you do not have gWX"), if (if ((bg > 0)) | |
427 | + | then (bp >= bg) | |
434 | 428 | else false) | |
435 | 429 | then true | |
436 | - | else throw("invalid amount"), if ( | |
430 | + | else throw("invalid amount"), if (br) | |
437 | 431 | then true | |
438 | 432 | else throw("pool hasn't WX_EMISSION label")] | |
439 | - | if (( | |
433 | + | if ((bc == bc)) | |
440 | 434 | then { | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
435 | + | let bs = ao(z) | |
436 | + | let bt = toString(aM.caller) | |
437 | + | let bu = if (ax(bs, bt)) | |
444 | 438 | then nil | |
445 | - | else | |
446 | - | $Tuple2(([IntegerEntry(D( | |
439 | + | else aB(bs, bt) | |
440 | + | $Tuple2(([IntegerEntry(D(aM.caller, i), (bk + bg)), IntegerEntry(F(z, aM.caller, i), bq), IntegerEntry(H(z, i), (bm + bg)), IntegerEntry(L(i), (bn + bg))] ++ bu), unit) | |
447 | 441 | } | |
448 | 442 | else throw("Strict value is not equal to itself.") | |
449 | 443 | } | |
450 | 444 | ||
451 | 445 | ||
452 | 446 | ||
453 | - | @Callable( | |
447 | + | @Callable(aM) | |
454 | 448 | func cancelVote (B,C) = { | |
455 | 449 | let z = $Tuple2(B, C) | |
456 | 450 | let i = valueOrElse(getInteger(this, j), 0) | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
451 | + | let bh = V(this, w(i)) | |
452 | + | let bb = V(this, f) | |
453 | + | let bi = (bh + bb) | |
454 | + | let bj = getInteger(this, p) | |
455 | + | let bk = valueOrElse(getInteger(this, D(aM.caller, i)), 0) | |
456 | + | let bl = valueOrElse(getInteger(this, F(z, aM.caller, i)), 0) | |
457 | + | let bm = valueOrElse(getInteger(this, H(z, i)), 0) | |
458 | + | let bn = valueOrElse(getInteger(this, L(i)), 0) | |
459 | + | let bc = [if ((getBoolean(y(z)) != unit)) | |
466 | 460 | then true | |
467 | - | else throw("invalid assets"), if (( | |
461 | + | else throw("invalid assets"), if ((bi > height)) | |
468 | 462 | then true | |
469 | - | else throw("invalid height"), if (( | |
463 | + | else throw("invalid height"), if ((bj == unit)) | |
470 | 464 | then true | |
471 | - | else throw("finalization in progress"), if (( | |
465 | + | else throw("finalization in progress"), if ((bl > 0)) | |
472 | 466 | then true | |
473 | 467 | else throw("no vote")] | |
474 | - | if (( | |
468 | + | if ((bc == bc)) | |
475 | 469 | then { | |
476 | - | let | |
477 | - | let | |
478 | - | $Tuple2(([IntegerEntry(D( | |
470 | + | let bs = ao(z) | |
471 | + | let bt = toString(aM.caller) | |
472 | + | $Tuple2(([IntegerEntry(D(aM.caller, i), max([(bk - bl), 0])), DeleteEntry(F(z, aM.caller, i)), IntegerEntry(H(z, i), (bm - bl)), IntegerEntry(L(i), (bn - bl))] ++ aE(bs, bt)), unit) | |
479 | 473 | } | |
480 | 474 | else throw("Strict value is not equal to itself.") | |
481 | 475 | } | |
482 | 476 | ||
483 | 477 | ||
484 | 478 | ||
485 | - | @Callable( | |
486 | - | func setEpochLength ( | |
487 | - | let | |
479 | + | @Callable(aM) | |
480 | + | func setEpochLength (bv) = { | |
481 | + | let bc = [aN(aM), if ((bv > 0)) | |
488 | 482 | then true | |
489 | 483 | else throw("invalid epoch length")] | |
490 | - | if (( | |
491 | - | then $Tuple2([IntegerEntry(g, | |
484 | + | if ((bc == bc)) | |
485 | + | then $Tuple2([IntegerEntry(g, bv)], unit) | |
492 | 486 | else throw("Strict value is not equal to itself.") | |
493 | 487 | } | |
494 | 488 | ||
495 | 489 | ||
496 | 490 | ||
497 | - | @Callable( | |
498 | - | func setMaxDepth ( | |
499 | - | let | |
491 | + | @Callable(aM) | |
492 | + | func setMaxDepth (bw) = { | |
493 | + | let bc = [aN(aM), if ((bw > 0)) | |
500 | 494 | then true | |
501 | 495 | else throw("invalid max depth")] | |
502 | - | if (( | |
503 | - | then $Tuple2([IntegerEntry(k, | |
496 | + | if ((bc == bc)) | |
497 | + | then $Tuple2([IntegerEntry(k, bw)], unit) | |
504 | 498 | else throw("Strict value is not equal to itself.") | |
505 | 499 | } | |
506 | 500 | ||
507 | 501 | ||
508 | 502 | ||
509 | - | @Callable( | |
510 | - | func processVoteINTERNAL ( | |
511 | - | let | |
512 | - | if (( | |
503 | + | @Callable(aM) | |
504 | + | func processVoteINTERNAL (bx,bt) = { | |
505 | + | let aQ = aL(aM) | |
506 | + | if ((aQ == aQ)) | |
513 | 507 | then { | |
514 | - | let | |
515 | - | let i = | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
508 | + | let aV = valueOrErrorMessage(addressFromString(bt), ("processVoteINTERNAL: invalid user address " + bt)) | |
509 | + | let i = V(this, j) | |
510 | + | let by = (i - 1) | |
511 | + | let bb = V(this, f) | |
512 | + | let bh = V(this, w(i)) | |
513 | + | let bi = (bh + bb) | |
514 | + | let bz = V(this, w(by)) | |
515 | + | let bA = V(this, h(by)) | |
516 | + | let bB = (bz + bA) | |
517 | + | let bC = if ((by >= 0)) | |
524 | 518 | then true | |
525 | 519 | else throw("processVoteINTERNAL: invalid previous epoch") | |
526 | - | if (( | |
520 | + | if ((bC == bC)) | |
527 | 521 | then { | |
528 | - | let z = | |
529 | - | let | |
530 | - | let B = | |
531 | - | let C = | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | if ($isInstanceOf( | |
536 | - | then | |
537 | - | else throw(($getType( | |
522 | + | let z = X(bx) | |
523 | + | let bD = z | |
524 | + | let B = bD._1 | |
525 | + | let C = bD._2 | |
526 | + | let br = al(z) | |
527 | + | let bo = { | |
528 | + | let U = invoke(this, "getUserGwxAmountAtHeight", [bt, bi], nil) | |
529 | + | if ($isInstanceOf(U, "Int")) | |
530 | + | then U | |
531 | + | else throw(($getType(U) + " couldn't be cast to Int")) | |
538 | 532 | } | |
539 | - | let | |
540 | - | let | |
541 | - | if ($isInstanceOf( | |
542 | - | then | |
543 | - | else throw(($getType( | |
533 | + | let bE = { | |
534 | + | let U = invoke(this, "getUserGwxAmountAtHeight", [bt, bB], nil) | |
535 | + | if ($isInstanceOf(U, "Int")) | |
536 | + | then U | |
537 | + | else throw(($getType(U) + " couldn't be cast to Int")) | |
544 | 538 | } | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | then fraction( | |
539 | + | let bn = valueOrElse(getInteger(L(i)), 0) | |
540 | + | let bF = valueOrElse(getInteger(H(z, i)), 0) | |
541 | + | let bG = valueOrErrorMessage(getInteger(F(z, aV, by)), (((("processVoteINTERNAL " + bx) + " ") + bt) + ": no previous vote")) | |
542 | + | let bk = valueOrElse(getInteger(this, D(aV, i)), 0) | |
543 | + | let bq = if ((bE > 0)) | |
544 | + | then fraction(bG, bo, bE) | |
551 | 545 | else 0 | |
552 | - | let | |
553 | - | then | |
546 | + | let bH = if (if ((bq > 0)) | |
547 | + | then br | |
554 | 548 | else false) | |
555 | - | then [IntegerEntry(F(z, | |
556 | - | else | |
557 | - | $Tuple2( | |
549 | + | then [IntegerEntry(F(z, aV, i), bq), IntegerEntry(L(i), (bn + bq)), IntegerEntry(H(z, i), (bF + bq)), IntegerEntry(D(aV, i), (bk + bq))] | |
550 | + | else aE(ao(z), bt) | |
551 | + | $Tuple2(bH, unit) | |
558 | 552 | } | |
559 | 553 | else throw("Strict value is not equal to itself.") | |
560 | 554 | } | |
561 | 555 | else throw("Strict value is not equal to itself.") | |
562 | 556 | } | |
563 | 557 | ||
564 | 558 | ||
565 | 559 | ||
566 | - | @Callable( | |
567 | - | func processPoolINTERNAL ( | |
568 | - | let | |
569 | - | if (( | |
560 | + | @Callable(aM) | |
561 | + | func processPoolINTERNAL (bx,bI) = { | |
562 | + | let aQ = aL(aM) | |
563 | + | if ((aQ == aQ)) | |
570 | 564 | then { | |
571 | - | let | |
572 | - | let | |
573 | - | if ( | |
574 | - | then | |
575 | - | else ( | |
565 | + | let bJ = { | |
566 | + | let bK = V(this, j) | |
567 | + | if (bI) | |
568 | + | then bK | |
569 | + | else (bK - 1) | |
576 | 570 | } | |
577 | - | let | |
571 | + | let bC = if ((bJ >= 0)) | |
578 | 572 | then true | |
579 | 573 | else throw("processPoolINTERNAL: invalid target epoch") | |
580 | - | if (( | |
574 | + | if ((bC == bC)) | |
581 | 575 | then { | |
582 | - | let z = | |
583 | - | let | |
584 | - | let B = | |
585 | - | let C = | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | if ($isInstanceOf( | |
592 | - | then | |
593 | - | else throw(($getType( | |
576 | + | let z = X(bx) | |
577 | + | let bL = z | |
578 | + | let B = bL._1 | |
579 | + | let C = bL._2 | |
580 | + | let ba = addressFromStringValue(T(this, o)) | |
581 | + | let ah = addressFromStringValue(T(this, m)) | |
582 | + | let ak = Z(B, C) | |
583 | + | let bM = { | |
584 | + | let U = invoke(ba, "usersListTraversal", [ak], nil) | |
585 | + | if ($isInstanceOf(U, "Boolean")) | |
586 | + | then U | |
587 | + | else throw(($getType(U) + " couldn't be cast to Boolean")) | |
594 | 588 | } | |
595 | - | if (( | |
596 | - | then if ( | |
589 | + | if ((bM == bM)) | |
590 | + | then if (bM) | |
597 | 591 | then $Tuple2(nil, true) | |
598 | 592 | else { | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
593 | + | let br = al(z) | |
594 | + | let bn = valueOrElse(getInteger(this, L(bJ)), 0) | |
595 | + | let bF = valueOrElse(getInteger(this, H(z, bJ)), 0) | |
596 | + | let bN = if (if ((bn == 0)) | |
603 | 597 | then true | |
604 | - | else !( | |
598 | + | else !(br)) | |
605 | 599 | then 0 | |
606 | - | else fraction( | |
607 | - | let | |
608 | - | if (( | |
600 | + | else fraction(bF, b, bn) | |
601 | + | let bO = invoke(ah, "modifyWeight", [ak, bN], nil) | |
602 | + | if ((bO == bO)) | |
609 | 603 | then { | |
610 | - | let | |
604 | + | let bP = if (if (br) | |
611 | 605 | then true | |
612 | - | else | |
606 | + | else bI) | |
613 | 607 | then nil | |
614 | - | else ([DeleteEntry(y(z))] ++ | |
615 | - | $Tuple2(([IntegerEntry(J(z, | |
608 | + | else ([DeleteEntry(y(z))] ++ aE(an, bx)) | |
609 | + | $Tuple2(([IntegerEntry(J(z, bJ), bN)] ++ bP), false) | |
616 | 610 | } | |
617 | 611 | else throw("Strict value is not equal to itself.") | |
618 | 612 | } | |
619 | 613 | else throw("Strict value is not equal to itself.") | |
620 | 614 | } | |
621 | 615 | else throw("Strict value is not equal to itself.") | |
622 | 616 | } | |
623 | 617 | else throw("Strict value is not equal to itself.") | |
624 | 618 | } | |
625 | 619 | ||
626 | 620 | ||
627 | 621 | ||
628 | - | @Callable( | |
622 | + | @Callable(aM) | |
629 | 623 | func finalizeHelper () = { | |
630 | - | let | |
624 | + | let bI = valueOrElse(getBoolean(v), false) | |
631 | 625 | let i = valueOrElse(getInteger(this, j), 0) | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | if (if (if ((height >= | |
638 | - | then ( | |
626 | + | let bQ = (i - 1) | |
627 | + | let bh = V(this, w(i)) | |
628 | + | let bb = V(this, f) | |
629 | + | let bi = (bh + bb) | |
630 | + | let bj = getInteger(this, p) | |
631 | + | if (if (if ((height >= bi)) | |
632 | + | then (bj == unit) | |
639 | 633 | else false) | |
640 | - | then !( | |
634 | + | then !(bI) | |
641 | 635 | else false) | |
642 | 636 | then { | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | if ($isInstanceOf( | |
637 | + | let bR = (i + 1) | |
638 | + | let bS = getInteger(this, g) | |
639 | + | let bT = { | |
640 | + | let Q = bS | |
641 | + | if ($isInstanceOf(Q, "Int")) | |
648 | 642 | then { | |
649 | - | let | |
650 | - | [IntegerEntry(f, | |
643 | + | let bv = Q | |
644 | + | [IntegerEntry(f, bv), DeleteEntry(g)] | |
651 | 645 | } | |
652 | - | else if ($isInstanceOf( | |
646 | + | else if ($isInstanceOf(Q, "Unit")) | |
653 | 647 | then nil | |
654 | 648 | else throw("Match error") | |
655 | 649 | } | |
656 | - | $Tuple2(([IntegerEntry(w( | |
650 | + | $Tuple2(([IntegerEntry(w(bR), height), IntegerEntry(s, height), IntegerEntry(j, bR), IntegerEntry(p, d), IntegerEntry(h(i), bb)] ++ bT), true) | |
657 | 651 | } | |
658 | - | else if (if ( | |
659 | - | then ( | |
652 | + | else if (if (bI) | |
653 | + | then (bj == unit) | |
660 | 654 | else false) | |
661 | 655 | then $Tuple2([IntegerEntry(p, e)], true) | |
662 | - | else if (( | |
656 | + | else if ((bj == unit)) | |
663 | 657 | then $Tuple2(nil, false) | |
664 | - | else if (( | |
658 | + | else if ((bj == d)) | |
665 | 659 | then { | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | if ($isInstanceOf( | |
660 | + | let bU = getString(q) | |
661 | + | let bV = getString(r) | |
662 | + | let Q = bU | |
663 | + | if ($isInstanceOf(Q, "Unit")) | |
670 | 664 | then { | |
671 | - | let | |
672 | - | if ($isInstanceOf( | |
665 | + | let bW = getString(aq(an)) | |
666 | + | if ($isInstanceOf(bW, "Unit")) | |
673 | 667 | then $Tuple2([IntegerEntry(p, e), DeleteEntry(q), DeleteEntry(r)], true) | |
674 | - | else if ($isInstanceOf( | |
668 | + | else if ($isInstanceOf(bW, "String")) | |
675 | 669 | then { | |
676 | - | let | |
677 | - | $Tuple2([StringEntry(q, | |
670 | + | let bX = bW | |
671 | + | $Tuple2([StringEntry(q, bX)], true) | |
678 | 672 | } | |
679 | 673 | else throw("Match error") | |
680 | 674 | } | |
681 | - | else if ($isInstanceOf( | |
675 | + | else if ($isInstanceOf(Q, "String")) | |
682 | 676 | then { | |
683 | - | let | |
684 | - | let z = | |
685 | - | let | |
686 | - | let | |
687 | - | if ($isInstanceOf( | |
688 | - | then getString( | |
689 | - | else if ($isInstanceOf( | |
677 | + | let bx = Q | |
678 | + | let z = X(bx) | |
679 | + | let bY = { | |
680 | + | let bW = bV | |
681 | + | if ($isInstanceOf(bW, "Unit")) | |
682 | + | then getString(aq(ao(z))) | |
683 | + | else if ($isInstanceOf(bW, "String")) | |
690 | 684 | then { | |
691 | - | let | |
692 | - | let | |
693 | - | if (( | |
685 | + | let bZ = bW | |
686 | + | let ca = getString(aw(ao(z), bZ)) | |
687 | + | if ((ca == ca)) | |
694 | 688 | then { | |
695 | - | let | |
696 | - | if (( | |
697 | - | then | |
689 | + | let cb = invoke(this, "processVoteINTERNAL", [bx, bZ], nil) | |
690 | + | if ((cb == cb)) | |
691 | + | then ca | |
698 | 692 | else throw("Strict value is not equal to itself.") | |
699 | 693 | } | |
700 | 694 | else throw("Strict value is not equal to itself.") | |
701 | 695 | } | |
702 | 696 | else throw("Match error") | |
703 | 697 | } | |
704 | - | let | |
705 | - | if ($isInstanceOf( | |
698 | + | let bW = bY | |
699 | + | if ($isInstanceOf(bW, "Unit")) | |
706 | 700 | then { | |
707 | - | let | |
708 | - | let | |
709 | - | if ($isInstanceOf( | |
701 | + | let cc = getString(aw(an, bx)) | |
702 | + | let cd = cc | |
703 | + | if ($isInstanceOf(cd, "Unit")) | |
710 | 704 | then $Tuple2([IntegerEntry(p, e), DeleteEntry(q), DeleteEntry(r)], true) | |
711 | - | else if ($isInstanceOf( | |
705 | + | else if ($isInstanceOf(cd, "String")) | |
712 | 706 | then { | |
713 | - | let | |
714 | - | $Tuple2([StringEntry(q, | |
707 | + | let aI = cd | |
708 | + | $Tuple2([StringEntry(q, aI), DeleteEntry(r)], true) | |
715 | 709 | } | |
716 | 710 | else throw("Match error") | |
717 | 711 | } | |
718 | - | else if ($isInstanceOf( | |
712 | + | else if ($isInstanceOf(bW, "String")) | |
719 | 713 | then { | |
720 | - | let | |
721 | - | $Tuple2([StringEntry(r, | |
714 | + | let ce = bW | |
715 | + | $Tuple2([StringEntry(r, ce)], true) | |
722 | 716 | } | |
723 | 717 | else throw("Match error") | |
724 | 718 | } | |
725 | 719 | else throw("Match error") | |
726 | 720 | } | |
727 | - | else if (( | |
721 | + | else if ((bj == e)) | |
728 | 722 | then { | |
729 | - | let | |
730 | - | let | |
731 | - | if ($isInstanceOf( | |
723 | + | let bU = getString(q) | |
724 | + | let Q = bU | |
725 | + | if ($isInstanceOf(Q, "Unit")) | |
732 | 726 | then { | |
733 | - | let | |
734 | - | if ($isInstanceOf( | |
727 | + | let bW = getString(aq(an)) | |
728 | + | if ($isInstanceOf(bW, "Unit")) | |
735 | 729 | then { | |
736 | - | let | |
730 | + | let bH = if (bI) | |
737 | 731 | then [DeleteEntry(p), DeleteEntry(v)] | |
738 | - | else [DeleteEntry(p), BooleanEntry(x( | |
739 | - | $Tuple2( | |
732 | + | else [DeleteEntry(p), BooleanEntry(x(bQ), true), IntegerEntry(t, i), IntegerEntry(u, bh)] | |
733 | + | $Tuple2(bH, true) | |
740 | 734 | } | |
741 | - | else if ($isInstanceOf( | |
735 | + | else if ($isInstanceOf(bW, "String")) | |
742 | 736 | then { | |
743 | - | let | |
744 | - | $Tuple2([StringEntry(q, | |
737 | + | let cf = bW | |
738 | + | $Tuple2([StringEntry(q, cf)], true) | |
745 | 739 | } | |
746 | 740 | else throw("Match error") | |
747 | 741 | } | |
748 | - | else if ($isInstanceOf( | |
742 | + | else if ($isInstanceOf(Q, "String")) | |
749 | 743 | then { | |
750 | - | let | |
751 | - | let | |
752 | - | if (( | |
744 | + | let bx = Q | |
745 | + | let cc = getString(aw(an, bx)) | |
746 | + | if ((cc == cc)) | |
753 | 747 | then { | |
754 | - | let | |
755 | - | let | |
756 | - | if ($isInstanceOf( | |
757 | - | then | |
758 | - | else throw(($getType( | |
748 | + | let bM = { | |
749 | + | let U = invoke(this, "processPoolINTERNAL", [bx, bI], nil) | |
750 | + | if ($isInstanceOf(U, "Boolean")) | |
751 | + | then U | |
752 | + | else throw(($getType(U) + " couldn't be cast to Boolean")) | |
759 | 753 | } | |
760 | - | if (( | |
761 | - | then if ( | |
754 | + | if ((bM == bM)) | |
755 | + | then if (bM) | |
762 | 756 | then $Tuple2(nil, true) | |
763 | 757 | else { | |
764 | - | let | |
765 | - | if ($isInstanceOf( | |
758 | + | let bW = cc | |
759 | + | if ($isInstanceOf(bW, "Unit")) | |
766 | 760 | then { | |
767 | - | let | |
761 | + | let bH = if (bI) | |
768 | 762 | then [DeleteEntry(p), DeleteEntry(v), DeleteEntry(q)] | |
769 | - | else [DeleteEntry(p), BooleanEntry(x( | |
770 | - | $Tuple2( | |
763 | + | else [DeleteEntry(p), BooleanEntry(x(bQ), true), IntegerEntry(t, i), IntegerEntry(u, bh), DeleteEntry(q)] | |
764 | + | $Tuple2(bH, true) | |
771 | 765 | } | |
772 | - | else if ($isInstanceOf( | |
766 | + | else if ($isInstanceOf(bW, "String")) | |
773 | 767 | then { | |
774 | - | let | |
775 | - | $Tuple2([StringEntry(q, | |
768 | + | let cf = bW | |
769 | + | $Tuple2([StringEntry(q, cf)], true) | |
776 | 770 | } | |
777 | 771 | else throw("Match error") | |
778 | 772 | } | |
779 | 773 | else throw("Strict value is not equal to itself.") | |
780 | 774 | } | |
781 | 775 | else throw("Strict value is not equal to itself.") | |
782 | 776 | } | |
783 | 777 | else throw("Match error") | |
784 | 778 | } | |
785 | 779 | else throw("finalization is broken") | |
786 | 780 | } | |
787 | 781 | ||
788 | 782 | ||
789 | 783 | ||
790 | - | @Callable( | |
791 | - | func finalizeWrapper ( | |
792 | - | let | |
793 | - | let | |
794 | - | if ($isInstanceOf( | |
795 | - | then | |
796 | - | else throw(($getType( | |
784 | + | @Callable(aM) | |
785 | + | func finalizeWrapper (cg) = { | |
786 | + | let ch = { | |
787 | + | let U = invoke(this, "finalizeHelper", nil, nil) | |
788 | + | if ($isInstanceOf(U, "Boolean")) | |
789 | + | then U | |
790 | + | else throw(($getType(U) + " couldn't be cast to Boolean")) | |
797 | 791 | } | |
798 | - | if (( | |
799 | - | then if (!( | |
800 | - | then if (( | |
792 | + | if ((ch == ch)) | |
793 | + | then if (!(ch)) | |
794 | + | then if ((cg == 0)) | |
801 | 795 | then throw("Current voting is not over yet") | |
802 | 796 | else $Tuple2(nil, unit) | |
803 | 797 | else { | |
804 | - | let | |
805 | - | if (( | |
798 | + | let ci = valueOrElse(getInteger(this, k), c) | |
799 | + | if ((ci > cg)) | |
806 | 800 | then { | |
807 | - | let | |
808 | - | if (( | |
801 | + | let cj = invoke(this, "finalizeWrapper", [(cg + 1)], nil) | |
802 | + | if ((cj == cj)) | |
809 | 803 | then $Tuple2(nil, unit) | |
810 | 804 | else throw("Strict value is not equal to itself.") | |
811 | 805 | } | |
812 | 806 | else $Tuple2(nil, unit) | |
813 | 807 | } | |
814 | 808 | else throw("Strict value is not equal to itself.") | |
815 | 809 | } | |
816 | 810 | ||
817 | 811 | ||
818 | 812 | ||
819 | - | @Callable( | |
813 | + | @Callable(aM) | |
820 | 814 | func finalize () = { | |
821 | - | let | |
822 | - | if (( | |
815 | + | let cj = invoke(this, "finalizeWrapper", [0], nil) | |
816 | + | if ((cj == cj)) | |
823 | 817 | then $Tuple2(nil, unit) | |
824 | 818 | else throw("Strict value is not equal to itself.") | |
825 | 819 | } | |
826 | 820 | ||
827 | 821 | ||
828 | 822 | ||
829 | - | @Callable( | |
830 | - | func containsNodeREADONLY ( | |
823 | + | @Callable(aM) | |
824 | + | func containsNodeREADONLY (ar,av) = $Tuple2(nil, ax(ar, av)) | |
831 | 825 | ||
832 | 826 | ||
833 | 827 | ||
834 | - | @Callable( | |
835 | - | func insertNode ( | |
836 | - | let | |
837 | - | if (( | |
838 | - | then $Tuple2( | |
828 | + | @Callable(aM) | |
829 | + | func insertNode (ar,av) = { | |
830 | + | let aQ = aN(aM) | |
831 | + | if ((aQ == aQ)) | |
832 | + | then $Tuple2(aB(ar, av), unit) | |
839 | 833 | else throw("Strict value is not equal to itself.") | |
840 | 834 | } | |
841 | 835 | ||
842 | 836 | ||
843 | 837 | ||
844 | - | @Callable( | |
845 | - | func deleteNode ( | |
846 | - | let | |
847 | - | if (( | |
848 | - | then $Tuple2( | |
838 | + | @Callable(aM) | |
839 | + | func deleteNode (ar,av) = { | |
840 | + | let aQ = aN(aM) | |
841 | + | if ((aQ == aQ)) | |
842 | + | then $Tuple2(aE(ar, av), unit) | |
849 | 843 | else throw("Strict value is not equal to itself.") | |
850 | 844 | } | |
851 | 845 | ||
852 | 846 | ||
853 | - | @Verifier( | |
854 | - | func | |
855 | - | let | |
856 | - | let | |
857 | - | if ($isInstanceOf( | |
847 | + | @Verifier(ck) | |
848 | + | func cl () = { | |
849 | + | let cm = { | |
850 | + | let Q = aH() | |
851 | + | if ($isInstanceOf(Q, "ByteVector")) | |
858 | 852 | then { | |
859 | - | let | |
860 | - | | |
853 | + | let aO = Q | |
854 | + | aO | |
861 | 855 | } | |
862 | - | else if ($isInstanceOf( | |
863 | - | then | |
856 | + | else if ($isInstanceOf(Q, "Unit")) | |
857 | + | then ck.senderPublicKey | |
864 | 858 | else throw("Match error") | |
865 | 859 | } | |
866 | - | sigVerify( | |
860 | + | sigVerify(ck.bodyBytes, ck.proofs[0], cm) | |
867 | 861 | } | |
868 | 862 |
github/deemru/w8io/169f3d6 284.12 ms ◑