@paxoslabs/amplify-sdk 0.1.0-beta.0 → 0.1.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +2026 -1946
- package/dist/index.d.ts +2026 -1946
- package/dist/index.js +206 -171
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +207 -172
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -2
package/dist/index.d.mts
CHANGED
|
@@ -510,2461 +510,2542 @@ interface ApproveDepositTokenTxData {
|
|
|
510
510
|
declare function prepareApproveDepositTokenTxData({ yieldType, depositToken, approvalAmount, chainId, }: PrepareApproveDepositTokenTxParams): Promise<ApproveDepositTokenTxData>;
|
|
511
511
|
|
|
512
512
|
declare const CommunityCodeDepositorAbi: readonly [{
|
|
513
|
-
readonly type: "constructor";
|
|
514
513
|
readonly inputs: readonly [{
|
|
514
|
+
readonly internalType: "contract TellerWithMultiAssetSupport";
|
|
515
515
|
readonly name: "_teller";
|
|
516
516
|
readonly type: "address";
|
|
517
|
-
readonly internalType: "address";
|
|
518
517
|
}, {
|
|
519
|
-
readonly
|
|
518
|
+
readonly internalType: "contract INativeWrapper";
|
|
519
|
+
readonly name: "_nativeWrapper";
|
|
520
520
|
readonly type: "address";
|
|
521
|
+
}, {
|
|
522
|
+
readonly internalType: "contract Authority";
|
|
523
|
+
readonly name: "_rolesAuthority";
|
|
524
|
+
readonly type: "address";
|
|
525
|
+
}, {
|
|
526
|
+
readonly internalType: "bool";
|
|
527
|
+
readonly name: "_isNativeDepositSupported";
|
|
528
|
+
readonly type: "bool";
|
|
529
|
+
}, {
|
|
521
530
|
readonly internalType: "address";
|
|
531
|
+
readonly name: "_owner";
|
|
532
|
+
readonly type: "address";
|
|
522
533
|
}];
|
|
523
534
|
readonly stateMutability: "nonpayable";
|
|
535
|
+
readonly type: "constructor";
|
|
536
|
+
}, {
|
|
537
|
+
readonly inputs: readonly [];
|
|
538
|
+
readonly name: "IncorrectNativeDepositAmount";
|
|
539
|
+
readonly type: "error";
|
|
540
|
+
}, {
|
|
541
|
+
readonly inputs: readonly [];
|
|
542
|
+
readonly name: "NativeDepositNotSupported";
|
|
543
|
+
readonly type: "error";
|
|
544
|
+
}, {
|
|
545
|
+
readonly inputs: readonly [];
|
|
546
|
+
readonly name: "NativeWrapperAccountantDecimalsMismatch";
|
|
547
|
+
readonly type: "error";
|
|
548
|
+
}, {
|
|
549
|
+
readonly inputs: readonly [];
|
|
550
|
+
readonly name: "PermitFailedAndAllowanceTooLow";
|
|
551
|
+
readonly type: "error";
|
|
552
|
+
}, {
|
|
553
|
+
readonly inputs: readonly [];
|
|
554
|
+
readonly name: "ZeroAddress";
|
|
555
|
+
readonly type: "error";
|
|
556
|
+
}, {
|
|
557
|
+
readonly anonymous: false;
|
|
558
|
+
readonly inputs: readonly [{
|
|
559
|
+
readonly indexed: true;
|
|
560
|
+
readonly internalType: "address";
|
|
561
|
+
readonly name: "user";
|
|
562
|
+
readonly type: "address";
|
|
563
|
+
}, {
|
|
564
|
+
readonly indexed: true;
|
|
565
|
+
readonly internalType: "contract Authority";
|
|
566
|
+
readonly name: "newAuthority";
|
|
567
|
+
readonly type: "address";
|
|
568
|
+
}];
|
|
569
|
+
readonly name: "AuthorityUpdated";
|
|
570
|
+
readonly type: "event";
|
|
571
|
+
}, {
|
|
572
|
+
readonly anonymous: false;
|
|
573
|
+
readonly inputs: readonly [{
|
|
574
|
+
readonly indexed: true;
|
|
575
|
+
readonly internalType: "address";
|
|
576
|
+
readonly name: "depositor";
|
|
577
|
+
readonly type: "address";
|
|
578
|
+
}, {
|
|
579
|
+
readonly indexed: true;
|
|
580
|
+
readonly internalType: "contract ERC20";
|
|
581
|
+
readonly name: "depositAsset";
|
|
582
|
+
readonly type: "address";
|
|
583
|
+
}, {
|
|
584
|
+
readonly indexed: false;
|
|
585
|
+
readonly internalType: "uint256";
|
|
586
|
+
readonly name: "depositAmount";
|
|
587
|
+
readonly type: "uint256";
|
|
588
|
+
}, {
|
|
589
|
+
readonly indexed: false;
|
|
590
|
+
readonly internalType: "uint256";
|
|
591
|
+
readonly name: "minimumMint";
|
|
592
|
+
readonly type: "uint256";
|
|
593
|
+
}, {
|
|
594
|
+
readonly indexed: false;
|
|
595
|
+
readonly internalType: "address";
|
|
596
|
+
readonly name: "to";
|
|
597
|
+
readonly type: "address";
|
|
598
|
+
}, {
|
|
599
|
+
readonly indexed: false;
|
|
600
|
+
readonly internalType: "bytes32";
|
|
601
|
+
readonly name: "depositHash";
|
|
602
|
+
readonly type: "bytes32";
|
|
603
|
+
}, {
|
|
604
|
+
readonly indexed: true;
|
|
605
|
+
readonly internalType: "bytes";
|
|
606
|
+
readonly name: "distributorCode";
|
|
607
|
+
readonly type: "bytes";
|
|
608
|
+
}];
|
|
609
|
+
readonly name: "DepositWithDistributorCode";
|
|
610
|
+
readonly type: "event";
|
|
611
|
+
}, {
|
|
612
|
+
readonly anonymous: false;
|
|
613
|
+
readonly inputs: readonly [{
|
|
614
|
+
readonly indexed: true;
|
|
615
|
+
readonly internalType: "address";
|
|
616
|
+
readonly name: "user";
|
|
617
|
+
readonly type: "address";
|
|
618
|
+
}, {
|
|
619
|
+
readonly indexed: true;
|
|
620
|
+
readonly internalType: "address";
|
|
621
|
+
readonly name: "newOwner";
|
|
622
|
+
readonly type: "address";
|
|
623
|
+
}];
|
|
624
|
+
readonly name: "OwnershipTransferred";
|
|
625
|
+
readonly type: "event";
|
|
524
626
|
}, {
|
|
525
|
-
readonly type: "function";
|
|
526
|
-
readonly name: "authority";
|
|
527
627
|
readonly inputs: readonly [];
|
|
628
|
+
readonly name: "authority";
|
|
528
629
|
readonly outputs: readonly [{
|
|
630
|
+
readonly internalType: "contract Authority";
|
|
529
631
|
readonly name: "";
|
|
530
632
|
readonly type: "address";
|
|
531
|
-
readonly internalType: "contract Authority";
|
|
532
633
|
}];
|
|
533
634
|
readonly stateMutability: "view";
|
|
534
|
-
}, {
|
|
535
635
|
readonly type: "function";
|
|
536
|
-
|
|
636
|
+
}, {
|
|
537
637
|
readonly inputs: readonly [];
|
|
638
|
+
readonly name: "boringVault";
|
|
538
639
|
readonly outputs: readonly [{
|
|
640
|
+
readonly internalType: "address";
|
|
539
641
|
readonly name: "";
|
|
540
642
|
readonly type: "address";
|
|
541
|
-
readonly internalType: "address";
|
|
542
643
|
}];
|
|
543
644
|
readonly stateMutability: "view";
|
|
544
|
-
}, {
|
|
545
645
|
readonly type: "function";
|
|
546
|
-
|
|
646
|
+
}, {
|
|
547
647
|
readonly inputs: readonly [{
|
|
648
|
+
readonly internalType: "contract ERC20";
|
|
548
649
|
readonly name: "depositAsset";
|
|
549
650
|
readonly type: "address";
|
|
550
|
-
readonly internalType: "contract ERC20";
|
|
551
651
|
}, {
|
|
652
|
+
readonly internalType: "uint256";
|
|
552
653
|
readonly name: "depositAmount";
|
|
553
654
|
readonly type: "uint256";
|
|
554
|
-
readonly internalType: "uint256";
|
|
555
655
|
}, {
|
|
656
|
+
readonly internalType: "uint256";
|
|
556
657
|
readonly name: "minimumMint";
|
|
557
658
|
readonly type: "uint256";
|
|
558
|
-
readonly internalType: "uint256";
|
|
559
659
|
}, {
|
|
660
|
+
readonly internalType: "address";
|
|
560
661
|
readonly name: "to";
|
|
561
662
|
readonly type: "address";
|
|
562
|
-
readonly internalType: "address";
|
|
563
663
|
}, {
|
|
564
|
-
readonly name: "communityCode";
|
|
565
|
-
readonly type: "bytes";
|
|
566
664
|
readonly internalType: "bytes";
|
|
665
|
+
readonly name: "distributorCode";
|
|
666
|
+
readonly type: "bytes";
|
|
567
667
|
}];
|
|
668
|
+
readonly name: "deposit";
|
|
568
669
|
readonly outputs: readonly [{
|
|
670
|
+
readonly internalType: "uint256";
|
|
569
671
|
readonly name: "shares";
|
|
570
672
|
readonly type: "uint256";
|
|
571
|
-
readonly internalType: "uint256";
|
|
572
673
|
}];
|
|
573
674
|
readonly stateMutability: "nonpayable";
|
|
574
|
-
}, {
|
|
575
675
|
readonly type: "function";
|
|
576
|
-
|
|
676
|
+
}, {
|
|
577
677
|
readonly inputs: readonly [{
|
|
678
|
+
readonly internalType: "uint256";
|
|
578
679
|
readonly name: "depositAmount";
|
|
579
680
|
readonly type: "uint256";
|
|
580
|
-
readonly internalType: "uint256";
|
|
581
681
|
}, {
|
|
682
|
+
readonly internalType: "uint256";
|
|
582
683
|
readonly name: "minimumMint";
|
|
583
684
|
readonly type: "uint256";
|
|
584
|
-
readonly internalType: "uint256";
|
|
585
685
|
}, {
|
|
686
|
+
readonly internalType: "address";
|
|
586
687
|
readonly name: "to";
|
|
587
688
|
readonly type: "address";
|
|
588
|
-
readonly internalType: "address";
|
|
589
689
|
}, {
|
|
590
|
-
readonly name: "communityCode";
|
|
591
|
-
readonly type: "bytes";
|
|
592
690
|
readonly internalType: "bytes";
|
|
691
|
+
readonly name: "distributorCode";
|
|
692
|
+
readonly type: "bytes";
|
|
593
693
|
}];
|
|
694
|
+
readonly name: "depositNative";
|
|
594
695
|
readonly outputs: readonly [{
|
|
696
|
+
readonly internalType: "uint256";
|
|
595
697
|
readonly name: "shares";
|
|
596
698
|
readonly type: "uint256";
|
|
597
|
-
readonly internalType: "uint256";
|
|
598
699
|
}];
|
|
599
700
|
readonly stateMutability: "payable";
|
|
600
|
-
}, {
|
|
601
701
|
readonly type: "function";
|
|
602
|
-
|
|
702
|
+
}, {
|
|
603
703
|
readonly inputs: readonly [];
|
|
704
|
+
readonly name: "depositNonce";
|
|
604
705
|
readonly outputs: readonly [{
|
|
706
|
+
readonly internalType: "uint256";
|
|
605
707
|
readonly name: "";
|
|
606
708
|
readonly type: "uint256";
|
|
607
|
-
readonly internalType: "uint256";
|
|
608
709
|
}];
|
|
609
710
|
readonly stateMutability: "view";
|
|
711
|
+
readonly type: "function";
|
|
610
712
|
}, {
|
|
713
|
+
readonly inputs: readonly [{
|
|
714
|
+
readonly internalType: "contract ERC20";
|
|
715
|
+
readonly name: "depositAsset";
|
|
716
|
+
readonly type: "address";
|
|
717
|
+
}, {
|
|
718
|
+
readonly internalType: "uint256";
|
|
719
|
+
readonly name: "depositAmount";
|
|
720
|
+
readonly type: "uint256";
|
|
721
|
+
}, {
|
|
722
|
+
readonly internalType: "uint256";
|
|
723
|
+
readonly name: "minimumMint";
|
|
724
|
+
readonly type: "uint256";
|
|
725
|
+
}, {
|
|
726
|
+
readonly internalType: "address";
|
|
727
|
+
readonly name: "to";
|
|
728
|
+
readonly type: "address";
|
|
729
|
+
}, {
|
|
730
|
+
readonly internalType: "bytes";
|
|
731
|
+
readonly name: "distributorCode";
|
|
732
|
+
readonly type: "bytes";
|
|
733
|
+
}, {
|
|
734
|
+
readonly internalType: "uint256";
|
|
735
|
+
readonly name: "deadline";
|
|
736
|
+
readonly type: "uint256";
|
|
737
|
+
}, {
|
|
738
|
+
readonly internalType: "uint8";
|
|
739
|
+
readonly name: "v";
|
|
740
|
+
readonly type: "uint8";
|
|
741
|
+
}, {
|
|
742
|
+
readonly internalType: "bytes32";
|
|
743
|
+
readonly name: "r";
|
|
744
|
+
readonly type: "bytes32";
|
|
745
|
+
}, {
|
|
746
|
+
readonly internalType: "bytes32";
|
|
747
|
+
readonly name: "s";
|
|
748
|
+
readonly type: "bytes32";
|
|
749
|
+
}];
|
|
750
|
+
readonly name: "depositWithPermit";
|
|
751
|
+
readonly outputs: readonly [{
|
|
752
|
+
readonly internalType: "uint256";
|
|
753
|
+
readonly name: "shares";
|
|
754
|
+
readonly type: "uint256";
|
|
755
|
+
}];
|
|
756
|
+
readonly stateMutability: "nonpayable";
|
|
611
757
|
readonly type: "function";
|
|
612
|
-
|
|
758
|
+
}, {
|
|
613
759
|
readonly inputs: readonly [];
|
|
760
|
+
readonly name: "isNativeDepositSupported";
|
|
614
761
|
readonly outputs: readonly [{
|
|
762
|
+
readonly internalType: "bool";
|
|
615
763
|
readonly name: "";
|
|
616
|
-
readonly type: "
|
|
617
|
-
readonly internalType: "address";
|
|
764
|
+
readonly type: "bool";
|
|
618
765
|
}];
|
|
619
766
|
readonly stateMutability: "view";
|
|
620
|
-
}, {
|
|
621
767
|
readonly type: "function";
|
|
622
|
-
|
|
623
|
-
readonly inputs: readonly [
|
|
624
|
-
|
|
768
|
+
}, {
|
|
769
|
+
readonly inputs: readonly [];
|
|
770
|
+
readonly name: "nativeWrapper";
|
|
771
|
+
readonly outputs: readonly [{
|
|
772
|
+
readonly internalType: "contract INativeWrapper";
|
|
773
|
+
readonly name: "";
|
|
625
774
|
readonly type: "address";
|
|
626
|
-
readonly internalType: "contract Authority";
|
|
627
775
|
}];
|
|
628
|
-
readonly
|
|
629
|
-
readonly stateMutability: "nonpayable";
|
|
630
|
-
}, {
|
|
776
|
+
readonly stateMutability: "view";
|
|
631
777
|
readonly type: "function";
|
|
632
|
-
|
|
778
|
+
}, {
|
|
633
779
|
readonly inputs: readonly [];
|
|
780
|
+
readonly name: "owner";
|
|
634
781
|
readonly outputs: readonly [{
|
|
782
|
+
readonly internalType: "address";
|
|
635
783
|
readonly name: "";
|
|
636
784
|
readonly type: "address";
|
|
637
|
-
readonly internalType: "contract TellerWithMultiAssetSupport";
|
|
638
785
|
}];
|
|
639
786
|
readonly stateMutability: "view";
|
|
640
|
-
}, {
|
|
641
787
|
readonly type: "function";
|
|
642
|
-
|
|
788
|
+
}, {
|
|
643
789
|
readonly inputs: readonly [{
|
|
644
|
-
readonly
|
|
790
|
+
readonly internalType: "contract Authority";
|
|
791
|
+
readonly name: "newAuthority";
|
|
645
792
|
readonly type: "address";
|
|
646
|
-
readonly internalType: "address";
|
|
647
793
|
}];
|
|
794
|
+
readonly name: "setAuthority";
|
|
648
795
|
readonly outputs: readonly [];
|
|
649
796
|
readonly stateMutability: "nonpayable";
|
|
797
|
+
readonly type: "function";
|
|
650
798
|
}, {
|
|
651
|
-
readonly
|
|
652
|
-
readonly name: "
|
|
653
|
-
readonly
|
|
654
|
-
readonly
|
|
655
|
-
readonly
|
|
656
|
-
readonly indexed: true;
|
|
657
|
-
readonly internalType: "address";
|
|
658
|
-
}, {
|
|
659
|
-
readonly name: "newAuthority";
|
|
799
|
+
readonly inputs: readonly [];
|
|
800
|
+
readonly name: "teller";
|
|
801
|
+
readonly outputs: readonly [{
|
|
802
|
+
readonly internalType: "contract TellerWithMultiAssetSupport";
|
|
803
|
+
readonly name: "";
|
|
660
804
|
readonly type: "address";
|
|
661
|
-
readonly indexed: true;
|
|
662
|
-
readonly internalType: "contract Authority";
|
|
663
805
|
}];
|
|
664
|
-
readonly
|
|
806
|
+
readonly stateMutability: "view";
|
|
807
|
+
readonly type: "function";
|
|
665
808
|
}, {
|
|
666
|
-
readonly type: "event";
|
|
667
|
-
readonly name: "DepositWithCommunityCode";
|
|
668
809
|
readonly inputs: readonly [{
|
|
669
|
-
readonly name: "depositor";
|
|
670
|
-
readonly type: "address";
|
|
671
|
-
readonly indexed: true;
|
|
672
810
|
readonly internalType: "address";
|
|
673
|
-
|
|
674
|
-
readonly name: "depositAsset";
|
|
811
|
+
readonly name: "newOwner";
|
|
675
812
|
readonly type: "address";
|
|
676
|
-
readonly indexed: true;
|
|
677
|
-
readonly internalType: "contract ERC20";
|
|
678
|
-
}, {
|
|
679
|
-
readonly name: "depositAmount";
|
|
680
|
-
readonly type: "uint256";
|
|
681
|
-
readonly indexed: false;
|
|
682
|
-
readonly internalType: "uint256";
|
|
683
|
-
}, {
|
|
684
|
-
readonly name: "minimumMint";
|
|
685
|
-
readonly type: "uint256";
|
|
686
|
-
readonly indexed: false;
|
|
687
|
-
readonly internalType: "uint256";
|
|
688
|
-
}, {
|
|
689
|
-
readonly name: "to";
|
|
690
|
-
readonly type: "address";
|
|
691
|
-
readonly indexed: true;
|
|
692
|
-
readonly internalType: "address";
|
|
693
|
-
}, {
|
|
694
|
-
readonly name: "depositHash";
|
|
695
|
-
readonly type: "bytes32";
|
|
696
|
-
readonly indexed: false;
|
|
697
|
-
readonly internalType: "bytes32";
|
|
698
|
-
}, {
|
|
699
|
-
readonly name: "communityCode";
|
|
700
|
-
readonly type: "bytes";
|
|
701
|
-
readonly indexed: false;
|
|
702
|
-
readonly internalType: "bytes";
|
|
703
|
-
}];
|
|
704
|
-
readonly anonymous: false;
|
|
705
|
-
}, {
|
|
706
|
-
readonly type: "event";
|
|
707
|
-
readonly name: "OwnershipTransferred";
|
|
708
|
-
readonly inputs: readonly [{
|
|
709
|
-
readonly name: "user";
|
|
710
|
-
readonly type: "address";
|
|
711
|
-
readonly indexed: true;
|
|
712
|
-
readonly internalType: "address";
|
|
713
|
-
}, {
|
|
714
|
-
readonly name: "newOwner";
|
|
715
|
-
readonly type: "address";
|
|
716
|
-
readonly indexed: true;
|
|
717
|
-
readonly internalType: "address";
|
|
718
813
|
}];
|
|
719
|
-
readonly
|
|
720
|
-
|
|
721
|
-
readonly
|
|
722
|
-
readonly
|
|
723
|
-
readonly inputs: readonly [];
|
|
724
|
-
}, {
|
|
725
|
-
readonly type: "error";
|
|
726
|
-
readonly name: "NativeWrapperAccountantDecimalsMismatch";
|
|
727
|
-
readonly inputs: readonly [];
|
|
728
|
-
}, {
|
|
729
|
-
readonly type: "error";
|
|
730
|
-
readonly name: "ZeroAddress";
|
|
731
|
-
readonly inputs: readonly [];
|
|
814
|
+
readonly name: "transferOwnership";
|
|
815
|
+
readonly outputs: readonly [];
|
|
816
|
+
readonly stateMutability: "nonpayable";
|
|
817
|
+
readonly type: "function";
|
|
732
818
|
}];
|
|
733
819
|
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
}];
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
},
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
readonly name: "
|
|
1025
|
-
readonly type: "address";
|
|
1026
|
-
}];
|
|
1027
|
-
readonly name: "ChainAllowMessagesFrom";
|
|
1028
|
-
readonly type: "event";
|
|
1029
|
-
}, {
|
|
1030
|
-
readonly anonymous: false;
|
|
1031
|
-
readonly inputs: readonly [{
|
|
1032
|
-
readonly indexed: false;
|
|
1033
|
-
readonly internalType: "uint256";
|
|
1034
|
-
readonly name: "chainSelector";
|
|
1035
|
-
readonly type: "uint256";
|
|
1036
|
-
}, {
|
|
1037
|
-
readonly indexed: false;
|
|
1038
|
-
readonly internalType: "address";
|
|
1039
|
-
readonly name: "targetTeller";
|
|
1040
|
-
readonly type: "address";
|
|
1041
|
-
}];
|
|
1042
|
-
readonly name: "ChainAllowMessagesTo";
|
|
1043
|
-
readonly type: "event";
|
|
1044
|
-
}, {
|
|
1045
|
-
readonly anonymous: false;
|
|
1046
|
-
readonly inputs: readonly [{
|
|
1047
|
-
readonly indexed: false;
|
|
1048
|
-
readonly internalType: "uint256";
|
|
1049
|
-
readonly name: "chainSelector";
|
|
1050
|
-
readonly type: "uint256";
|
|
1051
|
-
}];
|
|
1052
|
-
readonly name: "ChainRemoved";
|
|
1053
|
-
readonly type: "event";
|
|
1054
|
-
}, {
|
|
1055
|
-
readonly anonymous: false;
|
|
1056
|
-
readonly inputs: readonly [{
|
|
1057
|
-
readonly indexed: false;
|
|
1058
|
-
readonly internalType: "uint256";
|
|
1059
|
-
readonly name: "chainSelector";
|
|
1060
|
-
readonly type: "uint256";
|
|
1061
|
-
}, {
|
|
1062
|
-
readonly indexed: false;
|
|
1063
|
-
readonly internalType: "uint64";
|
|
1064
|
-
readonly name: "messageGasLimit";
|
|
1065
|
-
readonly type: "uint64";
|
|
1066
|
-
}];
|
|
1067
|
-
readonly name: "ChainSetGasLimit";
|
|
1068
|
-
readonly type: "event";
|
|
1069
|
-
}, {
|
|
1070
|
-
readonly anonymous: false;
|
|
1071
|
-
readonly inputs: readonly [{
|
|
1072
|
-
readonly indexed: false;
|
|
1073
|
-
readonly internalType: "uint256";
|
|
1074
|
-
readonly name: "chainSelector";
|
|
1075
|
-
readonly type: "uint256";
|
|
1076
|
-
}];
|
|
1077
|
-
readonly name: "ChainStopMessagesFrom";
|
|
1078
|
-
readonly type: "event";
|
|
1079
|
-
}, {
|
|
1080
|
-
readonly anonymous: false;
|
|
1081
|
-
readonly inputs: readonly [{
|
|
1082
|
-
readonly indexed: false;
|
|
1083
|
-
readonly internalType: "uint256";
|
|
1084
|
-
readonly name: "chainSelector";
|
|
1085
|
-
readonly type: "uint256";
|
|
1086
|
-
}];
|
|
1087
|
-
readonly name: "ChainStopMessagesTo";
|
|
1088
|
-
readonly type: "event";
|
|
1089
|
-
}, {
|
|
1090
|
-
readonly anonymous: false;
|
|
1091
|
-
readonly inputs: readonly [{
|
|
1092
|
-
readonly indexed: true;
|
|
1093
|
-
readonly internalType: "uint256";
|
|
1094
|
-
readonly name: "nonce";
|
|
1095
|
-
readonly type: "uint256";
|
|
1096
|
-
}, {
|
|
1097
|
-
readonly indexed: true;
|
|
1098
|
-
readonly internalType: "address";
|
|
1099
|
-
readonly name: "receiver";
|
|
1100
|
-
readonly type: "address";
|
|
1101
|
-
}, {
|
|
1102
|
-
readonly indexed: true;
|
|
1103
|
-
readonly internalType: "address";
|
|
1104
|
-
readonly name: "depositAsset";
|
|
1105
|
-
readonly type: "address";
|
|
1106
|
-
}, {
|
|
1107
|
-
readonly indexed: false;
|
|
1108
|
-
readonly internalType: "uint256";
|
|
1109
|
-
readonly name: "depositAmount";
|
|
1110
|
-
readonly type: "uint256";
|
|
1111
|
-
}, {
|
|
1112
|
-
readonly indexed: false;
|
|
1113
|
-
readonly internalType: "uint256";
|
|
1114
|
-
readonly name: "shareAmount";
|
|
1115
|
-
readonly type: "uint256";
|
|
1116
|
-
}, {
|
|
1117
|
-
readonly indexed: false;
|
|
1118
|
-
readonly internalType: "uint256";
|
|
1119
|
-
readonly name: "depositTimestamp";
|
|
1120
|
-
readonly type: "uint256";
|
|
1121
|
-
}, {
|
|
1122
|
-
readonly indexed: false;
|
|
1123
|
-
readonly internalType: "uint256";
|
|
1124
|
-
readonly name: "shareLockPeriodAtTimeOfDeposit";
|
|
1125
|
-
readonly type: "uint256";
|
|
1126
|
-
}];
|
|
1127
|
-
readonly name: "Deposit";
|
|
1128
|
-
readonly type: "event";
|
|
1129
|
-
}, {
|
|
1130
|
-
readonly anonymous: false;
|
|
1131
|
-
readonly inputs: readonly [{
|
|
1132
|
-
readonly indexed: true;
|
|
1133
|
-
readonly internalType: "uint256";
|
|
1134
|
-
readonly name: "nonce";
|
|
1135
|
-
readonly type: "uint256";
|
|
1136
|
-
}, {
|
|
1137
|
-
readonly indexed: false;
|
|
1138
|
-
readonly internalType: "bytes32";
|
|
1139
|
-
readonly name: "depositHash";
|
|
1140
|
-
readonly type: "bytes32";
|
|
1141
|
-
}, {
|
|
1142
|
-
readonly indexed: true;
|
|
1143
|
-
readonly internalType: "address";
|
|
1144
|
-
readonly name: "user";
|
|
1145
|
-
readonly type: "address";
|
|
1146
|
-
}];
|
|
1147
|
-
readonly name: "DepositRefunded";
|
|
1148
|
-
readonly type: "event";
|
|
1149
|
-
}, {
|
|
1150
|
-
readonly anonymous: false;
|
|
1151
|
-
readonly inputs: readonly [{
|
|
1152
|
-
readonly indexed: false;
|
|
1153
|
-
readonly internalType: "bytes32";
|
|
1154
|
-
readonly name: "messageId";
|
|
1155
|
-
readonly type: "bytes32";
|
|
1156
|
-
}, {
|
|
1157
|
-
readonly indexed: false;
|
|
1158
|
-
readonly internalType: "uint256";
|
|
1159
|
-
readonly name: "shareAmount";
|
|
1160
|
-
readonly type: "uint256";
|
|
1161
|
-
}, {
|
|
1162
|
-
readonly indexed: false;
|
|
1163
|
-
readonly internalType: "address";
|
|
1164
|
-
readonly name: "to";
|
|
1165
|
-
readonly type: "address";
|
|
1166
|
-
}];
|
|
1167
|
-
readonly name: "MessageReceived";
|
|
1168
|
-
readonly type: "event";
|
|
1169
|
-
}, {
|
|
1170
|
-
readonly anonymous: false;
|
|
1171
|
-
readonly inputs: readonly [{
|
|
1172
|
-
readonly indexed: false;
|
|
1173
|
-
readonly internalType: "bytes32";
|
|
1174
|
-
readonly name: "messageId";
|
|
1175
|
-
readonly type: "bytes32";
|
|
1176
|
-
}, {
|
|
1177
|
-
readonly indexed: false;
|
|
1178
|
-
readonly internalType: "uint256";
|
|
1179
|
-
readonly name: "shareAmount";
|
|
1180
|
-
readonly type: "uint256";
|
|
1181
|
-
}, {
|
|
1182
|
-
readonly indexed: false;
|
|
1183
|
-
readonly internalType: "address";
|
|
1184
|
-
readonly name: "to";
|
|
1185
|
-
readonly type: "address";
|
|
1186
|
-
}];
|
|
1187
|
-
readonly name: "MessageSent";
|
|
1188
|
-
readonly type: "event";
|
|
1189
|
-
}, {
|
|
1190
|
-
readonly anonymous: false;
|
|
1191
|
-
readonly inputs: readonly [{
|
|
1192
|
-
readonly indexed: true;
|
|
1193
|
-
readonly internalType: "address";
|
|
1194
|
-
readonly name: "user";
|
|
1195
|
-
readonly type: "address";
|
|
1196
|
-
}, {
|
|
1197
|
-
readonly indexed: true;
|
|
1198
|
-
readonly internalType: "address";
|
|
1199
|
-
readonly name: "newOwner";
|
|
1200
|
-
readonly type: "address";
|
|
1201
|
-
}];
|
|
1202
|
-
readonly name: "OwnershipTransferred";
|
|
1203
|
-
readonly type: "event";
|
|
1204
|
-
}, {
|
|
1205
|
-
readonly anonymous: false;
|
|
1206
|
-
readonly inputs: readonly [];
|
|
1207
|
-
readonly name: "Paused";
|
|
1208
|
-
readonly type: "event";
|
|
1209
|
-
}, {
|
|
1210
|
-
readonly anonymous: false;
|
|
1211
|
-
readonly inputs: readonly [{
|
|
1212
|
-
readonly indexed: false;
|
|
1213
|
-
readonly internalType: "uint32";
|
|
1214
|
-
readonly name: "eid";
|
|
1215
|
-
readonly type: "uint32";
|
|
1216
|
-
}, {
|
|
1217
|
-
readonly indexed: false;
|
|
1218
|
-
readonly internalType: "bytes32";
|
|
1219
|
-
readonly name: "peer";
|
|
1220
|
-
readonly type: "bytes32";
|
|
1221
|
-
}];
|
|
1222
|
-
readonly name: "PeerSet";
|
|
1223
|
-
readonly type: "event";
|
|
1224
|
-
}, {
|
|
1225
|
-
readonly anonymous: false;
|
|
1226
|
-
readonly inputs: readonly [];
|
|
1227
|
-
readonly name: "Unpaused";
|
|
1228
|
-
readonly type: "event";
|
|
1229
|
-
}, {
|
|
1230
|
-
readonly inputs: readonly [];
|
|
1231
|
-
readonly name: "accountant";
|
|
1232
|
-
readonly outputs: readonly [{
|
|
1233
|
-
readonly internalType: "contract AccountantWithRateProviders";
|
|
1234
|
-
readonly name: "";
|
|
1235
|
-
readonly type: "address";
|
|
1236
|
-
}];
|
|
1237
|
-
readonly stateMutability: "view";
|
|
1238
|
-
readonly type: "function";
|
|
1239
|
-
}, {
|
|
1240
|
-
readonly inputs: readonly [{
|
|
1241
|
-
readonly internalType: "contract ERC20";
|
|
1242
|
-
readonly name: "asset";
|
|
1243
|
-
readonly type: "address";
|
|
1244
|
-
}];
|
|
1245
|
-
readonly name: "addAsset";
|
|
1246
|
-
readonly outputs: readonly [];
|
|
1247
|
-
readonly stateMutability: "nonpayable";
|
|
1248
|
-
readonly type: "function";
|
|
1249
|
-
}, {
|
|
1250
|
-
readonly inputs: readonly [{
|
|
1251
|
-
readonly internalType: "uint32";
|
|
1252
|
-
readonly name: "chainSelector";
|
|
1253
|
-
readonly type: "uint32";
|
|
1254
|
-
}, {
|
|
1255
|
-
readonly internalType: "bool";
|
|
1256
|
-
readonly name: "allowMessagesFrom";
|
|
1257
|
-
readonly type: "bool";
|
|
1258
|
-
}, {
|
|
1259
|
-
readonly internalType: "bool";
|
|
1260
|
-
readonly name: "allowMessagesTo";
|
|
1261
|
-
readonly type: "bool";
|
|
1262
|
-
}, {
|
|
1263
|
-
readonly internalType: "address";
|
|
1264
|
-
readonly name: "targetTeller";
|
|
820
|
+
/**
|
|
821
|
+
* @file Deposit functionality for Nucleus vaults
|
|
822
|
+
* @module vaults/deposit
|
|
823
|
+
*/
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Result object containing transaction data for a deposit operation
|
|
827
|
+
* @interface DepositTxData
|
|
828
|
+
* @property {typeof CommunityCodeDepositorAbi} abi - ABI for the CommunityCodeDepositor contract
|
|
829
|
+
* @property {Address} address - Address of the CommunityCodeDepositor contract
|
|
830
|
+
* @property {'deposit'} functionName - Name of the function to call
|
|
831
|
+
* @property {[Address, bigint, bigint, Address, ByteArray]} args - Arguments for the deposit function:
|
|
832
|
+
* [depositAsset, depositAmount, minimumMint, recipientAddress, distributorCode]
|
|
833
|
+
* @property {number} chainId - ID of the chain where the transaction should be executed
|
|
834
|
+
*/
|
|
835
|
+
interface DepositTxData {
|
|
836
|
+
abi: typeof CommunityCodeDepositorAbi;
|
|
837
|
+
address: Address;
|
|
838
|
+
functionName: "deposit";
|
|
839
|
+
args: [Address, bigint, bigint, Address, ByteArray];
|
|
840
|
+
chainId: number;
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* Parameters for prepareDepositTransactionData()
|
|
844
|
+
* Accepts yieldType, recipientAddress, depositToken, and chainId for automatic vault resolution
|
|
845
|
+
* @interface PrepareDepositTxDataParams
|
|
846
|
+
* @property {YieldType} yieldType - Yield strategy type (e.g., "PRIME", "TBILL", "LENDING")
|
|
847
|
+
* @property {Address} recipientAddress - Ethereum address of the user (recipient of vault shares)
|
|
848
|
+
* @property {Address} depositToken - Token contract address to deposit (matches vault's baseTokenAddress)
|
|
849
|
+
* @property {string} depositAmount - Amount of assets to deposit as a decimal string (e.g., "1.5")
|
|
850
|
+
* @property {number | string} chainId - ID of the chain where the deposit will occur
|
|
851
|
+
* @property {number} [slippage] - Maximum acceptable slippage in basis points (e.g., 100 for 1%)
|
|
852
|
+
*/
|
|
853
|
+
interface PrepareDepositTxDataParams {
|
|
854
|
+
yieldType: YieldType;
|
|
855
|
+
recipientAddress: Address;
|
|
856
|
+
depositToken: Address;
|
|
857
|
+
depositAmount: string;
|
|
858
|
+
chainId: ChainId;
|
|
859
|
+
slippage?: number;
|
|
860
|
+
partnerCode?: string;
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* Prepares the transaction data needed to deposit assets into a vault
|
|
864
|
+
*
|
|
865
|
+
* This function calculates the minimum amount of vault tokens to be minted based on
|
|
866
|
+
* the current exchange rate and the specified slippage tolerance. It automatically
|
|
867
|
+
* resolves the vault from yieldType, depositToken, and chainId parameters.
|
|
868
|
+
*
|
|
869
|
+
* ```typescript
|
|
870
|
+
* const depositData = await prepareDepositTransactionData({
|
|
871
|
+
* yieldType: 'PRIME',
|
|
872
|
+
* recipientAddress: '0x1234...',
|
|
873
|
+
* depositToken: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
|
|
874
|
+
* depositAmount: "1.0",
|
|
875
|
+
* chainId: 1,
|
|
876
|
+
* slippage: 100, // 1% slippage (100 bps)
|
|
877
|
+
* });
|
|
878
|
+
* ```
|
|
879
|
+
*
|
|
880
|
+
* @param {PrepareDepositTransactionDataParams} params - Parameters for the deposit operation
|
|
881
|
+
* @returns {Promise<DepositTransactionData>} Promise resolving to the prepared transaction data
|
|
882
|
+
* @throws {APIError} If vault cannot be resolved, asset not found, or contracts not configured
|
|
883
|
+
*/
|
|
884
|
+
declare function prepareDepositTxData(params: PrepareDepositTxDataParams): Promise<DepositTxData>;
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* @file Deposit with permit functionality for Nucleus vaults
|
|
888
|
+
* @module vaults/deposit/deposit-with-permit
|
|
889
|
+
*/
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* EIP-712 domain separator conforming to the EIP-712 TypedData JSON schema
|
|
893
|
+
* Compatible with standard EIP-712 signing libraries (Privy, wagmi, ethers)
|
|
894
|
+
*
|
|
895
|
+
* This interface matches the domain type from SignTypedDataParams as defined in
|
|
896
|
+
* the EIP-712 specification and implemented by signing libraries.
|
|
897
|
+
*
|
|
898
|
+
* @see {@link https://eips.ethereum.org/EIPS/eip-712#specification-of-the-eth_signtypeddata-json-rpc EIP-712 Specification}
|
|
899
|
+
*
|
|
900
|
+
* @property name - Human-readable name of the signing domain
|
|
901
|
+
* @property version - Version of the signing domain
|
|
902
|
+
* @property chainId - Ethereum chain ID as a number (not bigint)
|
|
903
|
+
* @property verifyingContract - Address of the contract that will verify the signature
|
|
904
|
+
* @property salt - Optional salt for disambiguation
|
|
905
|
+
*/
|
|
906
|
+
interface EIP712Domain {
|
|
907
|
+
name?: string;
|
|
908
|
+
version?: string;
|
|
909
|
+
chainId?: number;
|
|
910
|
+
verifyingContract?: string;
|
|
911
|
+
salt?: ArrayBuffer;
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* T008: EIP-2612 Permit type definition
|
|
915
|
+
* Standard structure for permit typed data per EIP-2612 specification
|
|
916
|
+
*/
|
|
917
|
+
declare const PERMIT_TYPES: {
|
|
918
|
+
Permit: {
|
|
919
|
+
name: string;
|
|
920
|
+
type: string;
|
|
921
|
+
}[];
|
|
922
|
+
};
|
|
923
|
+
/**
|
|
924
|
+
* T009: Complete EIP-712 typed data for permit signature
|
|
925
|
+
* Returned by prepareDepositPermitSignature() ready for wallet signing
|
|
926
|
+
*
|
|
927
|
+
* @property domain - EIP-712 domain separator with numeric chainId
|
|
928
|
+
* @property types - EIP-2612 Permit type structure (mutable for compatibility)
|
|
929
|
+
* @property message - Permit message fields
|
|
930
|
+
* @property primaryType - Always "Permit" for EIP-2612
|
|
931
|
+
*/
|
|
932
|
+
interface PermitSignatureData {
|
|
933
|
+
domain: EIP712Domain;
|
|
934
|
+
types: {
|
|
935
|
+
Permit: Array<{
|
|
936
|
+
name: string;
|
|
937
|
+
type: string;
|
|
938
|
+
}>;
|
|
939
|
+
};
|
|
940
|
+
message: {
|
|
941
|
+
owner: Address;
|
|
942
|
+
spender: Address;
|
|
943
|
+
value: bigint;
|
|
944
|
+
nonce: bigint;
|
|
945
|
+
deadline: bigint;
|
|
946
|
+
};
|
|
947
|
+
primaryType: "Permit";
|
|
948
|
+
}
|
|
949
|
+
/**
|
|
950
|
+
* T009: Parsed permit signature components
|
|
951
|
+
* Returned by parsePermitSignature() after converting hex signature
|
|
952
|
+
*
|
|
953
|
+
* @property v - Recovery ID (27 or 28)
|
|
954
|
+
* @property r - First 32 bytes of signature
|
|
955
|
+
* @property s - Second 32 bytes of signature
|
|
956
|
+
*/
|
|
957
|
+
interface ParsedPermitSignature {
|
|
958
|
+
v: number;
|
|
959
|
+
r: Hex;
|
|
960
|
+
s: Hex;
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* T009: Parameters for prepareDepositPermitSignature
|
|
964
|
+
* Input parameters for generating permit typed data
|
|
965
|
+
*
|
|
966
|
+
* @property yieldType - Vault yield strategy
|
|
967
|
+
* @property depositToken - Token contract address to deposit
|
|
968
|
+
* @property depositAmount - Deposit amount as decimal string
|
|
969
|
+
* @property recipientAddress - User address (permit owner)
|
|
970
|
+
* @property chainId - Blockchain network ID
|
|
971
|
+
* @property deadline - Optional permit expiration (defaults to 1 hour)
|
|
972
|
+
*/
|
|
973
|
+
interface PrepareDepositPermitSignatureParams {
|
|
974
|
+
yieldType: YieldType;
|
|
975
|
+
depositToken: Address;
|
|
976
|
+
depositAmount: string;
|
|
977
|
+
recipientAddress: Address;
|
|
978
|
+
chainId: number;
|
|
979
|
+
deadline?: bigint;
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* T009: Encoded transaction data for permit deposit
|
|
983
|
+
* Returned by updated prepareDepositWithPermitTransactionData()
|
|
984
|
+
*
|
|
985
|
+
* @property abi - Contract ABI
|
|
986
|
+
* @property functionName - Function name to call
|
|
987
|
+
* @property args - Function arguments
|
|
988
|
+
* @property address - Teller contract address
|
|
989
|
+
* @property chainId - Chain ID for transaction
|
|
990
|
+
*/
|
|
991
|
+
interface DepositWithPermitData {
|
|
992
|
+
abi: typeof CommunityCodeDepositorAbi;
|
|
993
|
+
functionName: "depositWithPermit";
|
|
994
|
+
args: [Address, bigint, bigint, Address, ByteArray, bigint, number, Hex, Hex];
|
|
995
|
+
}
|
|
996
|
+
interface UnencodedDepositWithPermitData {
|
|
997
|
+
data: DepositWithPermitData;
|
|
998
|
+
address: Address;
|
|
999
|
+
chainId: number;
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* T018-T030: Prepare complete EIP-712 typed data for permit signature
|
|
1003
|
+
*
|
|
1004
|
+
* Reads token metadata (name, version, nonce) from the blockchain and
|
|
1005
|
+
* constructs the complete EIP-712 structure for wallet signing.
|
|
1006
|
+
*
|
|
1007
|
+
* @param params - Permit signature parameters
|
|
1008
|
+
* @returns Complete EIP-712 typed data ready for signing
|
|
1009
|
+
* @throws {APIError} If token doesn't support EIP-2612, vault not found, or chain unsupported
|
|
1010
|
+
*
|
|
1011
|
+
* @example
|
|
1012
|
+
* ```typescript
|
|
1013
|
+
* const permitData = await prepareDepositPermitSignature({
|
|
1014
|
+
* yieldType: 'PRIME',
|
|
1015
|
+
* depositToken: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
|
|
1016
|
+
* depositAmount: '1000.0',
|
|
1017
|
+
* recipientAddress: recipientAddress,
|
|
1018
|
+
* chainId: 1,
|
|
1019
|
+
* deadline: BigInt(Math.floor(Date.now() / 1000) + 3600),
|
|
1020
|
+
* });
|
|
1021
|
+
*
|
|
1022
|
+
* // Sign with wallet
|
|
1023
|
+
* const signature = await signTypedData(permitData);
|
|
1024
|
+
* ```
|
|
1025
|
+
*/
|
|
1026
|
+
declare function prepareDepositPermitSignature(params: PrepareDepositPermitSignatureParams): Promise<PermitSignatureData>;
|
|
1027
|
+
/**
|
|
1028
|
+
* T036-T040: Parse raw hex signature into v, r, s components
|
|
1029
|
+
*
|
|
1030
|
+
* Handles both v-based and yParity-based signature formats.
|
|
1031
|
+
* Converts yParity to v by adding 27 if needed.
|
|
1032
|
+
*
|
|
1033
|
+
* @param signature - Raw hex signature from wallet
|
|
1034
|
+
* @returns Parsed signature components (v, r, s)
|
|
1035
|
+
* @throws {APIError} If signature format is invalid
|
|
1036
|
+
*
|
|
1037
|
+
* @example
|
|
1038
|
+
* ```typescript
|
|
1039
|
+
* const signature = await signTypedData(permitData);
|
|
1040
|
+
* const { v, r, s } = parsePermitSignature(signature);
|
|
1041
|
+
* // Use v, r, s in smart contract call
|
|
1042
|
+
* ```
|
|
1043
|
+
*/
|
|
1044
|
+
declare function parsePermitSignature(signature: Hex): ParsedPermitSignature;
|
|
1045
|
+
/**
|
|
1046
|
+
* T048: Updated parameters for prepareDepositWithPermitTransactionData()
|
|
1047
|
+
* Now accepts raw signature and deadline for complete transaction encoding
|
|
1048
|
+
*
|
|
1049
|
+
* @interface PrepareDepositWithPermitTxDataParams
|
|
1050
|
+
* @property {YieldType} yieldType - Yield strategy type (e.g., "PRIME", "TBILL")
|
|
1051
|
+
* @property {Address} recipientAddress - Ethereum address of the user (recipient of vault shares)
|
|
1052
|
+
* @property {Address} depositToken - Token contract address to deposit (matches vault's baseTokenAddress)
|
|
1053
|
+
* @property {string} depositAmount - Amount of assets to deposit as a decimal string (e.g., "100.25")
|
|
1054
|
+
* @property {number | ChainId} chainId - ID of the chain where the deposit will occur
|
|
1055
|
+
* @property {Hex} signature - Raw hex signature from wallet signing
|
|
1056
|
+
* @property {bigint} deadline - Deadline timestamp (must match permit signature deadline)
|
|
1057
|
+
* @property {number} [slippage] - Maximum acceptable slippage in basis points (default: 100 for 1%)
|
|
1058
|
+
*
|
|
1059
|
+
* @example
|
|
1060
|
+
* ```typescript
|
|
1061
|
+
* const permitData = await prepareDepositPermitSignature({ ... });
|
|
1062
|
+
* const signature = await signTypedData(permitData);
|
|
1063
|
+
*
|
|
1064
|
+
* const params: PrepareDepositWithPermitTransactionDataParams = {
|
|
1065
|
+
* yieldType: "PRIME",
|
|
1066
|
+
* recipientAddress: "0x1234567890123456789012345678901234567890",
|
|
1067
|
+
* depositToken: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC
|
|
1068
|
+
* depositAmount: "100.25",
|
|
1069
|
+
* chainId: 1,
|
|
1070
|
+
* signature,
|
|
1071
|
+
* deadline: permitData.message.deadline,
|
|
1072
|
+
* slippage: 100, // 1%
|
|
1073
|
+
* };
|
|
1074
|
+
* ```
|
|
1075
|
+
*/
|
|
1076
|
+
interface PrepareDepositWithPermitTxDataParams {
|
|
1077
|
+
yieldType: YieldType;
|
|
1078
|
+
recipientAddress: Address;
|
|
1079
|
+
depositToken: Address;
|
|
1080
|
+
depositAmount: string;
|
|
1081
|
+
chainId: number | ChainId;
|
|
1082
|
+
signature: Hex;
|
|
1083
|
+
deadline: bigint;
|
|
1084
|
+
slippage?: number;
|
|
1085
|
+
partnerCode?: string;
|
|
1086
|
+
}
|
|
1087
|
+
/**
|
|
1088
|
+
* T048-T057: Prepare complete deposit transaction with permit signature
|
|
1089
|
+
*
|
|
1090
|
+
* Accepts raw signature and deadline, parses signature internally,
|
|
1091
|
+
* resolves vault, calculates minimum mint with slippage, and
|
|
1092
|
+
* encodes the complete depositWithPermit function call.
|
|
1093
|
+
*
|
|
1094
|
+
* @param {PrepareDepositWithPermitTransactionDataParams} params - Deposit parameters including signature and deadline
|
|
1095
|
+
* @returns {Promise<UnencodedDepositWithPermitData>} Encoded transaction data ready for submission
|
|
1096
|
+
* @throws {APIError} If vault not found, invalid signature, or parameter validation fails
|
|
1097
|
+
*
|
|
1098
|
+
* // Submit transaction
|
|
1099
|
+
* await sendTransaction({
|
|
1100
|
+
* to: txData.address,
|
|
1101
|
+
* data: txData.data,
|
|
1102
|
+
* });
|
|
1103
|
+
* ```
|
|
1104
|
+
*/
|
|
1105
|
+
declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermitTxDataParams): Promise<UnencodedDepositWithPermitData>;
|
|
1106
|
+
|
|
1107
|
+
declare const BoringVaultAbi: readonly [{
|
|
1108
|
+
readonly type: "constructor";
|
|
1109
|
+
readonly inputs: readonly [{
|
|
1110
|
+
readonly name: "_owner";
|
|
1265
1111
|
readonly type: "address";
|
|
1112
|
+
readonly internalType: "address";
|
|
1266
1113
|
}, {
|
|
1267
|
-
readonly
|
|
1268
|
-
readonly
|
|
1269
|
-
readonly
|
|
1114
|
+
readonly name: "_name";
|
|
1115
|
+
readonly type: "string";
|
|
1116
|
+
readonly internalType: "string";
|
|
1270
1117
|
}, {
|
|
1271
|
-
readonly
|
|
1272
|
-
readonly
|
|
1273
|
-
readonly
|
|
1274
|
-
}];
|
|
1275
|
-
readonly name: "addChain";
|
|
1276
|
-
readonly outputs: readonly [];
|
|
1277
|
-
readonly stateMutability: "nonpayable";
|
|
1278
|
-
readonly type: "function";
|
|
1279
|
-
}, {
|
|
1280
|
-
readonly inputs: readonly [{
|
|
1281
|
-
readonly components: readonly [{
|
|
1282
|
-
readonly internalType: "uint32";
|
|
1283
|
-
readonly name: "srcEid";
|
|
1284
|
-
readonly type: "uint32";
|
|
1285
|
-
}, {
|
|
1286
|
-
readonly internalType: "bytes32";
|
|
1287
|
-
readonly name: "sender";
|
|
1288
|
-
readonly type: "bytes32";
|
|
1289
|
-
}, {
|
|
1290
|
-
readonly internalType: "uint64";
|
|
1291
|
-
readonly name: "nonce";
|
|
1292
|
-
readonly type: "uint64";
|
|
1293
|
-
}];
|
|
1294
|
-
readonly internalType: "struct Origin";
|
|
1295
|
-
readonly name: "origin";
|
|
1296
|
-
readonly type: "tuple";
|
|
1297
|
-
}];
|
|
1298
|
-
readonly name: "allowInitializePath";
|
|
1299
|
-
readonly outputs: readonly [{
|
|
1300
|
-
readonly internalType: "bool";
|
|
1301
|
-
readonly name: "";
|
|
1302
|
-
readonly type: "bool";
|
|
1303
|
-
}];
|
|
1304
|
-
readonly stateMutability: "view";
|
|
1305
|
-
readonly type: "function";
|
|
1306
|
-
}, {
|
|
1307
|
-
readonly inputs: readonly [{
|
|
1308
|
-
readonly internalType: "uint32";
|
|
1309
|
-
readonly name: "chainSelector";
|
|
1310
|
-
readonly type: "uint32";
|
|
1118
|
+
readonly name: "_symbol";
|
|
1119
|
+
readonly type: "string";
|
|
1120
|
+
readonly internalType: "string";
|
|
1311
1121
|
}, {
|
|
1312
|
-
readonly
|
|
1313
|
-
readonly
|
|
1314
|
-
readonly
|
|
1122
|
+
readonly name: "_decimals";
|
|
1123
|
+
readonly type: "uint8";
|
|
1124
|
+
readonly internalType: "uint8";
|
|
1315
1125
|
}];
|
|
1316
|
-
readonly name: "allowMessagesFromChain";
|
|
1317
|
-
readonly outputs: readonly [];
|
|
1318
1126
|
readonly stateMutability: "nonpayable";
|
|
1319
|
-
readonly type: "function";
|
|
1320
1127
|
}, {
|
|
1321
|
-
readonly
|
|
1322
|
-
|
|
1323
|
-
readonly name: "chainSelector";
|
|
1324
|
-
readonly type: "uint32";
|
|
1325
|
-
}, {
|
|
1326
|
-
readonly internalType: "address";
|
|
1327
|
-
readonly name: "targetTeller";
|
|
1328
|
-
readonly type: "address";
|
|
1329
|
-
}, {
|
|
1330
|
-
readonly internalType: "uint64";
|
|
1331
|
-
readonly name: "messageGasLimit";
|
|
1332
|
-
readonly type: "uint64";
|
|
1333
|
-
}];
|
|
1334
|
-
readonly name: "allowMessagesToChain";
|
|
1335
|
-
readonly outputs: readonly [];
|
|
1336
|
-
readonly stateMutability: "nonpayable";
|
|
1337
|
-
readonly type: "function";
|
|
1128
|
+
readonly type: "receive";
|
|
1129
|
+
readonly stateMutability: "payable";
|
|
1338
1130
|
}, {
|
|
1131
|
+
readonly type: "function";
|
|
1132
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
1339
1133
|
readonly inputs: readonly [];
|
|
1340
|
-
readonly name: "authority";
|
|
1341
1134
|
readonly outputs: readonly [{
|
|
1342
|
-
readonly internalType: "contract Authority";
|
|
1343
1135
|
readonly name: "";
|
|
1344
|
-
readonly type: "address";
|
|
1345
|
-
}];
|
|
1346
|
-
readonly stateMutability: "view";
|
|
1347
|
-
readonly type: "function";
|
|
1348
|
-
}, {
|
|
1349
|
-
readonly inputs: readonly [{
|
|
1350
|
-
readonly internalType: "address";
|
|
1351
|
-
readonly name: "from";
|
|
1352
|
-
readonly type: "address";
|
|
1353
|
-
}];
|
|
1354
|
-
readonly name: "beforeTransfer";
|
|
1355
|
-
readonly outputs: readonly [];
|
|
1356
|
-
readonly stateMutability: "view";
|
|
1357
|
-
readonly type: "function";
|
|
1358
|
-
}, {
|
|
1359
|
-
readonly inputs: readonly [{
|
|
1360
|
-
readonly internalType: "uint256";
|
|
1361
|
-
readonly name: "shareAmount";
|
|
1362
|
-
readonly type: "uint256";
|
|
1363
|
-
}, {
|
|
1364
|
-
readonly components: readonly [{
|
|
1365
|
-
readonly internalType: "uint32";
|
|
1366
|
-
readonly name: "chainSelector";
|
|
1367
|
-
readonly type: "uint32";
|
|
1368
|
-
}, {
|
|
1369
|
-
readonly internalType: "address";
|
|
1370
|
-
readonly name: "destinationChainReceiver";
|
|
1371
|
-
readonly type: "address";
|
|
1372
|
-
}, {
|
|
1373
|
-
readonly internalType: "contract ERC20";
|
|
1374
|
-
readonly name: "bridgeFeeToken";
|
|
1375
|
-
readonly type: "address";
|
|
1376
|
-
}, {
|
|
1377
|
-
readonly internalType: "uint64";
|
|
1378
|
-
readonly name: "messageGas";
|
|
1379
|
-
readonly type: "uint64";
|
|
1380
|
-
}, {
|
|
1381
|
-
readonly internalType: "bytes";
|
|
1382
|
-
readonly name: "data";
|
|
1383
|
-
readonly type: "bytes";
|
|
1384
|
-
}];
|
|
1385
|
-
readonly internalType: "struct BridgeData";
|
|
1386
|
-
readonly name: "data";
|
|
1387
|
-
readonly type: "tuple";
|
|
1388
|
-
}];
|
|
1389
|
-
readonly name: "bridge";
|
|
1390
|
-
readonly outputs: readonly [{
|
|
1391
|
-
readonly internalType: "bytes32";
|
|
1392
|
-
readonly name: "messageId";
|
|
1393
1136
|
readonly type: "bytes32";
|
|
1137
|
+
readonly internalType: "bytes32";
|
|
1394
1138
|
}];
|
|
1395
|
-
readonly stateMutability: "
|
|
1396
|
-
readonly type: "function";
|
|
1139
|
+
readonly stateMutability: "view";
|
|
1397
1140
|
}, {
|
|
1398
|
-
readonly inputs: readonly [{
|
|
1399
|
-
readonly internalType: "contract ERC20";
|
|
1400
|
-
readonly name: "depositAsset";
|
|
1401
|
-
readonly type: "address";
|
|
1402
|
-
}, {
|
|
1403
|
-
readonly internalType: "uint256";
|
|
1404
|
-
readonly name: "depositAmount";
|
|
1405
|
-
readonly type: "uint256";
|
|
1406
|
-
}, {
|
|
1407
|
-
readonly internalType: "uint256";
|
|
1408
|
-
readonly name: "minimumMint";
|
|
1409
|
-
readonly type: "uint256";
|
|
1410
|
-
}, {
|
|
1411
|
-
readonly internalType: "address";
|
|
1412
|
-
readonly name: "to";
|
|
1413
|
-
readonly type: "address";
|
|
1414
|
-
}];
|
|
1415
|
-
readonly name: "bulkDeposit";
|
|
1416
|
-
readonly outputs: readonly [{
|
|
1417
|
-
readonly internalType: "uint256";
|
|
1418
|
-
readonly name: "shares";
|
|
1419
|
-
readonly type: "uint256";
|
|
1420
|
-
}];
|
|
1421
|
-
readonly stateMutability: "nonpayable";
|
|
1422
1141
|
readonly type: "function";
|
|
1423
|
-
|
|
1142
|
+
readonly name: "allowance";
|
|
1424
1143
|
readonly inputs: readonly [{
|
|
1425
|
-
readonly
|
|
1426
|
-
readonly name: "withdrawAsset";
|
|
1144
|
+
readonly name: "";
|
|
1427
1145
|
readonly type: "address";
|
|
1428
|
-
}, {
|
|
1429
|
-
readonly internalType: "uint256";
|
|
1430
|
-
readonly name: "shareAmount";
|
|
1431
|
-
readonly type: "uint256";
|
|
1432
|
-
}, {
|
|
1433
|
-
readonly internalType: "uint256";
|
|
1434
|
-
readonly name: "minimumAssets";
|
|
1435
|
-
readonly type: "uint256";
|
|
1436
|
-
}, {
|
|
1437
1146
|
readonly internalType: "address";
|
|
1438
|
-
readonly name: "to";
|
|
1439
|
-
readonly type: "address";
|
|
1440
|
-
}];
|
|
1441
|
-
readonly name: "bulkWithdraw";
|
|
1442
|
-
readonly outputs: readonly [{
|
|
1443
|
-
readonly internalType: "uint256";
|
|
1444
|
-
readonly name: "assetsOut";
|
|
1445
|
-
readonly type: "uint256";
|
|
1446
|
-
}];
|
|
1447
|
-
readonly stateMutability: "nonpayable";
|
|
1448
|
-
readonly type: "function";
|
|
1449
|
-
}, {
|
|
1450
|
-
readonly inputs: readonly [{
|
|
1451
|
-
readonly internalType: "contract ERC20";
|
|
1452
|
-
readonly name: "depositAsset";
|
|
1453
|
-
readonly type: "address";
|
|
1454
|
-
}, {
|
|
1455
|
-
readonly internalType: "uint256";
|
|
1456
|
-
readonly name: "depositAmount";
|
|
1457
|
-
readonly type: "uint256";
|
|
1458
1147
|
}, {
|
|
1459
|
-
readonly
|
|
1460
|
-
readonly name: "minimumMint";
|
|
1461
|
-
readonly type: "uint256";
|
|
1462
|
-
}];
|
|
1463
|
-
readonly name: "deposit";
|
|
1464
|
-
readonly outputs: readonly [{
|
|
1465
|
-
readonly internalType: "uint256";
|
|
1466
|
-
readonly name: "shares";
|
|
1467
|
-
readonly type: "uint256";
|
|
1468
|
-
}];
|
|
1469
|
-
readonly stateMutability: "nonpayable";
|
|
1470
|
-
readonly type: "function";
|
|
1471
|
-
}, {
|
|
1472
|
-
readonly inputs: readonly [{
|
|
1473
|
-
readonly internalType: "contract ERC20";
|
|
1474
|
-
readonly name: "depositAsset";
|
|
1148
|
+
readonly name: "";
|
|
1475
1149
|
readonly type: "address";
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
readonly name: "depositAmount";
|
|
1479
|
-
readonly type: "uint256";
|
|
1480
|
-
}, {
|
|
1481
|
-
readonly internalType: "uint256";
|
|
1482
|
-
readonly name: "minimumMint";
|
|
1483
|
-
readonly type: "uint256";
|
|
1484
|
-
}, {
|
|
1485
|
-
readonly components: readonly [{
|
|
1486
|
-
readonly internalType: "uint32";
|
|
1487
|
-
readonly name: "chainSelector";
|
|
1488
|
-
readonly type: "uint32";
|
|
1489
|
-
}, {
|
|
1490
|
-
readonly internalType: "address";
|
|
1491
|
-
readonly name: "destinationChainReceiver";
|
|
1492
|
-
readonly type: "address";
|
|
1493
|
-
}, {
|
|
1494
|
-
readonly internalType: "contract ERC20";
|
|
1495
|
-
readonly name: "bridgeFeeToken";
|
|
1496
|
-
readonly type: "address";
|
|
1497
|
-
}, {
|
|
1498
|
-
readonly internalType: "uint64";
|
|
1499
|
-
readonly name: "messageGas";
|
|
1500
|
-
readonly type: "uint64";
|
|
1501
|
-
}, {
|
|
1502
|
-
readonly internalType: "bytes";
|
|
1503
|
-
readonly name: "data";
|
|
1504
|
-
readonly type: "bytes";
|
|
1505
|
-
}];
|
|
1506
|
-
readonly internalType: "struct BridgeData";
|
|
1507
|
-
readonly name: "data";
|
|
1508
|
-
readonly type: "tuple";
|
|
1509
|
-
}];
|
|
1510
|
-
readonly name: "depositAndBridge";
|
|
1511
|
-
readonly outputs: readonly [];
|
|
1512
|
-
readonly stateMutability: "payable";
|
|
1513
|
-
readonly type: "function";
|
|
1514
|
-
}, {
|
|
1515
|
-
readonly inputs: readonly [];
|
|
1516
|
-
readonly name: "depositNonce";
|
|
1150
|
+
readonly internalType: "address";
|
|
1151
|
+
}];
|
|
1517
1152
|
readonly outputs: readonly [{
|
|
1518
|
-
readonly internalType: "uint96";
|
|
1519
1153
|
readonly name: "";
|
|
1520
|
-
readonly type: "
|
|
1154
|
+
readonly type: "uint256";
|
|
1155
|
+
readonly internalType: "uint256";
|
|
1521
1156
|
}];
|
|
1522
1157
|
readonly stateMutability: "view";
|
|
1523
|
-
readonly type: "function";
|
|
1524
1158
|
}, {
|
|
1159
|
+
readonly type: "function";
|
|
1160
|
+
readonly name: "approve";
|
|
1525
1161
|
readonly inputs: readonly [{
|
|
1526
|
-
readonly
|
|
1527
|
-
readonly name: "depositAsset";
|
|
1162
|
+
readonly name: "spender";
|
|
1528
1163
|
readonly type: "address";
|
|
1164
|
+
readonly internalType: "address";
|
|
1529
1165
|
}, {
|
|
1530
|
-
readonly
|
|
1531
|
-
readonly name: "depositAmount";
|
|
1532
|
-
readonly type: "uint256";
|
|
1533
|
-
}, {
|
|
1534
|
-
readonly internalType: "uint256";
|
|
1535
|
-
readonly name: "minimumMint";
|
|
1166
|
+
readonly name: "amount";
|
|
1536
1167
|
readonly type: "uint256";
|
|
1537
|
-
}, {
|
|
1538
1168
|
readonly internalType: "uint256";
|
|
1539
|
-
readonly name: "deadline";
|
|
1540
|
-
readonly type: "uint256";
|
|
1541
|
-
}, {
|
|
1542
|
-
readonly internalType: "uint8";
|
|
1543
|
-
readonly name: "v";
|
|
1544
|
-
readonly type: "uint8";
|
|
1545
|
-
}, {
|
|
1546
|
-
readonly internalType: "bytes32";
|
|
1547
|
-
readonly name: "r";
|
|
1548
|
-
readonly type: "bytes32";
|
|
1549
|
-
}, {
|
|
1550
|
-
readonly internalType: "bytes32";
|
|
1551
|
-
readonly name: "s";
|
|
1552
|
-
readonly type: "bytes32";
|
|
1553
1169
|
}];
|
|
1554
|
-
readonly name: "depositWithPermit";
|
|
1555
1170
|
readonly outputs: readonly [{
|
|
1556
|
-
readonly
|
|
1557
|
-
readonly
|
|
1558
|
-
readonly
|
|
1171
|
+
readonly name: "";
|
|
1172
|
+
readonly type: "bool";
|
|
1173
|
+
readonly internalType: "bool";
|
|
1559
1174
|
}];
|
|
1560
1175
|
readonly stateMutability: "nonpayable";
|
|
1561
|
-
readonly type: "function";
|
|
1562
1176
|
}, {
|
|
1177
|
+
readonly type: "function";
|
|
1178
|
+
readonly name: "authority";
|
|
1563
1179
|
readonly inputs: readonly [];
|
|
1564
|
-
readonly name: "endpoint";
|
|
1565
1180
|
readonly outputs: readonly [{
|
|
1566
|
-
readonly internalType: "contract ILayerZeroEndpointV2";
|
|
1567
1181
|
readonly name: "";
|
|
1568
1182
|
readonly type: "address";
|
|
1183
|
+
readonly internalType: "contract Authority";
|
|
1569
1184
|
}];
|
|
1570
1185
|
readonly stateMutability: "view";
|
|
1571
|
-
readonly type: "function";
|
|
1572
1186
|
}, {
|
|
1187
|
+
readonly type: "function";
|
|
1188
|
+
readonly name: "balanceOf";
|
|
1573
1189
|
readonly inputs: readonly [{
|
|
1574
|
-
readonly components: readonly [{
|
|
1575
|
-
readonly internalType: "uint32";
|
|
1576
|
-
readonly name: "srcEid";
|
|
1577
|
-
readonly type: "uint32";
|
|
1578
|
-
}, {
|
|
1579
|
-
readonly internalType: "bytes32";
|
|
1580
|
-
readonly name: "sender";
|
|
1581
|
-
readonly type: "bytes32";
|
|
1582
|
-
}, {
|
|
1583
|
-
readonly internalType: "uint64";
|
|
1584
|
-
readonly name: "nonce";
|
|
1585
|
-
readonly type: "uint64";
|
|
1586
|
-
}];
|
|
1587
|
-
readonly internalType: "struct Origin";
|
|
1588
|
-
readonly name: "";
|
|
1589
|
-
readonly type: "tuple";
|
|
1590
|
-
}, {
|
|
1591
|
-
readonly internalType: "bytes";
|
|
1592
1190
|
readonly name: "";
|
|
1593
|
-
readonly type: "bytes";
|
|
1594
|
-
}, {
|
|
1595
|
-
readonly internalType: "address";
|
|
1596
|
-
readonly name: "_sender";
|
|
1597
1191
|
readonly type: "address";
|
|
1192
|
+
readonly internalType: "address";
|
|
1598
1193
|
}];
|
|
1599
|
-
readonly name: "isComposeMsgSender";
|
|
1600
1194
|
readonly outputs: readonly [{
|
|
1601
|
-
readonly internalType: "bool";
|
|
1602
1195
|
readonly name: "";
|
|
1603
|
-
readonly type: "
|
|
1196
|
+
readonly type: "uint256";
|
|
1197
|
+
readonly internalType: "uint256";
|
|
1604
1198
|
}];
|
|
1605
1199
|
readonly stateMutability: "view";
|
|
1606
|
-
readonly type: "function";
|
|
1607
1200
|
}, {
|
|
1201
|
+
readonly type: "function";
|
|
1202
|
+
readonly name: "decimals";
|
|
1608
1203
|
readonly inputs: readonly [];
|
|
1609
|
-
readonly name: "isPaused";
|
|
1610
1204
|
readonly outputs: readonly [{
|
|
1611
|
-
readonly internalType: "bool";
|
|
1612
1205
|
readonly name: "";
|
|
1613
|
-
readonly type: "
|
|
1206
|
+
readonly type: "uint8";
|
|
1207
|
+
readonly internalType: "uint8";
|
|
1614
1208
|
}];
|
|
1615
1209
|
readonly stateMutability: "view";
|
|
1210
|
+
}, {
|
|
1616
1211
|
readonly type: "function";
|
|
1212
|
+
readonly name: "enter";
|
|
1213
|
+
readonly inputs: readonly [{
|
|
1214
|
+
readonly name: "from";
|
|
1215
|
+
readonly type: "address";
|
|
1216
|
+
readonly internalType: "address";
|
|
1217
|
+
}, {
|
|
1218
|
+
readonly name: "asset";
|
|
1219
|
+
readonly type: "address";
|
|
1220
|
+
readonly internalType: "contract ERC20";
|
|
1221
|
+
}, {
|
|
1222
|
+
readonly name: "assetAmount";
|
|
1223
|
+
readonly type: "uint256";
|
|
1224
|
+
readonly internalType: "uint256";
|
|
1225
|
+
}, {
|
|
1226
|
+
readonly name: "to";
|
|
1227
|
+
readonly type: "address";
|
|
1228
|
+
readonly internalType: "address";
|
|
1229
|
+
}, {
|
|
1230
|
+
readonly name: "shareAmount";
|
|
1231
|
+
readonly type: "uint256";
|
|
1232
|
+
readonly internalType: "uint256";
|
|
1233
|
+
}];
|
|
1234
|
+
readonly outputs: readonly [];
|
|
1235
|
+
readonly stateMutability: "nonpayable";
|
|
1617
1236
|
}, {
|
|
1237
|
+
readonly type: "function";
|
|
1238
|
+
readonly name: "exit";
|
|
1618
1239
|
readonly inputs: readonly [{
|
|
1240
|
+
readonly name: "to";
|
|
1241
|
+
readonly type: "address";
|
|
1242
|
+
readonly internalType: "address";
|
|
1243
|
+
}, {
|
|
1244
|
+
readonly name: "asset";
|
|
1245
|
+
readonly type: "address";
|
|
1619
1246
|
readonly internalType: "contract ERC20";
|
|
1620
|
-
|
|
1247
|
+
}, {
|
|
1248
|
+
readonly name: "assetAmount";
|
|
1249
|
+
readonly type: "uint256";
|
|
1250
|
+
readonly internalType: "uint256";
|
|
1251
|
+
}, {
|
|
1252
|
+
readonly name: "from";
|
|
1621
1253
|
readonly type: "address";
|
|
1254
|
+
readonly internalType: "address";
|
|
1255
|
+
}, {
|
|
1256
|
+
readonly name: "shareAmount";
|
|
1257
|
+
readonly type: "uint256";
|
|
1258
|
+
readonly internalType: "uint256";
|
|
1622
1259
|
}];
|
|
1623
|
-
readonly
|
|
1260
|
+
readonly outputs: readonly [];
|
|
1261
|
+
readonly stateMutability: "nonpayable";
|
|
1262
|
+
}, {
|
|
1263
|
+
readonly type: "function";
|
|
1264
|
+
readonly name: "hook";
|
|
1265
|
+
readonly inputs: readonly [];
|
|
1624
1266
|
readonly outputs: readonly [{
|
|
1625
|
-
readonly internalType: "bool";
|
|
1626
1267
|
readonly name: "";
|
|
1627
|
-
readonly type: "
|
|
1268
|
+
readonly type: "address";
|
|
1269
|
+
readonly internalType: "contract BeforeTransferHook";
|
|
1628
1270
|
}];
|
|
1629
1271
|
readonly stateMutability: "view";
|
|
1630
|
-
readonly type: "function";
|
|
1631
1272
|
}, {
|
|
1273
|
+
readonly type: "function";
|
|
1274
|
+
readonly name: "manage";
|
|
1632
1275
|
readonly inputs: readonly [{
|
|
1633
|
-
readonly
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
readonly type: "uint32";
|
|
1637
|
-
}, {
|
|
1638
|
-
readonly internalType: "bytes32";
|
|
1639
|
-
readonly name: "sender";
|
|
1640
|
-
readonly type: "bytes32";
|
|
1641
|
-
}, {
|
|
1642
|
-
readonly internalType: "uint64";
|
|
1643
|
-
readonly name: "nonce";
|
|
1644
|
-
readonly type: "uint64";
|
|
1645
|
-
}];
|
|
1646
|
-
readonly internalType: "struct Origin";
|
|
1647
|
-
readonly name: "_origin";
|
|
1648
|
-
readonly type: "tuple";
|
|
1649
|
-
}, {
|
|
1650
|
-
readonly internalType: "bytes32";
|
|
1651
|
-
readonly name: "_guid";
|
|
1652
|
-
readonly type: "bytes32";
|
|
1276
|
+
readonly name: "targets";
|
|
1277
|
+
readonly type: "address[]";
|
|
1278
|
+
readonly internalType: "address[]";
|
|
1653
1279
|
}, {
|
|
1654
|
-
readonly
|
|
1655
|
-
readonly
|
|
1656
|
-
readonly
|
|
1280
|
+
readonly name: "data";
|
|
1281
|
+
readonly type: "bytes[]";
|
|
1282
|
+
readonly internalType: "bytes[]";
|
|
1657
1283
|
}, {
|
|
1658
|
-
readonly
|
|
1659
|
-
readonly
|
|
1284
|
+
readonly name: "values";
|
|
1285
|
+
readonly type: "uint256[]";
|
|
1286
|
+
readonly internalType: "uint256[]";
|
|
1287
|
+
}];
|
|
1288
|
+
readonly outputs: readonly [{
|
|
1289
|
+
readonly name: "results";
|
|
1290
|
+
readonly type: "bytes[]";
|
|
1291
|
+
readonly internalType: "bytes[]";
|
|
1292
|
+
}];
|
|
1293
|
+
readonly stateMutability: "nonpayable";
|
|
1294
|
+
}, {
|
|
1295
|
+
readonly type: "function";
|
|
1296
|
+
readonly name: "manage";
|
|
1297
|
+
readonly inputs: readonly [{
|
|
1298
|
+
readonly name: "target";
|
|
1660
1299
|
readonly type: "address";
|
|
1300
|
+
readonly internalType: "address";
|
|
1661
1301
|
}, {
|
|
1302
|
+
readonly name: "data";
|
|
1303
|
+
readonly type: "bytes";
|
|
1662
1304
|
readonly internalType: "bytes";
|
|
1663
|
-
|
|
1305
|
+
}, {
|
|
1306
|
+
readonly name: "value";
|
|
1307
|
+
readonly type: "uint256";
|
|
1308
|
+
readonly internalType: "uint256";
|
|
1309
|
+
}];
|
|
1310
|
+
readonly outputs: readonly [{
|
|
1311
|
+
readonly name: "result";
|
|
1664
1312
|
readonly type: "bytes";
|
|
1313
|
+
readonly internalType: "bytes";
|
|
1665
1314
|
}];
|
|
1666
|
-
readonly
|
|
1667
|
-
|
|
1668
|
-
readonly stateMutability: "payable";
|
|
1315
|
+
readonly stateMutability: "nonpayable";
|
|
1316
|
+
}, {
|
|
1669
1317
|
readonly type: "function";
|
|
1318
|
+
readonly name: "name";
|
|
1319
|
+
readonly inputs: readonly [];
|
|
1320
|
+
readonly outputs: readonly [{
|
|
1321
|
+
readonly name: "";
|
|
1322
|
+
readonly type: "string";
|
|
1323
|
+
readonly internalType: "string";
|
|
1324
|
+
}];
|
|
1325
|
+
readonly stateMutability: "view";
|
|
1670
1326
|
}, {
|
|
1327
|
+
readonly type: "function";
|
|
1328
|
+
readonly name: "nonces";
|
|
1671
1329
|
readonly inputs: readonly [{
|
|
1672
|
-
readonly internalType: "uint32";
|
|
1673
|
-
readonly name: "";
|
|
1674
|
-
readonly type: "uint32";
|
|
1675
|
-
}, {
|
|
1676
|
-
readonly internalType: "bytes32";
|
|
1677
1330
|
readonly name: "";
|
|
1678
|
-
readonly type: "
|
|
1331
|
+
readonly type: "address";
|
|
1332
|
+
readonly internalType: "address";
|
|
1679
1333
|
}];
|
|
1680
|
-
readonly name: "nextNonce";
|
|
1681
1334
|
readonly outputs: readonly [{
|
|
1682
|
-
readonly
|
|
1683
|
-
readonly
|
|
1684
|
-
readonly
|
|
1335
|
+
readonly name: "";
|
|
1336
|
+
readonly type: "uint256";
|
|
1337
|
+
readonly internalType: "uint256";
|
|
1685
1338
|
}];
|
|
1686
1339
|
readonly stateMutability: "view";
|
|
1687
|
-
readonly type: "function";
|
|
1688
1340
|
}, {
|
|
1689
|
-
readonly
|
|
1690
|
-
readonly name: "
|
|
1691
|
-
readonly
|
|
1692
|
-
readonly
|
|
1693
|
-
readonly
|
|
1694
|
-
readonly
|
|
1341
|
+
readonly type: "function";
|
|
1342
|
+
readonly name: "onERC1155BatchReceived";
|
|
1343
|
+
readonly inputs: readonly [{
|
|
1344
|
+
readonly name: "";
|
|
1345
|
+
readonly type: "address";
|
|
1346
|
+
readonly internalType: "address";
|
|
1347
|
+
}, {
|
|
1348
|
+
readonly name: "";
|
|
1349
|
+
readonly type: "address";
|
|
1350
|
+
readonly internalType: "address";
|
|
1351
|
+
}, {
|
|
1352
|
+
readonly name: "";
|
|
1353
|
+
readonly type: "uint256[]";
|
|
1354
|
+
readonly internalType: "uint256[]";
|
|
1355
|
+
}, {
|
|
1356
|
+
readonly name: "";
|
|
1357
|
+
readonly type: "uint256[]";
|
|
1358
|
+
readonly internalType: "uint256[]";
|
|
1695
1359
|
}, {
|
|
1696
|
-
readonly
|
|
1697
|
-
readonly
|
|
1698
|
-
readonly
|
|
1360
|
+
readonly name: "";
|
|
1361
|
+
readonly type: "bytes";
|
|
1362
|
+
readonly internalType: "bytes";
|
|
1699
1363
|
}];
|
|
1700
|
-
readonly stateMutability: "pure";
|
|
1701
|
-
readonly type: "function";
|
|
1702
|
-
}, {
|
|
1703
|
-
readonly inputs: readonly [];
|
|
1704
|
-
readonly name: "owner";
|
|
1705
1364
|
readonly outputs: readonly [{
|
|
1706
|
-
readonly internalType: "address";
|
|
1707
1365
|
readonly name: "";
|
|
1708
|
-
readonly type: "
|
|
1366
|
+
readonly type: "bytes4";
|
|
1367
|
+
readonly internalType: "bytes4";
|
|
1709
1368
|
}];
|
|
1710
|
-
readonly stateMutability: "view";
|
|
1711
|
-
readonly type: "function";
|
|
1712
|
-
}, {
|
|
1713
|
-
readonly inputs: readonly [];
|
|
1714
|
-
readonly name: "pause";
|
|
1715
|
-
readonly outputs: readonly [];
|
|
1716
1369
|
readonly stateMutability: "nonpayable";
|
|
1717
|
-
readonly type: "function";
|
|
1718
1370
|
}, {
|
|
1719
|
-
readonly inputs: readonly [{
|
|
1720
|
-
readonly internalType: "uint32";
|
|
1721
|
-
readonly name: "eid";
|
|
1722
|
-
readonly type: "uint32";
|
|
1723
|
-
}];
|
|
1724
|
-
readonly name: "peers";
|
|
1725
|
-
readonly outputs: readonly [{
|
|
1726
|
-
readonly internalType: "bytes32";
|
|
1727
|
-
readonly name: "peer";
|
|
1728
|
-
readonly type: "bytes32";
|
|
1729
|
-
}];
|
|
1730
|
-
readonly stateMutability: "view";
|
|
1731
1371
|
readonly type: "function";
|
|
1732
|
-
|
|
1372
|
+
readonly name: "onERC1155Received";
|
|
1733
1373
|
readonly inputs: readonly [{
|
|
1374
|
+
readonly name: "";
|
|
1375
|
+
readonly type: "address";
|
|
1376
|
+
readonly internalType: "address";
|
|
1377
|
+
}, {
|
|
1378
|
+
readonly name: "";
|
|
1379
|
+
readonly type: "address";
|
|
1380
|
+
readonly internalType: "address";
|
|
1381
|
+
}, {
|
|
1382
|
+
readonly name: "";
|
|
1383
|
+
readonly type: "uint256";
|
|
1734
1384
|
readonly internalType: "uint256";
|
|
1735
|
-
|
|
1385
|
+
}, {
|
|
1386
|
+
readonly name: "";
|
|
1736
1387
|
readonly type: "uint256";
|
|
1388
|
+
readonly internalType: "uint256";
|
|
1737
1389
|
}, {
|
|
1738
|
-
readonly
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
readonly type: "uint32";
|
|
1742
|
-
}, {
|
|
1743
|
-
readonly internalType: "address";
|
|
1744
|
-
readonly name: "destinationChainReceiver";
|
|
1745
|
-
readonly type: "address";
|
|
1746
|
-
}, {
|
|
1747
|
-
readonly internalType: "contract ERC20";
|
|
1748
|
-
readonly name: "bridgeFeeToken";
|
|
1749
|
-
readonly type: "address";
|
|
1750
|
-
}, {
|
|
1751
|
-
readonly internalType: "uint64";
|
|
1752
|
-
readonly name: "messageGas";
|
|
1753
|
-
readonly type: "uint64";
|
|
1754
|
-
}, {
|
|
1755
|
-
readonly internalType: "bytes";
|
|
1756
|
-
readonly name: "data";
|
|
1757
|
-
readonly type: "bytes";
|
|
1758
|
-
}];
|
|
1759
|
-
readonly internalType: "struct BridgeData";
|
|
1760
|
-
readonly name: "data";
|
|
1761
|
-
readonly type: "tuple";
|
|
1390
|
+
readonly name: "";
|
|
1391
|
+
readonly type: "bytes";
|
|
1392
|
+
readonly internalType: "bytes";
|
|
1762
1393
|
}];
|
|
1763
|
-
readonly name: "previewFee";
|
|
1764
1394
|
readonly outputs: readonly [{
|
|
1765
|
-
readonly
|
|
1766
|
-
readonly
|
|
1767
|
-
readonly
|
|
1395
|
+
readonly name: "";
|
|
1396
|
+
readonly type: "bytes4";
|
|
1397
|
+
readonly internalType: "bytes4";
|
|
1768
1398
|
}];
|
|
1769
|
-
readonly stateMutability: "
|
|
1770
|
-
readonly type: "function";
|
|
1399
|
+
readonly stateMutability: "nonpayable";
|
|
1771
1400
|
}, {
|
|
1401
|
+
readonly type: "function";
|
|
1402
|
+
readonly name: "onERC721Received";
|
|
1772
1403
|
readonly inputs: readonly [{
|
|
1773
|
-
readonly
|
|
1404
|
+
readonly name: "";
|
|
1405
|
+
readonly type: "address";
|
|
1406
|
+
readonly internalType: "address";
|
|
1407
|
+
}, {
|
|
1408
|
+
readonly name: "";
|
|
1409
|
+
readonly type: "address";
|
|
1410
|
+
readonly internalType: "address";
|
|
1411
|
+
}, {
|
|
1774
1412
|
readonly name: "";
|
|
1775
1413
|
readonly type: "uint256";
|
|
1414
|
+
readonly internalType: "uint256";
|
|
1415
|
+
}, {
|
|
1416
|
+
readonly name: "";
|
|
1417
|
+
readonly type: "bytes";
|
|
1418
|
+
readonly internalType: "bytes";
|
|
1776
1419
|
}];
|
|
1777
|
-
readonly name: "publicDepositHistory";
|
|
1778
1420
|
readonly outputs: readonly [{
|
|
1779
|
-
readonly internalType: "bytes32";
|
|
1780
1421
|
readonly name: "";
|
|
1781
|
-
readonly type: "
|
|
1422
|
+
readonly type: "bytes4";
|
|
1423
|
+
readonly internalType: "bytes4";
|
|
1782
1424
|
}];
|
|
1783
|
-
readonly stateMutability: "
|
|
1425
|
+
readonly stateMutability: "nonpayable";
|
|
1426
|
+
}, {
|
|
1784
1427
|
readonly type: "function";
|
|
1428
|
+
readonly name: "owner";
|
|
1429
|
+
readonly inputs: readonly [];
|
|
1430
|
+
readonly outputs: readonly [{
|
|
1431
|
+
readonly name: "";
|
|
1432
|
+
readonly type: "address";
|
|
1433
|
+
readonly internalType: "address";
|
|
1434
|
+
}];
|
|
1435
|
+
readonly stateMutability: "view";
|
|
1785
1436
|
}, {
|
|
1437
|
+
readonly type: "function";
|
|
1438
|
+
readonly name: "permit";
|
|
1786
1439
|
readonly inputs: readonly [{
|
|
1787
|
-
readonly
|
|
1788
|
-
readonly name: "nonce";
|
|
1789
|
-
readonly type: "uint256";
|
|
1790
|
-
}, {
|
|
1791
|
-
readonly internalType: "address";
|
|
1792
|
-
readonly name: "receiver";
|
|
1440
|
+
readonly name: "owner";
|
|
1793
1441
|
readonly type: "address";
|
|
1794
|
-
}, {
|
|
1795
1442
|
readonly internalType: "address";
|
|
1796
|
-
|
|
1443
|
+
}, {
|
|
1444
|
+
readonly name: "spender";
|
|
1797
1445
|
readonly type: "address";
|
|
1446
|
+
readonly internalType: "address";
|
|
1798
1447
|
}, {
|
|
1799
|
-
readonly
|
|
1800
|
-
readonly name: "depositAmount";
|
|
1448
|
+
readonly name: "value";
|
|
1801
1449
|
readonly type: "uint256";
|
|
1802
|
-
}, {
|
|
1803
1450
|
readonly internalType: "uint256";
|
|
1804
|
-
readonly name: "shareAmount";
|
|
1805
|
-
readonly type: "uint256";
|
|
1806
1451
|
}, {
|
|
1807
|
-
readonly
|
|
1808
|
-
readonly name: "depositTimestamp";
|
|
1452
|
+
readonly name: "deadline";
|
|
1809
1453
|
readonly type: "uint256";
|
|
1810
|
-
}, {
|
|
1811
1454
|
readonly internalType: "uint256";
|
|
1812
|
-
|
|
1813
|
-
readonly
|
|
1455
|
+
}, {
|
|
1456
|
+
readonly name: "v";
|
|
1457
|
+
readonly type: "uint8";
|
|
1458
|
+
readonly internalType: "uint8";
|
|
1459
|
+
}, {
|
|
1460
|
+
readonly name: "r";
|
|
1461
|
+
readonly type: "bytes32";
|
|
1462
|
+
readonly internalType: "bytes32";
|
|
1463
|
+
}, {
|
|
1464
|
+
readonly name: "s";
|
|
1465
|
+
readonly type: "bytes32";
|
|
1466
|
+
readonly internalType: "bytes32";
|
|
1814
1467
|
}];
|
|
1815
|
-
readonly name: "refundDeposit";
|
|
1816
1468
|
readonly outputs: readonly [];
|
|
1817
1469
|
readonly stateMutability: "nonpayable";
|
|
1818
|
-
readonly type: "function";
|
|
1819
1470
|
}, {
|
|
1471
|
+
readonly type: "function";
|
|
1472
|
+
readonly name: "setAuthority";
|
|
1820
1473
|
readonly inputs: readonly [{
|
|
1821
|
-
readonly
|
|
1822
|
-
readonly name: "asset";
|
|
1474
|
+
readonly name: "newAuthority";
|
|
1823
1475
|
readonly type: "address";
|
|
1476
|
+
readonly internalType: "contract Authority";
|
|
1824
1477
|
}];
|
|
1825
|
-
readonly name: "removeAsset";
|
|
1826
1478
|
readonly outputs: readonly [];
|
|
1827
1479
|
readonly stateMutability: "nonpayable";
|
|
1828
|
-
readonly type: "function";
|
|
1829
1480
|
}, {
|
|
1481
|
+
readonly type: "function";
|
|
1482
|
+
readonly name: "setBeforeTransferHook";
|
|
1830
1483
|
readonly inputs: readonly [{
|
|
1831
|
-
readonly
|
|
1832
|
-
readonly
|
|
1833
|
-
readonly
|
|
1484
|
+
readonly name: "_hook";
|
|
1485
|
+
readonly type: "address";
|
|
1486
|
+
readonly internalType: "address";
|
|
1834
1487
|
}];
|
|
1835
|
-
readonly name: "removeChain";
|
|
1836
1488
|
readonly outputs: readonly [];
|
|
1837
1489
|
readonly stateMutability: "nonpayable";
|
|
1838
|
-
readonly type: "function";
|
|
1839
1490
|
}, {
|
|
1491
|
+
readonly type: "function";
|
|
1492
|
+
readonly name: "supportsInterface";
|
|
1840
1493
|
readonly inputs: readonly [{
|
|
1841
|
-
readonly
|
|
1842
|
-
readonly
|
|
1843
|
-
readonly
|
|
1494
|
+
readonly name: "interfaceId";
|
|
1495
|
+
readonly type: "bytes4";
|
|
1496
|
+
readonly internalType: "bytes4";
|
|
1844
1497
|
}];
|
|
1845
|
-
readonly name: "selectorToChains";
|
|
1846
1498
|
readonly outputs: readonly [{
|
|
1847
|
-
readonly
|
|
1848
|
-
readonly name: "allowMessagesFrom";
|
|
1499
|
+
readonly name: "";
|
|
1849
1500
|
readonly type: "bool";
|
|
1850
|
-
}, {
|
|
1851
1501
|
readonly internalType: "bool";
|
|
1852
|
-
readonly name: "allowMessagesTo";
|
|
1853
|
-
readonly type: "bool";
|
|
1854
|
-
}, {
|
|
1855
|
-
readonly internalType: "address";
|
|
1856
|
-
readonly name: "targetTeller";
|
|
1857
|
-
readonly type: "address";
|
|
1858
|
-
}, {
|
|
1859
|
-
readonly internalType: "uint64";
|
|
1860
|
-
readonly name: "messageGasLimit";
|
|
1861
|
-
readonly type: "uint64";
|
|
1862
|
-
}, {
|
|
1863
|
-
readonly internalType: "uint64";
|
|
1864
|
-
readonly name: "minimumMessageGas";
|
|
1865
|
-
readonly type: "uint64";
|
|
1866
1502
|
}];
|
|
1867
1503
|
readonly stateMutability: "view";
|
|
1504
|
+
}, {
|
|
1505
|
+
readonly type: "function";
|
|
1506
|
+
readonly name: "symbol";
|
|
1507
|
+
readonly inputs: readonly [];
|
|
1508
|
+
readonly outputs: readonly [{
|
|
1509
|
+
readonly name: "";
|
|
1510
|
+
readonly type: "string";
|
|
1511
|
+
readonly internalType: "string";
|
|
1512
|
+
}];
|
|
1513
|
+
readonly stateMutability: "view";
|
|
1514
|
+
}, {
|
|
1868
1515
|
readonly type: "function";
|
|
1516
|
+
readonly name: "totalSupply";
|
|
1517
|
+
readonly inputs: readonly [];
|
|
1518
|
+
readonly outputs: readonly [{
|
|
1519
|
+
readonly name: "";
|
|
1520
|
+
readonly type: "uint256";
|
|
1521
|
+
readonly internalType: "uint256";
|
|
1522
|
+
}];
|
|
1523
|
+
readonly stateMutability: "view";
|
|
1869
1524
|
}, {
|
|
1525
|
+
readonly type: "function";
|
|
1526
|
+
readonly name: "transfer";
|
|
1870
1527
|
readonly inputs: readonly [{
|
|
1871
|
-
readonly
|
|
1872
|
-
readonly name: "newAuthority";
|
|
1528
|
+
readonly name: "to";
|
|
1873
1529
|
readonly type: "address";
|
|
1530
|
+
readonly internalType: "address";
|
|
1531
|
+
}, {
|
|
1532
|
+
readonly name: "amount";
|
|
1533
|
+
readonly type: "uint256";
|
|
1534
|
+
readonly internalType: "uint256";
|
|
1535
|
+
}];
|
|
1536
|
+
readonly outputs: readonly [{
|
|
1537
|
+
readonly name: "";
|
|
1538
|
+
readonly type: "bool";
|
|
1539
|
+
readonly internalType: "bool";
|
|
1874
1540
|
}];
|
|
1875
|
-
readonly name: "setAuthority";
|
|
1876
|
-
readonly outputs: readonly [];
|
|
1877
1541
|
readonly stateMutability: "nonpayable";
|
|
1878
|
-
readonly type: "function";
|
|
1879
1542
|
}, {
|
|
1543
|
+
readonly type: "function";
|
|
1544
|
+
readonly name: "transferFrom";
|
|
1880
1545
|
readonly inputs: readonly [{
|
|
1881
|
-
readonly
|
|
1882
|
-
readonly
|
|
1883
|
-
readonly
|
|
1546
|
+
readonly name: "from";
|
|
1547
|
+
readonly type: "address";
|
|
1548
|
+
readonly internalType: "address";
|
|
1549
|
+
}, {
|
|
1550
|
+
readonly name: "to";
|
|
1551
|
+
readonly type: "address";
|
|
1552
|
+
readonly internalType: "address";
|
|
1884
1553
|
}, {
|
|
1885
|
-
readonly
|
|
1886
|
-
readonly
|
|
1887
|
-
readonly
|
|
1554
|
+
readonly name: "amount";
|
|
1555
|
+
readonly type: "uint256";
|
|
1556
|
+
readonly internalType: "uint256";
|
|
1557
|
+
}];
|
|
1558
|
+
readonly outputs: readonly [{
|
|
1559
|
+
readonly name: "";
|
|
1560
|
+
readonly type: "bool";
|
|
1561
|
+
readonly internalType: "bool";
|
|
1888
1562
|
}];
|
|
1889
|
-
readonly name: "setChainGasLimit";
|
|
1890
|
-
readonly outputs: readonly [];
|
|
1891
1563
|
readonly stateMutability: "nonpayable";
|
|
1892
|
-
readonly type: "function";
|
|
1893
1564
|
}, {
|
|
1565
|
+
readonly type: "function";
|
|
1566
|
+
readonly name: "transferOwnership";
|
|
1894
1567
|
readonly inputs: readonly [{
|
|
1895
|
-
readonly
|
|
1896
|
-
readonly name: "_delegate";
|
|
1568
|
+
readonly name: "newOwner";
|
|
1897
1569
|
readonly type: "address";
|
|
1570
|
+
readonly internalType: "address";
|
|
1898
1571
|
}];
|
|
1899
|
-
readonly name: "setDelegate";
|
|
1900
1572
|
readonly outputs: readonly [];
|
|
1901
1573
|
readonly stateMutability: "nonpayable";
|
|
1902
|
-
readonly type: "function";
|
|
1903
1574
|
}, {
|
|
1575
|
+
readonly type: "event";
|
|
1576
|
+
readonly name: "Approval";
|
|
1904
1577
|
readonly inputs: readonly [{
|
|
1905
|
-
readonly
|
|
1906
|
-
readonly
|
|
1907
|
-
readonly
|
|
1578
|
+
readonly name: "owner";
|
|
1579
|
+
readonly type: "address";
|
|
1580
|
+
readonly indexed: true;
|
|
1581
|
+
readonly internalType: "address";
|
|
1908
1582
|
}, {
|
|
1909
|
-
readonly
|
|
1910
|
-
readonly
|
|
1911
|
-
readonly
|
|
1583
|
+
readonly name: "spender";
|
|
1584
|
+
readonly type: "address";
|
|
1585
|
+
readonly indexed: true;
|
|
1586
|
+
readonly internalType: "address";
|
|
1587
|
+
}, {
|
|
1588
|
+
readonly name: "amount";
|
|
1589
|
+
readonly type: "uint256";
|
|
1590
|
+
readonly indexed: false;
|
|
1591
|
+
readonly internalType: "uint256";
|
|
1912
1592
|
}];
|
|
1913
|
-
readonly
|
|
1914
|
-
readonly outputs: readonly [];
|
|
1915
|
-
readonly stateMutability: "nonpayable";
|
|
1916
|
-
readonly type: "function";
|
|
1593
|
+
readonly anonymous: false;
|
|
1917
1594
|
}, {
|
|
1595
|
+
readonly type: "event";
|
|
1596
|
+
readonly name: "AuthorityUpdated";
|
|
1918
1597
|
readonly inputs: readonly [{
|
|
1919
|
-
readonly
|
|
1920
|
-
readonly
|
|
1921
|
-
readonly
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
readonly inputs: readonly [];
|
|
1929
|
-
readonly name: "shareLockPeriod";
|
|
1930
|
-
readonly outputs: readonly [{
|
|
1931
|
-
readonly internalType: "uint64";
|
|
1932
|
-
readonly name: "";
|
|
1933
|
-
readonly type: "uint64";
|
|
1598
|
+
readonly name: "user";
|
|
1599
|
+
readonly type: "address";
|
|
1600
|
+
readonly indexed: true;
|
|
1601
|
+
readonly internalType: "address";
|
|
1602
|
+
}, {
|
|
1603
|
+
readonly name: "newAuthority";
|
|
1604
|
+
readonly type: "address";
|
|
1605
|
+
readonly indexed: true;
|
|
1606
|
+
readonly internalType: "contract Authority";
|
|
1934
1607
|
}];
|
|
1935
|
-
readonly
|
|
1936
|
-
readonly type: "function";
|
|
1608
|
+
readonly anonymous: false;
|
|
1937
1609
|
}, {
|
|
1610
|
+
readonly type: "event";
|
|
1611
|
+
readonly name: "Enter";
|
|
1938
1612
|
readonly inputs: readonly [{
|
|
1613
|
+
readonly name: "from";
|
|
1614
|
+
readonly type: "address";
|
|
1615
|
+
readonly indexed: true;
|
|
1939
1616
|
readonly internalType: "address";
|
|
1940
|
-
|
|
1617
|
+
}, {
|
|
1618
|
+
readonly name: "asset";
|
|
1941
1619
|
readonly type: "address";
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1620
|
+
readonly indexed: true;
|
|
1621
|
+
readonly internalType: "address";
|
|
1622
|
+
}, {
|
|
1623
|
+
readonly name: "amount";
|
|
1624
|
+
readonly type: "uint256";
|
|
1625
|
+
readonly indexed: false;
|
|
1945
1626
|
readonly internalType: "uint256";
|
|
1946
|
-
|
|
1627
|
+
}, {
|
|
1628
|
+
readonly name: "to";
|
|
1629
|
+
readonly type: "address";
|
|
1630
|
+
readonly indexed: true;
|
|
1631
|
+
readonly internalType: "address";
|
|
1632
|
+
}, {
|
|
1633
|
+
readonly name: "shares";
|
|
1947
1634
|
readonly type: "uint256";
|
|
1635
|
+
readonly indexed: false;
|
|
1636
|
+
readonly internalType: "uint256";
|
|
1948
1637
|
}];
|
|
1949
|
-
readonly
|
|
1950
|
-
readonly type: "function";
|
|
1951
|
-
}, {
|
|
1952
|
-
readonly inputs: readonly [{
|
|
1953
|
-
readonly internalType: "uint32";
|
|
1954
|
-
readonly name: "chainSelector";
|
|
1955
|
-
readonly type: "uint32";
|
|
1956
|
-
}];
|
|
1957
|
-
readonly name: "stopMessagesFromChain";
|
|
1958
|
-
readonly outputs: readonly [];
|
|
1959
|
-
readonly stateMutability: "nonpayable";
|
|
1960
|
-
readonly type: "function";
|
|
1638
|
+
readonly anonymous: false;
|
|
1961
1639
|
}, {
|
|
1640
|
+
readonly type: "event";
|
|
1641
|
+
readonly name: "Exit";
|
|
1962
1642
|
readonly inputs: readonly [{
|
|
1963
|
-
readonly
|
|
1964
|
-
readonly
|
|
1965
|
-
readonly
|
|
1643
|
+
readonly name: "to";
|
|
1644
|
+
readonly type: "address";
|
|
1645
|
+
readonly indexed: true;
|
|
1646
|
+
readonly internalType: "address";
|
|
1647
|
+
}, {
|
|
1648
|
+
readonly name: "asset";
|
|
1649
|
+
readonly type: "address";
|
|
1650
|
+
readonly indexed: true;
|
|
1651
|
+
readonly internalType: "address";
|
|
1652
|
+
}, {
|
|
1653
|
+
readonly name: "amount";
|
|
1654
|
+
readonly type: "uint256";
|
|
1655
|
+
readonly indexed: false;
|
|
1656
|
+
readonly internalType: "uint256";
|
|
1657
|
+
}, {
|
|
1658
|
+
readonly name: "from";
|
|
1659
|
+
readonly type: "address";
|
|
1660
|
+
readonly indexed: true;
|
|
1661
|
+
readonly internalType: "address";
|
|
1662
|
+
}, {
|
|
1663
|
+
readonly name: "shares";
|
|
1664
|
+
readonly type: "uint256";
|
|
1665
|
+
readonly indexed: false;
|
|
1666
|
+
readonly internalType: "uint256";
|
|
1966
1667
|
}];
|
|
1967
|
-
readonly
|
|
1968
|
-
readonly outputs: readonly [];
|
|
1969
|
-
readonly stateMutability: "nonpayable";
|
|
1970
|
-
readonly type: "function";
|
|
1668
|
+
readonly anonymous: false;
|
|
1971
1669
|
}, {
|
|
1670
|
+
readonly type: "event";
|
|
1671
|
+
readonly name: "OwnershipTransferred";
|
|
1972
1672
|
readonly inputs: readonly [{
|
|
1673
|
+
readonly name: "user";
|
|
1674
|
+
readonly type: "address";
|
|
1675
|
+
readonly indexed: true;
|
|
1973
1676
|
readonly internalType: "address";
|
|
1677
|
+
}, {
|
|
1974
1678
|
readonly name: "newOwner";
|
|
1975
1679
|
readonly type: "address";
|
|
1680
|
+
readonly indexed: true;
|
|
1681
|
+
readonly internalType: "address";
|
|
1976
1682
|
}];
|
|
1977
|
-
readonly
|
|
1978
|
-
readonly outputs: readonly [];
|
|
1979
|
-
readonly stateMutability: "nonpayable";
|
|
1980
|
-
readonly type: "function";
|
|
1981
|
-
}, {
|
|
1982
|
-
readonly inputs: readonly [];
|
|
1983
|
-
readonly name: "unpause";
|
|
1984
|
-
readonly outputs: readonly [];
|
|
1985
|
-
readonly stateMutability: "nonpayable";
|
|
1986
|
-
readonly type: "function";
|
|
1683
|
+
readonly anonymous: false;
|
|
1987
1684
|
}, {
|
|
1988
|
-
readonly
|
|
1989
|
-
readonly name: "
|
|
1990
|
-
readonly
|
|
1991
|
-
readonly
|
|
1992
|
-
readonly name: "";
|
|
1685
|
+
readonly type: "event";
|
|
1686
|
+
readonly name: "Transfer";
|
|
1687
|
+
readonly inputs: readonly [{
|
|
1688
|
+
readonly name: "from";
|
|
1993
1689
|
readonly type: "address";
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
* Parameters for prepareDepositTransactionData()
|
|
2030
|
-
* Accepts yieldType, recipientAddress, depositToken, and chainId for automatic vault resolution
|
|
2031
|
-
* @interface PrepareDepositTxDataParams
|
|
2032
|
-
* @property {YieldType} yieldType - Yield strategy type (e.g., "PRIME", "TBILL", "LENDING")
|
|
2033
|
-
* @property {Address} recipientAddress - Ethereum address of the user (recipient of vault shares)
|
|
2034
|
-
* @property {Address} depositToken - Token contract address to deposit (matches vault's baseTokenAddress)
|
|
2035
|
-
* @property {string} depositAmount - Amount of assets to deposit as a decimal string (e.g., "1.5")
|
|
2036
|
-
* @property {number | string} chainId - ID of the chain where the deposit will occur
|
|
2037
|
-
* @property {number} [slippage] - Maximum acceptable slippage in basis points (e.g., 100 for 1%)
|
|
2038
|
-
*/
|
|
2039
|
-
interface PrepareDepositTxDataParams {
|
|
2040
|
-
yieldType: YieldType;
|
|
2041
|
-
recipientAddress: Address;
|
|
2042
|
-
depositToken: Address;
|
|
2043
|
-
depositAmount: string;
|
|
2044
|
-
chainId: ChainId;
|
|
2045
|
-
slippage?: number;
|
|
2046
|
-
partnerCode?: string;
|
|
2047
|
-
}
|
|
2048
|
-
/**
|
|
2049
|
-
* Prepares the transaction data needed to deposit assets into a vault
|
|
2050
|
-
*
|
|
2051
|
-
* This function calculates the minimum amount of vault tokens to be minted based on
|
|
2052
|
-
* the current exchange rate and the specified slippage tolerance. It automatically
|
|
2053
|
-
* resolves the vault from yieldType, depositToken, and chainId parameters.
|
|
2054
|
-
*
|
|
2055
|
-
* ```typescript
|
|
2056
|
-
* const depositData = await prepareDepositTransactionData({
|
|
2057
|
-
* yieldType: 'PRIME',
|
|
2058
|
-
* recipientAddress: '0x1234...',
|
|
2059
|
-
* depositToken: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
|
|
2060
|
-
* depositAmount: "1.0",
|
|
2061
|
-
* chainId: 1,
|
|
2062
|
-
* slippage: 100, // 1% slippage (100 bps)
|
|
2063
|
-
* });
|
|
2064
|
-
* ```
|
|
2065
|
-
*
|
|
2066
|
-
* @param {PrepareDepositTransactionDataParams} params - Parameters for the deposit operation
|
|
2067
|
-
* @returns {Promise<DepositTransactionData>} Promise resolving to the prepared transaction data
|
|
2068
|
-
* @throws {APIError} If vault cannot be resolved, asset not found, or contracts not configured
|
|
2069
|
-
*/
|
|
2070
|
-
declare function prepareDepositTxData(params: PrepareDepositTxDataParams): Promise<DepositTxData | CommunityCodeDepositTxData>;
|
|
2071
|
-
|
|
2072
|
-
/**
|
|
2073
|
-
* @file Deposit with permit functionality for Nucleus vaults
|
|
2074
|
-
* @module vaults/deposit/deposit-with-permit
|
|
2075
|
-
*/
|
|
1690
|
+
readonly indexed: true;
|
|
1691
|
+
readonly internalType: "address";
|
|
1692
|
+
}, {
|
|
1693
|
+
readonly name: "to";
|
|
1694
|
+
readonly type: "address";
|
|
1695
|
+
readonly indexed: true;
|
|
1696
|
+
readonly internalType: "address";
|
|
1697
|
+
}, {
|
|
1698
|
+
readonly name: "amount";
|
|
1699
|
+
readonly type: "uint256";
|
|
1700
|
+
readonly indexed: false;
|
|
1701
|
+
readonly internalType: "uint256";
|
|
1702
|
+
}];
|
|
1703
|
+
readonly anonymous: false;
|
|
1704
|
+
}, {
|
|
1705
|
+
readonly type: "error";
|
|
1706
|
+
readonly name: "AddressEmptyCode";
|
|
1707
|
+
readonly inputs: readonly [{
|
|
1708
|
+
readonly name: "target";
|
|
1709
|
+
readonly type: "address";
|
|
1710
|
+
readonly internalType: "address";
|
|
1711
|
+
}];
|
|
1712
|
+
}, {
|
|
1713
|
+
readonly type: "error";
|
|
1714
|
+
readonly name: "AddressInsufficientBalance";
|
|
1715
|
+
readonly inputs: readonly [{
|
|
1716
|
+
readonly name: "account";
|
|
1717
|
+
readonly type: "address";
|
|
1718
|
+
readonly internalType: "address";
|
|
1719
|
+
}];
|
|
1720
|
+
}, {
|
|
1721
|
+
readonly type: "error";
|
|
1722
|
+
readonly name: "FailedInnerCall";
|
|
1723
|
+
readonly inputs: readonly [];
|
|
1724
|
+
}];
|
|
2076
1725
|
|
|
2077
1726
|
/**
|
|
2078
|
-
*
|
|
2079
|
-
*
|
|
2080
|
-
*
|
|
2081
|
-
*
|
|
2082
|
-
*
|
|
2083
|
-
*
|
|
2084
|
-
* @see {@link https://eips.ethereum.org/EIPS/eip-712#specification-of-the-eth_signtypeddata-json-rpc EIP-712 Specification}
|
|
2085
|
-
*
|
|
2086
|
-
* @property name - Human-readable name of the signing domain
|
|
2087
|
-
* @property version - Version of the signing domain
|
|
2088
|
-
* @property chainId - Ethereum chain ID as a number (not bigint)
|
|
2089
|
-
* @property verifyingContract - Address of the contract that will verify the signature
|
|
2090
|
-
* @property salt - Optional salt for disambiguation
|
|
2091
|
-
*/
|
|
2092
|
-
interface EIP712Domain {
|
|
2093
|
-
name?: string;
|
|
2094
|
-
version?: string;
|
|
2095
|
-
chainId?: number;
|
|
2096
|
-
verifyingContract?: string;
|
|
2097
|
-
salt?: ArrayBuffer;
|
|
2098
|
-
}
|
|
2099
|
-
/**
|
|
2100
|
-
* T008: EIP-2612 Permit type definition
|
|
2101
|
-
* Standard structure for permit typed data per EIP-2612 specification
|
|
2102
|
-
*/
|
|
2103
|
-
declare const PERMIT_TYPES: {
|
|
2104
|
-
Permit: {
|
|
2105
|
-
name: string;
|
|
2106
|
-
type: string;
|
|
2107
|
-
}[];
|
|
2108
|
-
};
|
|
2109
|
-
/**
|
|
2110
|
-
* T009: Complete EIP-712 typed data for permit signature
|
|
2111
|
-
* Returned by prepareDepositPermitSignature() ready for wallet signing
|
|
2112
|
-
*
|
|
2113
|
-
* @property domain - EIP-712 domain separator with numeric chainId
|
|
2114
|
-
* @property types - EIP-2612 Permit type structure (mutable for compatibility)
|
|
2115
|
-
* @property message - Permit message fields
|
|
2116
|
-
* @property primaryType - Always "Permit" for EIP-2612
|
|
2117
|
-
*/
|
|
2118
|
-
interface PermitSignatureData {
|
|
2119
|
-
domain: EIP712Domain;
|
|
2120
|
-
types: {
|
|
2121
|
-
Permit: Array<{
|
|
2122
|
-
name: string;
|
|
2123
|
-
type: string;
|
|
2124
|
-
}>;
|
|
2125
|
-
};
|
|
2126
|
-
message: {
|
|
2127
|
-
owner: Address;
|
|
2128
|
-
spender: Address;
|
|
2129
|
-
value: bigint;
|
|
2130
|
-
nonce: bigint;
|
|
2131
|
-
deadline: bigint;
|
|
2132
|
-
};
|
|
2133
|
-
primaryType: "Permit";
|
|
2134
|
-
}
|
|
2135
|
-
/**
|
|
2136
|
-
* T009: Parsed permit signature components
|
|
2137
|
-
* Returned by parsePermitSignature() after converting hex signature
|
|
2138
|
-
*
|
|
2139
|
-
* @property v - Recovery ID (27 or 28)
|
|
2140
|
-
* @property r - First 32 bytes of signature
|
|
2141
|
-
* @property s - Second 32 bytes of signature
|
|
2142
|
-
*/
|
|
2143
|
-
interface ParsedPermitSignature {
|
|
2144
|
-
v: number;
|
|
2145
|
-
r: Hex;
|
|
2146
|
-
s: Hex;
|
|
2147
|
-
}
|
|
2148
|
-
/**
|
|
2149
|
-
* T009: Parameters for prepareDepositPermitSignature
|
|
2150
|
-
* Input parameters for generating permit typed data
|
|
2151
|
-
*
|
|
2152
|
-
* @property yieldType - Vault yield strategy
|
|
2153
|
-
* @property depositToken - Token contract address to deposit
|
|
2154
|
-
* @property depositAmount - Deposit amount as decimal string
|
|
2155
|
-
* @property recipientAddress - User address (permit owner)
|
|
2156
|
-
* @property chainId - Blockchain network ID
|
|
2157
|
-
* @property deadline - Optional permit expiration (defaults to 1 hour)
|
|
1727
|
+
* Parameters required for preparing an approval transaction (NEW AmplifyVault schema)
|
|
1728
|
+
* @interface PrepareApproveWithdrawTokenTxParams
|
|
1729
|
+
* @property {YieldType} yieldType - Yield strategy type (PRIME, TBILL, or LENDING)
|
|
1730
|
+
* @property {Address} wantAssetAddress - Address of the want token
|
|
1731
|
+
* @property {string} [withdrawAmount] - Optional amount to approve (defaults to maximum approval)
|
|
1732
|
+
* @property {ChainId} chainId - ID of the chain where the approval will occur
|
|
2158
1733
|
*/
|
|
2159
|
-
interface
|
|
1734
|
+
interface PrepareApproveWithdrawTokenTxParams {
|
|
2160
1735
|
yieldType: YieldType;
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
chainId: number;
|
|
2165
|
-
deadline?: bigint;
|
|
1736
|
+
wantAssetAddress: Address;
|
|
1737
|
+
withdrawAmount?: string;
|
|
1738
|
+
chainId: ChainId;
|
|
2166
1739
|
}
|
|
2167
1740
|
/**
|
|
2168
|
-
*
|
|
2169
|
-
*
|
|
2170
|
-
*
|
|
2171
|
-
* @property
|
|
2172
|
-
* @property functionName -
|
|
2173
|
-
* @property args -
|
|
2174
|
-
*
|
|
2175
|
-
* @property chainId - Chain ID for transaction
|
|
1741
|
+
* Result object containing transaction data for a vault shares approval operation
|
|
1742
|
+
* @interface ApproveWithdrawTokenTxData
|
|
1743
|
+
* @property {typeof BoringVaultAbi} abi - ABI for the BoringVault contract
|
|
1744
|
+
* @property {Address} address - Address of the BoringVault (shares token)
|
|
1745
|
+
* @property {'approve'} functionName - Name of the function to call
|
|
1746
|
+
* @property {[Address, bigint]} args - Arguments for the approve function:
|
|
1747
|
+
* [spender (AtomicQueue address), amount]
|
|
2176
1748
|
*/
|
|
2177
|
-
interface
|
|
2178
|
-
|
|
2179
|
-
abi: typeof TellerAbi;
|
|
2180
|
-
functionName: "depositWithPermit";
|
|
2181
|
-
args: [Address, bigint, bigint, bigint, number, Hex, Hex];
|
|
2182
|
-
};
|
|
1749
|
+
interface ApproveWithdrawTokenTxData {
|
|
1750
|
+
abi: typeof BoringVaultAbi;
|
|
2183
1751
|
address: Address;
|
|
2184
|
-
|
|
1752
|
+
functionName: "approve";
|
|
1753
|
+
args: [Address, bigint];
|
|
2185
1754
|
}
|
|
2186
1755
|
/**
|
|
2187
|
-
*
|
|
2188
|
-
*
|
|
2189
|
-
* Reads token metadata (name, version, nonce) from the blockchain and
|
|
2190
|
-
* constructs the complete EIP-712 structure for wallet signing.
|
|
1756
|
+
* Prepares the transaction data needed to approve vault shares for the AtomicQueue contract
|
|
2191
1757
|
*
|
|
2192
|
-
*
|
|
2193
|
-
*
|
|
2194
|
-
*
|
|
1758
|
+
* This function prepares an ERC20 approval transaction that allows the AtomicQueue
|
|
1759
|
+
* contract to spend the user's vault shares. It uses the new AmplifyVault schema
|
|
1760
|
+
* with asset decimals from the API (no on-chain calls).
|
|
2195
1761
|
*
|
|
2196
1762
|
* @example
|
|
2197
1763
|
* ```typescript
|
|
2198
|
-
* const
|
|
1764
|
+
* const vaults = await fetchVaults({ chainId: 1 });
|
|
1765
|
+
* const approveData = await prepareApproveWithdrawToken({
|
|
2199
1766
|
* yieldType: 'PRIME',
|
|
2200
|
-
*
|
|
2201
|
-
*
|
|
2202
|
-
* recipientAddress: recipientAddress,
|
|
1767
|
+
* wantAssetAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
|
|
1768
|
+
* withdrawAmount: "10.0", // Approve 10 vault shares
|
|
2203
1769
|
* chainId: 1,
|
|
2204
|
-
* deadline: BigInt(Math.floor(Date.now() / 1000) + 3600),
|
|
2205
1770
|
* });
|
|
2206
|
-
*
|
|
2207
|
-
* // Sign with wallet
|
|
2208
|
-
* const signature = await signTypedData(permitData);
|
|
2209
|
-
* ```
|
|
2210
|
-
*/
|
|
2211
|
-
declare function prepareDepositPermitSignature(params: PrepareDepositPermitSignatureParams): Promise<PermitSignatureData>;
|
|
2212
|
-
/**
|
|
2213
|
-
* T036-T040: Parse raw hex signature into v, r, s components
|
|
2214
|
-
*
|
|
2215
|
-
* Handles both v-based and yParity-based signature formats.
|
|
2216
|
-
* Converts yParity to v by adding 27 if needed.
|
|
2217
|
-
*
|
|
2218
|
-
* @param signature - Raw hex signature from wallet
|
|
2219
|
-
* @returns Parsed signature components (v, r, s)
|
|
2220
|
-
* @throws {APIError} If signature format is invalid
|
|
2221
|
-
*
|
|
2222
|
-
* @example
|
|
2223
|
-
* ```typescript
|
|
2224
|
-
* const signature = await signTypedData(permitData);
|
|
2225
|
-
* const { v, r, s } = parsePermitSignature(signature);
|
|
2226
|
-
* // Use v, r, s in smart contract call
|
|
2227
1771
|
* ```
|
|
2228
|
-
*/
|
|
2229
|
-
declare function parsePermitSignature(signature: Hex): ParsedPermitSignature;
|
|
2230
|
-
/**
|
|
2231
|
-
* T048: Updated parameters for prepareDepositWithPermitTransactionData()
|
|
2232
|
-
* Now accepts raw signature and deadline for complete transaction encoding
|
|
2233
|
-
*
|
|
2234
|
-
* @interface PrepareDepositWithPermitTxDataParams
|
|
2235
|
-
* @property {YieldType} yieldType - Yield strategy type (e.g., "PRIME", "TBILL")
|
|
2236
|
-
* @property {Address} recipientAddress - Ethereum address of the user (recipient of vault shares)
|
|
2237
|
-
* @property {Address} depositToken - Token contract address to deposit (matches vault's baseTokenAddress)
|
|
2238
|
-
* @property {string} depositAmount - Amount of assets to deposit as a decimal string (e.g., "100.25")
|
|
2239
|
-
* @property {number | ChainId} chainId - ID of the chain where the deposit will occur
|
|
2240
|
-
* @property {Hex} signature - Raw hex signature from wallet signing
|
|
2241
|
-
* @property {bigint} deadline - Deadline timestamp (must match permit signature deadline)
|
|
2242
|
-
* @property {number} [slippage] - Maximum acceptable slippage in basis points (default: 100 for 1%)
|
|
2243
|
-
*
|
|
2244
|
-
* @example
|
|
2245
|
-
* ```typescript
|
|
2246
|
-
* const permitData = await prepareDepositPermitSignature({ ... });
|
|
2247
|
-
* const signature = await signTypedData(permitData);
|
|
2248
|
-
*
|
|
2249
|
-
* const params: PrepareDepositWithPermitTransactionDataParams = {
|
|
2250
|
-
* yieldType: "PRIME",
|
|
2251
|
-
* recipientAddress: "0x1234567890123456789012345678901234567890",
|
|
2252
|
-
* depositToken: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC
|
|
2253
|
-
* depositAmount: "100.25",
|
|
2254
|
-
* chainId: 1,
|
|
2255
|
-
* signature,
|
|
2256
|
-
* deadline: permitData.message.deadline,
|
|
2257
|
-
* slippage: 100, // 1%
|
|
2258
|
-
* };
|
|
2259
|
-
* ```
|
|
2260
|
-
*/
|
|
2261
|
-
interface PrepareDepositWithPermitTxDataParams {
|
|
2262
|
-
yieldType: YieldType;
|
|
2263
|
-
recipientAddress: Address;
|
|
2264
|
-
depositToken: Address;
|
|
2265
|
-
depositAmount: string;
|
|
2266
|
-
chainId: number | ChainId;
|
|
2267
|
-
signature: Hex;
|
|
2268
|
-
deadline: bigint;
|
|
2269
|
-
slippage?: number;
|
|
2270
|
-
}
|
|
2271
|
-
/**
|
|
2272
|
-
* T048-T057: Prepare complete deposit transaction with permit signature
|
|
2273
|
-
*
|
|
2274
|
-
* Accepts raw signature and deadline, parses signature internally,
|
|
2275
|
-
* resolves vault, calculates minimum mint with slippage, and
|
|
2276
|
-
* encodes the complete depositWithPermit function call.
|
|
2277
1772
|
*
|
|
2278
|
-
* @param {
|
|
2279
|
-
* @
|
|
2280
|
-
* @
|
|
1773
|
+
* @param {PrepareApproveWithdrawTokenTxParams} params - Parameters for the approval operation
|
|
1774
|
+
* @param {YieldType} params.yieldType - Yield strategy type (PRIME, TBILL, or LENDING)
|
|
1775
|
+
* @param {Address} params.wantAssetAddress - Address of the want token
|
|
1776
|
+
* @param {string} [params.withdrawAmount] - Optional amount to approve as a decimal string (defaults to maximum approval)
|
|
1777
|
+
* @param {number | string} params.chainId - ID of the chain where the approval will occur
|
|
2281
1778
|
*
|
|
2282
|
-
*
|
|
2283
|
-
*
|
|
2284
|
-
* to: txData.address,
|
|
2285
|
-
* data: txData.data,
|
|
2286
|
-
* });
|
|
2287
|
-
* ```
|
|
1779
|
+
* @returns {Promise<ApproveWithdrawTokenTxData>} Promise resolving to the prepared transaction data
|
|
1780
|
+
* @throws {APIError} If the vault is not on the correct chain or contracts not configured
|
|
2288
1781
|
*/
|
|
2289
|
-
declare function
|
|
1782
|
+
declare function prepareApproveWithdrawTxData({ yieldType, wantAssetAddress, withdrawAmount, chainId, }: PrepareApproveWithdrawTokenTxParams): Promise<ApproveWithdrawTokenTxData>;
|
|
2290
1783
|
|
|
2291
|
-
declare const
|
|
1784
|
+
declare const TellerAbi: readonly [{
|
|
1785
|
+
readonly inputs: readonly [{
|
|
1786
|
+
readonly internalType: "address";
|
|
1787
|
+
readonly name: "_owner";
|
|
1788
|
+
readonly type: "address";
|
|
1789
|
+
}, {
|
|
1790
|
+
readonly internalType: "address";
|
|
1791
|
+
readonly name: "_vault";
|
|
1792
|
+
readonly type: "address";
|
|
1793
|
+
}, {
|
|
1794
|
+
readonly internalType: "address";
|
|
1795
|
+
readonly name: "_accountant";
|
|
1796
|
+
readonly type: "address";
|
|
1797
|
+
}, {
|
|
1798
|
+
readonly internalType: "address";
|
|
1799
|
+
readonly name: "_endpoint";
|
|
1800
|
+
readonly type: "address";
|
|
1801
|
+
}];
|
|
1802
|
+
readonly stateMutability: "nonpayable";
|
|
2292
1803
|
readonly type: "constructor";
|
|
1804
|
+
}, {
|
|
1805
|
+
readonly inputs: readonly [];
|
|
1806
|
+
readonly name: "InvalidDelegate";
|
|
1807
|
+
readonly type: "error";
|
|
1808
|
+
}, {
|
|
1809
|
+
readonly inputs: readonly [];
|
|
1810
|
+
readonly name: "InvalidEndpointCall";
|
|
1811
|
+
readonly type: "error";
|
|
1812
|
+
}, {
|
|
1813
|
+
readonly inputs: readonly [{
|
|
1814
|
+
readonly internalType: "uint16";
|
|
1815
|
+
readonly name: "optionType";
|
|
1816
|
+
readonly type: "uint16";
|
|
1817
|
+
}];
|
|
1818
|
+
readonly name: "InvalidOptionType";
|
|
1819
|
+
readonly type: "error";
|
|
1820
|
+
}, {
|
|
1821
|
+
readonly inputs: readonly [];
|
|
1822
|
+
readonly name: "LzTokenUnavailable";
|
|
1823
|
+
readonly type: "error";
|
|
1824
|
+
}, {
|
|
1825
|
+
readonly inputs: readonly [];
|
|
1826
|
+
readonly name: "MultiChainLayerZeroTellerWithMultiAssetSupport_InvalidToken";
|
|
1827
|
+
readonly type: "error";
|
|
1828
|
+
}, {
|
|
1829
|
+
readonly inputs: readonly [];
|
|
1830
|
+
readonly name: "MultiChainTellerBase_DestinationChainReceiverIsZeroAddress";
|
|
1831
|
+
readonly type: "error";
|
|
1832
|
+
}, {
|
|
1833
|
+
readonly inputs: readonly [];
|
|
1834
|
+
readonly name: "MultiChainTellerBase_GasLimitExceeded";
|
|
1835
|
+
readonly type: "error";
|
|
1836
|
+
}, {
|
|
1837
|
+
readonly inputs: readonly [];
|
|
1838
|
+
readonly name: "MultiChainTellerBase_GasTooLow";
|
|
1839
|
+
readonly type: "error";
|
|
1840
|
+
}, {
|
|
1841
|
+
readonly inputs: readonly [{
|
|
1842
|
+
readonly internalType: "uint32";
|
|
1843
|
+
readonly name: "chainSelector";
|
|
1844
|
+
readonly type: "uint32";
|
|
1845
|
+
}];
|
|
1846
|
+
readonly name: "MultiChainTellerBase_MessagesNotAllowedFrom";
|
|
1847
|
+
readonly type: "error";
|
|
1848
|
+
}, {
|
|
1849
|
+
readonly inputs: readonly [{
|
|
1850
|
+
readonly internalType: "uint256";
|
|
1851
|
+
readonly name: "chainSelector";
|
|
1852
|
+
readonly type: "uint256";
|
|
1853
|
+
}];
|
|
1854
|
+
readonly name: "MultiChainTellerBase_MessagesNotAllowedTo";
|
|
1855
|
+
readonly type: "error";
|
|
1856
|
+
}, {
|
|
1857
|
+
readonly inputs: readonly [];
|
|
1858
|
+
readonly name: "MultiChainTellerBase_TargetTellerIsZeroAddress";
|
|
1859
|
+
readonly type: "error";
|
|
1860
|
+
}, {
|
|
1861
|
+
readonly inputs: readonly [];
|
|
1862
|
+
readonly name: "MultiChainTellerBase_ZeroMessageGasLimit";
|
|
1863
|
+
readonly type: "error";
|
|
1864
|
+
}, {
|
|
1865
|
+
readonly inputs: readonly [{
|
|
1866
|
+
readonly internalType: "uint32";
|
|
1867
|
+
readonly name: "eid";
|
|
1868
|
+
readonly type: "uint32";
|
|
1869
|
+
}];
|
|
1870
|
+
readonly name: "NoPeer";
|
|
1871
|
+
readonly type: "error";
|
|
1872
|
+
}, {
|
|
1873
|
+
readonly inputs: readonly [{
|
|
1874
|
+
readonly internalType: "uint256";
|
|
1875
|
+
readonly name: "msgValue";
|
|
1876
|
+
readonly type: "uint256";
|
|
1877
|
+
}];
|
|
1878
|
+
readonly name: "NotEnoughNative";
|
|
1879
|
+
readonly type: "error";
|
|
1880
|
+
}, {
|
|
1881
|
+
readonly inputs: readonly [{
|
|
1882
|
+
readonly internalType: "address";
|
|
1883
|
+
readonly name: "addr";
|
|
1884
|
+
readonly type: "address";
|
|
1885
|
+
}];
|
|
1886
|
+
readonly name: "OnlyEndpoint";
|
|
1887
|
+
readonly type: "error";
|
|
1888
|
+
}, {
|
|
1889
|
+
readonly inputs: readonly [{
|
|
1890
|
+
readonly internalType: "uint32";
|
|
1891
|
+
readonly name: "eid";
|
|
1892
|
+
readonly type: "uint32";
|
|
1893
|
+
}, {
|
|
1894
|
+
readonly internalType: "bytes32";
|
|
1895
|
+
readonly name: "sender";
|
|
1896
|
+
readonly type: "bytes32";
|
|
1897
|
+
}];
|
|
1898
|
+
readonly name: "OnlyPeer";
|
|
1899
|
+
readonly type: "error";
|
|
1900
|
+
}, {
|
|
1901
|
+
readonly inputs: readonly [{
|
|
1902
|
+
readonly internalType: "uint8";
|
|
1903
|
+
readonly name: "bits";
|
|
1904
|
+
readonly type: "uint8";
|
|
1905
|
+
}, {
|
|
1906
|
+
readonly internalType: "uint256";
|
|
1907
|
+
readonly name: "value";
|
|
1908
|
+
readonly type: "uint256";
|
|
1909
|
+
}];
|
|
1910
|
+
readonly name: "SafeCastOverflowedUintDowncast";
|
|
1911
|
+
readonly type: "error";
|
|
1912
|
+
}, {
|
|
1913
|
+
readonly inputs: readonly [{
|
|
1914
|
+
readonly internalType: "address";
|
|
1915
|
+
readonly name: "token";
|
|
1916
|
+
readonly type: "address";
|
|
1917
|
+
}];
|
|
1918
|
+
readonly name: "SafeERC20FailedOperation";
|
|
1919
|
+
readonly type: "error";
|
|
1920
|
+
}, {
|
|
1921
|
+
readonly inputs: readonly [];
|
|
1922
|
+
readonly name: "TellerWithMultiAssetSupport__AssetNotSupported";
|
|
1923
|
+
readonly type: "error";
|
|
1924
|
+
}, {
|
|
1925
|
+
readonly inputs: readonly [];
|
|
1926
|
+
readonly name: "TellerWithMultiAssetSupport__BadDepositHash";
|
|
1927
|
+
readonly type: "error";
|
|
1928
|
+
}, {
|
|
1929
|
+
readonly inputs: readonly [];
|
|
1930
|
+
readonly name: "TellerWithMultiAssetSupport__MinimumAssetsNotMet";
|
|
1931
|
+
readonly type: "error";
|
|
1932
|
+
}, {
|
|
1933
|
+
readonly inputs: readonly [];
|
|
1934
|
+
readonly name: "TellerWithMultiAssetSupport__MinimumMintNotMet";
|
|
1935
|
+
readonly type: "error";
|
|
1936
|
+
}, {
|
|
1937
|
+
readonly inputs: readonly [];
|
|
1938
|
+
readonly name: "TellerWithMultiAssetSupport__Paused";
|
|
1939
|
+
readonly type: "error";
|
|
1940
|
+
}, {
|
|
1941
|
+
readonly inputs: readonly [];
|
|
1942
|
+
readonly name: "TellerWithMultiAssetSupport__PermitFailedAndAllowanceTooLow";
|
|
1943
|
+
readonly type: "error";
|
|
1944
|
+
}, {
|
|
1945
|
+
readonly inputs: readonly [];
|
|
1946
|
+
readonly name: "TellerWithMultiAssetSupport__ShareLockPeriodTooLong";
|
|
1947
|
+
readonly type: "error";
|
|
1948
|
+
}, {
|
|
1949
|
+
readonly inputs: readonly [];
|
|
1950
|
+
readonly name: "TellerWithMultiAssetSupport__SharesAreLocked";
|
|
1951
|
+
readonly type: "error";
|
|
1952
|
+
}, {
|
|
1953
|
+
readonly inputs: readonly [];
|
|
1954
|
+
readonly name: "TellerWithMultiAssetSupport__SharesAreUnLocked";
|
|
1955
|
+
readonly type: "error";
|
|
1956
|
+
}, {
|
|
1957
|
+
readonly inputs: readonly [];
|
|
1958
|
+
readonly name: "TellerWithMultiAssetSupport__ZeroAssets";
|
|
1959
|
+
readonly type: "error";
|
|
1960
|
+
}, {
|
|
1961
|
+
readonly inputs: readonly [];
|
|
1962
|
+
readonly name: "TellerWithMultiAssetSupport__ZeroShares";
|
|
1963
|
+
readonly type: "error";
|
|
1964
|
+
}, {
|
|
1965
|
+
readonly anonymous: false;
|
|
1966
|
+
readonly inputs: readonly [{
|
|
1967
|
+
readonly indexed: true;
|
|
1968
|
+
readonly internalType: "address";
|
|
1969
|
+
readonly name: "asset";
|
|
1970
|
+
readonly type: "address";
|
|
1971
|
+
}];
|
|
1972
|
+
readonly name: "AssetAdded";
|
|
1973
|
+
readonly type: "event";
|
|
1974
|
+
}, {
|
|
1975
|
+
readonly anonymous: false;
|
|
1976
|
+
readonly inputs: readonly [{
|
|
1977
|
+
readonly indexed: true;
|
|
1978
|
+
readonly internalType: "address";
|
|
1979
|
+
readonly name: "asset";
|
|
1980
|
+
readonly type: "address";
|
|
1981
|
+
}];
|
|
1982
|
+
readonly name: "AssetRemoved";
|
|
1983
|
+
readonly type: "event";
|
|
1984
|
+
}, {
|
|
1985
|
+
readonly anonymous: false;
|
|
1986
|
+
readonly inputs: readonly [{
|
|
1987
|
+
readonly indexed: true;
|
|
1988
|
+
readonly internalType: "address";
|
|
1989
|
+
readonly name: "user";
|
|
1990
|
+
readonly type: "address";
|
|
1991
|
+
}, {
|
|
1992
|
+
readonly indexed: true;
|
|
1993
|
+
readonly internalType: "contract Authority";
|
|
1994
|
+
readonly name: "newAuthority";
|
|
1995
|
+
readonly type: "address";
|
|
1996
|
+
}];
|
|
1997
|
+
readonly name: "AuthorityUpdated";
|
|
1998
|
+
readonly type: "event";
|
|
1999
|
+
}, {
|
|
2000
|
+
readonly anonymous: false;
|
|
2001
|
+
readonly inputs: readonly [{
|
|
2002
|
+
readonly indexed: true;
|
|
2003
|
+
readonly internalType: "address";
|
|
2004
|
+
readonly name: "asset";
|
|
2005
|
+
readonly type: "address";
|
|
2006
|
+
}, {
|
|
2007
|
+
readonly indexed: false;
|
|
2008
|
+
readonly internalType: "uint256";
|
|
2009
|
+
readonly name: "depositAmount";
|
|
2010
|
+
readonly type: "uint256";
|
|
2011
|
+
}];
|
|
2012
|
+
readonly name: "BulkDeposit";
|
|
2013
|
+
readonly type: "event";
|
|
2014
|
+
}, {
|
|
2015
|
+
readonly anonymous: false;
|
|
2016
|
+
readonly inputs: readonly [{
|
|
2017
|
+
readonly indexed: true;
|
|
2018
|
+
readonly internalType: "address";
|
|
2019
|
+
readonly name: "asset";
|
|
2020
|
+
readonly type: "address";
|
|
2021
|
+
}, {
|
|
2022
|
+
readonly indexed: false;
|
|
2023
|
+
readonly internalType: "uint256";
|
|
2024
|
+
readonly name: "shareAmount";
|
|
2025
|
+
readonly type: "uint256";
|
|
2026
|
+
}];
|
|
2027
|
+
readonly name: "BulkWithdraw";
|
|
2028
|
+
readonly type: "event";
|
|
2029
|
+
}, {
|
|
2030
|
+
readonly anonymous: false;
|
|
2031
|
+
readonly inputs: readonly [{
|
|
2032
|
+
readonly indexed: false;
|
|
2033
|
+
readonly internalType: "uint256";
|
|
2034
|
+
readonly name: "chainSelector";
|
|
2035
|
+
readonly type: "uint256";
|
|
2036
|
+
}, {
|
|
2037
|
+
readonly indexed: false;
|
|
2038
|
+
readonly internalType: "bool";
|
|
2039
|
+
readonly name: "allowMessagesFrom";
|
|
2040
|
+
readonly type: "bool";
|
|
2041
|
+
}, {
|
|
2042
|
+
readonly indexed: false;
|
|
2043
|
+
readonly internalType: "bool";
|
|
2044
|
+
readonly name: "allowMessagesTo";
|
|
2045
|
+
readonly type: "bool";
|
|
2046
|
+
}, {
|
|
2047
|
+
readonly indexed: false;
|
|
2048
|
+
readonly internalType: "address";
|
|
2049
|
+
readonly name: "targetTeller";
|
|
2050
|
+
readonly type: "address";
|
|
2051
|
+
}, {
|
|
2052
|
+
readonly indexed: false;
|
|
2053
|
+
readonly internalType: "uint64";
|
|
2054
|
+
readonly name: "messageGasLimit";
|
|
2055
|
+
readonly type: "uint64";
|
|
2056
|
+
}, {
|
|
2057
|
+
readonly indexed: false;
|
|
2058
|
+
readonly internalType: "uint64";
|
|
2059
|
+
readonly name: "messageGasMin";
|
|
2060
|
+
readonly type: "uint64";
|
|
2061
|
+
}];
|
|
2062
|
+
readonly name: "ChainAdded";
|
|
2063
|
+
readonly type: "event";
|
|
2064
|
+
}, {
|
|
2065
|
+
readonly anonymous: false;
|
|
2293
2066
|
readonly inputs: readonly [{
|
|
2294
|
-
readonly
|
|
2067
|
+
readonly indexed: false;
|
|
2068
|
+
readonly internalType: "uint256";
|
|
2069
|
+
readonly name: "chainSelector";
|
|
2070
|
+
readonly type: "uint256";
|
|
2071
|
+
}, {
|
|
2072
|
+
readonly indexed: false;
|
|
2073
|
+
readonly internalType: "address";
|
|
2074
|
+
readonly name: "targetTeller";
|
|
2075
|
+
readonly type: "address";
|
|
2076
|
+
}];
|
|
2077
|
+
readonly name: "ChainAllowMessagesFrom";
|
|
2078
|
+
readonly type: "event";
|
|
2079
|
+
}, {
|
|
2080
|
+
readonly anonymous: false;
|
|
2081
|
+
readonly inputs: readonly [{
|
|
2082
|
+
readonly indexed: false;
|
|
2083
|
+
readonly internalType: "uint256";
|
|
2084
|
+
readonly name: "chainSelector";
|
|
2085
|
+
readonly type: "uint256";
|
|
2086
|
+
}, {
|
|
2087
|
+
readonly indexed: false;
|
|
2088
|
+
readonly internalType: "address";
|
|
2089
|
+
readonly name: "targetTeller";
|
|
2090
|
+
readonly type: "address";
|
|
2091
|
+
}];
|
|
2092
|
+
readonly name: "ChainAllowMessagesTo";
|
|
2093
|
+
readonly type: "event";
|
|
2094
|
+
}, {
|
|
2095
|
+
readonly anonymous: false;
|
|
2096
|
+
readonly inputs: readonly [{
|
|
2097
|
+
readonly indexed: false;
|
|
2098
|
+
readonly internalType: "uint256";
|
|
2099
|
+
readonly name: "chainSelector";
|
|
2100
|
+
readonly type: "uint256";
|
|
2101
|
+
}];
|
|
2102
|
+
readonly name: "ChainRemoved";
|
|
2103
|
+
readonly type: "event";
|
|
2104
|
+
}, {
|
|
2105
|
+
readonly anonymous: false;
|
|
2106
|
+
readonly inputs: readonly [{
|
|
2107
|
+
readonly indexed: false;
|
|
2108
|
+
readonly internalType: "uint256";
|
|
2109
|
+
readonly name: "chainSelector";
|
|
2110
|
+
readonly type: "uint256";
|
|
2111
|
+
}, {
|
|
2112
|
+
readonly indexed: false;
|
|
2113
|
+
readonly internalType: "uint64";
|
|
2114
|
+
readonly name: "messageGasLimit";
|
|
2115
|
+
readonly type: "uint64";
|
|
2116
|
+
}];
|
|
2117
|
+
readonly name: "ChainSetGasLimit";
|
|
2118
|
+
readonly type: "event";
|
|
2119
|
+
}, {
|
|
2120
|
+
readonly anonymous: false;
|
|
2121
|
+
readonly inputs: readonly [{
|
|
2122
|
+
readonly indexed: false;
|
|
2123
|
+
readonly internalType: "uint256";
|
|
2124
|
+
readonly name: "chainSelector";
|
|
2125
|
+
readonly type: "uint256";
|
|
2126
|
+
}];
|
|
2127
|
+
readonly name: "ChainStopMessagesFrom";
|
|
2128
|
+
readonly type: "event";
|
|
2129
|
+
}, {
|
|
2130
|
+
readonly anonymous: false;
|
|
2131
|
+
readonly inputs: readonly [{
|
|
2132
|
+
readonly indexed: false;
|
|
2133
|
+
readonly internalType: "uint256";
|
|
2134
|
+
readonly name: "chainSelector";
|
|
2135
|
+
readonly type: "uint256";
|
|
2136
|
+
}];
|
|
2137
|
+
readonly name: "ChainStopMessagesTo";
|
|
2138
|
+
readonly type: "event";
|
|
2139
|
+
}, {
|
|
2140
|
+
readonly anonymous: false;
|
|
2141
|
+
readonly inputs: readonly [{
|
|
2142
|
+
readonly indexed: true;
|
|
2143
|
+
readonly internalType: "uint256";
|
|
2144
|
+
readonly name: "nonce";
|
|
2145
|
+
readonly type: "uint256";
|
|
2146
|
+
}, {
|
|
2147
|
+
readonly indexed: true;
|
|
2148
|
+
readonly internalType: "address";
|
|
2149
|
+
readonly name: "receiver";
|
|
2150
|
+
readonly type: "address";
|
|
2151
|
+
}, {
|
|
2152
|
+
readonly indexed: true;
|
|
2153
|
+
readonly internalType: "address";
|
|
2154
|
+
readonly name: "depositAsset";
|
|
2155
|
+
readonly type: "address";
|
|
2156
|
+
}, {
|
|
2157
|
+
readonly indexed: false;
|
|
2158
|
+
readonly internalType: "uint256";
|
|
2159
|
+
readonly name: "depositAmount";
|
|
2160
|
+
readonly type: "uint256";
|
|
2161
|
+
}, {
|
|
2162
|
+
readonly indexed: false;
|
|
2163
|
+
readonly internalType: "uint256";
|
|
2164
|
+
readonly name: "shareAmount";
|
|
2165
|
+
readonly type: "uint256";
|
|
2166
|
+
}, {
|
|
2167
|
+
readonly indexed: false;
|
|
2168
|
+
readonly internalType: "uint256";
|
|
2169
|
+
readonly name: "depositTimestamp";
|
|
2170
|
+
readonly type: "uint256";
|
|
2171
|
+
}, {
|
|
2172
|
+
readonly indexed: false;
|
|
2173
|
+
readonly internalType: "uint256";
|
|
2174
|
+
readonly name: "shareLockPeriodAtTimeOfDeposit";
|
|
2175
|
+
readonly type: "uint256";
|
|
2176
|
+
}];
|
|
2177
|
+
readonly name: "Deposit";
|
|
2178
|
+
readonly type: "event";
|
|
2179
|
+
}, {
|
|
2180
|
+
readonly anonymous: false;
|
|
2181
|
+
readonly inputs: readonly [{
|
|
2182
|
+
readonly indexed: true;
|
|
2183
|
+
readonly internalType: "uint256";
|
|
2184
|
+
readonly name: "nonce";
|
|
2185
|
+
readonly type: "uint256";
|
|
2186
|
+
}, {
|
|
2187
|
+
readonly indexed: false;
|
|
2188
|
+
readonly internalType: "bytes32";
|
|
2189
|
+
readonly name: "depositHash";
|
|
2190
|
+
readonly type: "bytes32";
|
|
2191
|
+
}, {
|
|
2192
|
+
readonly indexed: true;
|
|
2193
|
+
readonly internalType: "address";
|
|
2194
|
+
readonly name: "user";
|
|
2195
|
+
readonly type: "address";
|
|
2196
|
+
}];
|
|
2197
|
+
readonly name: "DepositRefunded";
|
|
2198
|
+
readonly type: "event";
|
|
2199
|
+
}, {
|
|
2200
|
+
readonly anonymous: false;
|
|
2201
|
+
readonly inputs: readonly [{
|
|
2202
|
+
readonly indexed: false;
|
|
2203
|
+
readonly internalType: "bytes32";
|
|
2204
|
+
readonly name: "messageId";
|
|
2205
|
+
readonly type: "bytes32";
|
|
2206
|
+
}, {
|
|
2207
|
+
readonly indexed: false;
|
|
2208
|
+
readonly internalType: "uint256";
|
|
2209
|
+
readonly name: "shareAmount";
|
|
2210
|
+
readonly type: "uint256";
|
|
2211
|
+
}, {
|
|
2212
|
+
readonly indexed: false;
|
|
2213
|
+
readonly internalType: "address";
|
|
2214
|
+
readonly name: "to";
|
|
2215
|
+
readonly type: "address";
|
|
2216
|
+
}];
|
|
2217
|
+
readonly name: "MessageReceived";
|
|
2218
|
+
readonly type: "event";
|
|
2219
|
+
}, {
|
|
2220
|
+
readonly anonymous: false;
|
|
2221
|
+
readonly inputs: readonly [{
|
|
2222
|
+
readonly indexed: false;
|
|
2223
|
+
readonly internalType: "bytes32";
|
|
2224
|
+
readonly name: "messageId";
|
|
2225
|
+
readonly type: "bytes32";
|
|
2226
|
+
}, {
|
|
2227
|
+
readonly indexed: false;
|
|
2228
|
+
readonly internalType: "uint256";
|
|
2229
|
+
readonly name: "shareAmount";
|
|
2230
|
+
readonly type: "uint256";
|
|
2231
|
+
}, {
|
|
2232
|
+
readonly indexed: false;
|
|
2233
|
+
readonly internalType: "address";
|
|
2234
|
+
readonly name: "to";
|
|
2235
|
+
readonly type: "address";
|
|
2236
|
+
}];
|
|
2237
|
+
readonly name: "MessageSent";
|
|
2238
|
+
readonly type: "event";
|
|
2239
|
+
}, {
|
|
2240
|
+
readonly anonymous: false;
|
|
2241
|
+
readonly inputs: readonly [{
|
|
2242
|
+
readonly indexed: true;
|
|
2243
|
+
readonly internalType: "address";
|
|
2244
|
+
readonly name: "user";
|
|
2245
|
+
readonly type: "address";
|
|
2246
|
+
}, {
|
|
2247
|
+
readonly indexed: true;
|
|
2248
|
+
readonly internalType: "address";
|
|
2249
|
+
readonly name: "newOwner";
|
|
2250
|
+
readonly type: "address";
|
|
2251
|
+
}];
|
|
2252
|
+
readonly name: "OwnershipTransferred";
|
|
2253
|
+
readonly type: "event";
|
|
2254
|
+
}, {
|
|
2255
|
+
readonly anonymous: false;
|
|
2256
|
+
readonly inputs: readonly [];
|
|
2257
|
+
readonly name: "Paused";
|
|
2258
|
+
readonly type: "event";
|
|
2259
|
+
}, {
|
|
2260
|
+
readonly anonymous: false;
|
|
2261
|
+
readonly inputs: readonly [{
|
|
2262
|
+
readonly indexed: false;
|
|
2263
|
+
readonly internalType: "uint32";
|
|
2264
|
+
readonly name: "eid";
|
|
2265
|
+
readonly type: "uint32";
|
|
2266
|
+
}, {
|
|
2267
|
+
readonly indexed: false;
|
|
2268
|
+
readonly internalType: "bytes32";
|
|
2269
|
+
readonly name: "peer";
|
|
2270
|
+
readonly type: "bytes32";
|
|
2271
|
+
}];
|
|
2272
|
+
readonly name: "PeerSet";
|
|
2273
|
+
readonly type: "event";
|
|
2274
|
+
}, {
|
|
2275
|
+
readonly anonymous: false;
|
|
2276
|
+
readonly inputs: readonly [];
|
|
2277
|
+
readonly name: "Unpaused";
|
|
2278
|
+
readonly type: "event";
|
|
2279
|
+
}, {
|
|
2280
|
+
readonly inputs: readonly [];
|
|
2281
|
+
readonly name: "accountant";
|
|
2282
|
+
readonly outputs: readonly [{
|
|
2283
|
+
readonly internalType: "contract AccountantWithRateProviders";
|
|
2284
|
+
readonly name: "";
|
|
2285
|
+
readonly type: "address";
|
|
2286
|
+
}];
|
|
2287
|
+
readonly stateMutability: "view";
|
|
2288
|
+
readonly type: "function";
|
|
2289
|
+
}, {
|
|
2290
|
+
readonly inputs: readonly [{
|
|
2291
|
+
readonly internalType: "contract ERC20";
|
|
2292
|
+
readonly name: "asset";
|
|
2295
2293
|
readonly type: "address";
|
|
2296
|
-
|
|
2294
|
+
}];
|
|
2295
|
+
readonly name: "addAsset";
|
|
2296
|
+
readonly outputs: readonly [];
|
|
2297
|
+
readonly stateMutability: "nonpayable";
|
|
2298
|
+
readonly type: "function";
|
|
2299
|
+
}, {
|
|
2300
|
+
readonly inputs: readonly [{
|
|
2301
|
+
readonly internalType: "uint32";
|
|
2302
|
+
readonly name: "chainSelector";
|
|
2303
|
+
readonly type: "uint32";
|
|
2297
2304
|
}, {
|
|
2298
|
-
readonly
|
|
2299
|
-
readonly
|
|
2300
|
-
readonly
|
|
2305
|
+
readonly internalType: "bool";
|
|
2306
|
+
readonly name: "allowMessagesFrom";
|
|
2307
|
+
readonly type: "bool";
|
|
2301
2308
|
}, {
|
|
2302
|
-
readonly
|
|
2303
|
-
readonly
|
|
2304
|
-
readonly
|
|
2309
|
+
readonly internalType: "bool";
|
|
2310
|
+
readonly name: "allowMessagesTo";
|
|
2311
|
+
readonly type: "bool";
|
|
2305
2312
|
}, {
|
|
2306
|
-
readonly
|
|
2307
|
-
readonly
|
|
2308
|
-
readonly
|
|
2313
|
+
readonly internalType: "address";
|
|
2314
|
+
readonly name: "targetTeller";
|
|
2315
|
+
readonly type: "address";
|
|
2316
|
+
}, {
|
|
2317
|
+
readonly internalType: "uint64";
|
|
2318
|
+
readonly name: "messageGasLimit";
|
|
2319
|
+
readonly type: "uint64";
|
|
2320
|
+
}, {
|
|
2321
|
+
readonly internalType: "uint64";
|
|
2322
|
+
readonly name: "messageGasMin";
|
|
2323
|
+
readonly type: "uint64";
|
|
2309
2324
|
}];
|
|
2325
|
+
readonly name: "addChain";
|
|
2326
|
+
readonly outputs: readonly [];
|
|
2310
2327
|
readonly stateMutability: "nonpayable";
|
|
2311
|
-
}, {
|
|
2312
|
-
readonly type: "receive";
|
|
2313
|
-
readonly stateMutability: "payable";
|
|
2314
|
-
}, {
|
|
2315
2328
|
readonly type: "function";
|
|
2316
|
-
|
|
2317
|
-
readonly inputs: readonly [
|
|
2329
|
+
}, {
|
|
2330
|
+
readonly inputs: readonly [{
|
|
2331
|
+
readonly components: readonly [{
|
|
2332
|
+
readonly internalType: "uint32";
|
|
2333
|
+
readonly name: "srcEid";
|
|
2334
|
+
readonly type: "uint32";
|
|
2335
|
+
}, {
|
|
2336
|
+
readonly internalType: "bytes32";
|
|
2337
|
+
readonly name: "sender";
|
|
2338
|
+
readonly type: "bytes32";
|
|
2339
|
+
}, {
|
|
2340
|
+
readonly internalType: "uint64";
|
|
2341
|
+
readonly name: "nonce";
|
|
2342
|
+
readonly type: "uint64";
|
|
2343
|
+
}];
|
|
2344
|
+
readonly internalType: "struct Origin";
|
|
2345
|
+
readonly name: "origin";
|
|
2346
|
+
readonly type: "tuple";
|
|
2347
|
+
}];
|
|
2348
|
+
readonly name: "allowInitializePath";
|
|
2318
2349
|
readonly outputs: readonly [{
|
|
2350
|
+
readonly internalType: "bool";
|
|
2319
2351
|
readonly name: "";
|
|
2320
|
-
readonly type: "
|
|
2321
|
-
readonly internalType: "bytes32";
|
|
2352
|
+
readonly type: "bool";
|
|
2322
2353
|
}];
|
|
2323
2354
|
readonly stateMutability: "view";
|
|
2324
|
-
}, {
|
|
2325
2355
|
readonly type: "function";
|
|
2326
|
-
|
|
2356
|
+
}, {
|
|
2327
2357
|
readonly inputs: readonly [{
|
|
2328
|
-
readonly
|
|
2358
|
+
readonly internalType: "uint32";
|
|
2359
|
+
readonly name: "chainSelector";
|
|
2360
|
+
readonly type: "uint32";
|
|
2361
|
+
}, {
|
|
2362
|
+
readonly internalType: "address";
|
|
2363
|
+
readonly name: "targetTeller";
|
|
2329
2364
|
readonly type: "address";
|
|
2365
|
+
}];
|
|
2366
|
+
readonly name: "allowMessagesFromChain";
|
|
2367
|
+
readonly outputs: readonly [];
|
|
2368
|
+
readonly stateMutability: "nonpayable";
|
|
2369
|
+
readonly type: "function";
|
|
2370
|
+
}, {
|
|
2371
|
+
readonly inputs: readonly [{
|
|
2372
|
+
readonly internalType: "uint32";
|
|
2373
|
+
readonly name: "chainSelector";
|
|
2374
|
+
readonly type: "uint32";
|
|
2375
|
+
}, {
|
|
2330
2376
|
readonly internalType: "address";
|
|
2377
|
+
readonly name: "targetTeller";
|
|
2378
|
+
readonly type: "address";
|
|
2331
2379
|
}, {
|
|
2380
|
+
readonly internalType: "uint64";
|
|
2381
|
+
readonly name: "messageGasLimit";
|
|
2382
|
+
readonly type: "uint64";
|
|
2383
|
+
}];
|
|
2384
|
+
readonly name: "allowMessagesToChain";
|
|
2385
|
+
readonly outputs: readonly [];
|
|
2386
|
+
readonly stateMutability: "nonpayable";
|
|
2387
|
+
readonly type: "function";
|
|
2388
|
+
}, {
|
|
2389
|
+
readonly inputs: readonly [];
|
|
2390
|
+
readonly name: "authority";
|
|
2391
|
+
readonly outputs: readonly [{
|
|
2392
|
+
readonly internalType: "contract Authority";
|
|
2332
2393
|
readonly name: "";
|
|
2333
2394
|
readonly type: "address";
|
|
2395
|
+
}];
|
|
2396
|
+
readonly stateMutability: "view";
|
|
2397
|
+
readonly type: "function";
|
|
2398
|
+
}, {
|
|
2399
|
+
readonly inputs: readonly [{
|
|
2334
2400
|
readonly internalType: "address";
|
|
2401
|
+
readonly name: "from";
|
|
2402
|
+
readonly type: "address";
|
|
2403
|
+
}];
|
|
2404
|
+
readonly name: "beforeTransfer";
|
|
2405
|
+
readonly outputs: readonly [];
|
|
2406
|
+
readonly stateMutability: "view";
|
|
2407
|
+
readonly type: "function";
|
|
2408
|
+
}, {
|
|
2409
|
+
readonly inputs: readonly [{
|
|
2410
|
+
readonly internalType: "uint256";
|
|
2411
|
+
readonly name: "shareAmount";
|
|
2412
|
+
readonly type: "uint256";
|
|
2413
|
+
}, {
|
|
2414
|
+
readonly components: readonly [{
|
|
2415
|
+
readonly internalType: "uint32";
|
|
2416
|
+
readonly name: "chainSelector";
|
|
2417
|
+
readonly type: "uint32";
|
|
2418
|
+
}, {
|
|
2419
|
+
readonly internalType: "address";
|
|
2420
|
+
readonly name: "destinationChainReceiver";
|
|
2421
|
+
readonly type: "address";
|
|
2422
|
+
}, {
|
|
2423
|
+
readonly internalType: "contract ERC20";
|
|
2424
|
+
readonly name: "bridgeFeeToken";
|
|
2425
|
+
readonly type: "address";
|
|
2426
|
+
}, {
|
|
2427
|
+
readonly internalType: "uint64";
|
|
2428
|
+
readonly name: "messageGas";
|
|
2429
|
+
readonly type: "uint64";
|
|
2430
|
+
}, {
|
|
2431
|
+
readonly internalType: "bytes";
|
|
2432
|
+
readonly name: "data";
|
|
2433
|
+
readonly type: "bytes";
|
|
2434
|
+
}];
|
|
2435
|
+
readonly internalType: "struct BridgeData";
|
|
2436
|
+
readonly name: "data";
|
|
2437
|
+
readonly type: "tuple";
|
|
2335
2438
|
}];
|
|
2439
|
+
readonly name: "bridge";
|
|
2336
2440
|
readonly outputs: readonly [{
|
|
2337
|
-
readonly
|
|
2441
|
+
readonly internalType: "bytes32";
|
|
2442
|
+
readonly name: "messageId";
|
|
2443
|
+
readonly type: "bytes32";
|
|
2444
|
+
}];
|
|
2445
|
+
readonly stateMutability: "payable";
|
|
2446
|
+
readonly type: "function";
|
|
2447
|
+
}, {
|
|
2448
|
+
readonly inputs: readonly [{
|
|
2449
|
+
readonly internalType: "contract ERC20";
|
|
2450
|
+
readonly name: "depositAsset";
|
|
2451
|
+
readonly type: "address";
|
|
2452
|
+
}, {
|
|
2453
|
+
readonly internalType: "uint256";
|
|
2454
|
+
readonly name: "depositAmount";
|
|
2338
2455
|
readonly type: "uint256";
|
|
2456
|
+
}, {
|
|
2339
2457
|
readonly internalType: "uint256";
|
|
2458
|
+
readonly name: "minimumMint";
|
|
2459
|
+
readonly type: "uint256";
|
|
2460
|
+
}, {
|
|
2461
|
+
readonly internalType: "address";
|
|
2462
|
+
readonly name: "to";
|
|
2463
|
+
readonly type: "address";
|
|
2340
2464
|
}];
|
|
2341
|
-
readonly
|
|
2342
|
-
|
|
2465
|
+
readonly name: "bulkDeposit";
|
|
2466
|
+
readonly outputs: readonly [{
|
|
2467
|
+
readonly internalType: "uint256";
|
|
2468
|
+
readonly name: "shares";
|
|
2469
|
+
readonly type: "uint256";
|
|
2470
|
+
}];
|
|
2471
|
+
readonly stateMutability: "nonpayable";
|
|
2343
2472
|
readonly type: "function";
|
|
2344
|
-
|
|
2473
|
+
}, {
|
|
2345
2474
|
readonly inputs: readonly [{
|
|
2346
|
-
readonly
|
|
2475
|
+
readonly internalType: "contract ERC20";
|
|
2476
|
+
readonly name: "withdrawAsset";
|
|
2347
2477
|
readonly type: "address";
|
|
2348
|
-
readonly internalType: "address";
|
|
2349
2478
|
}, {
|
|
2350
|
-
readonly
|
|
2479
|
+
readonly internalType: "uint256";
|
|
2480
|
+
readonly name: "shareAmount";
|
|
2351
2481
|
readonly type: "uint256";
|
|
2482
|
+
}, {
|
|
2352
2483
|
readonly internalType: "uint256";
|
|
2484
|
+
readonly name: "minimumAssets";
|
|
2485
|
+
readonly type: "uint256";
|
|
2486
|
+
}, {
|
|
2487
|
+
readonly internalType: "address";
|
|
2488
|
+
readonly name: "to";
|
|
2489
|
+
readonly type: "address";
|
|
2353
2490
|
}];
|
|
2491
|
+
readonly name: "bulkWithdraw";
|
|
2354
2492
|
readonly outputs: readonly [{
|
|
2355
|
-
readonly
|
|
2356
|
-
readonly
|
|
2357
|
-
readonly
|
|
2493
|
+
readonly internalType: "uint256";
|
|
2494
|
+
readonly name: "assetsOut";
|
|
2495
|
+
readonly type: "uint256";
|
|
2358
2496
|
}];
|
|
2359
2497
|
readonly stateMutability: "nonpayable";
|
|
2360
|
-
}, {
|
|
2361
2498
|
readonly type: "function";
|
|
2362
|
-
|
|
2363
|
-
readonly inputs: readonly [
|
|
2499
|
+
}, {
|
|
2500
|
+
readonly inputs: readonly [{
|
|
2501
|
+
readonly internalType: "contract ERC20";
|
|
2502
|
+
readonly name: "depositAsset";
|
|
2503
|
+
readonly type: "address";
|
|
2504
|
+
}, {
|
|
2505
|
+
readonly internalType: "uint256";
|
|
2506
|
+
readonly name: "depositAmount";
|
|
2507
|
+
readonly type: "uint256";
|
|
2508
|
+
}, {
|
|
2509
|
+
readonly internalType: "uint256";
|
|
2510
|
+
readonly name: "minimumMint";
|
|
2511
|
+
readonly type: "uint256";
|
|
2512
|
+
}];
|
|
2513
|
+
readonly name: "deposit";
|
|
2364
2514
|
readonly outputs: readonly [{
|
|
2365
|
-
readonly
|
|
2515
|
+
readonly internalType: "uint256";
|
|
2516
|
+
readonly name: "shares";
|
|
2517
|
+
readonly type: "uint256";
|
|
2518
|
+
}];
|
|
2519
|
+
readonly stateMutability: "nonpayable";
|
|
2520
|
+
readonly type: "function";
|
|
2521
|
+
}, {
|
|
2522
|
+
readonly inputs: readonly [{
|
|
2523
|
+
readonly internalType: "contract ERC20";
|
|
2524
|
+
readonly name: "depositAsset";
|
|
2366
2525
|
readonly type: "address";
|
|
2367
|
-
|
|
2526
|
+
}, {
|
|
2527
|
+
readonly internalType: "uint256";
|
|
2528
|
+
readonly name: "depositAmount";
|
|
2529
|
+
readonly type: "uint256";
|
|
2530
|
+
}, {
|
|
2531
|
+
readonly internalType: "uint256";
|
|
2532
|
+
readonly name: "minimumMint";
|
|
2533
|
+
readonly type: "uint256";
|
|
2534
|
+
}, {
|
|
2535
|
+
readonly components: readonly [{
|
|
2536
|
+
readonly internalType: "uint32";
|
|
2537
|
+
readonly name: "chainSelector";
|
|
2538
|
+
readonly type: "uint32";
|
|
2539
|
+
}, {
|
|
2540
|
+
readonly internalType: "address";
|
|
2541
|
+
readonly name: "destinationChainReceiver";
|
|
2542
|
+
readonly type: "address";
|
|
2543
|
+
}, {
|
|
2544
|
+
readonly internalType: "contract ERC20";
|
|
2545
|
+
readonly name: "bridgeFeeToken";
|
|
2546
|
+
readonly type: "address";
|
|
2547
|
+
}, {
|
|
2548
|
+
readonly internalType: "uint64";
|
|
2549
|
+
readonly name: "messageGas";
|
|
2550
|
+
readonly type: "uint64";
|
|
2551
|
+
}, {
|
|
2552
|
+
readonly internalType: "bytes";
|
|
2553
|
+
readonly name: "data";
|
|
2554
|
+
readonly type: "bytes";
|
|
2555
|
+
}];
|
|
2556
|
+
readonly internalType: "struct BridgeData";
|
|
2557
|
+
readonly name: "data";
|
|
2558
|
+
readonly type: "tuple";
|
|
2368
2559
|
}];
|
|
2369
|
-
readonly
|
|
2370
|
-
|
|
2560
|
+
readonly name: "depositAndBridge";
|
|
2561
|
+
readonly outputs: readonly [];
|
|
2562
|
+
readonly stateMutability: "payable";
|
|
2371
2563
|
readonly type: "function";
|
|
2372
|
-
readonly name: "balanceOf";
|
|
2373
|
-
readonly inputs: readonly [{
|
|
2374
|
-
readonly name: "";
|
|
2375
|
-
readonly type: "address";
|
|
2376
|
-
readonly internalType: "address";
|
|
2377
|
-
}];
|
|
2378
|
-
readonly outputs: readonly [{
|
|
2379
|
-
readonly name: "";
|
|
2380
|
-
readonly type: "uint256";
|
|
2381
|
-
readonly internalType: "uint256";
|
|
2382
|
-
}];
|
|
2383
|
-
readonly stateMutability: "view";
|
|
2384
2564
|
}, {
|
|
2385
|
-
readonly type: "function";
|
|
2386
|
-
readonly name: "decimals";
|
|
2387
2565
|
readonly inputs: readonly [];
|
|
2566
|
+
readonly name: "depositNonce";
|
|
2388
2567
|
readonly outputs: readonly [{
|
|
2568
|
+
readonly internalType: "uint96";
|
|
2389
2569
|
readonly name: "";
|
|
2390
|
-
readonly type: "
|
|
2391
|
-
readonly internalType: "uint8";
|
|
2570
|
+
readonly type: "uint96";
|
|
2392
2571
|
}];
|
|
2393
2572
|
readonly stateMutability: "view";
|
|
2394
|
-
}, {
|
|
2395
2573
|
readonly type: "function";
|
|
2396
|
-
|
|
2574
|
+
}, {
|
|
2397
2575
|
readonly inputs: readonly [{
|
|
2398
|
-
readonly name: "from";
|
|
2399
|
-
readonly type: "address";
|
|
2400
|
-
readonly internalType: "address";
|
|
2401
|
-
}, {
|
|
2402
|
-
readonly name: "asset";
|
|
2403
|
-
readonly type: "address";
|
|
2404
2576
|
readonly internalType: "contract ERC20";
|
|
2405
|
-
|
|
2406
|
-
readonly name: "assetAmount";
|
|
2407
|
-
readonly type: "uint256";
|
|
2408
|
-
readonly internalType: "uint256";
|
|
2409
|
-
}, {
|
|
2410
|
-
readonly name: "to";
|
|
2577
|
+
readonly name: "depositAsset";
|
|
2411
2578
|
readonly type: "address";
|
|
2412
|
-
readonly internalType: "address";
|
|
2413
2579
|
}, {
|
|
2414
|
-
readonly name: "shareAmount";
|
|
2415
|
-
readonly type: "uint256";
|
|
2416
2580
|
readonly internalType: "uint256";
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
readonly stateMutability: "nonpayable";
|
|
2420
|
-
}, {
|
|
2421
|
-
readonly type: "function";
|
|
2422
|
-
readonly name: "exit";
|
|
2423
|
-
readonly inputs: readonly [{
|
|
2424
|
-
readonly name: "to";
|
|
2425
|
-
readonly type: "address";
|
|
2426
|
-
readonly internalType: "address";
|
|
2427
|
-
}, {
|
|
2428
|
-
readonly name: "asset";
|
|
2429
|
-
readonly type: "address";
|
|
2430
|
-
readonly internalType: "contract ERC20";
|
|
2581
|
+
readonly name: "depositAmount";
|
|
2582
|
+
readonly type: "uint256";
|
|
2431
2583
|
}, {
|
|
2432
|
-
readonly
|
|
2584
|
+
readonly internalType: "uint256";
|
|
2585
|
+
readonly name: "minimumMint";
|
|
2433
2586
|
readonly type: "uint256";
|
|
2587
|
+
}, {
|
|
2434
2588
|
readonly internalType: "uint256";
|
|
2589
|
+
readonly name: "deadline";
|
|
2590
|
+
readonly type: "uint256";
|
|
2435
2591
|
}, {
|
|
2436
|
-
readonly
|
|
2437
|
-
readonly
|
|
2438
|
-
readonly
|
|
2592
|
+
readonly internalType: "uint8";
|
|
2593
|
+
readonly name: "v";
|
|
2594
|
+
readonly type: "uint8";
|
|
2439
2595
|
}, {
|
|
2440
|
-
readonly
|
|
2441
|
-
readonly
|
|
2596
|
+
readonly internalType: "bytes32";
|
|
2597
|
+
readonly name: "r";
|
|
2598
|
+
readonly type: "bytes32";
|
|
2599
|
+
}, {
|
|
2600
|
+
readonly internalType: "bytes32";
|
|
2601
|
+
readonly name: "s";
|
|
2602
|
+
readonly type: "bytes32";
|
|
2603
|
+
}];
|
|
2604
|
+
readonly name: "depositWithPermit";
|
|
2605
|
+
readonly outputs: readonly [{
|
|
2442
2606
|
readonly internalType: "uint256";
|
|
2607
|
+
readonly name: "shares";
|
|
2608
|
+
readonly type: "uint256";
|
|
2443
2609
|
}];
|
|
2444
|
-
readonly outputs: readonly [];
|
|
2445
2610
|
readonly stateMutability: "nonpayable";
|
|
2446
|
-
}, {
|
|
2447
2611
|
readonly type: "function";
|
|
2448
|
-
|
|
2612
|
+
}, {
|
|
2449
2613
|
readonly inputs: readonly [];
|
|
2614
|
+
readonly name: "endpoint";
|
|
2450
2615
|
readonly outputs: readonly [{
|
|
2616
|
+
readonly internalType: "contract ILayerZeroEndpointV2";
|
|
2451
2617
|
readonly name: "";
|
|
2452
2618
|
readonly type: "address";
|
|
2453
|
-
readonly internalType: "contract BeforeTransferHook";
|
|
2454
2619
|
}];
|
|
2455
2620
|
readonly stateMutability: "view";
|
|
2456
|
-
}, {
|
|
2457
2621
|
readonly type: "function";
|
|
2458
|
-
readonly name: "manage";
|
|
2459
|
-
readonly inputs: readonly [{
|
|
2460
|
-
readonly name: "targets";
|
|
2461
|
-
readonly type: "address[]";
|
|
2462
|
-
readonly internalType: "address[]";
|
|
2463
|
-
}, {
|
|
2464
|
-
readonly name: "data";
|
|
2465
|
-
readonly type: "bytes[]";
|
|
2466
|
-
readonly internalType: "bytes[]";
|
|
2467
|
-
}, {
|
|
2468
|
-
readonly name: "values";
|
|
2469
|
-
readonly type: "uint256[]";
|
|
2470
|
-
readonly internalType: "uint256[]";
|
|
2471
|
-
}];
|
|
2472
|
-
readonly outputs: readonly [{
|
|
2473
|
-
readonly name: "results";
|
|
2474
|
-
readonly type: "bytes[]";
|
|
2475
|
-
readonly internalType: "bytes[]";
|
|
2476
|
-
}];
|
|
2477
|
-
readonly stateMutability: "nonpayable";
|
|
2478
2622
|
}, {
|
|
2479
|
-
readonly type: "function";
|
|
2480
|
-
readonly name: "manage";
|
|
2481
2623
|
readonly inputs: readonly [{
|
|
2482
|
-
readonly
|
|
2483
|
-
|
|
2484
|
-
|
|
2624
|
+
readonly components: readonly [{
|
|
2625
|
+
readonly internalType: "uint32";
|
|
2626
|
+
readonly name: "srcEid";
|
|
2627
|
+
readonly type: "uint32";
|
|
2628
|
+
}, {
|
|
2629
|
+
readonly internalType: "bytes32";
|
|
2630
|
+
readonly name: "sender";
|
|
2631
|
+
readonly type: "bytes32";
|
|
2632
|
+
}, {
|
|
2633
|
+
readonly internalType: "uint64";
|
|
2634
|
+
readonly name: "nonce";
|
|
2635
|
+
readonly type: "uint64";
|
|
2636
|
+
}];
|
|
2637
|
+
readonly internalType: "struct Origin";
|
|
2638
|
+
readonly name: "";
|
|
2639
|
+
readonly type: "tuple";
|
|
2485
2640
|
}, {
|
|
2486
|
-
readonly name: "data";
|
|
2487
|
-
readonly type: "bytes";
|
|
2488
2641
|
readonly internalType: "bytes";
|
|
2642
|
+
readonly name: "";
|
|
2643
|
+
readonly type: "bytes";
|
|
2489
2644
|
}, {
|
|
2490
|
-
readonly
|
|
2491
|
-
readonly
|
|
2492
|
-
readonly
|
|
2645
|
+
readonly internalType: "address";
|
|
2646
|
+
readonly name: "_sender";
|
|
2647
|
+
readonly type: "address";
|
|
2493
2648
|
}];
|
|
2649
|
+
readonly name: "isComposeMsgSender";
|
|
2494
2650
|
readonly outputs: readonly [{
|
|
2495
|
-
readonly
|
|
2496
|
-
readonly
|
|
2497
|
-
readonly
|
|
2651
|
+
readonly internalType: "bool";
|
|
2652
|
+
readonly name: "";
|
|
2653
|
+
readonly type: "bool";
|
|
2498
2654
|
}];
|
|
2499
|
-
readonly stateMutability: "
|
|
2500
|
-
}, {
|
|
2655
|
+
readonly stateMutability: "view";
|
|
2501
2656
|
readonly type: "function";
|
|
2502
|
-
|
|
2657
|
+
}, {
|
|
2503
2658
|
readonly inputs: readonly [];
|
|
2659
|
+
readonly name: "isPaused";
|
|
2504
2660
|
readonly outputs: readonly [{
|
|
2661
|
+
readonly internalType: "bool";
|
|
2505
2662
|
readonly name: "";
|
|
2506
|
-
readonly type: "
|
|
2507
|
-
readonly internalType: "string";
|
|
2663
|
+
readonly type: "bool";
|
|
2508
2664
|
}];
|
|
2509
2665
|
readonly stateMutability: "view";
|
|
2510
|
-
}, {
|
|
2511
2666
|
readonly type: "function";
|
|
2512
|
-
|
|
2667
|
+
}, {
|
|
2513
2668
|
readonly inputs: readonly [{
|
|
2669
|
+
readonly internalType: "contract ERC20";
|
|
2514
2670
|
readonly name: "";
|
|
2515
2671
|
readonly type: "address";
|
|
2516
|
-
readonly internalType: "address";
|
|
2517
2672
|
}];
|
|
2673
|
+
readonly name: "isSupported";
|
|
2518
2674
|
readonly outputs: readonly [{
|
|
2675
|
+
readonly internalType: "bool";
|
|
2519
2676
|
readonly name: "";
|
|
2520
|
-
readonly type: "
|
|
2521
|
-
readonly internalType: "uint256";
|
|
2677
|
+
readonly type: "bool";
|
|
2522
2678
|
}];
|
|
2523
2679
|
readonly stateMutability: "view";
|
|
2524
|
-
}, {
|
|
2525
2680
|
readonly type: "function";
|
|
2526
|
-
|
|
2681
|
+
}, {
|
|
2527
2682
|
readonly inputs: readonly [{
|
|
2528
|
-
readonly
|
|
2529
|
-
|
|
2530
|
-
|
|
2683
|
+
readonly components: readonly [{
|
|
2684
|
+
readonly internalType: "uint32";
|
|
2685
|
+
readonly name: "srcEid";
|
|
2686
|
+
readonly type: "uint32";
|
|
2687
|
+
}, {
|
|
2688
|
+
readonly internalType: "bytes32";
|
|
2689
|
+
readonly name: "sender";
|
|
2690
|
+
readonly type: "bytes32";
|
|
2691
|
+
}, {
|
|
2692
|
+
readonly internalType: "uint64";
|
|
2693
|
+
readonly name: "nonce";
|
|
2694
|
+
readonly type: "uint64";
|
|
2695
|
+
}];
|
|
2696
|
+
readonly internalType: "struct Origin";
|
|
2697
|
+
readonly name: "_origin";
|
|
2698
|
+
readonly type: "tuple";
|
|
2699
|
+
}, {
|
|
2700
|
+
readonly internalType: "bytes32";
|
|
2701
|
+
readonly name: "_guid";
|
|
2702
|
+
readonly type: "bytes32";
|
|
2703
|
+
}, {
|
|
2704
|
+
readonly internalType: "bytes";
|
|
2705
|
+
readonly name: "_message";
|
|
2706
|
+
readonly type: "bytes";
|
|
2531
2707
|
}, {
|
|
2532
|
-
readonly name: "";
|
|
2533
|
-
readonly type: "address";
|
|
2534
2708
|
readonly internalType: "address";
|
|
2709
|
+
readonly name: "_executor";
|
|
2710
|
+
readonly type: "address";
|
|
2535
2711
|
}, {
|
|
2712
|
+
readonly internalType: "bytes";
|
|
2713
|
+
readonly name: "_extraData";
|
|
2714
|
+
readonly type: "bytes";
|
|
2715
|
+
}];
|
|
2716
|
+
readonly name: "lzReceive";
|
|
2717
|
+
readonly outputs: readonly [];
|
|
2718
|
+
readonly stateMutability: "payable";
|
|
2719
|
+
readonly type: "function";
|
|
2720
|
+
}, {
|
|
2721
|
+
readonly inputs: readonly [{
|
|
2722
|
+
readonly internalType: "uint32";
|
|
2536
2723
|
readonly name: "";
|
|
2537
|
-
readonly type: "
|
|
2538
|
-
readonly internalType: "uint256[]";
|
|
2724
|
+
readonly type: "uint32";
|
|
2539
2725
|
}, {
|
|
2726
|
+
readonly internalType: "bytes32";
|
|
2540
2727
|
readonly name: "";
|
|
2541
|
-
readonly type: "
|
|
2542
|
-
|
|
2728
|
+
readonly type: "bytes32";
|
|
2729
|
+
}];
|
|
2730
|
+
readonly name: "nextNonce";
|
|
2731
|
+
readonly outputs: readonly [{
|
|
2732
|
+
readonly internalType: "uint64";
|
|
2733
|
+
readonly name: "nonce";
|
|
2734
|
+
readonly type: "uint64";
|
|
2735
|
+
}];
|
|
2736
|
+
readonly stateMutability: "view";
|
|
2737
|
+
readonly type: "function";
|
|
2738
|
+
}, {
|
|
2739
|
+
readonly inputs: readonly [];
|
|
2740
|
+
readonly name: "oAppVersion";
|
|
2741
|
+
readonly outputs: readonly [{
|
|
2742
|
+
readonly internalType: "uint64";
|
|
2743
|
+
readonly name: "senderVersion";
|
|
2744
|
+
readonly type: "uint64";
|
|
2543
2745
|
}, {
|
|
2544
|
-
readonly
|
|
2545
|
-
readonly
|
|
2546
|
-
readonly
|
|
2746
|
+
readonly internalType: "uint64";
|
|
2747
|
+
readonly name: "receiverVersion";
|
|
2748
|
+
readonly type: "uint64";
|
|
2547
2749
|
}];
|
|
2750
|
+
readonly stateMutability: "pure";
|
|
2751
|
+
readonly type: "function";
|
|
2752
|
+
}, {
|
|
2753
|
+
readonly inputs: readonly [];
|
|
2754
|
+
readonly name: "owner";
|
|
2548
2755
|
readonly outputs: readonly [{
|
|
2756
|
+
readonly internalType: "address";
|
|
2549
2757
|
readonly name: "";
|
|
2550
|
-
readonly type: "
|
|
2551
|
-
readonly internalType: "bytes4";
|
|
2758
|
+
readonly type: "address";
|
|
2552
2759
|
}];
|
|
2760
|
+
readonly stateMutability: "view";
|
|
2761
|
+
readonly type: "function";
|
|
2762
|
+
}, {
|
|
2763
|
+
readonly inputs: readonly [];
|
|
2764
|
+
readonly name: "pause";
|
|
2765
|
+
readonly outputs: readonly [];
|
|
2553
2766
|
readonly stateMutability: "nonpayable";
|
|
2767
|
+
readonly type: "function";
|
|
2554
2768
|
}, {
|
|
2769
|
+
readonly inputs: readonly [{
|
|
2770
|
+
readonly internalType: "uint32";
|
|
2771
|
+
readonly name: "eid";
|
|
2772
|
+
readonly type: "uint32";
|
|
2773
|
+
}];
|
|
2774
|
+
readonly name: "peers";
|
|
2775
|
+
readonly outputs: readonly [{
|
|
2776
|
+
readonly internalType: "bytes32";
|
|
2777
|
+
readonly name: "peer";
|
|
2778
|
+
readonly type: "bytes32";
|
|
2779
|
+
}];
|
|
2780
|
+
readonly stateMutability: "view";
|
|
2555
2781
|
readonly type: "function";
|
|
2556
|
-
|
|
2782
|
+
}, {
|
|
2557
2783
|
readonly inputs: readonly [{
|
|
2558
|
-
readonly name: "";
|
|
2559
|
-
readonly type: "address";
|
|
2560
|
-
readonly internalType: "address";
|
|
2561
|
-
}, {
|
|
2562
|
-
readonly name: "";
|
|
2563
|
-
readonly type: "address";
|
|
2564
|
-
readonly internalType: "address";
|
|
2565
|
-
}, {
|
|
2566
|
-
readonly name: "";
|
|
2567
|
-
readonly type: "uint256";
|
|
2568
2784
|
readonly internalType: "uint256";
|
|
2569
|
-
|
|
2570
|
-
readonly name: "";
|
|
2785
|
+
readonly name: "shareAmount";
|
|
2571
2786
|
readonly type: "uint256";
|
|
2572
|
-
readonly internalType: "uint256";
|
|
2573
2787
|
}, {
|
|
2574
|
-
readonly
|
|
2575
|
-
|
|
2576
|
-
|
|
2788
|
+
readonly components: readonly [{
|
|
2789
|
+
readonly internalType: "uint32";
|
|
2790
|
+
readonly name: "chainSelector";
|
|
2791
|
+
readonly type: "uint32";
|
|
2792
|
+
}, {
|
|
2793
|
+
readonly internalType: "address";
|
|
2794
|
+
readonly name: "destinationChainReceiver";
|
|
2795
|
+
readonly type: "address";
|
|
2796
|
+
}, {
|
|
2797
|
+
readonly internalType: "contract ERC20";
|
|
2798
|
+
readonly name: "bridgeFeeToken";
|
|
2799
|
+
readonly type: "address";
|
|
2800
|
+
}, {
|
|
2801
|
+
readonly internalType: "uint64";
|
|
2802
|
+
readonly name: "messageGas";
|
|
2803
|
+
readonly type: "uint64";
|
|
2804
|
+
}, {
|
|
2805
|
+
readonly internalType: "bytes";
|
|
2806
|
+
readonly name: "data";
|
|
2807
|
+
readonly type: "bytes";
|
|
2808
|
+
}];
|
|
2809
|
+
readonly internalType: "struct BridgeData";
|
|
2810
|
+
readonly name: "data";
|
|
2811
|
+
readonly type: "tuple";
|
|
2577
2812
|
}];
|
|
2813
|
+
readonly name: "previewFee";
|
|
2578
2814
|
readonly outputs: readonly [{
|
|
2579
|
-
readonly
|
|
2580
|
-
readonly
|
|
2581
|
-
readonly
|
|
2815
|
+
readonly internalType: "uint256";
|
|
2816
|
+
readonly name: "fee";
|
|
2817
|
+
readonly type: "uint256";
|
|
2582
2818
|
}];
|
|
2583
|
-
readonly stateMutability: "
|
|
2584
|
-
}, {
|
|
2819
|
+
readonly stateMutability: "view";
|
|
2585
2820
|
readonly type: "function";
|
|
2586
|
-
|
|
2821
|
+
}, {
|
|
2587
2822
|
readonly inputs: readonly [{
|
|
2588
|
-
readonly name: "";
|
|
2589
|
-
readonly type: "address";
|
|
2590
|
-
readonly internalType: "address";
|
|
2591
|
-
}, {
|
|
2592
|
-
readonly name: "";
|
|
2593
|
-
readonly type: "address";
|
|
2594
|
-
readonly internalType: "address";
|
|
2595
|
-
}, {
|
|
2596
|
-
readonly name: "";
|
|
2597
|
-
readonly type: "uint256";
|
|
2598
2823
|
readonly internalType: "uint256";
|
|
2599
|
-
}, {
|
|
2600
|
-
readonly name: "";
|
|
2601
|
-
readonly type: "bytes";
|
|
2602
|
-
readonly internalType: "bytes";
|
|
2603
|
-
}];
|
|
2604
|
-
readonly outputs: readonly [{
|
|
2605
2824
|
readonly name: "";
|
|
2606
|
-
readonly type: "
|
|
2607
|
-
readonly internalType: "bytes4";
|
|
2825
|
+
readonly type: "uint256";
|
|
2608
2826
|
}];
|
|
2609
|
-
readonly
|
|
2610
|
-
}, {
|
|
2611
|
-
readonly type: "function";
|
|
2612
|
-
readonly name: "owner";
|
|
2613
|
-
readonly inputs: readonly [];
|
|
2827
|
+
readonly name: "publicDepositHistory";
|
|
2614
2828
|
readonly outputs: readonly [{
|
|
2829
|
+
readonly internalType: "bytes32";
|
|
2615
2830
|
readonly name: "";
|
|
2616
|
-
readonly type: "
|
|
2617
|
-
readonly internalType: "address";
|
|
2831
|
+
readonly type: "bytes32";
|
|
2618
2832
|
}];
|
|
2619
2833
|
readonly stateMutability: "view";
|
|
2620
|
-
}, {
|
|
2621
2834
|
readonly type: "function";
|
|
2622
|
-
|
|
2835
|
+
}, {
|
|
2623
2836
|
readonly inputs: readonly [{
|
|
2624
|
-
readonly
|
|
2625
|
-
readonly
|
|
2626
|
-
readonly
|
|
2837
|
+
readonly internalType: "uint256";
|
|
2838
|
+
readonly name: "nonce";
|
|
2839
|
+
readonly type: "uint256";
|
|
2627
2840
|
}, {
|
|
2628
|
-
readonly
|
|
2841
|
+
readonly internalType: "address";
|
|
2842
|
+
readonly name: "receiver";
|
|
2629
2843
|
readonly type: "address";
|
|
2844
|
+
}, {
|
|
2630
2845
|
readonly internalType: "address";
|
|
2846
|
+
readonly name: "depositAsset";
|
|
2847
|
+
readonly type: "address";
|
|
2631
2848
|
}, {
|
|
2632
|
-
readonly name: "value";
|
|
2633
|
-
readonly type: "uint256";
|
|
2634
2849
|
readonly internalType: "uint256";
|
|
2635
|
-
|
|
2636
|
-
readonly name: "deadline";
|
|
2850
|
+
readonly name: "depositAmount";
|
|
2637
2851
|
readonly type: "uint256";
|
|
2638
|
-
readonly internalType: "uint256";
|
|
2639
2852
|
}, {
|
|
2640
|
-
readonly
|
|
2641
|
-
readonly
|
|
2642
|
-
readonly
|
|
2853
|
+
readonly internalType: "uint256";
|
|
2854
|
+
readonly name: "shareAmount";
|
|
2855
|
+
readonly type: "uint256";
|
|
2643
2856
|
}, {
|
|
2644
|
-
readonly
|
|
2645
|
-
readonly
|
|
2646
|
-
readonly
|
|
2857
|
+
readonly internalType: "uint256";
|
|
2858
|
+
readonly name: "depositTimestamp";
|
|
2859
|
+
readonly type: "uint256";
|
|
2647
2860
|
}, {
|
|
2648
|
-
readonly
|
|
2649
|
-
readonly
|
|
2650
|
-
readonly
|
|
2861
|
+
readonly internalType: "uint256";
|
|
2862
|
+
readonly name: "shareLockUpPeriodAtTimeOfDeposit";
|
|
2863
|
+
readonly type: "uint256";
|
|
2651
2864
|
}];
|
|
2865
|
+
readonly name: "refundDeposit";
|
|
2652
2866
|
readonly outputs: readonly [];
|
|
2653
2867
|
readonly stateMutability: "nonpayable";
|
|
2654
|
-
}, {
|
|
2655
2868
|
readonly type: "function";
|
|
2656
|
-
|
|
2869
|
+
}, {
|
|
2657
2870
|
readonly inputs: readonly [{
|
|
2658
|
-
readonly
|
|
2871
|
+
readonly internalType: "contract ERC20";
|
|
2872
|
+
readonly name: "asset";
|
|
2659
2873
|
readonly type: "address";
|
|
2660
|
-
readonly internalType: "contract Authority";
|
|
2661
2874
|
}];
|
|
2875
|
+
readonly name: "removeAsset";
|
|
2662
2876
|
readonly outputs: readonly [];
|
|
2663
2877
|
readonly stateMutability: "nonpayable";
|
|
2664
|
-
}, {
|
|
2665
2878
|
readonly type: "function";
|
|
2666
|
-
|
|
2879
|
+
}, {
|
|
2667
2880
|
readonly inputs: readonly [{
|
|
2668
|
-
readonly
|
|
2669
|
-
readonly
|
|
2670
|
-
readonly
|
|
2881
|
+
readonly internalType: "uint32";
|
|
2882
|
+
readonly name: "chainSelector";
|
|
2883
|
+
readonly type: "uint32";
|
|
2671
2884
|
}];
|
|
2885
|
+
readonly name: "removeChain";
|
|
2672
2886
|
readonly outputs: readonly [];
|
|
2673
2887
|
readonly stateMutability: "nonpayable";
|
|
2674
|
-
}, {
|
|
2675
2888
|
readonly type: "function";
|
|
2676
|
-
|
|
2889
|
+
}, {
|
|
2677
2890
|
readonly inputs: readonly [{
|
|
2678
|
-
readonly
|
|
2679
|
-
readonly
|
|
2680
|
-
readonly
|
|
2891
|
+
readonly internalType: "uint32";
|
|
2892
|
+
readonly name: "";
|
|
2893
|
+
readonly type: "uint32";
|
|
2681
2894
|
}];
|
|
2895
|
+
readonly name: "selectorToChains";
|
|
2682
2896
|
readonly outputs: readonly [{
|
|
2683
|
-
readonly
|
|
2897
|
+
readonly internalType: "bool";
|
|
2898
|
+
readonly name: "allowMessagesFrom";
|
|
2684
2899
|
readonly type: "bool";
|
|
2900
|
+
}, {
|
|
2685
2901
|
readonly internalType: "bool";
|
|
2902
|
+
readonly name: "allowMessagesTo";
|
|
2903
|
+
readonly type: "bool";
|
|
2904
|
+
}, {
|
|
2905
|
+
readonly internalType: "address";
|
|
2906
|
+
readonly name: "targetTeller";
|
|
2907
|
+
readonly type: "address";
|
|
2908
|
+
}, {
|
|
2909
|
+
readonly internalType: "uint64";
|
|
2910
|
+
readonly name: "messageGasLimit";
|
|
2911
|
+
readonly type: "uint64";
|
|
2912
|
+
}, {
|
|
2913
|
+
readonly internalType: "uint64";
|
|
2914
|
+
readonly name: "minimumMessageGas";
|
|
2915
|
+
readonly type: "uint64";
|
|
2686
2916
|
}];
|
|
2687
2917
|
readonly stateMutability: "view";
|
|
2688
|
-
}, {
|
|
2689
|
-
readonly type: "function";
|
|
2690
|
-
readonly name: "symbol";
|
|
2691
|
-
readonly inputs: readonly [];
|
|
2692
|
-
readonly outputs: readonly [{
|
|
2693
|
-
readonly name: "";
|
|
2694
|
-
readonly type: "string";
|
|
2695
|
-
readonly internalType: "string";
|
|
2696
|
-
}];
|
|
2697
|
-
readonly stateMutability: "view";
|
|
2698
|
-
}, {
|
|
2699
2918
|
readonly type: "function";
|
|
2700
|
-
readonly name: "totalSupply";
|
|
2701
|
-
readonly inputs: readonly [];
|
|
2702
|
-
readonly outputs: readonly [{
|
|
2703
|
-
readonly name: "";
|
|
2704
|
-
readonly type: "uint256";
|
|
2705
|
-
readonly internalType: "uint256";
|
|
2706
|
-
}];
|
|
2707
|
-
readonly stateMutability: "view";
|
|
2708
2919
|
}, {
|
|
2709
|
-
readonly type: "function";
|
|
2710
|
-
readonly name: "transfer";
|
|
2711
2920
|
readonly inputs: readonly [{
|
|
2712
|
-
readonly
|
|
2921
|
+
readonly internalType: "contract Authority";
|
|
2922
|
+
readonly name: "newAuthority";
|
|
2713
2923
|
readonly type: "address";
|
|
2714
|
-
readonly internalType: "address";
|
|
2715
|
-
}, {
|
|
2716
|
-
readonly name: "amount";
|
|
2717
|
-
readonly type: "uint256";
|
|
2718
|
-
readonly internalType: "uint256";
|
|
2719
|
-
}];
|
|
2720
|
-
readonly outputs: readonly [{
|
|
2721
|
-
readonly name: "";
|
|
2722
|
-
readonly type: "bool";
|
|
2723
|
-
readonly internalType: "bool";
|
|
2724
2924
|
}];
|
|
2925
|
+
readonly name: "setAuthority";
|
|
2926
|
+
readonly outputs: readonly [];
|
|
2725
2927
|
readonly stateMutability: "nonpayable";
|
|
2726
|
-
}, {
|
|
2727
2928
|
readonly type: "function";
|
|
2728
|
-
|
|
2929
|
+
}, {
|
|
2729
2930
|
readonly inputs: readonly [{
|
|
2730
|
-
readonly
|
|
2731
|
-
readonly
|
|
2732
|
-
readonly
|
|
2733
|
-
}, {
|
|
2734
|
-
readonly name: "to";
|
|
2735
|
-
readonly type: "address";
|
|
2736
|
-
readonly internalType: "address";
|
|
2931
|
+
readonly internalType: "uint32";
|
|
2932
|
+
readonly name: "chainSelector";
|
|
2933
|
+
readonly type: "uint32";
|
|
2737
2934
|
}, {
|
|
2738
|
-
readonly
|
|
2739
|
-
readonly
|
|
2740
|
-
readonly
|
|
2741
|
-
}];
|
|
2742
|
-
readonly outputs: readonly [{
|
|
2743
|
-
readonly name: "";
|
|
2744
|
-
readonly type: "bool";
|
|
2745
|
-
readonly internalType: "bool";
|
|
2935
|
+
readonly internalType: "uint64";
|
|
2936
|
+
readonly name: "messageGasLimit";
|
|
2937
|
+
readonly type: "uint64";
|
|
2746
2938
|
}];
|
|
2939
|
+
readonly name: "setChainGasLimit";
|
|
2940
|
+
readonly outputs: readonly [];
|
|
2747
2941
|
readonly stateMutability: "nonpayable";
|
|
2748
|
-
}, {
|
|
2749
2942
|
readonly type: "function";
|
|
2750
|
-
|
|
2943
|
+
}, {
|
|
2751
2944
|
readonly inputs: readonly [{
|
|
2752
|
-
readonly name: "newOwner";
|
|
2753
|
-
readonly type: "address";
|
|
2754
2945
|
readonly internalType: "address";
|
|
2946
|
+
readonly name: "_delegate";
|
|
2947
|
+
readonly type: "address";
|
|
2755
2948
|
}];
|
|
2949
|
+
readonly name: "setDelegate";
|
|
2756
2950
|
readonly outputs: readonly [];
|
|
2757
2951
|
readonly stateMutability: "nonpayable";
|
|
2952
|
+
readonly type: "function";
|
|
2758
2953
|
}, {
|
|
2759
|
-
readonly type: "event";
|
|
2760
|
-
readonly name: "Approval";
|
|
2761
2954
|
readonly inputs: readonly [{
|
|
2762
|
-
readonly
|
|
2763
|
-
readonly
|
|
2764
|
-
readonly
|
|
2765
|
-
readonly internalType: "address";
|
|
2766
|
-
}, {
|
|
2767
|
-
readonly name: "spender";
|
|
2768
|
-
readonly type: "address";
|
|
2769
|
-
readonly indexed: true;
|
|
2770
|
-
readonly internalType: "address";
|
|
2955
|
+
readonly internalType: "uint32";
|
|
2956
|
+
readonly name: "_eid";
|
|
2957
|
+
readonly type: "uint32";
|
|
2771
2958
|
}, {
|
|
2772
|
-
readonly
|
|
2773
|
-
readonly
|
|
2774
|
-
readonly
|
|
2775
|
-
readonly internalType: "uint256";
|
|
2959
|
+
readonly internalType: "bytes32";
|
|
2960
|
+
readonly name: "_peer";
|
|
2961
|
+
readonly type: "bytes32";
|
|
2776
2962
|
}];
|
|
2777
|
-
readonly
|
|
2963
|
+
readonly name: "setPeer";
|
|
2964
|
+
readonly outputs: readonly [];
|
|
2965
|
+
readonly stateMutability: "nonpayable";
|
|
2966
|
+
readonly type: "function";
|
|
2778
2967
|
}, {
|
|
2779
|
-
readonly type: "event";
|
|
2780
|
-
readonly name: "AuthorityUpdated";
|
|
2781
2968
|
readonly inputs: readonly [{
|
|
2782
|
-
readonly
|
|
2783
|
-
readonly
|
|
2784
|
-
readonly
|
|
2785
|
-
readonly internalType: "address";
|
|
2786
|
-
}, {
|
|
2787
|
-
readonly name: "newAuthority";
|
|
2788
|
-
readonly type: "address";
|
|
2789
|
-
readonly indexed: true;
|
|
2790
|
-
readonly internalType: "contract Authority";
|
|
2969
|
+
readonly internalType: "uint64";
|
|
2970
|
+
readonly name: "_shareLockPeriod";
|
|
2971
|
+
readonly type: "uint64";
|
|
2791
2972
|
}];
|
|
2792
|
-
readonly
|
|
2973
|
+
readonly name: "setShareLockPeriod";
|
|
2974
|
+
readonly outputs: readonly [];
|
|
2975
|
+
readonly stateMutability: "nonpayable";
|
|
2976
|
+
readonly type: "function";
|
|
2793
2977
|
}, {
|
|
2794
|
-
readonly
|
|
2795
|
-
readonly name: "
|
|
2796
|
-
readonly
|
|
2797
|
-
readonly
|
|
2798
|
-
readonly
|
|
2799
|
-
readonly
|
|
2800
|
-
readonly internalType: "address";
|
|
2801
|
-
}, {
|
|
2802
|
-
readonly name: "asset";
|
|
2803
|
-
readonly type: "address";
|
|
2804
|
-
readonly indexed: true;
|
|
2805
|
-
readonly internalType: "address";
|
|
2806
|
-
}, {
|
|
2807
|
-
readonly name: "amount";
|
|
2808
|
-
readonly type: "uint256";
|
|
2809
|
-
readonly indexed: false;
|
|
2810
|
-
readonly internalType: "uint256";
|
|
2811
|
-
}, {
|
|
2812
|
-
readonly name: "to";
|
|
2813
|
-
readonly type: "address";
|
|
2814
|
-
readonly indexed: true;
|
|
2815
|
-
readonly internalType: "address";
|
|
2816
|
-
}, {
|
|
2817
|
-
readonly name: "shares";
|
|
2818
|
-
readonly type: "uint256";
|
|
2819
|
-
readonly indexed: false;
|
|
2820
|
-
readonly internalType: "uint256";
|
|
2978
|
+
readonly inputs: readonly [];
|
|
2979
|
+
readonly name: "shareLockPeriod";
|
|
2980
|
+
readonly outputs: readonly [{
|
|
2981
|
+
readonly internalType: "uint64";
|
|
2982
|
+
readonly name: "";
|
|
2983
|
+
readonly type: "uint64";
|
|
2821
2984
|
}];
|
|
2822
|
-
readonly
|
|
2985
|
+
readonly stateMutability: "view";
|
|
2986
|
+
readonly type: "function";
|
|
2823
2987
|
}, {
|
|
2824
|
-
readonly type: "event";
|
|
2825
|
-
readonly name: "Exit";
|
|
2826
2988
|
readonly inputs: readonly [{
|
|
2827
|
-
readonly name: "to";
|
|
2828
|
-
readonly type: "address";
|
|
2829
|
-
readonly indexed: true;
|
|
2830
2989
|
readonly internalType: "address";
|
|
2831
|
-
|
|
2832
|
-
readonly name: "asset";
|
|
2990
|
+
readonly name: "";
|
|
2833
2991
|
readonly type: "address";
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
readonly name: "amount";
|
|
2838
|
-
readonly type: "uint256";
|
|
2839
|
-
readonly indexed: false;
|
|
2992
|
+
}];
|
|
2993
|
+
readonly name: "shareUnlockTime";
|
|
2994
|
+
readonly outputs: readonly [{
|
|
2840
2995
|
readonly internalType: "uint256";
|
|
2841
|
-
|
|
2842
|
-
readonly name: "from";
|
|
2843
|
-
readonly type: "address";
|
|
2844
|
-
readonly indexed: true;
|
|
2845
|
-
readonly internalType: "address";
|
|
2846
|
-
}, {
|
|
2847
|
-
readonly name: "shares";
|
|
2996
|
+
readonly name: "";
|
|
2848
2997
|
readonly type: "uint256";
|
|
2849
|
-
readonly indexed: false;
|
|
2850
|
-
readonly internalType: "uint256";
|
|
2851
2998
|
}];
|
|
2852
|
-
readonly
|
|
2999
|
+
readonly stateMutability: "view";
|
|
3000
|
+
readonly type: "function";
|
|
2853
3001
|
}, {
|
|
2854
|
-
readonly type: "event";
|
|
2855
|
-
readonly name: "OwnershipTransferred";
|
|
2856
3002
|
readonly inputs: readonly [{
|
|
2857
|
-
readonly
|
|
2858
|
-
readonly
|
|
2859
|
-
readonly
|
|
2860
|
-
readonly internalType: "address";
|
|
2861
|
-
}, {
|
|
2862
|
-
readonly name: "newOwner";
|
|
2863
|
-
readonly type: "address";
|
|
2864
|
-
readonly indexed: true;
|
|
2865
|
-
readonly internalType: "address";
|
|
3003
|
+
readonly internalType: "uint32";
|
|
3004
|
+
readonly name: "chainSelector";
|
|
3005
|
+
readonly type: "uint32";
|
|
2866
3006
|
}];
|
|
2867
|
-
readonly
|
|
3007
|
+
readonly name: "stopMessagesFromChain";
|
|
3008
|
+
readonly outputs: readonly [];
|
|
3009
|
+
readonly stateMutability: "nonpayable";
|
|
3010
|
+
readonly type: "function";
|
|
2868
3011
|
}, {
|
|
2869
|
-
readonly type: "event";
|
|
2870
|
-
readonly name: "Transfer";
|
|
2871
3012
|
readonly inputs: readonly [{
|
|
2872
|
-
readonly
|
|
2873
|
-
readonly
|
|
2874
|
-
readonly
|
|
2875
|
-
readonly internalType: "address";
|
|
2876
|
-
}, {
|
|
2877
|
-
readonly name: "to";
|
|
2878
|
-
readonly type: "address";
|
|
2879
|
-
readonly indexed: true;
|
|
2880
|
-
readonly internalType: "address";
|
|
2881
|
-
}, {
|
|
2882
|
-
readonly name: "amount";
|
|
2883
|
-
readonly type: "uint256";
|
|
2884
|
-
readonly indexed: false;
|
|
2885
|
-
readonly internalType: "uint256";
|
|
3013
|
+
readonly internalType: "uint32";
|
|
3014
|
+
readonly name: "chainSelector";
|
|
3015
|
+
readonly type: "uint32";
|
|
2886
3016
|
}];
|
|
2887
|
-
readonly
|
|
3017
|
+
readonly name: "stopMessagesToChain";
|
|
3018
|
+
readonly outputs: readonly [];
|
|
3019
|
+
readonly stateMutability: "nonpayable";
|
|
3020
|
+
readonly type: "function";
|
|
2888
3021
|
}, {
|
|
2889
|
-
readonly type: "error";
|
|
2890
|
-
readonly name: "AddressEmptyCode";
|
|
2891
3022
|
readonly inputs: readonly [{
|
|
2892
|
-
readonly name: "target";
|
|
2893
|
-
readonly type: "address";
|
|
2894
3023
|
readonly internalType: "address";
|
|
2895
|
-
|
|
2896
|
-
}, {
|
|
2897
|
-
readonly type: "error";
|
|
2898
|
-
readonly name: "AddressInsufficientBalance";
|
|
2899
|
-
readonly inputs: readonly [{
|
|
2900
|
-
readonly name: "account";
|
|
3024
|
+
readonly name: "newOwner";
|
|
2901
3025
|
readonly type: "address";
|
|
2902
|
-
readonly internalType: "address";
|
|
2903
3026
|
}];
|
|
3027
|
+
readonly name: "transferOwnership";
|
|
3028
|
+
readonly outputs: readonly [];
|
|
3029
|
+
readonly stateMutability: "nonpayable";
|
|
3030
|
+
readonly type: "function";
|
|
3031
|
+
}, {
|
|
3032
|
+
readonly inputs: readonly [];
|
|
3033
|
+
readonly name: "unpause";
|
|
3034
|
+
readonly outputs: readonly [];
|
|
3035
|
+
readonly stateMutability: "nonpayable";
|
|
3036
|
+
readonly type: "function";
|
|
2904
3037
|
}, {
|
|
2905
|
-
readonly type: "error";
|
|
2906
|
-
readonly name: "FailedInnerCall";
|
|
2907
3038
|
readonly inputs: readonly [];
|
|
3039
|
+
readonly name: "vault";
|
|
3040
|
+
readonly outputs: readonly [{
|
|
3041
|
+
readonly internalType: "contract BoringVault";
|
|
3042
|
+
readonly name: "";
|
|
3043
|
+
readonly type: "address";
|
|
3044
|
+
}];
|
|
3045
|
+
readonly stateMutability: "view";
|
|
3046
|
+
readonly type: "function";
|
|
2908
3047
|
}];
|
|
2909
3048
|
|
|
2910
|
-
/**
|
|
2911
|
-
* Parameters required for preparing an approval transaction (NEW AmplifyVault schema)
|
|
2912
|
-
* @interface PrepareApproveWithdrawTokenTxParams
|
|
2913
|
-
* @property {YieldType} yieldType - Yield strategy type (PRIME, TBILL, or LENDING)
|
|
2914
|
-
* @property {Address} wantAssetAddress - Address of the want token
|
|
2915
|
-
* @property {string} [withdrawAmount] - Optional amount to approve (defaults to maximum approval)
|
|
2916
|
-
* @property {ChainId} chainId - ID of the chain where the approval will occur
|
|
2917
|
-
*/
|
|
2918
|
-
interface PrepareApproveWithdrawTokenTxParams {
|
|
2919
|
-
yieldType: YieldType;
|
|
2920
|
-
wantAssetAddress: Address;
|
|
2921
|
-
withdrawAmount?: string;
|
|
2922
|
-
chainId: ChainId;
|
|
2923
|
-
}
|
|
2924
|
-
/**
|
|
2925
|
-
* Result object containing transaction data for a vault shares approval operation
|
|
2926
|
-
* @interface ApproveWithdrawTokenTxData
|
|
2927
|
-
* @property {typeof BoringVaultAbi} abi - ABI for the BoringVault contract
|
|
2928
|
-
* @property {Address} address - Address of the BoringVault (shares token)
|
|
2929
|
-
* @property {'approve'} functionName - Name of the function to call
|
|
2930
|
-
* @property {[Address, bigint]} args - Arguments for the approve function:
|
|
2931
|
-
* [spender (AtomicQueue address), amount]
|
|
2932
|
-
*/
|
|
2933
|
-
interface ApproveWithdrawTokenTxData {
|
|
2934
|
-
abi: typeof BoringVaultAbi;
|
|
2935
|
-
address: Address;
|
|
2936
|
-
functionName: "approve";
|
|
2937
|
-
args: [Address, bigint];
|
|
2938
|
-
}
|
|
2939
|
-
/**
|
|
2940
|
-
* Prepares the transaction data needed to approve vault shares for the AtomicQueue contract
|
|
2941
|
-
*
|
|
2942
|
-
* This function prepares an ERC20 approval transaction that allows the AtomicQueue
|
|
2943
|
-
* contract to spend the user's vault shares. It uses the new AmplifyVault schema
|
|
2944
|
-
* with asset decimals from the API (no on-chain calls).
|
|
2945
|
-
*
|
|
2946
|
-
* @example
|
|
2947
|
-
* ```typescript
|
|
2948
|
-
* const vaults = await fetchVaults({ chainId: 1 });
|
|
2949
|
-
* const approveData = await prepareApproveWithdrawToken({
|
|
2950
|
-
* yieldType: 'PRIME',
|
|
2951
|
-
* wantAssetAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
|
|
2952
|
-
* withdrawAmount: "10.0", // Approve 10 vault shares
|
|
2953
|
-
* chainId: 1,
|
|
2954
|
-
* });
|
|
2955
|
-
* ```
|
|
2956
|
-
*
|
|
2957
|
-
* @param {PrepareApproveWithdrawTokenTxParams} params - Parameters for the approval operation
|
|
2958
|
-
* @param {YieldType} params.yieldType - Yield strategy type (PRIME, TBILL, or LENDING)
|
|
2959
|
-
* @param {Address} params.wantAssetAddress - Address of the want token
|
|
2960
|
-
* @param {string} [params.withdrawAmount] - Optional amount to approve as a decimal string (defaults to maximum approval)
|
|
2961
|
-
* @param {number | string} params.chainId - ID of the chain where the approval will occur
|
|
2962
|
-
*
|
|
2963
|
-
* @returns {Promise<ApproveWithdrawTokenTxData>} Promise resolving to the prepared transaction data
|
|
2964
|
-
* @throws {APIError} If the vault is not on the correct chain or contracts not configured
|
|
2965
|
-
*/
|
|
2966
|
-
declare function prepareApproveWithdrawTxData({ yieldType, wantAssetAddress, withdrawAmount, chainId, }: PrepareApproveWithdrawTokenTxParams): Promise<ApproveWithdrawTokenTxData>;
|
|
2967
|
-
|
|
2968
3049
|
interface BulkWithdrawTxData {
|
|
2969
3050
|
abi: typeof TellerAbi;
|
|
2970
3051
|
address: Address;
|
|
@@ -3408,7 +3489,6 @@ interface PrepareWithdrawTxDataParams {
|
|
|
3408
3489
|
wantAssetAddress: Address;
|
|
3409
3490
|
chainId: ChainId;
|
|
3410
3491
|
offerAmount: string;
|
|
3411
|
-
recipientAddress: Address;
|
|
3412
3492
|
deadline?: number;
|
|
3413
3493
|
slippage?: number;
|
|
3414
3494
|
}
|
|
@@ -3463,4 +3543,4 @@ interface WithdrawTxData {
|
|
|
3463
3543
|
*/
|
|
3464
3544
|
declare const prepareWithdrawTxData: ({ yieldType, wantAssetAddress, chainId, offerAmount, deadline, slippage, }: PrepareWithdrawTxDataParams) => Promise<WithdrawTxData>;
|
|
3465
3545
|
|
|
3466
|
-
export { AmplifyVault, type ApproveDepositTokenTxData, type ApproveWithdrawTokenTxData, AssetFilterOptions, type BulkWithdrawTxData, type
|
|
3546
|
+
export { AmplifyVault, type ApproveDepositTokenTxData, type ApproveWithdrawTokenTxData, AssetFilterOptions, type BulkWithdrawTxData, type DepositTxData, type EIP712Domain, type InitErrorCode, PERMIT_TYPES, type ParsedPermitSignature, type PermitSignatureData, type PrepareDepositPermitSignatureParams, type PrepareDepositWithPermitTxDataParams, type RequestHeaders, type SDKConfig, SupportedAsset, type UnencodedDepositWithPermitData, VaultFilterOptions, WithdrawSupportedAsset, type WithdrawTxData, YieldType, fetchSupportedAssets, fetchVaults, findVaultByConfig, getAssetsFromCache, getCache, getWithdrawSupportedAssets, initAmplifySDK, initializeCache, parsePermitSignature, prepareApproveDepositTokenTxData, prepareApproveWithdrawTxData, prepareBulkWithdrawTxData, prepareDepositPermitSignature, prepareDepositTxData, prepareDepositWithPermitTxData, prepareWithdrawTxData, refreshVaultCache };
|