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