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