damm-sdk 1.1.30-alpha.1 → 1.1.30-alpha.10
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 +2144 -3
- package/dist/index.cjs.map +7 -3
- package/dist/index.js +14646 -11988
- package/dist/index.js.map +24 -14
- package/dist/integrations/index.d.ts +2 -0
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/merkl/index.d.ts +3 -0
- package/dist/integrations/merkl/index.d.ts.map +1 -0
- package/dist/integrations/merkl/merkl.d.ts +14 -0
- package/dist/integrations/merkl/merkl.d.ts.map +1 -0
- package/dist/integrations/merkl/merkl.distributor.abi.d.ts +620 -0
- package/dist/integrations/merkl/merkl.distributor.abi.d.ts.map +1 -0
- package/dist/integrations/oft/index.d.ts +3 -0
- package/dist/integrations/oft/index.d.ts.map +1 -0
- package/dist/integrations/oft/oft.adapter.abi.d.ts +1521 -0
- package/dist/integrations/oft/oft.adapter.abi.d.ts.map +1 -0
- package/dist/integrations/oft/oft.adapter.d.ts +35 -0
- package/dist/integrations/oft/oft.adapter.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/integrations/index.ts +2 -0
- package/src/integrations/merkl/index.ts +2 -0
- package/src/integrations/merkl/merkl.distributor.abi.ts +367 -0
- package/src/integrations/merkl/merkl.ts +33 -0
- package/src/integrations/oft/index.ts +2 -0
- package/src/integrations/oft/oft.adapter.abi.ts +1543 -0
- package/src/integrations/oft/oft.adapter.ts +97 -0
- package/src/lib/contractsRegistry.json +151 -2
package/dist/index.cjs
CHANGED
|
@@ -44338,10 +44338,14 @@ __export(exports_src, {
|
|
|
44338
44338
|
setUpTransactionUnwrapperCalldata: () => setUpTransactionUnwrapperCalldata,
|
|
44339
44339
|
setUpTransactionUnwrapper: () => setUpTransactionUnwrapper,
|
|
44340
44340
|
serializeCall: () => serializeCall,
|
|
44341
|
+
sendOFTTrx: () => sendOFTTrx,
|
|
44341
44342
|
revokeFromVaultWhitelistTrx: () => revokeFromVaultWhitelistTrx,
|
|
44342
44343
|
repayToLendleTrx: () => repayToLendleTrx,
|
|
44343
44344
|
repayToAaveV3Trx: () => repayToAaveV3Trx,
|
|
44344
44345
|
repayMorphoBlueTrx: () => repayMorphoBlueTrx,
|
|
44346
|
+
merklClaimTrx: () => merklClaimTrx,
|
|
44347
|
+
merklClaimCalldata: () => merklClaimCalldata,
|
|
44348
|
+
merklAbi: () => merkl_distributor_abi_default,
|
|
44345
44349
|
maxApproveERC20Trx: () => maxApproveERC20Trx,
|
|
44346
44350
|
lagoonV1VaultAbi: () => vault_abi_default,
|
|
44347
44351
|
lagoonV1SiloAbi: () => silo_abi_default,
|
|
@@ -44421,6 +44425,7 @@ __export(exports_src, {
|
|
|
44421
44425
|
SlipstreamDecreaseLiquidityCalldata: () => SlipstreamDecreaseLiquidityCalldata,
|
|
44422
44426
|
SlipstreamCollectFeesCalldata: () => SlipstreamCollectFeesCalldata,
|
|
44423
44427
|
SlipstreamBurnPositionCalldata: () => SlipstreamBurnPositionCalldata,
|
|
44428
|
+
SendOFTCalldata: () => SendOFTCalldata,
|
|
44424
44429
|
SafeMultiSendAbi: () => multisend_abi_default,
|
|
44425
44430
|
SafeL2Abi: () => safe_L2_abi_default,
|
|
44426
44431
|
SafeAbi: () => safe_abi_default,
|
|
@@ -44431,9 +44436,12 @@ __export(exports_src, {
|
|
|
44431
44436
|
RepayToLendleCalldata: () => RepayToLendleCalldata,
|
|
44432
44437
|
RepayToAaveV3L1Calldata: () => RepayToAaveV3L1Calldata,
|
|
44433
44438
|
RepayMorphoBlueCalldata: () => RepayMorphoBlueCalldata,
|
|
44439
|
+
QuoteSendTrx: () => QuoteSendTrx,
|
|
44440
|
+
QuoteSendCalldata: () => QuoteSendCalldata,
|
|
44434
44441
|
Permit2Abi: () => permit2_abi_default,
|
|
44435
44442
|
PERMIT2_ADDRESS_CANONICAL: () => PERMIT2_ADDRESS_CANONICAL,
|
|
44436
44443
|
OrderType: () => OrderType,
|
|
44444
|
+
OFTAdapterAbi: () => oft_adapter_abi_default,
|
|
44437
44445
|
NextTxCalldata: () => NextTxCalldata,
|
|
44438
44446
|
MultisendBuilder: () => MultisendBuilder,
|
|
44439
44447
|
MorphoVaultAbi: () => morpho_vault_abi_default,
|
|
@@ -52712,6 +52720,9 @@ var contractsRegistry_default = {
|
|
|
52712
52720
|
settlePairVerifier: "0x83a502479931508f977321615BA7e6F2AA933Cf1"
|
|
52713
52721
|
}
|
|
52714
52722
|
},
|
|
52723
|
+
merkl: {
|
|
52724
|
+
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
52725
|
+
},
|
|
52715
52726
|
gnosisSafe: {
|
|
52716
52727
|
v1_4_1: {
|
|
52717
52728
|
safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
|
|
@@ -52735,6 +52746,8 @@ var contractsRegistry_default = {
|
|
|
52735
52746
|
dai: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
|
|
52736
52747
|
usdce: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
|
|
52737
52748
|
aUSDT: "0x6ab707Aca953eDAeFBc4fD23bA73294241490620",
|
|
52749
|
+
arb: "0x912CE59144191C1204E64559FE8253a0e49E6548",
|
|
52750
|
+
morpho: "0x40BD670A58238e6E230c430BBb5cE6ec0d40df48",
|
|
52738
52751
|
aUSDC: "0x724dc807b04555b71ed48a6896b6F41593b8C637",
|
|
52739
52752
|
aDAI: "0x82E64f49Ed5EC1bC6e43DAD4FC8Af9bb3A2312EE",
|
|
52740
52753
|
aUSDCe: "0x625E7708f30cA75bfd92586e17077590C60eb4cD",
|
|
@@ -52742,6 +52755,21 @@ var contractsRegistry_default = {
|
|
|
52742
52755
|
wbtc: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
|
|
52743
52756
|
link: "0xf97f4df75117a78c1A5a0DBb814Af92458539FB4"
|
|
52744
52757
|
},
|
|
52758
|
+
OFTAdapters: {
|
|
52759
|
+
"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": "0x238A52455a1EF6C987CaC94b28B4081aFE50ba06"
|
|
52760
|
+
},
|
|
52761
|
+
stargate: {
|
|
52762
|
+
feeLibV1ETH: "0xda82A31dF339BfDF0123661134b4DB63Cb1706f5",
|
|
52763
|
+
feeLibV1USDC: "0x80F755e3091b2Ad99c08Da8D13E9c7635C1b8161",
|
|
52764
|
+
feeLibV1USDT: "0x1F605162282570dFa6255D27895587f4117F52FA",
|
|
52765
|
+
stargateMultiRewarder: "0x957b12606690C7692eF92bb5c34a0E63baED99C7",
|
|
52766
|
+
stargatePoolNative: "0xA45B5130f36CDcA45667738e2a258AB09f4A5f7F",
|
|
52767
|
+
stargatePoolUSDC: "0xe8CDF27AcD73a434D661C84887215F7598e7d0d3",
|
|
52768
|
+
stargatePoolUSDT: "0xcE8CcA271Ebc0533920C83d39F417ED6A0abB7D0",
|
|
52769
|
+
stargateStaking: "0x3da4f8E456AC648c489c286B99Ca37B666be7C4C",
|
|
52770
|
+
tokenMessaging: "0x19cFCE47eD54a88614648DC3f19A5980097007dD",
|
|
52771
|
+
treasurer: "0x146c8e409C113ED87C6183f4d25c50251DFfbb3a"
|
|
52772
|
+
},
|
|
52745
52773
|
enso: {
|
|
52746
52774
|
routerV2: "0xF75584eF6673aD213a685a1B58Cc0330B8eA22Cf"
|
|
52747
52775
|
},
|
|
@@ -52767,6 +52795,9 @@ var contractsRegistry_default = {
|
|
|
52767
52795
|
weth: "0x4200000000000000000000000000000000000006",
|
|
52768
52796
|
aero: "0x940181a94A35A4569E4529A3CDfB74e38FD98631"
|
|
52769
52797
|
},
|
|
52798
|
+
merkl: {
|
|
52799
|
+
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
52800
|
+
},
|
|
52770
52801
|
lagoonV0_5: {
|
|
52771
52802
|
factory: "0xC953Fd298FdfA8Ed0D38ee73772D3e21Bf19c61b",
|
|
52772
52803
|
vaultImpl: "0xE50554ec802375C9c3F9c087a8a7bb8C26d3DEDf",
|
|
@@ -52807,6 +52838,17 @@ var contractsRegistry_default = {
|
|
|
52807
52838
|
morpho: {
|
|
52808
52839
|
morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb"
|
|
52809
52840
|
},
|
|
52841
|
+
stargate: {
|
|
52842
|
+
feeLibV1ETH: "0x17E450Be3Ba9557F2378E20d64AD417E59Ef9A34",
|
|
52843
|
+
stargateMultiRewarder: "0x9Aa02D4Fae7F58b8E8f34c66E756cC734DAc7fe4",
|
|
52844
|
+
stargatePoolNative: "0xdc181Bd607330aeeBEF6ea62e03e5e1Fb4B6F7C7",
|
|
52845
|
+
stargatePoolUSDC: "0x27a16dc786820B16E5c9028b75B99F6f604b5d26",
|
|
52846
|
+
stargateStaking: "0xDFc47DCeF7e8f9Ab19a1b8Af3eeCF000C7ea0B80",
|
|
52847
|
+
tokenMessaging: "0x5634c4a5Fed09819E3c46D86A965Dd9447d86e47",
|
|
52848
|
+
treasurer: "0xd47b03ee6d86Cf251ee7860FB2ACf9f91B9fD4d7",
|
|
52849
|
+
feeLibV1USDC: "0x08ed1d79D509A6f1020685535028ae60C144441E"
|
|
52850
|
+
},
|
|
52851
|
+
OFTAdapters: {},
|
|
52810
52852
|
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
52811
52853
|
},
|
|
52812
52854
|
polygon: {
|
|
@@ -52814,6 +52856,9 @@ var contractsRegistry_default = {
|
|
|
52814
52856
|
router: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
|
|
52815
52857
|
positionManager: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88"
|
|
52816
52858
|
},
|
|
52859
|
+
merkl: {
|
|
52860
|
+
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
52861
|
+
},
|
|
52817
52862
|
gnosisSafe: {
|
|
52818
52863
|
v1_4_1: {
|
|
52819
52864
|
safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
|
|
@@ -52826,6 +52871,7 @@ var contractsRegistry_default = {
|
|
|
52826
52871
|
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
52827
52872
|
tokens: {
|
|
52828
52873
|
usdce: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
|
|
52874
|
+
usdc: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
|
|
52829
52875
|
usdt: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
|
|
52830
52876
|
sand: "0xBbba073C31bF03b8ACf7c28EF0738DeCF3695683",
|
|
52831
52877
|
weth: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"
|
|
@@ -52843,6 +52889,19 @@ var contractsRegistry_default = {
|
|
|
52843
52889
|
morpho: {
|
|
52844
52890
|
morphoBlue: "0x1bF0c2541F820E775182832f06c0B7Fc27A25f67"
|
|
52845
52891
|
},
|
|
52892
|
+
OFTAdapters: {
|
|
52893
|
+
"0xc2132D05D31c914a87C6611C10748AEb04B58e8F": "0x6ba10300f0dc58b7a1e4c0e41f5dabb7d7829e13"
|
|
52894
|
+
},
|
|
52895
|
+
stargate: {
|
|
52896
|
+
feeLibV1USDC: "0x3Fc69CC4A842838bCDC9499178740226062b14E4",
|
|
52897
|
+
feeLibV1USDT: "0x4e422B0aCb2Bd7e3aC70B5c0E5eb806e86a94038",
|
|
52898
|
+
stargateMultiRewarder: "0xd240a859Efc77b7455AD1B1402357784a2D72a1B",
|
|
52899
|
+
stargatePoolUSDC: "0x9Aa02D4Fae7F58b8E8f34c66E756cC734DAc7fe4",
|
|
52900
|
+
stargatePoolUSDT: "0xd47b03ee6d86Cf251ee7860FB2ACf9f91B9fD4d7",
|
|
52901
|
+
stargateStaking: "0x4694900bDbA99Edf07A2E46C4093f88F9106a90D",
|
|
52902
|
+
tokenMessaging: "0x6CE9bf8CDaB780416AD1fd87b318A077D2f50EaC",
|
|
52903
|
+
treasurer: "0x36ed193dc7160D3858EC250e69D12B03Ca087D08"
|
|
52904
|
+
},
|
|
52846
52905
|
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
52847
52906
|
},
|
|
52848
52907
|
bsc: {
|
|
@@ -52850,6 +52909,9 @@ var contractsRegistry_default = {
|
|
|
52850
52909
|
router: "0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2",
|
|
52851
52910
|
positionManager: "0x7b8A01B39D58278b5DE7e48c8449c9f4F5170613"
|
|
52852
52911
|
},
|
|
52912
|
+
merkl: {
|
|
52913
|
+
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
52914
|
+
},
|
|
52853
52915
|
gnosisSafe: {
|
|
52854
52916
|
v1_4_1: {
|
|
52855
52917
|
safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
|
|
@@ -52862,6 +52924,8 @@ var contractsRegistry_default = {
|
|
|
52862
52924
|
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
52863
52925
|
tokens: {
|
|
52864
52926
|
wbnb: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
|
|
52927
|
+
usdc: "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
|
|
52928
|
+
usdt: "0x55d398326f99059fF775485246999027B3197955",
|
|
52865
52929
|
sand: "0xac531Eb26Ca1d21b85126De8FB87E80E09002DcF"
|
|
52866
52930
|
},
|
|
52867
52931
|
zodiac: {
|
|
@@ -52873,12 +52937,25 @@ var contractsRegistry_default = {
|
|
|
52873
52937
|
"1inch": {
|
|
52874
52938
|
aggregatorV6: "0x111111125421cA6dc452d289314280a0f8842A65"
|
|
52875
52939
|
},
|
|
52940
|
+
stargate: {
|
|
52941
|
+
feeLibV1USDC: "0x622244fFF1328586D0754D67cc6Ab77e7ab38B7D",
|
|
52942
|
+
stargateMultiRewarder: "0x68D7877b16002AD34836ba55416bcA9B92B55589",
|
|
52943
|
+
stargatePoolUSDT: "0x138EB30f73BC423c6455C53df6D89CB01d9eBc63",
|
|
52944
|
+
stargateStaking: "0x26727C78B0209d9E787b2f9ac8f0238B122a3098",
|
|
52945
|
+
tokenMessaging: "0x6E3d884C96d640526F273C61dfcF08915eBd7e2B",
|
|
52946
|
+
treasurer: "0x0a6A15964fEe494A881338D65940430797F0d97C",
|
|
52947
|
+
feeLibV1USDT: "0xDd002227d9bC27f10066ED9A17bE89c43bCafC31",
|
|
52948
|
+
stargatePoolUSDC: "0x962Bd449E630b0d928f308Ce63f1A21F02576057"
|
|
52949
|
+
},
|
|
52876
52950
|
wrappedNativeToken: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
|
|
52877
52951
|
},
|
|
52878
52952
|
optimism: {
|
|
52879
52953
|
aaveV3: {
|
|
52880
52954
|
pool: "0x794a61358D6845594F94dc1DB02A252b5b4814aD"
|
|
52881
52955
|
},
|
|
52956
|
+
merkl: {
|
|
52957
|
+
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
52958
|
+
},
|
|
52882
52959
|
tokens: {
|
|
52883
52960
|
usdc: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
|
|
52884
52961
|
usdt: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
|
|
@@ -52916,6 +52993,19 @@ var contractsRegistry_default = {
|
|
|
52916
52993
|
router: "0x0792a633F0c19c351081CF4B211F68F79bCc9676",
|
|
52917
52994
|
positionManager: "0x416b433906b1B72FA758e166e239c43d68dC6F29",
|
|
52918
52995
|
guageImpl: "0x7155b84A704F0657975827c65Ff6fe42e3A962bb"
|
|
52996
|
+
},
|
|
52997
|
+
OFTAdapters: {},
|
|
52998
|
+
stargate: {
|
|
52999
|
+
feeLibV1ETH: "0x80F755e3091b2Ad99c08Da8D13E9c7635C1b8161",
|
|
53000
|
+
feeLibV1USDC: "0x1F605162282570dFa6255D27895587f4117F52FA",
|
|
53001
|
+
feeLibV1USDT: "0x3da4f8E456AC648c489c286B99Ca37B666be7C4C",
|
|
53002
|
+
stargateMultiRewarder: "0x146c8e409C113ED87C6183f4d25c50251DFfbb3a",
|
|
53003
|
+
stargatePoolNative: "0xe8CDF27AcD73a434D661C84887215F7598e7d0d3",
|
|
53004
|
+
stargatePoolUSDC: "0xcE8CcA271Ebc0533920C83d39F417ED6A0abB7D0",
|
|
53005
|
+
stargatePoolUSDT: "0x19cFCE47eD54a88614648DC3f19A5980097007dD",
|
|
53006
|
+
stargateStaking: "0xFBb5A71025BEf1A8166C9BCb904a120AA17d6443",
|
|
53007
|
+
tokenMessaging: "0xF1fCb4CBd57B67d683972A59B6a7b1e2E8Bf27E6",
|
|
53008
|
+
treasurer: "0x644abb1e17291b4403966119d15Ab081e4a487e9"
|
|
52919
53009
|
}
|
|
52920
53010
|
},
|
|
52921
53011
|
mainnet: {
|
|
@@ -52923,6 +53013,9 @@ var contractsRegistry_default = {
|
|
|
52923
53013
|
router: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
|
|
52924
53014
|
positionManager: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88"
|
|
52925
53015
|
},
|
|
53016
|
+
merkl: {
|
|
53017
|
+
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
53018
|
+
},
|
|
52926
53019
|
uniswapV4: {
|
|
52927
53020
|
universalRouter: "0x66a9893cC07D91D95644AEDD05D03f95e1dBA8Af",
|
|
52928
53021
|
positionManager: "0xbD216513d74C8cf14cf4747E6AaA6420FF64ee9e",
|
|
@@ -52958,6 +53051,23 @@ var contractsRegistry_default = {
|
|
|
52958
53051
|
},
|
|
52959
53052
|
wrappedNativeToken: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
52960
53053
|
poster: "0x000000000000cd17345801aa8147b8D3950260FF",
|
|
53054
|
+
OFTAdapters: {
|
|
53055
|
+
"0xdAC17F958D2ee523a2206206994597C13D831ec7": "0x6c96de32cea08842dcc4058c14d3aaad7fa41dee"
|
|
53056
|
+
},
|
|
53057
|
+
stargate: {
|
|
53058
|
+
feeLibV1ETH: "0x3E368B6C95c6fEfB7A16dCc0D756389F3c658a06",
|
|
53059
|
+
feeLibV1USDC: "0x52B35406CB2FB5e0038EdEcFc129A152a1f74087",
|
|
53060
|
+
feeLibV1mETH: "0x6D5521F46b2cba9443feFC09cBaC3B15AE0F73eB",
|
|
53061
|
+
stargateMultiRewarder: "0x5871A7f88b0f3F5143Bf599Fd45F8C0Dc237E881",
|
|
53062
|
+
stargatePoolNative: "0x77b2043768d28E9C9aB44E1aBfC95944bcE57931",
|
|
53063
|
+
stargatePoolUSDC: "0xc026395860Db2d07ee33e05fE50ed7bD583189C7",
|
|
53064
|
+
stargatePoolUSDT: "0x933597a323Eb81cAe705C5bC29985172fd5A3973",
|
|
53065
|
+
stargateStaking: "0xFF551fEDdbeDC0AeE764139cCD9Cb644Bb04A6BD",
|
|
53066
|
+
tokenMessaging: "0x6d6620eFa72948C5f68A3C8646d58C00d3f4A980",
|
|
53067
|
+
treasurer: "0x1041D127b2d4BC700F0F563883bC689502606918",
|
|
53068
|
+
feeLibV1USDT: "0xe171AFcd1E0394b3312e68ca823D5BC87F3Db311",
|
|
53069
|
+
stargatePoolmETH: "0x268Ca24DAefF1FaC2ed883c598200CcbB79E931d"
|
|
53070
|
+
},
|
|
52961
53071
|
zodiac: {
|
|
52962
53072
|
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
|
|
52963
53073
|
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
|
|
@@ -53008,6 +53118,17 @@ var contractsRegistry_default = {
|
|
|
53008
53118
|
morpho: {
|
|
53009
53119
|
morphoBlue: "0x8f5ae9CddB9f68de460C77730b018Ae7E04a140A"
|
|
53010
53120
|
},
|
|
53121
|
+
OFTAdapters: {
|
|
53122
|
+
"0x9151434b16b9763660705744891fA906F660EcC5": "0xc07be8994d035631c36fb4a89c918cefb2f03ec3"
|
|
53123
|
+
},
|
|
53124
|
+
stargate: {
|
|
53125
|
+
creditMessaging: "0xAf368c91793CB22739386DFCbBb2F1A9e4bCBeBf",
|
|
53126
|
+
feeLibV1ETH: "0xE1AD845D93853fff44990aE0DcecD8575293681e",
|
|
53127
|
+
oftWrapper: "0xd9492653457A69E9f4987DB43D7fa0112E620Cb4",
|
|
53128
|
+
stargatePoolNative: "0xe9aBA835f813ca05E50A6C0ce65D0D74390F7dE7",
|
|
53129
|
+
tokenMessaging: "0xB1EeAD6959cb5bB9B20417d6689922523B2B86C3",
|
|
53130
|
+
treasurer: "0x6D205337F45D6850c3c3006e28d5b52c8a432c35"
|
|
53131
|
+
},
|
|
53011
53132
|
wrappedNativeToken: "0x4200000000000000000000000000000000000006"
|
|
53012
53133
|
},
|
|
53013
53134
|
mantle: {
|
|
@@ -53015,6 +53136,9 @@ var contractsRegistry_default = {
|
|
|
53015
53136
|
router: "0x319B69888b0d11cEC22caA5034e25FfFBDc88421",
|
|
53016
53137
|
positionManager: "0x218bf598D1453383e2F4AA7b14fFB9BfB102D637"
|
|
53017
53138
|
},
|
|
53139
|
+
merkl: {
|
|
53140
|
+
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
53141
|
+
},
|
|
53018
53142
|
gnosisSafe: {
|
|
53019
53143
|
v1_4_1: {
|
|
53020
53144
|
safeL1Singleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
|
|
@@ -53034,7 +53158,7 @@ var contractsRegistry_default = {
|
|
|
53034
53158
|
},
|
|
53035
53159
|
tokens: {
|
|
53036
53160
|
ausd: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
|
|
53037
|
-
usdc: "
|
|
53161
|
+
usdc: "0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",
|
|
53038
53162
|
usdt: "0x201eba5cc46d216ce6dc03f6a759e8e766e956ae",
|
|
53039
53163
|
usde: "0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34",
|
|
53040
53164
|
cmeth: "0xe6829d9a7ee3040e1276fa75293bde931859e8fa"
|
|
@@ -53044,16 +53168,33 @@ var contractsRegistry_default = {
|
|
|
53044
53168
|
registry: "0x47A144e67834408716cB40Fa87fc886D63362ddC",
|
|
53045
53169
|
vaultImpl: "0xA7260Cee56B679eC05a736A7b603b8DA8525Dd69"
|
|
53046
53170
|
},
|
|
53171
|
+
stargate: {
|
|
53172
|
+
feeLibV1ETH: "0x2BC3141AaeA1d84bcd557EeB543253fd9685c0C4",
|
|
53173
|
+
feeLibV1USDT: "0xa81274AFac523D639DbcA2C32c1470f1600cCEBe",
|
|
53174
|
+
stargateMultiRewarder: "0x0184857631ddb3e9E230Bca303F0Ab1e516FC0c8",
|
|
53175
|
+
stargatePoolETH: "0x4c1d3Fc3fC3c177c3b633427c2F769276c547463",
|
|
53176
|
+
stargatePoolUSDC: "0xAc290Ad4e0c891FDc295ca4F0a6214cf6dC6acDC",
|
|
53177
|
+
stargatePoolUSDT: "0xB715B85682B731dB9D5063187C450095c91C57FC",
|
|
53178
|
+
stargateStaking: "0x02DC1042E623A8677B002981164ccc05d25d486a",
|
|
53179
|
+
tokenMessaging: "0x41B491285A4f888F9f636cEc8a363AB9770a0AEF",
|
|
53180
|
+
treasurer: "0x4e8c9BaC25CEF251352aCe831270D564615b9Ce1",
|
|
53181
|
+
feeLibV1USDC: "0x288968ffF40543F168eAf29A54D5C0affD3C8df7",
|
|
53182
|
+
feeLibV1mETH: "0x6eC3EfD27d8b1070Fe96910EF416D54e845045c9",
|
|
53183
|
+
stargatePoolmETH: "0xF7628d84a2BbD9bb9c8E686AC95BB5d55169F3F1"
|
|
53184
|
+
},
|
|
53047
53185
|
wrappedNativeToken: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
53048
53186
|
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
53049
53187
|
},
|
|
53050
53188
|
worldchain: {
|
|
53051
53189
|
tokens: {
|
|
53052
53190
|
wld: "0x2cFc85d8E48F8EAB294be644d9E25C3030863003",
|
|
53053
|
-
usdc: "
|
|
53191
|
+
usdc: "0x79A02482A880bCe3F13E09da970dC34dB4cD24D1",
|
|
53054
53192
|
weth: "0x4200000000000000000000000000000000000006",
|
|
53055
53193
|
wbtc: "0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3"
|
|
53056
53194
|
},
|
|
53195
|
+
merkl: {
|
|
53196
|
+
distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
53197
|
+
},
|
|
53057
53198
|
lagoonV0_5: {
|
|
53058
53199
|
factory: "0x600fA26581771F56221FC9847A834B3E5fd34AF7",
|
|
53059
53200
|
registry: "0x68e793658def657551fd4D3cA6Bc04b4E7723655",
|
|
@@ -53083,6 +53224,14 @@ var contractsRegistry_default = {
|
|
|
53083
53224
|
proxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
|
|
53084
53225
|
}
|
|
53085
53226
|
},
|
|
53227
|
+
stargate: {
|
|
53228
|
+
stargateMultiRewarder: "0xE89Ca5C58E2978c031f7796Ca8580bC88Ea0B3dD",
|
|
53229
|
+
stargatePoolNative: "0x81F6138153d473E8c5EcebD3DC8Cd4903506B075",
|
|
53230
|
+
stargateStaking: "0x25BBf59ef9246Dc65bFac8385D55C5e524A7B9eA",
|
|
53231
|
+
tokenMessaging: "0x5f688F563Dc16590e570f97b542FA87931AF2feD",
|
|
53232
|
+
treasurer: "0xf5F74d2508e97A3a7CCA2ccb75c8325D66b46152",
|
|
53233
|
+
feeLibV1ETH: "0x6E3d884C96d640526F273C61dfcF08915eBd7e2B"
|
|
53234
|
+
},
|
|
53086
53235
|
wrappedNativeToken: "0x4200000000000000000000000000000000000006",
|
|
53087
53236
|
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
53088
53237
|
},
|
|
@@ -53118,6 +53267,14 @@ var contractsRegistry_default = {
|
|
|
53118
53267
|
morpho: {
|
|
53119
53268
|
morphoBlue: "0xd011EE229E7459ba1ddd22631eF7bF528d424A14"
|
|
53120
53269
|
},
|
|
53270
|
+
stargate: {
|
|
53271
|
+
feeLibV1USDC: "0xCd4302D950e7e6606b6910Cd232758b5ad423311",
|
|
53272
|
+
stargateOFTUSDT: "0x1C10CC06DC6D35970d1D53B2A23c76ef370d4135",
|
|
53273
|
+
tokenMessaging: "0x45d417612e177672958dC0537C45a8f8d754Ac2E",
|
|
53274
|
+
treasurer: "0x8c1014B5936dD88BAA5F4DB0423C3003615E03a0",
|
|
53275
|
+
feeLibV1USDT: "0x711b5aAFd4d0A5b7B863Ca434A2678D086830d8E",
|
|
53276
|
+
stargateOFTUSDC: "0x77C71633C34C3784ede189d74223122422492a0f"
|
|
53277
|
+
},
|
|
53121
53278
|
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
53122
53279
|
}
|
|
53123
53280
|
};
|
|
@@ -82000,6 +82157,1990 @@ var withdrawMorphoVaultTrx = ({
|
|
|
82000
82157
|
data: WithdrawMorphoVaultCalldata(args)
|
|
82001
82158
|
});
|
|
82002
82159
|
};
|
|
82160
|
+
// src/integrations/merkl/merkl.distributor.abi.ts
|
|
82161
|
+
var merkl_distributor_abi_default = [
|
|
82162
|
+
{ inputs: [], stateMutability: "nonpayable", type: "constructor" },
|
|
82163
|
+
{ inputs: [], name: "InvalidDispute", type: "error" },
|
|
82164
|
+
{ inputs: [], name: "InvalidLengths", type: "error" },
|
|
82165
|
+
{ inputs: [], name: "InvalidProof", type: "error" },
|
|
82166
|
+
{ inputs: [], name: "InvalidUninitializedRoot", type: "error" },
|
|
82167
|
+
{ inputs: [], name: "NoDispute", type: "error" },
|
|
82168
|
+
{ inputs: [], name: "NotGovernor", type: "error" },
|
|
82169
|
+
{ inputs: [], name: "NotTrusted", type: "error" },
|
|
82170
|
+
{ inputs: [], name: "NotWhitelisted", type: "error" },
|
|
82171
|
+
{ inputs: [], name: "UnresolvedDispute", type: "error" },
|
|
82172
|
+
{ inputs: [], name: "ZeroAddress", type: "error" },
|
|
82173
|
+
{
|
|
82174
|
+
anonymous: false,
|
|
82175
|
+
inputs: [
|
|
82176
|
+
{ indexed: false, internalType: "address", name: "previousAdmin", type: "address" },
|
|
82177
|
+
{ indexed: false, internalType: "address", name: "newAdmin", type: "address" }
|
|
82178
|
+
],
|
|
82179
|
+
name: "AdminChanged",
|
|
82180
|
+
type: "event"
|
|
82181
|
+
},
|
|
82182
|
+
{
|
|
82183
|
+
anonymous: false,
|
|
82184
|
+
inputs: [{ indexed: true, internalType: "address", name: "beacon", type: "address" }],
|
|
82185
|
+
name: "BeaconUpgraded",
|
|
82186
|
+
type: "event"
|
|
82187
|
+
},
|
|
82188
|
+
{
|
|
82189
|
+
anonymous: false,
|
|
82190
|
+
inputs: [
|
|
82191
|
+
{ indexed: true, internalType: "address", name: "user", type: "address" },
|
|
82192
|
+
{ indexed: true, internalType: "address", name: "token", type: "address" },
|
|
82193
|
+
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
|
|
82194
|
+
],
|
|
82195
|
+
name: "Claimed",
|
|
82196
|
+
type: "event"
|
|
82197
|
+
},
|
|
82198
|
+
{
|
|
82199
|
+
anonymous: false,
|
|
82200
|
+
inputs: [{ indexed: false, internalType: "uint256", name: "_disputeAmount", type: "uint256" }],
|
|
82201
|
+
name: "DisputeAmountUpdated",
|
|
82202
|
+
type: "event"
|
|
82203
|
+
},
|
|
82204
|
+
{
|
|
82205
|
+
anonymous: false,
|
|
82206
|
+
inputs: [{ indexed: false, internalType: "uint48", name: "_disputePeriod", type: "uint48" }],
|
|
82207
|
+
name: "DisputePeriodUpdated",
|
|
82208
|
+
type: "event"
|
|
82209
|
+
},
|
|
82210
|
+
{
|
|
82211
|
+
anonymous: false,
|
|
82212
|
+
inputs: [{ indexed: false, internalType: "bool", name: "valid", type: "bool" }],
|
|
82213
|
+
name: "DisputeResolved",
|
|
82214
|
+
type: "event"
|
|
82215
|
+
},
|
|
82216
|
+
{
|
|
82217
|
+
anonymous: false,
|
|
82218
|
+
inputs: [{ indexed: true, internalType: "address", name: "_disputeToken", type: "address" }],
|
|
82219
|
+
name: "DisputeTokenUpdated",
|
|
82220
|
+
type: "event"
|
|
82221
|
+
},
|
|
82222
|
+
{
|
|
82223
|
+
anonymous: false,
|
|
82224
|
+
inputs: [{ indexed: false, internalType: "string", name: "reason", type: "string" }],
|
|
82225
|
+
name: "Disputed",
|
|
82226
|
+
type: "event"
|
|
82227
|
+
},
|
|
82228
|
+
{
|
|
82229
|
+
anonymous: false,
|
|
82230
|
+
inputs: [{ indexed: false, internalType: "uint8", name: "version", type: "uint8" }],
|
|
82231
|
+
name: "Initialized",
|
|
82232
|
+
type: "event"
|
|
82233
|
+
},
|
|
82234
|
+
{
|
|
82235
|
+
anonymous: false,
|
|
82236
|
+
inputs: [
|
|
82237
|
+
{ indexed: true, internalType: "address", name: "user", type: "address" },
|
|
82238
|
+
{ indexed: false, internalType: "bool", name: "isEnabled", type: "bool" }
|
|
82239
|
+
],
|
|
82240
|
+
name: "OperatorClaimingToggled",
|
|
82241
|
+
type: "event"
|
|
82242
|
+
},
|
|
82243
|
+
{
|
|
82244
|
+
anonymous: false,
|
|
82245
|
+
inputs: [
|
|
82246
|
+
{ indexed: true, internalType: "address", name: "user", type: "address" },
|
|
82247
|
+
{ indexed: true, internalType: "address", name: "operator", type: "address" },
|
|
82248
|
+
{ indexed: false, internalType: "bool", name: "isWhitelisted", type: "bool" }
|
|
82249
|
+
],
|
|
82250
|
+
name: "OperatorToggled",
|
|
82251
|
+
type: "event"
|
|
82252
|
+
},
|
|
82253
|
+
{
|
|
82254
|
+
anonymous: false,
|
|
82255
|
+
inputs: [
|
|
82256
|
+
{ indexed: true, internalType: "address", name: "token", type: "address" },
|
|
82257
|
+
{ indexed: true, internalType: "address", name: "to", type: "address" },
|
|
82258
|
+
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
|
|
82259
|
+
],
|
|
82260
|
+
name: "Recovered",
|
|
82261
|
+
type: "event"
|
|
82262
|
+
},
|
|
82263
|
+
{ anonymous: false, inputs: [], name: "Revoked", type: "event" },
|
|
82264
|
+
{
|
|
82265
|
+
anonymous: false,
|
|
82266
|
+
inputs: [
|
|
82267
|
+
{ indexed: false, internalType: "bytes32", name: "merkleRoot", type: "bytes32" },
|
|
82268
|
+
{ indexed: false, internalType: "bytes32", name: "ipfsHash", type: "bytes32" },
|
|
82269
|
+
{ indexed: false, internalType: "uint48", name: "endOfDisputePeriod", type: "uint48" }
|
|
82270
|
+
],
|
|
82271
|
+
name: "TreeUpdated",
|
|
82272
|
+
type: "event"
|
|
82273
|
+
},
|
|
82274
|
+
{
|
|
82275
|
+
anonymous: false,
|
|
82276
|
+
inputs: [
|
|
82277
|
+
{ indexed: true, internalType: "address", name: "eoa", type: "address" },
|
|
82278
|
+
{ indexed: false, internalType: "bool", name: "trust", type: "bool" }
|
|
82279
|
+
],
|
|
82280
|
+
name: "TrustedToggled",
|
|
82281
|
+
type: "event"
|
|
82282
|
+
},
|
|
82283
|
+
{
|
|
82284
|
+
anonymous: false,
|
|
82285
|
+
inputs: [{ indexed: true, internalType: "address", name: "implementation", type: "address" }],
|
|
82286
|
+
name: "Upgraded",
|
|
82287
|
+
type: "event"
|
|
82288
|
+
},
|
|
82289
|
+
{
|
|
82290
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
82291
|
+
name: "canUpdateMerkleRoot",
|
|
82292
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
82293
|
+
stateMutability: "view",
|
|
82294
|
+
type: "function"
|
|
82295
|
+
},
|
|
82296
|
+
{
|
|
82297
|
+
inputs: [
|
|
82298
|
+
{ internalType: "address[]", name: "users", type: "address[]" },
|
|
82299
|
+
{ internalType: "address[]", name: "tokens", type: "address[]" },
|
|
82300
|
+
{ internalType: "uint256[]", name: "amounts", type: "uint256[]" },
|
|
82301
|
+
{ internalType: "bytes32[][]", name: "proofs", type: "bytes32[][]" }
|
|
82302
|
+
],
|
|
82303
|
+
name: "claim",
|
|
82304
|
+
outputs: [],
|
|
82305
|
+
stateMutability: "nonpayable",
|
|
82306
|
+
type: "function"
|
|
82307
|
+
},
|
|
82308
|
+
{
|
|
82309
|
+
inputs: [
|
|
82310
|
+
{ internalType: "address", name: "", type: "address" },
|
|
82311
|
+
{ internalType: "address", name: "", type: "address" }
|
|
82312
|
+
],
|
|
82313
|
+
name: "claimed",
|
|
82314
|
+
outputs: [
|
|
82315
|
+
{ internalType: "uint208", name: "amount", type: "uint208" },
|
|
82316
|
+
{ internalType: "uint48", name: "timestamp", type: "uint48" },
|
|
82317
|
+
{ internalType: "bytes32", name: "merkleRoot", type: "bytes32" }
|
|
82318
|
+
],
|
|
82319
|
+
stateMutability: "view",
|
|
82320
|
+
type: "function"
|
|
82321
|
+
},
|
|
82322
|
+
{
|
|
82323
|
+
inputs: [],
|
|
82324
|
+
name: "core",
|
|
82325
|
+
outputs: [{ internalType: "contract ICore", name: "", type: "address" }],
|
|
82326
|
+
stateMutability: "view",
|
|
82327
|
+
type: "function"
|
|
82328
|
+
},
|
|
82329
|
+
{
|
|
82330
|
+
inputs: [],
|
|
82331
|
+
name: "disputeAmount",
|
|
82332
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
82333
|
+
stateMutability: "view",
|
|
82334
|
+
type: "function"
|
|
82335
|
+
},
|
|
82336
|
+
{
|
|
82337
|
+
inputs: [],
|
|
82338
|
+
name: "disputePeriod",
|
|
82339
|
+
outputs: [{ internalType: "uint48", name: "", type: "uint48" }],
|
|
82340
|
+
stateMutability: "view",
|
|
82341
|
+
type: "function"
|
|
82342
|
+
},
|
|
82343
|
+
{
|
|
82344
|
+
inputs: [],
|
|
82345
|
+
name: "disputeToken",
|
|
82346
|
+
outputs: [{ internalType: "contract IERC20", name: "", type: "address" }],
|
|
82347
|
+
stateMutability: "view",
|
|
82348
|
+
type: "function"
|
|
82349
|
+
},
|
|
82350
|
+
{
|
|
82351
|
+
inputs: [{ internalType: "string", name: "reason", type: "string" }],
|
|
82352
|
+
name: "disputeTree",
|
|
82353
|
+
outputs: [],
|
|
82354
|
+
stateMutability: "nonpayable",
|
|
82355
|
+
type: "function"
|
|
82356
|
+
},
|
|
82357
|
+
{
|
|
82358
|
+
inputs: [],
|
|
82359
|
+
name: "disputer",
|
|
82360
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
82361
|
+
stateMutability: "view",
|
|
82362
|
+
type: "function"
|
|
82363
|
+
},
|
|
82364
|
+
{
|
|
82365
|
+
inputs: [],
|
|
82366
|
+
name: "endOfDisputePeriod",
|
|
82367
|
+
outputs: [{ internalType: "uint48", name: "", type: "uint48" }],
|
|
82368
|
+
stateMutability: "view",
|
|
82369
|
+
type: "function"
|
|
82370
|
+
},
|
|
82371
|
+
{
|
|
82372
|
+
inputs: [],
|
|
82373
|
+
name: "getMerkleRoot",
|
|
82374
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
82375
|
+
stateMutability: "view",
|
|
82376
|
+
type: "function"
|
|
82377
|
+
},
|
|
82378
|
+
{
|
|
82379
|
+
inputs: [{ internalType: "contract ICore", name: "_core", type: "address" }],
|
|
82380
|
+
name: "initialize",
|
|
82381
|
+
outputs: [],
|
|
82382
|
+
stateMutability: "nonpayable",
|
|
82383
|
+
type: "function"
|
|
82384
|
+
},
|
|
82385
|
+
{
|
|
82386
|
+
inputs: [],
|
|
82387
|
+
name: "lastTree",
|
|
82388
|
+
outputs: [
|
|
82389
|
+
{ internalType: "bytes32", name: "merkleRoot", type: "bytes32" },
|
|
82390
|
+
{ internalType: "bytes32", name: "ipfsHash", type: "bytes32" }
|
|
82391
|
+
],
|
|
82392
|
+
stateMutability: "view",
|
|
82393
|
+
type: "function"
|
|
82394
|
+
},
|
|
82395
|
+
{
|
|
82396
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
82397
|
+
name: "onlyOperatorCanClaim",
|
|
82398
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
82399
|
+
stateMutability: "view",
|
|
82400
|
+
type: "function"
|
|
82401
|
+
},
|
|
82402
|
+
{
|
|
82403
|
+
inputs: [
|
|
82404
|
+
{ internalType: "address", name: "", type: "address" },
|
|
82405
|
+
{ internalType: "address", name: "", type: "address" }
|
|
82406
|
+
],
|
|
82407
|
+
name: "operators",
|
|
82408
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
82409
|
+
stateMutability: "view",
|
|
82410
|
+
type: "function"
|
|
82411
|
+
},
|
|
82412
|
+
{
|
|
82413
|
+
inputs: [],
|
|
82414
|
+
name: "proxiableUUID",
|
|
82415
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
82416
|
+
stateMutability: "view",
|
|
82417
|
+
type: "function"
|
|
82418
|
+
},
|
|
82419
|
+
{
|
|
82420
|
+
inputs: [
|
|
82421
|
+
{ internalType: "address", name: "tokenAddress", type: "address" },
|
|
82422
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
82423
|
+
{ internalType: "uint256", name: "amountToRecover", type: "uint256" }
|
|
82424
|
+
],
|
|
82425
|
+
name: "recoverERC20",
|
|
82426
|
+
outputs: [],
|
|
82427
|
+
stateMutability: "nonpayable",
|
|
82428
|
+
type: "function"
|
|
82429
|
+
},
|
|
82430
|
+
{
|
|
82431
|
+
inputs: [{ internalType: "bool", name: "valid", type: "bool" }],
|
|
82432
|
+
name: "resolveDispute",
|
|
82433
|
+
outputs: [],
|
|
82434
|
+
stateMutability: "nonpayable",
|
|
82435
|
+
type: "function"
|
|
82436
|
+
},
|
|
82437
|
+
{ inputs: [], name: "revokeTree", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
82438
|
+
{
|
|
82439
|
+
inputs: [{ internalType: "uint256", name: "_disputeAmount", type: "uint256" }],
|
|
82440
|
+
name: "setDisputeAmount",
|
|
82441
|
+
outputs: [],
|
|
82442
|
+
stateMutability: "nonpayable",
|
|
82443
|
+
type: "function"
|
|
82444
|
+
},
|
|
82445
|
+
{
|
|
82446
|
+
inputs: [{ internalType: "uint48", name: "_disputePeriod", type: "uint48" }],
|
|
82447
|
+
name: "setDisputePeriod",
|
|
82448
|
+
outputs: [],
|
|
82449
|
+
stateMutability: "nonpayable",
|
|
82450
|
+
type: "function"
|
|
82451
|
+
},
|
|
82452
|
+
{
|
|
82453
|
+
inputs: [{ internalType: "contract IERC20", name: "_disputeToken", type: "address" }],
|
|
82454
|
+
name: "setDisputeToken",
|
|
82455
|
+
outputs: [],
|
|
82456
|
+
stateMutability: "nonpayable",
|
|
82457
|
+
type: "function"
|
|
82458
|
+
},
|
|
82459
|
+
{
|
|
82460
|
+
inputs: [{ internalType: "address", name: "user", type: "address" }],
|
|
82461
|
+
name: "toggleOnlyOperatorCanClaim",
|
|
82462
|
+
outputs: [],
|
|
82463
|
+
stateMutability: "nonpayable",
|
|
82464
|
+
type: "function"
|
|
82465
|
+
},
|
|
82466
|
+
{
|
|
82467
|
+
inputs: [
|
|
82468
|
+
{ internalType: "address", name: "user", type: "address" },
|
|
82469
|
+
{ internalType: "address", name: "operator", type: "address" }
|
|
82470
|
+
],
|
|
82471
|
+
name: "toggleOperator",
|
|
82472
|
+
outputs: [],
|
|
82473
|
+
stateMutability: "nonpayable",
|
|
82474
|
+
type: "function"
|
|
82475
|
+
},
|
|
82476
|
+
{
|
|
82477
|
+
inputs: [{ internalType: "address", name: "eoa", type: "address" }],
|
|
82478
|
+
name: "toggleTrusted",
|
|
82479
|
+
outputs: [],
|
|
82480
|
+
stateMutability: "nonpayable",
|
|
82481
|
+
type: "function"
|
|
82482
|
+
},
|
|
82483
|
+
{
|
|
82484
|
+
inputs: [],
|
|
82485
|
+
name: "tree",
|
|
82486
|
+
outputs: [
|
|
82487
|
+
{ internalType: "bytes32", name: "merkleRoot", type: "bytes32" },
|
|
82488
|
+
{ internalType: "bytes32", name: "ipfsHash", type: "bytes32" }
|
|
82489
|
+
],
|
|
82490
|
+
stateMutability: "view",
|
|
82491
|
+
type: "function"
|
|
82492
|
+
},
|
|
82493
|
+
{
|
|
82494
|
+
inputs: [
|
|
82495
|
+
{
|
|
82496
|
+
components: [
|
|
82497
|
+
{ internalType: "bytes32", name: "merkleRoot", type: "bytes32" },
|
|
82498
|
+
{ internalType: "bytes32", name: "ipfsHash", type: "bytes32" }
|
|
82499
|
+
],
|
|
82500
|
+
internalType: "struct MerkleTree",
|
|
82501
|
+
name: "_tree",
|
|
82502
|
+
type: "tuple"
|
|
82503
|
+
}
|
|
82504
|
+
],
|
|
82505
|
+
name: "updateTree",
|
|
82506
|
+
outputs: [],
|
|
82507
|
+
stateMutability: "nonpayable",
|
|
82508
|
+
type: "function"
|
|
82509
|
+
},
|
|
82510
|
+
{
|
|
82511
|
+
inputs: [{ internalType: "address", name: "newImplementation", type: "address" }],
|
|
82512
|
+
name: "upgradeTo",
|
|
82513
|
+
outputs: [],
|
|
82514
|
+
stateMutability: "nonpayable",
|
|
82515
|
+
type: "function"
|
|
82516
|
+
},
|
|
82517
|
+
{
|
|
82518
|
+
inputs: [
|
|
82519
|
+
{ internalType: "address", name: "newImplementation", type: "address" },
|
|
82520
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
82521
|
+
],
|
|
82522
|
+
name: "upgradeToAndCall",
|
|
82523
|
+
outputs: [],
|
|
82524
|
+
stateMutability: "payable",
|
|
82525
|
+
type: "function"
|
|
82526
|
+
}
|
|
82527
|
+
];
|
|
82528
|
+
// src/integrations/merkl/merkl.ts
|
|
82529
|
+
var merklInterface = new exports_ethers.utils.Interface(merkl_distributor_abi_default);
|
|
82530
|
+
var merklClaimCalldata = ({ users, tokens, amounts, proofs }) => {
|
|
82531
|
+
return merklInterface.encodeFunctionData("claim", [users, tokens, amounts, proofs]);
|
|
82532
|
+
};
|
|
82533
|
+
var merklClaimTrx = ({
|
|
82534
|
+
args,
|
|
82535
|
+
distributorAddress
|
|
82536
|
+
}) => {
|
|
82537
|
+
return createCall({
|
|
82538
|
+
to: distributorAddress,
|
|
82539
|
+
data: merklClaimCalldata(args),
|
|
82540
|
+
operation: 0,
|
|
82541
|
+
value: 0n
|
|
82542
|
+
});
|
|
82543
|
+
};
|
|
82544
|
+
// src/integrations/oft/oft.adapter.abi.ts
|
|
82545
|
+
var oft_adapter_abi_default = [
|
|
82546
|
+
{
|
|
82547
|
+
inputs: [
|
|
82548
|
+
{
|
|
82549
|
+
internalType: "uint32",
|
|
82550
|
+
name: "_arbitrumEid",
|
|
82551
|
+
type: "uint32"
|
|
82552
|
+
},
|
|
82553
|
+
{ internalType: "uint32", name: "_celoEid", type: "uint32" },
|
|
82554
|
+
{ internalType: "uint32", name: "_ethEid", type: "uint32" },
|
|
82555
|
+
{ internalType: "uint32", name: "_tonEid", type: "uint32" },
|
|
82556
|
+
{ internalType: "uint32", name: "_tronEid", type: "uint32" },
|
|
82557
|
+
{ internalType: "address", name: "_token", type: "address" },
|
|
82558
|
+
{
|
|
82559
|
+
internalType: "address",
|
|
82560
|
+
name: "_lzEndpoint",
|
|
82561
|
+
type: "address"
|
|
82562
|
+
},
|
|
82563
|
+
{
|
|
82564
|
+
internalType: "address",
|
|
82565
|
+
name: "_delegate",
|
|
82566
|
+
type: "address"
|
|
82567
|
+
}
|
|
82568
|
+
],
|
|
82569
|
+
stateMutability: "nonpayable",
|
|
82570
|
+
type: "constructor"
|
|
82571
|
+
},
|
|
82572
|
+
{
|
|
82573
|
+
inputs: [{ internalType: "address", name: "target", type: "address" }],
|
|
82574
|
+
name: "AddressEmptyCode",
|
|
82575
|
+
type: "error"
|
|
82576
|
+
},
|
|
82577
|
+
{
|
|
82578
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
82579
|
+
name: "AddressInsufficientBalance",
|
|
82580
|
+
type: "error"
|
|
82581
|
+
},
|
|
82582
|
+
{ inputs: [], name: "ComposeNotSupported", type: "error" },
|
|
82583
|
+
{ inputs: [], name: "FailedInnerCall", type: "error" },
|
|
82584
|
+
{
|
|
82585
|
+
inputs: [
|
|
82586
|
+
{ internalType: "uint32", name: "eid", type: "uint32" },
|
|
82587
|
+
{ internalType: "uint256", name: "credits", type: "uint256" },
|
|
82588
|
+
{
|
|
82589
|
+
internalType: "uint256",
|
|
82590
|
+
name: "amountWithdraw",
|
|
82591
|
+
type: "uint256"
|
|
82592
|
+
}
|
|
82593
|
+
],
|
|
82594
|
+
name: "InsufficientCredits",
|
|
82595
|
+
type: "error"
|
|
82596
|
+
},
|
|
82597
|
+
{ inputs: [], name: "InsufficientFeeBalance", type: "error" },
|
|
82598
|
+
{ inputs: [], name: "InvalidAmount", type: "error" },
|
|
82599
|
+
{ inputs: [], name: "InvalidDelegate", type: "error" },
|
|
82600
|
+
{ inputs: [], name: "InvalidEid", type: "error" },
|
|
82601
|
+
{ inputs: [], name: "InvalidEndpointCall", type: "error" },
|
|
82602
|
+
{
|
|
82603
|
+
inputs: [{ internalType: "uint16", name: "feeBps", type: "uint16" }],
|
|
82604
|
+
name: "InvalidFeeBps",
|
|
82605
|
+
type: "error"
|
|
82606
|
+
},
|
|
82607
|
+
{ inputs: [], name: "InvalidLocalDecimals", type: "error" },
|
|
82608
|
+
{
|
|
82609
|
+
inputs: [{ internalType: "uint16", name: "msgType", type: "uint16" }],
|
|
82610
|
+
name: "InvalidMsgType",
|
|
82611
|
+
type: "error"
|
|
82612
|
+
},
|
|
82613
|
+
{
|
|
82614
|
+
inputs: [{ internalType: "bytes", name: "options", type: "bytes" }],
|
|
82615
|
+
name: "InvalidOptions",
|
|
82616
|
+
type: "error"
|
|
82617
|
+
},
|
|
82618
|
+
{ inputs: [], name: "LzTokenUnavailable", type: "error" },
|
|
82619
|
+
{
|
|
82620
|
+
inputs: [{ internalType: "uint32", name: "eid", type: "uint32" }],
|
|
82621
|
+
name: "NoPeer",
|
|
82622
|
+
type: "error"
|
|
82623
|
+
},
|
|
82624
|
+
{
|
|
82625
|
+
inputs: [{ internalType: "uint256", name: "msgValue", type: "uint256" }],
|
|
82626
|
+
name: "NotEnoughNative",
|
|
82627
|
+
type: "error"
|
|
82628
|
+
},
|
|
82629
|
+
{
|
|
82630
|
+
inputs: [{ internalType: "address", name: "addr", type: "address" }],
|
|
82631
|
+
name: "OnlyEndpoint",
|
|
82632
|
+
type: "error"
|
|
82633
|
+
},
|
|
82634
|
+
{ inputs: [], name: "OnlyLpAdminOrOwner", type: "error" },
|
|
82635
|
+
{
|
|
82636
|
+
inputs: [
|
|
82637
|
+
{ internalType: "uint32", name: "eid", type: "uint32" },
|
|
82638
|
+
{ internalType: "bytes32", name: "sender", type: "bytes32" }
|
|
82639
|
+
],
|
|
82640
|
+
name: "OnlyPeer",
|
|
82641
|
+
type: "error"
|
|
82642
|
+
},
|
|
82643
|
+
{ inputs: [], name: "OnlyPlanner", type: "error" },
|
|
82644
|
+
{
|
|
82645
|
+
inputs: [{ internalType: "address", name: "owner", type: "address" }],
|
|
82646
|
+
name: "OwnableInvalidOwner",
|
|
82647
|
+
type: "error"
|
|
82648
|
+
},
|
|
82649
|
+
{
|
|
82650
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
82651
|
+
name: "OwnableUnauthorizedAccount",
|
|
82652
|
+
type: "error"
|
|
82653
|
+
},
|
|
82654
|
+
{
|
|
82655
|
+
inputs: [{ internalType: "address", name: "token", type: "address" }],
|
|
82656
|
+
name: "SafeERC20FailedOperation",
|
|
82657
|
+
type: "error"
|
|
82658
|
+
},
|
|
82659
|
+
{
|
|
82660
|
+
inputs: [
|
|
82661
|
+
{
|
|
82662
|
+
internalType: "uint256",
|
|
82663
|
+
name: "amountLD",
|
|
82664
|
+
type: "uint256"
|
|
82665
|
+
},
|
|
82666
|
+
{
|
|
82667
|
+
internalType: "uint256",
|
|
82668
|
+
name: "minAmountLD",
|
|
82669
|
+
type: "uint256"
|
|
82670
|
+
}
|
|
82671
|
+
],
|
|
82672
|
+
name: "SlippageExceeded",
|
|
82673
|
+
type: "error"
|
|
82674
|
+
},
|
|
82675
|
+
{
|
|
82676
|
+
anonymous: false,
|
|
82677
|
+
inputs: [
|
|
82678
|
+
{
|
|
82679
|
+
indexed: false,
|
|
82680
|
+
internalType: "bytes32",
|
|
82681
|
+
name: "guid",
|
|
82682
|
+
type: "bytes32"
|
|
82683
|
+
},
|
|
82684
|
+
{
|
|
82685
|
+
indexed: false,
|
|
82686
|
+
internalType: "uint32",
|
|
82687
|
+
name: "srcEid",
|
|
82688
|
+
type: "uint32"
|
|
82689
|
+
},
|
|
82690
|
+
{
|
|
82691
|
+
indexed: false,
|
|
82692
|
+
internalType: "bytes",
|
|
82693
|
+
name: "message",
|
|
82694
|
+
type: "bytes"
|
|
82695
|
+
}
|
|
82696
|
+
],
|
|
82697
|
+
name: "CreditsReceived",
|
|
82698
|
+
type: "event"
|
|
82699
|
+
},
|
|
82700
|
+
{
|
|
82701
|
+
anonymous: false,
|
|
82702
|
+
inputs: [
|
|
82703
|
+
{
|
|
82704
|
+
indexed: false,
|
|
82705
|
+
internalType: "uint32",
|
|
82706
|
+
name: "dstEid",
|
|
82707
|
+
type: "uint32"
|
|
82708
|
+
},
|
|
82709
|
+
{
|
|
82710
|
+
indexed: false,
|
|
82711
|
+
internalType: "uint64",
|
|
82712
|
+
name: "creditsArbitrum",
|
|
82713
|
+
type: "uint64"
|
|
82714
|
+
},
|
|
82715
|
+
{
|
|
82716
|
+
indexed: false,
|
|
82717
|
+
internalType: "uint64",
|
|
82718
|
+
name: "creditsCelo",
|
|
82719
|
+
type: "uint64"
|
|
82720
|
+
},
|
|
82721
|
+
{
|
|
82722
|
+
indexed: false,
|
|
82723
|
+
internalType: "uint64",
|
|
82724
|
+
name: "creditsEth",
|
|
82725
|
+
type: "uint64"
|
|
82726
|
+
},
|
|
82727
|
+
{
|
|
82728
|
+
indexed: false,
|
|
82729
|
+
internalType: "uint64",
|
|
82730
|
+
name: "creditsTon",
|
|
82731
|
+
type: "uint64"
|
|
82732
|
+
},
|
|
82733
|
+
{
|
|
82734
|
+
indexed: false,
|
|
82735
|
+
internalType: "uint64",
|
|
82736
|
+
name: "creditsTron",
|
|
82737
|
+
type: "uint64"
|
|
82738
|
+
}
|
|
82739
|
+
],
|
|
82740
|
+
name: "CreditsSent",
|
|
82741
|
+
type: "event"
|
|
82742
|
+
},
|
|
82743
|
+
{
|
|
82744
|
+
anonymous: false,
|
|
82745
|
+
inputs: [
|
|
82746
|
+
{
|
|
82747
|
+
components: [
|
|
82748
|
+
{
|
|
82749
|
+
internalType: "uint32",
|
|
82750
|
+
name: "eid",
|
|
82751
|
+
type: "uint32"
|
|
82752
|
+
},
|
|
82753
|
+
{
|
|
82754
|
+
internalType: "uint16",
|
|
82755
|
+
name: "msgType",
|
|
82756
|
+
type: "uint16"
|
|
82757
|
+
},
|
|
82758
|
+
{
|
|
82759
|
+
internalType: "bytes",
|
|
82760
|
+
name: "options",
|
|
82761
|
+
type: "bytes"
|
|
82762
|
+
}
|
|
82763
|
+
],
|
|
82764
|
+
indexed: false,
|
|
82765
|
+
internalType: "struct EnforcedOptionParam[]",
|
|
82766
|
+
name: "_enforcedOptions",
|
|
82767
|
+
type: "tuple[]"
|
|
82768
|
+
}
|
|
82769
|
+
],
|
|
82770
|
+
name: "EnforcedOptionSet",
|
|
82771
|
+
type: "event"
|
|
82772
|
+
},
|
|
82773
|
+
{
|
|
82774
|
+
anonymous: false,
|
|
82775
|
+
inputs: [
|
|
82776
|
+
{
|
|
82777
|
+
indexed: false,
|
|
82778
|
+
internalType: "uint16",
|
|
82779
|
+
name: "feeBps",
|
|
82780
|
+
type: "uint16"
|
|
82781
|
+
}
|
|
82782
|
+
],
|
|
82783
|
+
name: "FeeBpsSet",
|
|
82784
|
+
type: "event"
|
|
82785
|
+
},
|
|
82786
|
+
{
|
|
82787
|
+
anonymous: false,
|
|
82788
|
+
inputs: [
|
|
82789
|
+
{
|
|
82790
|
+
indexed: false,
|
|
82791
|
+
internalType: "address",
|
|
82792
|
+
name: "to",
|
|
82793
|
+
type: "address"
|
|
82794
|
+
},
|
|
82795
|
+
{
|
|
82796
|
+
indexed: false,
|
|
82797
|
+
internalType: "uint256",
|
|
82798
|
+
name: "amount",
|
|
82799
|
+
type: "uint256"
|
|
82800
|
+
}
|
|
82801
|
+
],
|
|
82802
|
+
name: "FeesWithdrawn",
|
|
82803
|
+
type: "event"
|
|
82804
|
+
},
|
|
82805
|
+
{
|
|
82806
|
+
anonymous: false,
|
|
82807
|
+
inputs: [
|
|
82808
|
+
{
|
|
82809
|
+
indexed: false,
|
|
82810
|
+
internalType: "uint256",
|
|
82811
|
+
name: "amount",
|
|
82812
|
+
type: "uint256"
|
|
82813
|
+
}
|
|
82814
|
+
],
|
|
82815
|
+
name: "LocalDeposit",
|
|
82816
|
+
type: "event"
|
|
82817
|
+
},
|
|
82818
|
+
{
|
|
82819
|
+
anonymous: false,
|
|
82820
|
+
inputs: [
|
|
82821
|
+
{
|
|
82822
|
+
indexed: false,
|
|
82823
|
+
internalType: "address",
|
|
82824
|
+
name: "to",
|
|
82825
|
+
type: "address"
|
|
82826
|
+
},
|
|
82827
|
+
{
|
|
82828
|
+
indexed: false,
|
|
82829
|
+
internalType: "uint256",
|
|
82830
|
+
name: "amount",
|
|
82831
|
+
type: "uint256"
|
|
82832
|
+
}
|
|
82833
|
+
],
|
|
82834
|
+
name: "LocalWithdrawn",
|
|
82835
|
+
type: "event"
|
|
82836
|
+
},
|
|
82837
|
+
{
|
|
82838
|
+
anonymous: false,
|
|
82839
|
+
inputs: [
|
|
82840
|
+
{
|
|
82841
|
+
indexed: false,
|
|
82842
|
+
internalType: "address",
|
|
82843
|
+
name: "lpAdmin",
|
|
82844
|
+
type: "address"
|
|
82845
|
+
}
|
|
82846
|
+
],
|
|
82847
|
+
name: "LpAdminSet",
|
|
82848
|
+
type: "event"
|
|
82849
|
+
},
|
|
82850
|
+
{
|
|
82851
|
+
anonymous: false,
|
|
82852
|
+
inputs: [
|
|
82853
|
+
{
|
|
82854
|
+
indexed: true,
|
|
82855
|
+
internalType: "bytes32",
|
|
82856
|
+
name: "guid",
|
|
82857
|
+
type: "bytes32"
|
|
82858
|
+
},
|
|
82859
|
+
{
|
|
82860
|
+
indexed: false,
|
|
82861
|
+
internalType: "uint32",
|
|
82862
|
+
name: "srcEid",
|
|
82863
|
+
type: "uint32"
|
|
82864
|
+
},
|
|
82865
|
+
{
|
|
82866
|
+
indexed: true,
|
|
82867
|
+
internalType: "address",
|
|
82868
|
+
name: "toAddress",
|
|
82869
|
+
type: "address"
|
|
82870
|
+
},
|
|
82871
|
+
{
|
|
82872
|
+
indexed: false,
|
|
82873
|
+
internalType: "uint256",
|
|
82874
|
+
name: "amountReceivedLD",
|
|
82875
|
+
type: "uint256"
|
|
82876
|
+
}
|
|
82877
|
+
],
|
|
82878
|
+
name: "OFTReceived",
|
|
82879
|
+
type: "event"
|
|
82880
|
+
},
|
|
82881
|
+
{
|
|
82882
|
+
anonymous: false,
|
|
82883
|
+
inputs: [
|
|
82884
|
+
{
|
|
82885
|
+
indexed: true,
|
|
82886
|
+
internalType: "bytes32",
|
|
82887
|
+
name: "guid",
|
|
82888
|
+
type: "bytes32"
|
|
82889
|
+
},
|
|
82890
|
+
{
|
|
82891
|
+
indexed: false,
|
|
82892
|
+
internalType: "uint32",
|
|
82893
|
+
name: "dstEid",
|
|
82894
|
+
type: "uint32"
|
|
82895
|
+
},
|
|
82896
|
+
{
|
|
82897
|
+
indexed: true,
|
|
82898
|
+
internalType: "address",
|
|
82899
|
+
name: "fromAddress",
|
|
82900
|
+
type: "address"
|
|
82901
|
+
},
|
|
82902
|
+
{
|
|
82903
|
+
indexed: false,
|
|
82904
|
+
internalType: "uint256",
|
|
82905
|
+
name: "amountSentLD",
|
|
82906
|
+
type: "uint256"
|
|
82907
|
+
},
|
|
82908
|
+
{
|
|
82909
|
+
indexed: false,
|
|
82910
|
+
internalType: "uint256",
|
|
82911
|
+
name: "amountReceivedLD",
|
|
82912
|
+
type: "uint256"
|
|
82913
|
+
}
|
|
82914
|
+
],
|
|
82915
|
+
name: "OFTSent",
|
|
82916
|
+
type: "event"
|
|
82917
|
+
},
|
|
82918
|
+
{
|
|
82919
|
+
anonymous: false,
|
|
82920
|
+
inputs: [
|
|
82921
|
+
{
|
|
82922
|
+
indexed: true,
|
|
82923
|
+
internalType: "address",
|
|
82924
|
+
name: "previousOwner",
|
|
82925
|
+
type: "address"
|
|
82926
|
+
},
|
|
82927
|
+
{
|
|
82928
|
+
indexed: true,
|
|
82929
|
+
internalType: "address",
|
|
82930
|
+
name: "newOwner",
|
|
82931
|
+
type: "address"
|
|
82932
|
+
}
|
|
82933
|
+
],
|
|
82934
|
+
name: "OwnershipTransferred",
|
|
82935
|
+
type: "event"
|
|
82936
|
+
},
|
|
82937
|
+
{
|
|
82938
|
+
anonymous: false,
|
|
82939
|
+
inputs: [
|
|
82940
|
+
{
|
|
82941
|
+
indexed: false,
|
|
82942
|
+
internalType: "uint32",
|
|
82943
|
+
name: "eid",
|
|
82944
|
+
type: "uint32"
|
|
82945
|
+
},
|
|
82946
|
+
{
|
|
82947
|
+
indexed: false,
|
|
82948
|
+
internalType: "bytes32",
|
|
82949
|
+
name: "peer",
|
|
82950
|
+
type: "bytes32"
|
|
82951
|
+
}
|
|
82952
|
+
],
|
|
82953
|
+
name: "PeerSet",
|
|
82954
|
+
type: "event"
|
|
82955
|
+
},
|
|
82956
|
+
{
|
|
82957
|
+
anonymous: false,
|
|
82958
|
+
inputs: [
|
|
82959
|
+
{
|
|
82960
|
+
indexed: false,
|
|
82961
|
+
internalType: "address",
|
|
82962
|
+
name: "planner",
|
|
82963
|
+
type: "address"
|
|
82964
|
+
}
|
|
82965
|
+
],
|
|
82966
|
+
name: "PlannerSet",
|
|
82967
|
+
type: "event"
|
|
82968
|
+
},
|
|
82969
|
+
{
|
|
82970
|
+
anonymous: false,
|
|
82971
|
+
inputs: [
|
|
82972
|
+
{
|
|
82973
|
+
indexed: false,
|
|
82974
|
+
internalType: "bytes32",
|
|
82975
|
+
name: "guid",
|
|
82976
|
+
type: "bytes32"
|
|
82977
|
+
},
|
|
82978
|
+
{
|
|
82979
|
+
indexed: false,
|
|
82980
|
+
internalType: "uint32",
|
|
82981
|
+
name: "srcEid",
|
|
82982
|
+
type: "uint32"
|
|
82983
|
+
},
|
|
82984
|
+
{
|
|
82985
|
+
indexed: false,
|
|
82986
|
+
internalType: "address",
|
|
82987
|
+
name: "to",
|
|
82988
|
+
type: "address"
|
|
82989
|
+
},
|
|
82990
|
+
{
|
|
82991
|
+
indexed: false,
|
|
82992
|
+
internalType: "uint256",
|
|
82993
|
+
name: "amount",
|
|
82994
|
+
type: "uint256"
|
|
82995
|
+
}
|
|
82996
|
+
],
|
|
82997
|
+
name: "RemoteWithdrawReceived",
|
|
82998
|
+
type: "event"
|
|
82999
|
+
},
|
|
83000
|
+
{
|
|
83001
|
+
anonymous: false,
|
|
83002
|
+
inputs: [
|
|
83003
|
+
{
|
|
83004
|
+
indexed: false,
|
|
83005
|
+
internalType: "uint32",
|
|
83006
|
+
name: "dstEid",
|
|
83007
|
+
type: "uint32"
|
|
83008
|
+
},
|
|
83009
|
+
{
|
|
83010
|
+
indexed: false,
|
|
83011
|
+
internalType: "uint256",
|
|
83012
|
+
name: "amount",
|
|
83013
|
+
type: "uint256"
|
|
83014
|
+
}
|
|
83015
|
+
],
|
|
83016
|
+
name: "RemoteWithdrawn",
|
|
83017
|
+
type: "event"
|
|
83018
|
+
},
|
|
83019
|
+
{
|
|
83020
|
+
inputs: [],
|
|
83021
|
+
name: "ARBITRUM_EID",
|
|
83022
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
83023
|
+
stateMutability: "view",
|
|
83024
|
+
type: "function"
|
|
83025
|
+
},
|
|
83026
|
+
{
|
|
83027
|
+
inputs: [],
|
|
83028
|
+
name: "BPS_DENOMINATOR",
|
|
83029
|
+
outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
|
|
83030
|
+
stateMutability: "view",
|
|
83031
|
+
type: "function"
|
|
83032
|
+
},
|
|
83033
|
+
{
|
|
83034
|
+
inputs: [],
|
|
83035
|
+
name: "CELO_EID",
|
|
83036
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
83037
|
+
stateMutability: "view",
|
|
83038
|
+
type: "function"
|
|
83039
|
+
},
|
|
83040
|
+
{
|
|
83041
|
+
inputs: [],
|
|
83042
|
+
name: "ETH_EID",
|
|
83043
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
83044
|
+
stateMutability: "view",
|
|
83045
|
+
type: "function"
|
|
83046
|
+
},
|
|
83047
|
+
{
|
|
83048
|
+
inputs: [],
|
|
83049
|
+
name: "LOCAL_EID",
|
|
83050
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
83051
|
+
stateMutability: "view",
|
|
83052
|
+
type: "function"
|
|
83053
|
+
},
|
|
83054
|
+
{
|
|
83055
|
+
inputs: [],
|
|
83056
|
+
name: "SEND_CREDITS",
|
|
83057
|
+
outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
|
|
83058
|
+
stateMutability: "view",
|
|
83059
|
+
type: "function"
|
|
83060
|
+
},
|
|
83061
|
+
{
|
|
83062
|
+
inputs: [],
|
|
83063
|
+
name: "SEND_OFT",
|
|
83064
|
+
outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
|
|
83065
|
+
stateMutability: "view",
|
|
83066
|
+
type: "function"
|
|
83067
|
+
},
|
|
83068
|
+
{
|
|
83069
|
+
inputs: [],
|
|
83070
|
+
name: "TON_EID",
|
|
83071
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
83072
|
+
stateMutability: "view",
|
|
83073
|
+
type: "function"
|
|
83074
|
+
},
|
|
83075
|
+
{
|
|
83076
|
+
inputs: [],
|
|
83077
|
+
name: "TRON_EID",
|
|
83078
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
83079
|
+
stateMutability: "view",
|
|
83080
|
+
type: "function"
|
|
83081
|
+
},
|
|
83082
|
+
{
|
|
83083
|
+
inputs: [],
|
|
83084
|
+
name: "WITHDRAW_REMOTE",
|
|
83085
|
+
outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
|
|
83086
|
+
stateMutability: "view",
|
|
83087
|
+
type: "function"
|
|
83088
|
+
},
|
|
83089
|
+
{
|
|
83090
|
+
inputs: [
|
|
83091
|
+
{
|
|
83092
|
+
components: [
|
|
83093
|
+
{
|
|
83094
|
+
internalType: "uint32",
|
|
83095
|
+
name: "srcEid",
|
|
83096
|
+
type: "uint32"
|
|
83097
|
+
},
|
|
83098
|
+
{
|
|
83099
|
+
internalType: "bytes32",
|
|
83100
|
+
name: "sender",
|
|
83101
|
+
type: "bytes32"
|
|
83102
|
+
},
|
|
83103
|
+
{
|
|
83104
|
+
internalType: "uint64",
|
|
83105
|
+
name: "nonce",
|
|
83106
|
+
type: "uint64"
|
|
83107
|
+
}
|
|
83108
|
+
],
|
|
83109
|
+
internalType: "struct Origin",
|
|
83110
|
+
name: "origin",
|
|
83111
|
+
type: "tuple"
|
|
83112
|
+
}
|
|
83113
|
+
],
|
|
83114
|
+
name: "allowInitializePath",
|
|
83115
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
83116
|
+
stateMutability: "view",
|
|
83117
|
+
type: "function"
|
|
83118
|
+
},
|
|
83119
|
+
{
|
|
83120
|
+
inputs: [],
|
|
83121
|
+
name: "approvalRequired",
|
|
83122
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
83123
|
+
stateMutability: "pure",
|
|
83124
|
+
type: "function"
|
|
83125
|
+
},
|
|
83126
|
+
{
|
|
83127
|
+
inputs: [
|
|
83128
|
+
{ internalType: "uint32", name: "_eid", type: "uint32" },
|
|
83129
|
+
{ internalType: "uint16", name: "_msgType", type: "uint16" },
|
|
83130
|
+
{
|
|
83131
|
+
internalType: "bytes",
|
|
83132
|
+
name: "_extraOptions",
|
|
83133
|
+
type: "bytes"
|
|
83134
|
+
}
|
|
83135
|
+
],
|
|
83136
|
+
name: "combineOptions",
|
|
83137
|
+
outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
|
|
83138
|
+
stateMutability: "view",
|
|
83139
|
+
type: "function"
|
|
83140
|
+
},
|
|
83141
|
+
{
|
|
83142
|
+
inputs: [{ internalType: "uint32", name: "eid", type: "uint32" }],
|
|
83143
|
+
name: "credits",
|
|
83144
|
+
outputs: [{ internalType: "uint256", name: "credits", type: "uint256" }],
|
|
83145
|
+
stateMutability: "view",
|
|
83146
|
+
type: "function"
|
|
83147
|
+
},
|
|
83148
|
+
{
|
|
83149
|
+
inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }],
|
|
83150
|
+
name: "depositLocal",
|
|
83151
|
+
outputs: [],
|
|
83152
|
+
stateMutability: "nonpayable",
|
|
83153
|
+
type: "function"
|
|
83154
|
+
},
|
|
83155
|
+
{
|
|
83156
|
+
inputs: [],
|
|
83157
|
+
name: "endpoint",
|
|
83158
|
+
outputs: [
|
|
83159
|
+
{
|
|
83160
|
+
internalType: "contract ILayerZeroEndpointV2",
|
|
83161
|
+
name: "",
|
|
83162
|
+
type: "address"
|
|
83163
|
+
}
|
|
83164
|
+
],
|
|
83165
|
+
stateMutability: "view",
|
|
83166
|
+
type: "function"
|
|
83167
|
+
},
|
|
83168
|
+
{
|
|
83169
|
+
inputs: [
|
|
83170
|
+
{ internalType: "uint32", name: "eid", type: "uint32" },
|
|
83171
|
+
{ internalType: "uint16", name: "msgType", type: "uint16" }
|
|
83172
|
+
],
|
|
83173
|
+
name: "enforcedOptions",
|
|
83174
|
+
outputs: [
|
|
83175
|
+
{
|
|
83176
|
+
internalType: "bytes",
|
|
83177
|
+
name: "enforcedOption",
|
|
83178
|
+
type: "bytes"
|
|
83179
|
+
}
|
|
83180
|
+
],
|
|
83181
|
+
stateMutability: "view",
|
|
83182
|
+
type: "function"
|
|
83183
|
+
},
|
|
83184
|
+
{
|
|
83185
|
+
inputs: [],
|
|
83186
|
+
name: "feeBalance",
|
|
83187
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
83188
|
+
stateMutability: "view",
|
|
83189
|
+
type: "function"
|
|
83190
|
+
},
|
|
83191
|
+
{
|
|
83192
|
+
inputs: [],
|
|
83193
|
+
name: "feeBps",
|
|
83194
|
+
outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
|
|
83195
|
+
stateMutability: "view",
|
|
83196
|
+
type: "function"
|
|
83197
|
+
},
|
|
83198
|
+
{
|
|
83199
|
+
inputs: [
|
|
83200
|
+
{
|
|
83201
|
+
components: [
|
|
83202
|
+
{
|
|
83203
|
+
internalType: "uint32",
|
|
83204
|
+
name: "srcEid",
|
|
83205
|
+
type: "uint32"
|
|
83206
|
+
},
|
|
83207
|
+
{
|
|
83208
|
+
internalType: "bytes32",
|
|
83209
|
+
name: "sender",
|
|
83210
|
+
type: "bytes32"
|
|
83211
|
+
},
|
|
83212
|
+
{
|
|
83213
|
+
internalType: "uint64",
|
|
83214
|
+
name: "nonce",
|
|
83215
|
+
type: "uint64"
|
|
83216
|
+
}
|
|
83217
|
+
],
|
|
83218
|
+
internalType: "struct Origin",
|
|
83219
|
+
name: "",
|
|
83220
|
+
type: "tuple"
|
|
83221
|
+
},
|
|
83222
|
+
{ internalType: "bytes", name: "", type: "bytes" },
|
|
83223
|
+
{ internalType: "address", name: "_sender", type: "address" }
|
|
83224
|
+
],
|
|
83225
|
+
name: "isComposeMsgSender",
|
|
83226
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
83227
|
+
stateMutability: "view",
|
|
83228
|
+
type: "function"
|
|
83229
|
+
},
|
|
83230
|
+
{
|
|
83231
|
+
inputs: [],
|
|
83232
|
+
name: "lpAdmin",
|
|
83233
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
83234
|
+
stateMutability: "view",
|
|
83235
|
+
type: "function"
|
|
83236
|
+
},
|
|
83237
|
+
{
|
|
83238
|
+
inputs: [
|
|
83239
|
+
{
|
|
83240
|
+
components: [
|
|
83241
|
+
{
|
|
83242
|
+
internalType: "uint32",
|
|
83243
|
+
name: "srcEid",
|
|
83244
|
+
type: "uint32"
|
|
83245
|
+
},
|
|
83246
|
+
{
|
|
83247
|
+
internalType: "bytes32",
|
|
83248
|
+
name: "sender",
|
|
83249
|
+
type: "bytes32"
|
|
83250
|
+
},
|
|
83251
|
+
{
|
|
83252
|
+
internalType: "uint64",
|
|
83253
|
+
name: "nonce",
|
|
83254
|
+
type: "uint64"
|
|
83255
|
+
}
|
|
83256
|
+
],
|
|
83257
|
+
internalType: "struct Origin",
|
|
83258
|
+
name: "_origin",
|
|
83259
|
+
type: "tuple"
|
|
83260
|
+
},
|
|
83261
|
+
{ internalType: "bytes32", name: "_guid", type: "bytes32" },
|
|
83262
|
+
{ internalType: "bytes", name: "_message", type: "bytes" },
|
|
83263
|
+
{
|
|
83264
|
+
internalType: "address",
|
|
83265
|
+
name: "_executor",
|
|
83266
|
+
type: "address"
|
|
83267
|
+
},
|
|
83268
|
+
{ internalType: "bytes", name: "_extraData", type: "bytes" }
|
|
83269
|
+
],
|
|
83270
|
+
name: "lzReceive",
|
|
83271
|
+
outputs: [],
|
|
83272
|
+
stateMutability: "payable",
|
|
83273
|
+
type: "function"
|
|
83274
|
+
},
|
|
83275
|
+
{
|
|
83276
|
+
inputs: [
|
|
83277
|
+
{ internalType: "uint32", name: "", type: "uint32" },
|
|
83278
|
+
{ internalType: "bytes32", name: "", type: "bytes32" }
|
|
83279
|
+
],
|
|
83280
|
+
name: "nextNonce",
|
|
83281
|
+
outputs: [{ internalType: "uint64", name: "nonce", type: "uint64" }],
|
|
83282
|
+
stateMutability: "view",
|
|
83283
|
+
type: "function"
|
|
83284
|
+
},
|
|
83285
|
+
{
|
|
83286
|
+
inputs: [],
|
|
83287
|
+
name: "oAppVersion",
|
|
83288
|
+
outputs: [
|
|
83289
|
+
{
|
|
83290
|
+
internalType: "uint64",
|
|
83291
|
+
name: "senderVersion",
|
|
83292
|
+
type: "uint64"
|
|
83293
|
+
},
|
|
83294
|
+
{
|
|
83295
|
+
internalType: "uint64",
|
|
83296
|
+
name: "receiverVersion",
|
|
83297
|
+
type: "uint64"
|
|
83298
|
+
}
|
|
83299
|
+
],
|
|
83300
|
+
stateMutability: "pure",
|
|
83301
|
+
type: "function"
|
|
83302
|
+
},
|
|
83303
|
+
{
|
|
83304
|
+
inputs: [],
|
|
83305
|
+
name: "oftVersion",
|
|
83306
|
+
outputs: [
|
|
83307
|
+
{
|
|
83308
|
+
internalType: "bytes4",
|
|
83309
|
+
name: "interfaceId",
|
|
83310
|
+
type: "bytes4"
|
|
83311
|
+
},
|
|
83312
|
+
{ internalType: "uint64", name: "version", type: "uint64" }
|
|
83313
|
+
],
|
|
83314
|
+
stateMutability: "pure",
|
|
83315
|
+
type: "function"
|
|
83316
|
+
},
|
|
83317
|
+
{
|
|
83318
|
+
inputs: [],
|
|
83319
|
+
name: "owner",
|
|
83320
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
83321
|
+
stateMutability: "view",
|
|
83322
|
+
type: "function"
|
|
83323
|
+
},
|
|
83324
|
+
{
|
|
83325
|
+
inputs: [{ internalType: "uint32", name: "eid", type: "uint32" }],
|
|
83326
|
+
name: "peers",
|
|
83327
|
+
outputs: [{ internalType: "bytes32", name: "peer", type: "bytes32" }],
|
|
83328
|
+
stateMutability: "view",
|
|
83329
|
+
type: "function"
|
|
83330
|
+
},
|
|
83331
|
+
{
|
|
83332
|
+
inputs: [],
|
|
83333
|
+
name: "planner",
|
|
83334
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
83335
|
+
stateMutability: "view",
|
|
83336
|
+
type: "function"
|
|
83337
|
+
},
|
|
83338
|
+
{
|
|
83339
|
+
inputs: [
|
|
83340
|
+
{
|
|
83341
|
+
components: [
|
|
83342
|
+
{
|
|
83343
|
+
internalType: "uint32",
|
|
83344
|
+
name: "dstEid",
|
|
83345
|
+
type: "uint32"
|
|
83346
|
+
},
|
|
83347
|
+
{
|
|
83348
|
+
internalType: "bytes32",
|
|
83349
|
+
name: "to",
|
|
83350
|
+
type: "bytes32"
|
|
83351
|
+
},
|
|
83352
|
+
{
|
|
83353
|
+
internalType: "uint256",
|
|
83354
|
+
name: "amountLD",
|
|
83355
|
+
type: "uint256"
|
|
83356
|
+
},
|
|
83357
|
+
{
|
|
83358
|
+
internalType: "uint256",
|
|
83359
|
+
name: "minAmountLD",
|
|
83360
|
+
type: "uint256"
|
|
83361
|
+
},
|
|
83362
|
+
{
|
|
83363
|
+
internalType: "bytes",
|
|
83364
|
+
name: "extraOptions",
|
|
83365
|
+
type: "bytes"
|
|
83366
|
+
},
|
|
83367
|
+
{
|
|
83368
|
+
internalType: "bytes",
|
|
83369
|
+
name: "composeMsg",
|
|
83370
|
+
type: "bytes"
|
|
83371
|
+
},
|
|
83372
|
+
{
|
|
83373
|
+
internalType: "bytes",
|
|
83374
|
+
name: "oftCmd",
|
|
83375
|
+
type: "bytes"
|
|
83376
|
+
}
|
|
83377
|
+
],
|
|
83378
|
+
internalType: "struct SendParam",
|
|
83379
|
+
name: "_sendParam",
|
|
83380
|
+
type: "tuple"
|
|
83381
|
+
}
|
|
83382
|
+
],
|
|
83383
|
+
name: "quoteOFT",
|
|
83384
|
+
outputs: [
|
|
83385
|
+
{
|
|
83386
|
+
components: [
|
|
83387
|
+
{
|
|
83388
|
+
internalType: "uint256",
|
|
83389
|
+
name: "minAmountLD",
|
|
83390
|
+
type: "uint256"
|
|
83391
|
+
},
|
|
83392
|
+
{
|
|
83393
|
+
internalType: "uint256",
|
|
83394
|
+
name: "maxAmountLD",
|
|
83395
|
+
type: "uint256"
|
|
83396
|
+
}
|
|
83397
|
+
],
|
|
83398
|
+
internalType: "struct OFTLimit",
|
|
83399
|
+
name: "oftLimit",
|
|
83400
|
+
type: "tuple"
|
|
83401
|
+
},
|
|
83402
|
+
{
|
|
83403
|
+
components: [
|
|
83404
|
+
{
|
|
83405
|
+
internalType: "int256",
|
|
83406
|
+
name: "feeAmountLD",
|
|
83407
|
+
type: "int256"
|
|
83408
|
+
},
|
|
83409
|
+
{
|
|
83410
|
+
internalType: "string",
|
|
83411
|
+
name: "description",
|
|
83412
|
+
type: "string"
|
|
83413
|
+
}
|
|
83414
|
+
],
|
|
83415
|
+
internalType: "struct OFTFeeDetail[]",
|
|
83416
|
+
name: "oftFeeDetails",
|
|
83417
|
+
type: "tuple[]"
|
|
83418
|
+
},
|
|
83419
|
+
{
|
|
83420
|
+
components: [
|
|
83421
|
+
{
|
|
83422
|
+
internalType: "uint256",
|
|
83423
|
+
name: "amountSentLD",
|
|
83424
|
+
type: "uint256"
|
|
83425
|
+
},
|
|
83426
|
+
{
|
|
83427
|
+
internalType: "uint256",
|
|
83428
|
+
name: "amountReceivedLD",
|
|
83429
|
+
type: "uint256"
|
|
83430
|
+
}
|
|
83431
|
+
],
|
|
83432
|
+
internalType: "struct OFTReceipt",
|
|
83433
|
+
name: "oftReceipt",
|
|
83434
|
+
type: "tuple"
|
|
83435
|
+
}
|
|
83436
|
+
],
|
|
83437
|
+
stateMutability: "view",
|
|
83438
|
+
type: "function"
|
|
83439
|
+
},
|
|
83440
|
+
{
|
|
83441
|
+
inputs: [
|
|
83442
|
+
{
|
|
83443
|
+
components: [
|
|
83444
|
+
{
|
|
83445
|
+
internalType: "uint32",
|
|
83446
|
+
name: "dstEid",
|
|
83447
|
+
type: "uint32"
|
|
83448
|
+
},
|
|
83449
|
+
{
|
|
83450
|
+
internalType: "bytes32",
|
|
83451
|
+
name: "to",
|
|
83452
|
+
type: "bytes32"
|
|
83453
|
+
},
|
|
83454
|
+
{
|
|
83455
|
+
internalType: "uint256",
|
|
83456
|
+
name: "amountLD",
|
|
83457
|
+
type: "uint256"
|
|
83458
|
+
},
|
|
83459
|
+
{
|
|
83460
|
+
internalType: "uint256",
|
|
83461
|
+
name: "minAmountLD",
|
|
83462
|
+
type: "uint256"
|
|
83463
|
+
},
|
|
83464
|
+
{
|
|
83465
|
+
internalType: "bytes",
|
|
83466
|
+
name: "extraOptions",
|
|
83467
|
+
type: "bytes"
|
|
83468
|
+
},
|
|
83469
|
+
{
|
|
83470
|
+
internalType: "bytes",
|
|
83471
|
+
name: "composeMsg",
|
|
83472
|
+
type: "bytes"
|
|
83473
|
+
},
|
|
83474
|
+
{
|
|
83475
|
+
internalType: "bytes",
|
|
83476
|
+
name: "oftCmd",
|
|
83477
|
+
type: "bytes"
|
|
83478
|
+
}
|
|
83479
|
+
],
|
|
83480
|
+
internalType: "struct SendParam",
|
|
83481
|
+
name: "_sendParam",
|
|
83482
|
+
type: "tuple"
|
|
83483
|
+
},
|
|
83484
|
+
{ internalType: "bool", name: "_payInLzToken", type: "bool" }
|
|
83485
|
+
],
|
|
83486
|
+
name: "quoteSend",
|
|
83487
|
+
outputs: [
|
|
83488
|
+
{
|
|
83489
|
+
components: [
|
|
83490
|
+
{
|
|
83491
|
+
internalType: "uint256",
|
|
83492
|
+
name: "nativeFee",
|
|
83493
|
+
type: "uint256"
|
|
83494
|
+
},
|
|
83495
|
+
{
|
|
83496
|
+
internalType: "uint256",
|
|
83497
|
+
name: "lzTokenFee",
|
|
83498
|
+
type: "uint256"
|
|
83499
|
+
}
|
|
83500
|
+
],
|
|
83501
|
+
internalType: "struct MessagingFee",
|
|
83502
|
+
name: "msgFee",
|
|
83503
|
+
type: "tuple"
|
|
83504
|
+
}
|
|
83505
|
+
],
|
|
83506
|
+
stateMutability: "view",
|
|
83507
|
+
type: "function"
|
|
83508
|
+
},
|
|
83509
|
+
{
|
|
83510
|
+
inputs: [
|
|
83511
|
+
{ internalType: "uint32", name: "_dstEid", type: "uint32" },
|
|
83512
|
+
{
|
|
83513
|
+
internalType: "uint64",
|
|
83514
|
+
name: "_creditsArbitrum",
|
|
83515
|
+
type: "uint64"
|
|
83516
|
+
},
|
|
83517
|
+
{
|
|
83518
|
+
internalType: "uint64",
|
|
83519
|
+
name: "_creditsCelo",
|
|
83520
|
+
type: "uint64"
|
|
83521
|
+
},
|
|
83522
|
+
{
|
|
83523
|
+
internalType: "uint64",
|
|
83524
|
+
name: "_creditsEth",
|
|
83525
|
+
type: "uint64"
|
|
83526
|
+
},
|
|
83527
|
+
{
|
|
83528
|
+
internalType: "uint64",
|
|
83529
|
+
name: "_creditsTon",
|
|
83530
|
+
type: "uint64"
|
|
83531
|
+
},
|
|
83532
|
+
{
|
|
83533
|
+
internalType: "uint64",
|
|
83534
|
+
name: "_creditsTron",
|
|
83535
|
+
type: "uint64"
|
|
83536
|
+
},
|
|
83537
|
+
{
|
|
83538
|
+
internalType: "bytes",
|
|
83539
|
+
name: "_extraOptions",
|
|
83540
|
+
type: "bytes"
|
|
83541
|
+
},
|
|
83542
|
+
{ internalType: "bool", name: "_payInLzToken", type: "bool" }
|
|
83543
|
+
],
|
|
83544
|
+
name: "quoteSendCredits",
|
|
83545
|
+
outputs: [
|
|
83546
|
+
{
|
|
83547
|
+
components: [
|
|
83548
|
+
{
|
|
83549
|
+
internalType: "uint256",
|
|
83550
|
+
name: "nativeFee",
|
|
83551
|
+
type: "uint256"
|
|
83552
|
+
},
|
|
83553
|
+
{
|
|
83554
|
+
internalType: "uint256",
|
|
83555
|
+
name: "lzTokenFee",
|
|
83556
|
+
type: "uint256"
|
|
83557
|
+
}
|
|
83558
|
+
],
|
|
83559
|
+
internalType: "struct MessagingFee",
|
|
83560
|
+
name: "msgFee",
|
|
83561
|
+
type: "tuple"
|
|
83562
|
+
}
|
|
83563
|
+
],
|
|
83564
|
+
stateMutability: "view",
|
|
83565
|
+
type: "function"
|
|
83566
|
+
},
|
|
83567
|
+
{
|
|
83568
|
+
inputs: [
|
|
83569
|
+
{
|
|
83570
|
+
components: [
|
|
83571
|
+
{
|
|
83572
|
+
internalType: "uint32",
|
|
83573
|
+
name: "dstEid",
|
|
83574
|
+
type: "uint32"
|
|
83575
|
+
},
|
|
83576
|
+
{
|
|
83577
|
+
internalType: "bytes32",
|
|
83578
|
+
name: "to",
|
|
83579
|
+
type: "bytes32"
|
|
83580
|
+
},
|
|
83581
|
+
{
|
|
83582
|
+
internalType: "uint256",
|
|
83583
|
+
name: "amountLD",
|
|
83584
|
+
type: "uint256"
|
|
83585
|
+
},
|
|
83586
|
+
{
|
|
83587
|
+
internalType: "uint256",
|
|
83588
|
+
name: "minAmountLD",
|
|
83589
|
+
type: "uint256"
|
|
83590
|
+
},
|
|
83591
|
+
{
|
|
83592
|
+
internalType: "bytes",
|
|
83593
|
+
name: "extraOptions",
|
|
83594
|
+
type: "bytes"
|
|
83595
|
+
},
|
|
83596
|
+
{
|
|
83597
|
+
internalType: "bytes",
|
|
83598
|
+
name: "composeMsg",
|
|
83599
|
+
type: "bytes"
|
|
83600
|
+
},
|
|
83601
|
+
{
|
|
83602
|
+
internalType: "bytes",
|
|
83603
|
+
name: "oftCmd",
|
|
83604
|
+
type: "bytes"
|
|
83605
|
+
}
|
|
83606
|
+
],
|
|
83607
|
+
internalType: "struct SendParam",
|
|
83608
|
+
name: "_sendParam",
|
|
83609
|
+
type: "tuple"
|
|
83610
|
+
},
|
|
83611
|
+
{ internalType: "bool", name: "_payInLzToken", type: "bool" }
|
|
83612
|
+
],
|
|
83613
|
+
name: "quoteWithdrawRemote",
|
|
83614
|
+
outputs: [
|
|
83615
|
+
{
|
|
83616
|
+
components: [
|
|
83617
|
+
{
|
|
83618
|
+
internalType: "uint256",
|
|
83619
|
+
name: "nativeFee",
|
|
83620
|
+
type: "uint256"
|
|
83621
|
+
},
|
|
83622
|
+
{
|
|
83623
|
+
internalType: "uint256",
|
|
83624
|
+
name: "lzTokenFee",
|
|
83625
|
+
type: "uint256"
|
|
83626
|
+
}
|
|
83627
|
+
],
|
|
83628
|
+
internalType: "struct MessagingFee",
|
|
83629
|
+
name: "msgFee",
|
|
83630
|
+
type: "tuple"
|
|
83631
|
+
}
|
|
83632
|
+
],
|
|
83633
|
+
stateMutability: "view",
|
|
83634
|
+
type: "function"
|
|
83635
|
+
},
|
|
83636
|
+
{
|
|
83637
|
+
inputs: [],
|
|
83638
|
+
name: "renounceOwnership",
|
|
83639
|
+
outputs: [],
|
|
83640
|
+
stateMutability: "nonpayable",
|
|
83641
|
+
type: "function"
|
|
83642
|
+
},
|
|
83643
|
+
{
|
|
83644
|
+
inputs: [
|
|
83645
|
+
{
|
|
83646
|
+
components: [
|
|
83647
|
+
{
|
|
83648
|
+
internalType: "uint32",
|
|
83649
|
+
name: "dstEid",
|
|
83650
|
+
type: "uint32"
|
|
83651
|
+
},
|
|
83652
|
+
{
|
|
83653
|
+
internalType: "bytes32",
|
|
83654
|
+
name: "to",
|
|
83655
|
+
type: "bytes32"
|
|
83656
|
+
},
|
|
83657
|
+
{
|
|
83658
|
+
internalType: "uint256",
|
|
83659
|
+
name: "amountLD",
|
|
83660
|
+
type: "uint256"
|
|
83661
|
+
},
|
|
83662
|
+
{
|
|
83663
|
+
internalType: "uint256",
|
|
83664
|
+
name: "minAmountLD",
|
|
83665
|
+
type: "uint256"
|
|
83666
|
+
},
|
|
83667
|
+
{
|
|
83668
|
+
internalType: "bytes",
|
|
83669
|
+
name: "extraOptions",
|
|
83670
|
+
type: "bytes"
|
|
83671
|
+
},
|
|
83672
|
+
{
|
|
83673
|
+
internalType: "bytes",
|
|
83674
|
+
name: "composeMsg",
|
|
83675
|
+
type: "bytes"
|
|
83676
|
+
},
|
|
83677
|
+
{
|
|
83678
|
+
internalType: "bytes",
|
|
83679
|
+
name: "oftCmd",
|
|
83680
|
+
type: "bytes"
|
|
83681
|
+
}
|
|
83682
|
+
],
|
|
83683
|
+
internalType: "struct SendParam",
|
|
83684
|
+
name: "_sendParam",
|
|
83685
|
+
type: "tuple"
|
|
83686
|
+
},
|
|
83687
|
+
{
|
|
83688
|
+
components: [
|
|
83689
|
+
{
|
|
83690
|
+
internalType: "uint256",
|
|
83691
|
+
name: "nativeFee",
|
|
83692
|
+
type: "uint256"
|
|
83693
|
+
},
|
|
83694
|
+
{
|
|
83695
|
+
internalType: "uint256",
|
|
83696
|
+
name: "lzTokenFee",
|
|
83697
|
+
type: "uint256"
|
|
83698
|
+
}
|
|
83699
|
+
],
|
|
83700
|
+
internalType: "struct MessagingFee",
|
|
83701
|
+
name: "_fee",
|
|
83702
|
+
type: "tuple"
|
|
83703
|
+
},
|
|
83704
|
+
{
|
|
83705
|
+
internalType: "address",
|
|
83706
|
+
name: "_refundAddress",
|
|
83707
|
+
type: "address"
|
|
83708
|
+
}
|
|
83709
|
+
],
|
|
83710
|
+
name: "send",
|
|
83711
|
+
outputs: [
|
|
83712
|
+
{
|
|
83713
|
+
components: [
|
|
83714
|
+
{
|
|
83715
|
+
internalType: "bytes32",
|
|
83716
|
+
name: "guid",
|
|
83717
|
+
type: "bytes32"
|
|
83718
|
+
},
|
|
83719
|
+
{
|
|
83720
|
+
internalType: "uint64",
|
|
83721
|
+
name: "nonce",
|
|
83722
|
+
type: "uint64"
|
|
83723
|
+
},
|
|
83724
|
+
{
|
|
83725
|
+
components: [
|
|
83726
|
+
{
|
|
83727
|
+
internalType: "uint256",
|
|
83728
|
+
name: "nativeFee",
|
|
83729
|
+
type: "uint256"
|
|
83730
|
+
},
|
|
83731
|
+
{
|
|
83732
|
+
internalType: "uint256",
|
|
83733
|
+
name: "lzTokenFee",
|
|
83734
|
+
type: "uint256"
|
|
83735
|
+
}
|
|
83736
|
+
],
|
|
83737
|
+
internalType: "struct MessagingFee",
|
|
83738
|
+
name: "fee",
|
|
83739
|
+
type: "tuple"
|
|
83740
|
+
}
|
|
83741
|
+
],
|
|
83742
|
+
internalType: "struct MessagingReceipt",
|
|
83743
|
+
name: "msgReceipt",
|
|
83744
|
+
type: "tuple"
|
|
83745
|
+
},
|
|
83746
|
+
{
|
|
83747
|
+
components: [
|
|
83748
|
+
{
|
|
83749
|
+
internalType: "uint256",
|
|
83750
|
+
name: "amountSentLD",
|
|
83751
|
+
type: "uint256"
|
|
83752
|
+
},
|
|
83753
|
+
{
|
|
83754
|
+
internalType: "uint256",
|
|
83755
|
+
name: "amountReceivedLD",
|
|
83756
|
+
type: "uint256"
|
|
83757
|
+
}
|
|
83758
|
+
],
|
|
83759
|
+
internalType: "struct OFTReceipt",
|
|
83760
|
+
name: "oftReceipt",
|
|
83761
|
+
type: "tuple"
|
|
83762
|
+
}
|
|
83763
|
+
],
|
|
83764
|
+
stateMutability: "payable",
|
|
83765
|
+
type: "function"
|
|
83766
|
+
},
|
|
83767
|
+
{
|
|
83768
|
+
inputs: [
|
|
83769
|
+
{ internalType: "uint32", name: "_dstEid", type: "uint32" },
|
|
83770
|
+
{
|
|
83771
|
+
internalType: "uint64",
|
|
83772
|
+
name: "_creditsArbitrum",
|
|
83773
|
+
type: "uint64"
|
|
83774
|
+
},
|
|
83775
|
+
{
|
|
83776
|
+
internalType: "uint64",
|
|
83777
|
+
name: "_creditsCelo",
|
|
83778
|
+
type: "uint64"
|
|
83779
|
+
},
|
|
83780
|
+
{
|
|
83781
|
+
internalType: "uint64",
|
|
83782
|
+
name: "_creditsEth",
|
|
83783
|
+
type: "uint64"
|
|
83784
|
+
},
|
|
83785
|
+
{
|
|
83786
|
+
internalType: "uint64",
|
|
83787
|
+
name: "_creditsTon",
|
|
83788
|
+
type: "uint64"
|
|
83789
|
+
},
|
|
83790
|
+
{
|
|
83791
|
+
internalType: "uint64",
|
|
83792
|
+
name: "_creditsTron",
|
|
83793
|
+
type: "uint64"
|
|
83794
|
+
},
|
|
83795
|
+
{
|
|
83796
|
+
internalType: "bytes",
|
|
83797
|
+
name: "_extraOptions",
|
|
83798
|
+
type: "bytes"
|
|
83799
|
+
},
|
|
83800
|
+
{
|
|
83801
|
+
components: [
|
|
83802
|
+
{
|
|
83803
|
+
internalType: "uint256",
|
|
83804
|
+
name: "nativeFee",
|
|
83805
|
+
type: "uint256"
|
|
83806
|
+
},
|
|
83807
|
+
{
|
|
83808
|
+
internalType: "uint256",
|
|
83809
|
+
name: "lzTokenFee",
|
|
83810
|
+
type: "uint256"
|
|
83811
|
+
}
|
|
83812
|
+
],
|
|
83813
|
+
internalType: "struct MessagingFee",
|
|
83814
|
+
name: "_fee",
|
|
83815
|
+
type: "tuple"
|
|
83816
|
+
}
|
|
83817
|
+
],
|
|
83818
|
+
name: "sendCredits",
|
|
83819
|
+
outputs: [
|
|
83820
|
+
{
|
|
83821
|
+
components: [
|
|
83822
|
+
{
|
|
83823
|
+
internalType: "bytes32",
|
|
83824
|
+
name: "guid",
|
|
83825
|
+
type: "bytes32"
|
|
83826
|
+
},
|
|
83827
|
+
{
|
|
83828
|
+
internalType: "uint64",
|
|
83829
|
+
name: "nonce",
|
|
83830
|
+
type: "uint64"
|
|
83831
|
+
},
|
|
83832
|
+
{
|
|
83833
|
+
components: [
|
|
83834
|
+
{
|
|
83835
|
+
internalType: "uint256",
|
|
83836
|
+
name: "nativeFee",
|
|
83837
|
+
type: "uint256"
|
|
83838
|
+
},
|
|
83839
|
+
{
|
|
83840
|
+
internalType: "uint256",
|
|
83841
|
+
name: "lzTokenFee",
|
|
83842
|
+
type: "uint256"
|
|
83843
|
+
}
|
|
83844
|
+
],
|
|
83845
|
+
internalType: "struct MessagingFee",
|
|
83846
|
+
name: "fee",
|
|
83847
|
+
type: "tuple"
|
|
83848
|
+
}
|
|
83849
|
+
],
|
|
83850
|
+
internalType: "struct MessagingReceipt",
|
|
83851
|
+
name: "msgReceipt",
|
|
83852
|
+
type: "tuple"
|
|
83853
|
+
}
|
|
83854
|
+
],
|
|
83855
|
+
stateMutability: "payable",
|
|
83856
|
+
type: "function"
|
|
83857
|
+
},
|
|
83858
|
+
{
|
|
83859
|
+
inputs: [
|
|
83860
|
+
{
|
|
83861
|
+
internalType: "address",
|
|
83862
|
+
name: "_delegate",
|
|
83863
|
+
type: "address"
|
|
83864
|
+
}
|
|
83865
|
+
],
|
|
83866
|
+
name: "setDelegate",
|
|
83867
|
+
outputs: [],
|
|
83868
|
+
stateMutability: "nonpayable",
|
|
83869
|
+
type: "function"
|
|
83870
|
+
},
|
|
83871
|
+
{
|
|
83872
|
+
inputs: [
|
|
83873
|
+
{
|
|
83874
|
+
components: [
|
|
83875
|
+
{
|
|
83876
|
+
internalType: "uint32",
|
|
83877
|
+
name: "eid",
|
|
83878
|
+
type: "uint32"
|
|
83879
|
+
},
|
|
83880
|
+
{
|
|
83881
|
+
internalType: "uint16",
|
|
83882
|
+
name: "msgType",
|
|
83883
|
+
type: "uint16"
|
|
83884
|
+
},
|
|
83885
|
+
{
|
|
83886
|
+
internalType: "bytes",
|
|
83887
|
+
name: "options",
|
|
83888
|
+
type: "bytes"
|
|
83889
|
+
}
|
|
83890
|
+
],
|
|
83891
|
+
internalType: "struct EnforcedOptionParam[]",
|
|
83892
|
+
name: "_enforcedOptions",
|
|
83893
|
+
type: "tuple[]"
|
|
83894
|
+
}
|
|
83895
|
+
],
|
|
83896
|
+
name: "setEnforcedOptions",
|
|
83897
|
+
outputs: [],
|
|
83898
|
+
stateMutability: "nonpayable",
|
|
83899
|
+
type: "function"
|
|
83900
|
+
},
|
|
83901
|
+
{
|
|
83902
|
+
inputs: [{ internalType: "uint16", name: "_feeBps", type: "uint16" }],
|
|
83903
|
+
name: "setFeeBps",
|
|
83904
|
+
outputs: [],
|
|
83905
|
+
stateMutability: "nonpayable",
|
|
83906
|
+
type: "function"
|
|
83907
|
+
},
|
|
83908
|
+
{
|
|
83909
|
+
inputs: [{ internalType: "address", name: "_lpAdmin", type: "address" }],
|
|
83910
|
+
name: "setLpAdmin",
|
|
83911
|
+
outputs: [],
|
|
83912
|
+
stateMutability: "nonpayable",
|
|
83913
|
+
type: "function"
|
|
83914
|
+
},
|
|
83915
|
+
{
|
|
83916
|
+
inputs: [
|
|
83917
|
+
{ internalType: "uint32", name: "_eid", type: "uint32" },
|
|
83918
|
+
{ internalType: "bytes32", name: "_peer", type: "bytes32" }
|
|
83919
|
+
],
|
|
83920
|
+
name: "setPeer",
|
|
83921
|
+
outputs: [],
|
|
83922
|
+
stateMutability: "nonpayable",
|
|
83923
|
+
type: "function"
|
|
83924
|
+
},
|
|
83925
|
+
{
|
|
83926
|
+
inputs: [{ internalType: "address", name: "_planner", type: "address" }],
|
|
83927
|
+
name: "setPlanner",
|
|
83928
|
+
outputs: [],
|
|
83929
|
+
stateMutability: "nonpayable",
|
|
83930
|
+
type: "function"
|
|
83931
|
+
},
|
|
83932
|
+
{
|
|
83933
|
+
inputs: [],
|
|
83934
|
+
name: "sharedDecimals",
|
|
83935
|
+
outputs: [{ internalType: "uint8", name: "", type: "uint8" }],
|
|
83936
|
+
stateMutability: "pure",
|
|
83937
|
+
type: "function"
|
|
83938
|
+
},
|
|
83939
|
+
{
|
|
83940
|
+
inputs: [],
|
|
83941
|
+
name: "token",
|
|
83942
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
83943
|
+
stateMutability: "view",
|
|
83944
|
+
type: "function"
|
|
83945
|
+
},
|
|
83946
|
+
{
|
|
83947
|
+
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
83948
|
+
name: "transferOwnership",
|
|
83949
|
+
outputs: [],
|
|
83950
|
+
stateMutability: "nonpayable",
|
|
83951
|
+
type: "function"
|
|
83952
|
+
},
|
|
83953
|
+
{
|
|
83954
|
+
inputs: [],
|
|
83955
|
+
name: "tvl",
|
|
83956
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
83957
|
+
stateMutability: "view",
|
|
83958
|
+
type: "function"
|
|
83959
|
+
},
|
|
83960
|
+
{
|
|
83961
|
+
inputs: [
|
|
83962
|
+
{ internalType: "address", name: "_to", type: "address" },
|
|
83963
|
+
{ internalType: "uint256", name: "_amount", type: "uint256" }
|
|
83964
|
+
],
|
|
83965
|
+
name: "withdrawFees",
|
|
83966
|
+
outputs: [],
|
|
83967
|
+
stateMutability: "nonpayable",
|
|
83968
|
+
type: "function"
|
|
83969
|
+
},
|
|
83970
|
+
{
|
|
83971
|
+
inputs: [
|
|
83972
|
+
{ internalType: "address", name: "_to", type: "address" },
|
|
83973
|
+
{ internalType: "uint256", name: "_amount", type: "uint256" }
|
|
83974
|
+
],
|
|
83975
|
+
name: "withdrawLocal",
|
|
83976
|
+
outputs: [],
|
|
83977
|
+
stateMutability: "nonpayable",
|
|
83978
|
+
type: "function"
|
|
83979
|
+
},
|
|
83980
|
+
{
|
|
83981
|
+
inputs: [
|
|
83982
|
+
{
|
|
83983
|
+
components: [
|
|
83984
|
+
{
|
|
83985
|
+
internalType: "uint32",
|
|
83986
|
+
name: "dstEid",
|
|
83987
|
+
type: "uint32"
|
|
83988
|
+
},
|
|
83989
|
+
{
|
|
83990
|
+
internalType: "bytes32",
|
|
83991
|
+
name: "to",
|
|
83992
|
+
type: "bytes32"
|
|
83993
|
+
},
|
|
83994
|
+
{
|
|
83995
|
+
internalType: "uint256",
|
|
83996
|
+
name: "amountLD",
|
|
83997
|
+
type: "uint256"
|
|
83998
|
+
},
|
|
83999
|
+
{
|
|
84000
|
+
internalType: "uint256",
|
|
84001
|
+
name: "minAmountLD",
|
|
84002
|
+
type: "uint256"
|
|
84003
|
+
},
|
|
84004
|
+
{
|
|
84005
|
+
internalType: "bytes",
|
|
84006
|
+
name: "extraOptions",
|
|
84007
|
+
type: "bytes"
|
|
84008
|
+
},
|
|
84009
|
+
{
|
|
84010
|
+
internalType: "bytes",
|
|
84011
|
+
name: "composeMsg",
|
|
84012
|
+
type: "bytes"
|
|
84013
|
+
},
|
|
84014
|
+
{
|
|
84015
|
+
internalType: "bytes",
|
|
84016
|
+
name: "oftCmd",
|
|
84017
|
+
type: "bytes"
|
|
84018
|
+
}
|
|
84019
|
+
],
|
|
84020
|
+
internalType: "struct SendParam",
|
|
84021
|
+
name: "_sendParam",
|
|
84022
|
+
type: "tuple"
|
|
84023
|
+
},
|
|
84024
|
+
{
|
|
84025
|
+
components: [
|
|
84026
|
+
{
|
|
84027
|
+
internalType: "uint256",
|
|
84028
|
+
name: "nativeFee",
|
|
84029
|
+
type: "uint256"
|
|
84030
|
+
},
|
|
84031
|
+
{
|
|
84032
|
+
internalType: "uint256",
|
|
84033
|
+
name: "lzTokenFee",
|
|
84034
|
+
type: "uint256"
|
|
84035
|
+
}
|
|
84036
|
+
],
|
|
84037
|
+
internalType: "struct MessagingFee",
|
|
84038
|
+
name: "_fee",
|
|
84039
|
+
type: "tuple"
|
|
84040
|
+
},
|
|
84041
|
+
{
|
|
84042
|
+
internalType: "address",
|
|
84043
|
+
name: "_refundAddress",
|
|
84044
|
+
type: "address"
|
|
84045
|
+
}
|
|
84046
|
+
],
|
|
84047
|
+
name: "withdrawRemote",
|
|
84048
|
+
outputs: [
|
|
84049
|
+
{
|
|
84050
|
+
components: [
|
|
84051
|
+
{
|
|
84052
|
+
internalType: "bytes32",
|
|
84053
|
+
name: "guid",
|
|
84054
|
+
type: "bytes32"
|
|
84055
|
+
},
|
|
84056
|
+
{
|
|
84057
|
+
internalType: "uint64",
|
|
84058
|
+
name: "nonce",
|
|
84059
|
+
type: "uint64"
|
|
84060
|
+
},
|
|
84061
|
+
{
|
|
84062
|
+
components: [
|
|
84063
|
+
{
|
|
84064
|
+
internalType: "uint256",
|
|
84065
|
+
name: "nativeFee",
|
|
84066
|
+
type: "uint256"
|
|
84067
|
+
},
|
|
84068
|
+
{
|
|
84069
|
+
internalType: "uint256",
|
|
84070
|
+
name: "lzTokenFee",
|
|
84071
|
+
type: "uint256"
|
|
84072
|
+
}
|
|
84073
|
+
],
|
|
84074
|
+
internalType: "struct MessagingFee",
|
|
84075
|
+
name: "fee",
|
|
84076
|
+
type: "tuple"
|
|
84077
|
+
}
|
|
84078
|
+
],
|
|
84079
|
+
internalType: "struct MessagingReceipt",
|
|
84080
|
+
name: "msgReceipt",
|
|
84081
|
+
type: "tuple"
|
|
84082
|
+
}
|
|
84083
|
+
],
|
|
84084
|
+
stateMutability: "payable",
|
|
84085
|
+
type: "function"
|
|
84086
|
+
}
|
|
84087
|
+
];
|
|
84088
|
+
// src/integrations/oft/oft.adapter.ts
|
|
84089
|
+
var oftAdapterInterface = new exports_ethers.utils.Interface(oft_adapter_abi_default);
|
|
84090
|
+
var QuoteSendCalldata = (args) => {
|
|
84091
|
+
return oftAdapterInterface.encodeFunctionData("quoteSend", [
|
|
84092
|
+
{
|
|
84093
|
+
dstEid: args.dstEid,
|
|
84094
|
+
to: args.to,
|
|
84095
|
+
amountLD: args.amountLD,
|
|
84096
|
+
minAmountLD: args.minAmountLD,
|
|
84097
|
+
extraOptions: args.extraOptions,
|
|
84098
|
+
composeMsg: args.composeMsg,
|
|
84099
|
+
oftCmd: args.oftCmd
|
|
84100
|
+
},
|
|
84101
|
+
args.payInLzToken
|
|
84102
|
+
]);
|
|
84103
|
+
};
|
|
84104
|
+
var QuoteSendTrx = ({
|
|
84105
|
+
oftAdapterAddress,
|
|
84106
|
+
args
|
|
84107
|
+
}) => {
|
|
84108
|
+
return createCall({
|
|
84109
|
+
operation: 0,
|
|
84110
|
+
to: oftAdapterAddress,
|
|
84111
|
+
data: QuoteSendCalldata(args),
|
|
84112
|
+
value: 0n
|
|
84113
|
+
});
|
|
84114
|
+
};
|
|
84115
|
+
var SendOFTCalldata = (args) => {
|
|
84116
|
+
return oftAdapterInterface.encodeFunctionData("send", [
|
|
84117
|
+
{
|
|
84118
|
+
dstEid: args.dstEid,
|
|
84119
|
+
to: args.to,
|
|
84120
|
+
amountLD: args.amountLD,
|
|
84121
|
+
minAmountLD: args.minAmountLD,
|
|
84122
|
+
extraOptions: args.extraOptions,
|
|
84123
|
+
composeMsg: args.composeMsg,
|
|
84124
|
+
oftCmd: args.oftCmd
|
|
84125
|
+
},
|
|
84126
|
+
{
|
|
84127
|
+
nativeFee: args.nativeFee,
|
|
84128
|
+
lzTokenFee: args.lzTokenFee
|
|
84129
|
+
},
|
|
84130
|
+
args.refundAddress
|
|
84131
|
+
]);
|
|
84132
|
+
};
|
|
84133
|
+
var sendOFTTrx = ({
|
|
84134
|
+
oftAdapterAddress,
|
|
84135
|
+
args
|
|
84136
|
+
}) => {
|
|
84137
|
+
return createCall({
|
|
84138
|
+
operation: 0,
|
|
84139
|
+
to: oftAdapterAddress,
|
|
84140
|
+
data: SendOFTCalldata(args),
|
|
84141
|
+
value: args.nativeFee
|
|
84142
|
+
});
|
|
84143
|
+
};
|
|
82003
84144
|
// src/lib/utils.ts
|
|
82004
84145
|
var executeTrx = ({
|
|
82005
84146
|
client,
|
|
@@ -82094,4 +84235,4 @@ var simulateOrThrow = async (env2) => {
|
|
|
82094
84235
|
};
|
|
82095
84236
|
};
|
|
82096
84237
|
|
|
82097
|
-
//# debugId=
|
|
84238
|
+
//# debugId=9DD3D5DCAE83792564756E2164756E21
|