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