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