damm-sdk 1.1.30-alpha.21 → 1.1.30-alpha.22

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/dist/index.js CHANGED
@@ -84582,6 +84582,759 @@ var sendOFTTrx = ({
84582
84582
  value: args.nativeFee
84583
84583
  });
84584
84584
  };
84585
+ // src/integrations/cctp/message.transmitter.v2.abi.ts
84586
+ var message_transmitter_v2_abi_default = [
84587
+ {
84588
+ inputs: [
84589
+ { internalType: "address", name: "_messageTransmitter", type: "address" },
84590
+ { internalType: "uint32", name: "_messageBodyVersion", type: "uint32" }
84591
+ ],
84592
+ stateMutability: "nonpayable",
84593
+ type: "constructor"
84594
+ },
84595
+ {
84596
+ anonymous: false,
84597
+ inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
84598
+ name: "Denylisted",
84599
+ type: "event"
84600
+ },
84601
+ {
84602
+ anonymous: false,
84603
+ inputs: [
84604
+ { indexed: true, internalType: "address", name: "oldDenylister", type: "address" },
84605
+ { indexed: true, internalType: "address", name: "newDenylister", type: "address" }
84606
+ ],
84607
+ name: "DenylisterChanged",
84608
+ type: "event"
84609
+ },
84610
+ {
84611
+ anonymous: false,
84612
+ inputs: [
84613
+ { indexed: true, internalType: "address", name: "burnToken", type: "address" },
84614
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
84615
+ { indexed: true, internalType: "address", name: "depositor", type: "address" },
84616
+ { indexed: false, internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
84617
+ { indexed: false, internalType: "uint32", name: "destinationDomain", type: "uint32" },
84618
+ { indexed: false, internalType: "bytes32", name: "destinationTokenMessenger", type: "bytes32" },
84619
+ { indexed: false, internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
84620
+ { indexed: false, internalType: "uint256", name: "maxFee", type: "uint256" },
84621
+ { indexed: true, internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
84622
+ { indexed: false, internalType: "bytes", name: "hookData", type: "bytes" }
84623
+ ],
84624
+ name: "DepositForBurn",
84625
+ type: "event"
84626
+ },
84627
+ {
84628
+ anonymous: false,
84629
+ inputs: [{ indexed: false, internalType: "address", name: "feeRecipient", type: "address" }],
84630
+ name: "FeeRecipientSet",
84631
+ type: "event"
84632
+ },
84633
+ {
84634
+ anonymous: false,
84635
+ inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }],
84636
+ name: "Initialized",
84637
+ type: "event"
84638
+ },
84639
+ {
84640
+ anonymous: false,
84641
+ inputs: [{ indexed: false, internalType: "address", name: "localMinter", type: "address" }],
84642
+ name: "LocalMinterAdded",
84643
+ type: "event"
84644
+ },
84645
+ {
84646
+ anonymous: false,
84647
+ inputs: [{ indexed: false, internalType: "address", name: "localMinter", type: "address" }],
84648
+ name: "LocalMinterRemoved",
84649
+ type: "event"
84650
+ },
84651
+ {
84652
+ anonymous: false,
84653
+ inputs: [
84654
+ { indexed: true, internalType: "address", name: "mintRecipient", type: "address" },
84655
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
84656
+ { indexed: true, internalType: "address", name: "mintToken", type: "address" },
84657
+ { indexed: false, internalType: "uint256", name: "feeCollected", type: "uint256" }
84658
+ ],
84659
+ name: "MintAndWithdraw",
84660
+ type: "event"
84661
+ },
84662
+ {
84663
+ anonymous: false,
84664
+ inputs: [
84665
+ { indexed: true, internalType: "address", name: "previousOwner", type: "address" },
84666
+ { indexed: true, internalType: "address", name: "newOwner", type: "address" }
84667
+ ],
84668
+ name: "OwnershipTransferStarted",
84669
+ type: "event"
84670
+ },
84671
+ {
84672
+ anonymous: false,
84673
+ inputs: [
84674
+ { indexed: true, internalType: "address", name: "previousOwner", type: "address" },
84675
+ { indexed: true, internalType: "address", name: "newOwner", type: "address" }
84676
+ ],
84677
+ name: "OwnershipTransferred",
84678
+ type: "event"
84679
+ },
84680
+ {
84681
+ anonymous: false,
84682
+ inputs: [
84683
+ { indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
84684
+ { indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
84685
+ ],
84686
+ name: "RemoteTokenMessengerAdded",
84687
+ type: "event"
84688
+ },
84689
+ {
84690
+ anonymous: false,
84691
+ inputs: [
84692
+ { indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
84693
+ { indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
84694
+ ],
84695
+ name: "RemoteTokenMessengerRemoved",
84696
+ type: "event"
84697
+ },
84698
+ {
84699
+ anonymous: false,
84700
+ inputs: [{ indexed: true, internalType: "address", name: "newRescuer", type: "address" }],
84701
+ name: "RescuerChanged",
84702
+ type: "event"
84703
+ },
84704
+ {
84705
+ anonymous: false,
84706
+ inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
84707
+ name: "UnDenylisted",
84708
+ type: "event"
84709
+ },
84710
+ { inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
84711
+ {
84712
+ inputs: [{ internalType: "address", name: "newLocalMinter", type: "address" }],
84713
+ name: "addLocalMinter",
84714
+ outputs: [],
84715
+ stateMutability: "nonpayable",
84716
+ type: "function"
84717
+ },
84718
+ {
84719
+ inputs: [
84720
+ { internalType: "uint32", name: "domain", type: "uint32" },
84721
+ { internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
84722
+ ],
84723
+ name: "addRemoteTokenMessenger",
84724
+ outputs: [],
84725
+ stateMutability: "nonpayable",
84726
+ type: "function"
84727
+ },
84728
+ {
84729
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
84730
+ name: "denylist",
84731
+ outputs: [],
84732
+ stateMutability: "nonpayable",
84733
+ type: "function"
84734
+ },
84735
+ {
84736
+ inputs: [],
84737
+ name: "denylister",
84738
+ outputs: [{ internalType: "address", name: "", type: "address" }],
84739
+ stateMutability: "view",
84740
+ type: "function"
84741
+ },
84742
+ {
84743
+ inputs: [
84744
+ { internalType: "uint256", name: "amount", type: "uint256" },
84745
+ { internalType: "uint32", name: "destinationDomain", type: "uint32" },
84746
+ { internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
84747
+ { internalType: "address", name: "burnToken", type: "address" },
84748
+ { internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
84749
+ { internalType: "uint256", name: "maxFee", type: "uint256" },
84750
+ { internalType: "uint32", name: "minFinalityThreshold", type: "uint32" }
84751
+ ],
84752
+ name: "depositForBurn",
84753
+ outputs: [],
84754
+ stateMutability: "nonpayable",
84755
+ type: "function"
84756
+ },
84757
+ {
84758
+ inputs: [
84759
+ { internalType: "uint256", name: "amount", type: "uint256" },
84760
+ { internalType: "uint32", name: "destinationDomain", type: "uint32" },
84761
+ { internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
84762
+ { internalType: "address", name: "burnToken", type: "address" },
84763
+ { internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
84764
+ { internalType: "uint256", name: "maxFee", type: "uint256" },
84765
+ { internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
84766
+ { internalType: "bytes", name: "hookData", type: "bytes" }
84767
+ ],
84768
+ name: "depositForBurnWithHook",
84769
+ outputs: [],
84770
+ stateMutability: "nonpayable",
84771
+ type: "function"
84772
+ },
84773
+ {
84774
+ inputs: [],
84775
+ name: "feeRecipient",
84776
+ outputs: [{ internalType: "address", name: "", type: "address" }],
84777
+ stateMutability: "view",
84778
+ type: "function"
84779
+ },
84780
+ {
84781
+ inputs: [
84782
+ { internalType: "uint32", name: "remoteDomain", type: "uint32" },
84783
+ { internalType: "bytes32", name: "sender", type: "bytes32" },
84784
+ { internalType: "uint32", name: "", type: "uint32" },
84785
+ { internalType: "bytes", name: "messageBody", type: "bytes" }
84786
+ ],
84787
+ name: "handleReceiveFinalizedMessage",
84788
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
84789
+ stateMutability: "nonpayable",
84790
+ type: "function"
84791
+ },
84792
+ {
84793
+ inputs: [
84794
+ { internalType: "uint32", name: "remoteDomain", type: "uint32" },
84795
+ { internalType: "bytes32", name: "sender", type: "bytes32" },
84796
+ { internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
84797
+ { internalType: "bytes", name: "messageBody", type: "bytes" }
84798
+ ],
84799
+ name: "handleReceiveUnfinalizedMessage",
84800
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
84801
+ stateMutability: "nonpayable",
84802
+ type: "function"
84803
+ },
84804
+ {
84805
+ inputs: [
84806
+ { internalType: "address", name: "owner_", type: "address" },
84807
+ { internalType: "address", name: "rescuer_", type: "address" },
84808
+ { internalType: "address", name: "feeRecipient_", type: "address" },
84809
+ { internalType: "address", name: "denylister_", type: "address" },
84810
+ { internalType: "address", name: "tokenMinter_", type: "address" },
84811
+ { internalType: "uint32[]", name: "remoteDomains_", type: "uint32[]" },
84812
+ { internalType: "bytes32[]", name: "remoteTokenMessengers_", type: "bytes32[]" }
84813
+ ],
84814
+ name: "initialize",
84815
+ outputs: [],
84816
+ stateMutability: "nonpayable",
84817
+ type: "function"
84818
+ },
84819
+ {
84820
+ inputs: [],
84821
+ name: "initializedVersion",
84822
+ outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
84823
+ stateMutability: "view",
84824
+ type: "function"
84825
+ },
84826
+ {
84827
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
84828
+ name: "isDenylisted",
84829
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
84830
+ stateMutability: "view",
84831
+ type: "function"
84832
+ },
84833
+ {
84834
+ inputs: [],
84835
+ name: "localMessageTransmitter",
84836
+ outputs: [{ internalType: "address", name: "", type: "address" }],
84837
+ stateMutability: "view",
84838
+ type: "function"
84839
+ },
84840
+ {
84841
+ inputs: [],
84842
+ name: "localMinter",
84843
+ outputs: [{ internalType: "contract ITokenMinterV2", name: "", type: "address" }],
84844
+ stateMutability: "view",
84845
+ type: "function"
84846
+ },
84847
+ {
84848
+ inputs: [],
84849
+ name: "messageBodyVersion",
84850
+ outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
84851
+ stateMutability: "view",
84852
+ type: "function"
84853
+ },
84854
+ {
84855
+ inputs: [],
84856
+ name: "owner",
84857
+ outputs: [{ internalType: "address", name: "", type: "address" }],
84858
+ stateMutability: "view",
84859
+ type: "function"
84860
+ },
84861
+ {
84862
+ inputs: [],
84863
+ name: "pendingOwner",
84864
+ outputs: [{ internalType: "address", name: "", type: "address" }],
84865
+ stateMutability: "view",
84866
+ type: "function"
84867
+ },
84868
+ {
84869
+ inputs: [{ internalType: "uint32", name: "", type: "uint32" }],
84870
+ name: "remoteTokenMessengers",
84871
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
84872
+ stateMutability: "view",
84873
+ type: "function"
84874
+ },
84875
+ { inputs: [], name: "removeLocalMinter", outputs: [], stateMutability: "nonpayable", type: "function" },
84876
+ {
84877
+ inputs: [{ internalType: "uint32", name: "domain", type: "uint32" }],
84878
+ name: "removeRemoteTokenMessenger",
84879
+ outputs: [],
84880
+ stateMutability: "nonpayable",
84881
+ type: "function"
84882
+ },
84883
+ {
84884
+ inputs: [
84885
+ { internalType: "contract IERC20", name: "tokenContract", type: "address" },
84886
+ { internalType: "address", name: "to", type: "address" },
84887
+ { internalType: "uint256", name: "amount", type: "uint256" }
84888
+ ],
84889
+ name: "rescueERC20",
84890
+ outputs: [],
84891
+ stateMutability: "nonpayable",
84892
+ type: "function"
84893
+ },
84894
+ {
84895
+ inputs: [],
84896
+ name: "rescuer",
84897
+ outputs: [{ internalType: "address", name: "", type: "address" }],
84898
+ stateMutability: "view",
84899
+ type: "function"
84900
+ },
84901
+ {
84902
+ inputs: [{ internalType: "address", name: "_feeRecipient", type: "address" }],
84903
+ name: "setFeeRecipient",
84904
+ outputs: [],
84905
+ stateMutability: "nonpayable",
84906
+ type: "function"
84907
+ },
84908
+ {
84909
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
84910
+ name: "transferOwnership",
84911
+ outputs: [],
84912
+ stateMutability: "nonpayable",
84913
+ type: "function"
84914
+ },
84915
+ {
84916
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
84917
+ name: "unDenylist",
84918
+ outputs: [],
84919
+ stateMutability: "nonpayable",
84920
+ type: "function"
84921
+ },
84922
+ {
84923
+ inputs: [{ internalType: "address", name: "newDenylister", type: "address" }],
84924
+ name: "updateDenylister",
84925
+ outputs: [],
84926
+ stateMutability: "nonpayable",
84927
+ type: "function"
84928
+ },
84929
+ {
84930
+ inputs: [{ internalType: "address", name: "newRescuer", type: "address" }],
84931
+ name: "updateRescuer",
84932
+ outputs: [],
84933
+ stateMutability: "nonpayable",
84934
+ type: "function"
84935
+ }
84936
+ ];
84937
+
84938
+ // src/integrations/cctp/token.messenger.v2.abi.ts
84939
+ var token_messenger_v2_abi_default = [
84940
+ {
84941
+ inputs: [
84942
+ { internalType: "address", name: "_messageTransmitter", type: "address" },
84943
+ { internalType: "uint32", name: "_messageBodyVersion", type: "uint32" }
84944
+ ],
84945
+ stateMutability: "nonpayable",
84946
+ type: "constructor"
84947
+ },
84948
+ {
84949
+ anonymous: false,
84950
+ inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
84951
+ name: "Denylisted",
84952
+ type: "event"
84953
+ },
84954
+ {
84955
+ anonymous: false,
84956
+ inputs: [
84957
+ { indexed: true, internalType: "address", name: "oldDenylister", type: "address" },
84958
+ { indexed: true, internalType: "address", name: "newDenylister", type: "address" }
84959
+ ],
84960
+ name: "DenylisterChanged",
84961
+ type: "event"
84962
+ },
84963
+ {
84964
+ anonymous: false,
84965
+ inputs: [
84966
+ { indexed: true, internalType: "address", name: "burnToken", type: "address" },
84967
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
84968
+ { indexed: true, internalType: "address", name: "depositor", type: "address" },
84969
+ { indexed: false, internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
84970
+ { indexed: false, internalType: "uint32", name: "destinationDomain", type: "uint32" },
84971
+ { indexed: false, internalType: "bytes32", name: "destinationTokenMessenger", type: "bytes32" },
84972
+ { indexed: false, internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
84973
+ { indexed: false, internalType: "uint256", name: "maxFee", type: "uint256" },
84974
+ { indexed: true, internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
84975
+ { indexed: false, internalType: "bytes", name: "hookData", type: "bytes" }
84976
+ ],
84977
+ name: "DepositForBurn",
84978
+ type: "event"
84979
+ },
84980
+ {
84981
+ anonymous: false,
84982
+ inputs: [{ indexed: false, internalType: "address", name: "feeRecipient", type: "address" }],
84983
+ name: "FeeRecipientSet",
84984
+ type: "event"
84985
+ },
84986
+ {
84987
+ anonymous: false,
84988
+ inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }],
84989
+ name: "Initialized",
84990
+ type: "event"
84991
+ },
84992
+ {
84993
+ anonymous: false,
84994
+ inputs: [{ indexed: false, internalType: "address", name: "localMinter", type: "address" }],
84995
+ name: "LocalMinterAdded",
84996
+ type: "event"
84997
+ },
84998
+ {
84999
+ anonymous: false,
85000
+ inputs: [{ indexed: false, internalType: "address", name: "localMinter", type: "address" }],
85001
+ name: "LocalMinterRemoved",
85002
+ type: "event"
85003
+ },
85004
+ {
85005
+ anonymous: false,
85006
+ inputs: [
85007
+ { indexed: true, internalType: "address", name: "mintRecipient", type: "address" },
85008
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
85009
+ { indexed: true, internalType: "address", name: "mintToken", type: "address" },
85010
+ { indexed: false, internalType: "uint256", name: "feeCollected", type: "uint256" }
85011
+ ],
85012
+ name: "MintAndWithdraw",
85013
+ type: "event"
85014
+ },
85015
+ {
85016
+ anonymous: false,
85017
+ inputs: [
85018
+ { indexed: true, internalType: "address", name: "previousOwner", type: "address" },
85019
+ { indexed: true, internalType: "address", name: "newOwner", type: "address" }
85020
+ ],
85021
+ name: "OwnershipTransferStarted",
85022
+ type: "event"
85023
+ },
85024
+ {
85025
+ anonymous: false,
85026
+ inputs: [
85027
+ { indexed: true, internalType: "address", name: "previousOwner", type: "address" },
85028
+ { indexed: true, internalType: "address", name: "newOwner", type: "address" }
85029
+ ],
85030
+ name: "OwnershipTransferred",
85031
+ type: "event"
85032
+ },
85033
+ {
85034
+ anonymous: false,
85035
+ inputs: [
85036
+ { indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
85037
+ { indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
85038
+ ],
85039
+ name: "RemoteTokenMessengerAdded",
85040
+ type: "event"
85041
+ },
85042
+ {
85043
+ anonymous: false,
85044
+ inputs: [
85045
+ { indexed: false, internalType: "uint32", name: "domain", type: "uint32" },
85046
+ { indexed: false, internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
85047
+ ],
85048
+ name: "RemoteTokenMessengerRemoved",
85049
+ type: "event"
85050
+ },
85051
+ {
85052
+ anonymous: false,
85053
+ inputs: [{ indexed: true, internalType: "address", name: "newRescuer", type: "address" }],
85054
+ name: "RescuerChanged",
85055
+ type: "event"
85056
+ },
85057
+ {
85058
+ anonymous: false,
85059
+ inputs: [{ indexed: true, internalType: "address", name: "account", type: "address" }],
85060
+ name: "UnDenylisted",
85061
+ type: "event"
85062
+ },
85063
+ { inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
85064
+ {
85065
+ inputs: [{ internalType: "address", name: "newLocalMinter", type: "address" }],
85066
+ name: "addLocalMinter",
85067
+ outputs: [],
85068
+ stateMutability: "nonpayable",
85069
+ type: "function"
85070
+ },
85071
+ {
85072
+ inputs: [
85073
+ { internalType: "uint32", name: "domain", type: "uint32" },
85074
+ { internalType: "bytes32", name: "tokenMessenger", type: "bytes32" }
85075
+ ],
85076
+ name: "addRemoteTokenMessenger",
85077
+ outputs: [],
85078
+ stateMutability: "nonpayable",
85079
+ type: "function"
85080
+ },
85081
+ {
85082
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
85083
+ name: "denylist",
85084
+ outputs: [],
85085
+ stateMutability: "nonpayable",
85086
+ type: "function"
85087
+ },
85088
+ {
85089
+ inputs: [],
85090
+ name: "denylister",
85091
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85092
+ stateMutability: "view",
85093
+ type: "function"
85094
+ },
85095
+ {
85096
+ inputs: [
85097
+ { internalType: "uint256", name: "amount", type: "uint256" },
85098
+ { internalType: "uint32", name: "destinationDomain", type: "uint32" },
85099
+ { internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
85100
+ { internalType: "address", name: "burnToken", type: "address" },
85101
+ { internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
85102
+ { internalType: "uint256", name: "maxFee", type: "uint256" },
85103
+ { internalType: "uint32", name: "minFinalityThreshold", type: "uint32" }
85104
+ ],
85105
+ name: "depositForBurn",
85106
+ outputs: [],
85107
+ stateMutability: "nonpayable",
85108
+ type: "function"
85109
+ },
85110
+ {
85111
+ inputs: [
85112
+ { internalType: "uint256", name: "amount", type: "uint256" },
85113
+ { internalType: "uint32", name: "destinationDomain", type: "uint32" },
85114
+ { internalType: "bytes32", name: "mintRecipient", type: "bytes32" },
85115
+ { internalType: "address", name: "burnToken", type: "address" },
85116
+ { internalType: "bytes32", name: "destinationCaller", type: "bytes32" },
85117
+ { internalType: "uint256", name: "maxFee", type: "uint256" },
85118
+ { internalType: "uint32", name: "minFinalityThreshold", type: "uint32" },
85119
+ { internalType: "bytes", name: "hookData", type: "bytes" }
85120
+ ],
85121
+ name: "depositForBurnWithHook",
85122
+ outputs: [],
85123
+ stateMutability: "nonpayable",
85124
+ type: "function"
85125
+ },
85126
+ {
85127
+ inputs: [],
85128
+ name: "feeRecipient",
85129
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85130
+ stateMutability: "view",
85131
+ type: "function"
85132
+ },
85133
+ {
85134
+ inputs: [
85135
+ { internalType: "uint32", name: "remoteDomain", type: "uint32" },
85136
+ { internalType: "bytes32", name: "sender", type: "bytes32" },
85137
+ { internalType: "uint32", name: "", type: "uint32" },
85138
+ { internalType: "bytes", name: "messageBody", type: "bytes" }
85139
+ ],
85140
+ name: "handleReceiveFinalizedMessage",
85141
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
85142
+ stateMutability: "nonpayable",
85143
+ type: "function"
85144
+ },
85145
+ {
85146
+ inputs: [
85147
+ { internalType: "uint32", name: "remoteDomain", type: "uint32" },
85148
+ { internalType: "bytes32", name: "sender", type: "bytes32" },
85149
+ { internalType: "uint32", name: "finalityThresholdExecuted", type: "uint32" },
85150
+ { internalType: "bytes", name: "messageBody", type: "bytes" }
85151
+ ],
85152
+ name: "handleReceiveUnfinalizedMessage",
85153
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
85154
+ stateMutability: "nonpayable",
85155
+ type: "function"
85156
+ },
85157
+ {
85158
+ inputs: [
85159
+ { internalType: "address", name: "owner_", type: "address" },
85160
+ { internalType: "address", name: "rescuer_", type: "address" },
85161
+ { internalType: "address", name: "feeRecipient_", type: "address" },
85162
+ { internalType: "address", name: "denylister_", type: "address" },
85163
+ { internalType: "address", name: "tokenMinter_", type: "address" },
85164
+ { internalType: "uint32[]", name: "remoteDomains_", type: "uint32[]" },
85165
+ { internalType: "bytes32[]", name: "remoteTokenMessengers_", type: "bytes32[]" }
85166
+ ],
85167
+ name: "initialize",
85168
+ outputs: [],
85169
+ stateMutability: "nonpayable",
85170
+ type: "function"
85171
+ },
85172
+ {
85173
+ inputs: [],
85174
+ name: "initializedVersion",
85175
+ outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
85176
+ stateMutability: "view",
85177
+ type: "function"
85178
+ },
85179
+ {
85180
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
85181
+ name: "isDenylisted",
85182
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
85183
+ stateMutability: "view",
85184
+ type: "function"
85185
+ },
85186
+ {
85187
+ inputs: [],
85188
+ name: "localMessageTransmitter",
85189
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85190
+ stateMutability: "view",
85191
+ type: "function"
85192
+ },
85193
+ {
85194
+ inputs: [],
85195
+ name: "localMinter",
85196
+ outputs: [{ internalType: "contract ITokenMinterV2", name: "", type: "address" }],
85197
+ stateMutability: "view",
85198
+ type: "function"
85199
+ },
85200
+ {
85201
+ inputs: [],
85202
+ name: "messageBodyVersion",
85203
+ outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
85204
+ stateMutability: "view",
85205
+ type: "function"
85206
+ },
85207
+ {
85208
+ inputs: [],
85209
+ name: "owner",
85210
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85211
+ stateMutability: "view",
85212
+ type: "function"
85213
+ },
85214
+ {
85215
+ inputs: [],
85216
+ name: "pendingOwner",
85217
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85218
+ stateMutability: "view",
85219
+ type: "function"
85220
+ },
85221
+ {
85222
+ inputs: [{ internalType: "uint32", name: "", type: "uint32" }],
85223
+ name: "remoteTokenMessengers",
85224
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
85225
+ stateMutability: "view",
85226
+ type: "function"
85227
+ },
85228
+ { inputs: [], name: "removeLocalMinter", outputs: [], stateMutability: "nonpayable", type: "function" },
85229
+ {
85230
+ inputs: [{ internalType: "uint32", name: "domain", type: "uint32" }],
85231
+ name: "removeRemoteTokenMessenger",
85232
+ outputs: [],
85233
+ stateMutability: "nonpayable",
85234
+ type: "function"
85235
+ },
85236
+ {
85237
+ inputs: [
85238
+ { internalType: "contract IERC20", name: "tokenContract", type: "address" },
85239
+ { internalType: "address", name: "to", type: "address" },
85240
+ { internalType: "uint256", name: "amount", type: "uint256" }
85241
+ ],
85242
+ name: "rescueERC20",
85243
+ outputs: [],
85244
+ stateMutability: "nonpayable",
85245
+ type: "function"
85246
+ },
85247
+ {
85248
+ inputs: [],
85249
+ name: "rescuer",
85250
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85251
+ stateMutability: "view",
85252
+ type: "function"
85253
+ },
85254
+ {
85255
+ inputs: [{ internalType: "address", name: "_feeRecipient", type: "address" }],
85256
+ name: "setFeeRecipient",
85257
+ outputs: [],
85258
+ stateMutability: "nonpayable",
85259
+ type: "function"
85260
+ },
85261
+ {
85262
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
85263
+ name: "transferOwnership",
85264
+ outputs: [],
85265
+ stateMutability: "nonpayable",
85266
+ type: "function"
85267
+ },
85268
+ {
85269
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
85270
+ name: "unDenylist",
85271
+ outputs: [],
85272
+ stateMutability: "nonpayable",
85273
+ type: "function"
85274
+ },
85275
+ {
85276
+ inputs: [{ internalType: "address", name: "newDenylister", type: "address" }],
85277
+ name: "updateDenylister",
85278
+ outputs: [],
85279
+ stateMutability: "nonpayable",
85280
+ type: "function"
85281
+ },
85282
+ {
85283
+ inputs: [{ internalType: "address", name: "newRescuer", type: "address" }],
85284
+ name: "updateRescuer",
85285
+ outputs: [],
85286
+ stateMutability: "nonpayable",
85287
+ type: "function"
85288
+ }
85289
+ ];
85290
+
85291
+ // src/integrations/cctp/cctp.v2.ts
85292
+ var messageTransmitterAbi = new exports_ethers.utils.Interface(message_transmitter_v2_abi_default);
85293
+ var tokenMessengerAbi = new exports_ethers.utils.Interface(token_messenger_v2_abi_default);
85294
+ var DepositForBurnCalldata = ({
85295
+ amount,
85296
+ destinationDomain,
85297
+ mintRecipient,
85298
+ burnToken,
85299
+ destinationCaller,
85300
+ maxFee,
85301
+ minFinalityThreshold
85302
+ }) => {
85303
+ return tokenMessengerAbi.encodeFunctionData("depositForBurn", [
85304
+ amount,
85305
+ destinationDomain,
85306
+ mintRecipient,
85307
+ burnToken,
85308
+ destinationCaller,
85309
+ maxFee,
85310
+ minFinalityThreshold
85311
+ ]);
85312
+ };
85313
+ var depositForBurnToCctpTrx = ({
85314
+ args,
85315
+ tokenMessengerAddress
85316
+ }) => {
85317
+ return createCall({
85318
+ operation: 0,
85319
+ to: tokenMessengerAddress,
85320
+ value: 0n,
85321
+ data: DepositForBurnCalldata(args)
85322
+ });
85323
+ };
85324
+ var ReceiveMessageCalldata = ({ message, attestation }) => {
85325
+ return messageTransmitterAbi.encodeFunctionData("receiveMessage", [message, attestation]);
85326
+ };
85327
+ var receiveMessageFromCctpTrx = ({
85328
+ args,
85329
+ messageTransmitterAddress
85330
+ }) => {
85331
+ return createCall({
85332
+ operation: 0,
85333
+ to: messageTransmitterAddress,
85334
+ value: 0n,
85335
+ data: ReceiveMessageCalldata(args)
85336
+ });
85337
+ };
84585
85338
  // src/lib/utils.ts
84586
85339
  var executeTrx = ({
84587
85340
  client,
@@ -84725,6 +85478,7 @@ export {
84725
85478
  repayToLendleTrx,
84726
85479
  repayToAaveV3Trx,
84727
85480
  repayMorphoBlueTrx,
85481
+ receiveMessageFromCctpTrx,
84728
85482
  merklClaimTrx,
84729
85483
  merklClaimCalldata,
84730
85484
  merkl_distributor_abi_default as merklAbi,
@@ -84744,6 +85498,7 @@ export {
84744
85498
  execTransactionFromModuleTrx,
84745
85499
  depositToLendleTrx,
84746
85500
  depositMorphoVaultTrx,
85501
+ depositForBurnToCctpTrx,
84747
85502
  createVaultProxyTrx,
84748
85503
  createOrderTrx,
84749
85504
  createCall,
@@ -84818,6 +85573,7 @@ export {
84818
85573
  RepayToLendleCalldata,
84819
85574
  RepayToAaveV3L1Calldata,
84820
85575
  RepayMorphoBlueCalldata,
85576
+ ReceiveMessageCalldata,
84821
85577
  QuoteSendTrx,
84822
85578
  QuoteSendCalldata,
84823
85579
  permit2_abi_default as Permit2Abi,
@@ -84835,6 +85591,7 @@ export {
84835
85591
  erc721_abi_default as ERC721,
84836
85592
  DepositToLendleCalldata,
84837
85593
  DepositMorphoVaultCalldata,
85594
+ DepositForBurnCalldata,
84838
85595
  DelayedTransactionCalldata,
84839
85596
  DecreasePositionSwapType,
84840
85597
  DELEGATE_CALL_OP_CODE,
@@ -84843,6 +85600,8 @@ export {
84843
85600
  CreateOrderCalldata,
84844
85601
  Commands,
84845
85602
  ClaimFundingFeesCalldata,
85603
+ token_messenger_v2_abi_default as CctpTokenMessengerV2Abi,
85604
+ message_transmitter_v2_abi_default as CctpMessageTransmitterV2Abi,
84846
85605
  CancelOrderCalldata,
84847
85606
  CALL_OP_CODE,
84848
85607
  BorrowMorphoBlueCalldata,
@@ -84855,4 +85614,4 @@ export {
84855
85614
  aave_pool_abi_default as AaveL1PoolAbi
84856
85615
  };
84857
85616
 
84858
- //# debugId=8B243C0E09AB3DEC64756E2164756E21
85617
+ //# debugId=550D3BE416FABCE364756E2164756E21