@stargatefinance/stg-evm-sdk-v2 1.3.0 → 1.3.2
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/deployments/injectiveevm-mainnet/CreditMessaging.json +1501 -0
- package/deployments/injectiveevm-mainnet/FeeLibV1ETH.json +611 -0
- package/deployments/injectiveevm-mainnet/OFTWrapper.json +1506 -0
- package/deployments/injectiveevm-mainnet/StargateOFTETH.json +1989 -0
- package/deployments/injectiveevm-mainnet/TokenMessaging.json +2475 -0
- package/deployments/injectiveevm-mainnet/Treasurer.json +450 -0
- package/deployments/tempo-mainnet/CreditMessaging.json +31 -31
- package/deployments/tempo-mainnet/FeeLibV1EURC.json +32 -32
- package/deployments/tempo-mainnet/FeeLibV1USDC.json +32 -32
- package/deployments/tempo-mainnet/OFTWrapper.json +23 -23
- package/deployments/tempo-mainnet/StargateOFTEURC.json +40 -40
- package/deployments/tempo-mainnet/StargateOFTUSDC.json +40 -40
- package/deployments/tempo-mainnet/TokenMessaging.json +49 -49
- package/deployments/tempo-mainnet/Treasurer.json +26 -26
- package/dist/deployed/CreditMessaging-IGOQxSXd.d.mts +1943 -0
- package/dist/deployed/CreditMessaging-IGOQxSXd.d.ts +1943 -0
- package/dist/deployed/CreditMessaging.cjs +5 -2
- package/dist/deployed/CreditMessaging.cjs.map +1 -1
- package/dist/deployed/CreditMessaging.d.mts +1 -0
- package/dist/deployed/CreditMessaging.d.ts +1 -0
- package/dist/deployed/CreditMessaging.mjs +5 -2
- package/dist/deployed/CreditMessaging.mjs.map +1 -1
- package/dist/deployed/FeeLibV1ETH-8z96VA3A.d.mts +497 -0
- package/dist/deployed/FeeLibV1ETH-8z96VA3A.d.ts +497 -0
- package/dist/deployed/FeeLibV1ETH.cjs +3 -0
- package/dist/deployed/FeeLibV1ETH.cjs.map +1 -1
- package/dist/deployed/FeeLibV1ETH.d.mts +1 -0
- package/dist/deployed/FeeLibV1ETH.d.ts +1 -0
- package/dist/deployed/FeeLibV1ETH.mjs +3 -0
- package/dist/deployed/FeeLibV1ETH.mjs.map +1 -1
- package/dist/deployed/FeeLibV1EURC-yReJhQhE.d.mts +352 -0
- package/dist/deployed/FeeLibV1EURC-yReJhQhE.d.ts +352 -0
- package/dist/deployed/FeeLibV1EURC.cjs +2 -2
- package/dist/deployed/FeeLibV1EURC.cjs.map +1 -1
- package/dist/deployed/FeeLibV1EURC.d.mts +1 -0
- package/dist/deployed/FeeLibV1EURC.d.ts +1 -0
- package/dist/deployed/FeeLibV1EURC.mjs +2 -2
- package/dist/deployed/FeeLibV1EURC.mjs.map +1 -1
- package/dist/deployed/FeeLibV1METIS-B3y8ZOp-.d.mts +328 -0
- package/dist/deployed/FeeLibV1METIS-B3y8ZOp-.d.ts +328 -0
- package/dist/deployed/FeeLibV1METIS.d.mts +1 -0
- package/dist/deployed/FeeLibV1METIS.d.ts +1 -0
- package/dist/deployed/FeeLibV1USDC-C8_hd8f9.d.mts +524 -0
- package/dist/deployed/FeeLibV1USDC-C8_hd8f9.d.ts +524 -0
- package/dist/deployed/FeeLibV1USDC.cjs +2 -2
- package/dist/deployed/FeeLibV1USDC.cjs.map +1 -1
- package/dist/deployed/FeeLibV1USDC.d.mts +1 -0
- package/dist/deployed/FeeLibV1USDC.d.ts +1 -0
- package/dist/deployed/FeeLibV1USDC.mjs +2 -2
- package/dist/deployed/FeeLibV1USDC.mjs.map +1 -1
- package/dist/deployed/FeeLibV1USDT-aw57zGRO.d.mts +468 -0
- package/dist/deployed/FeeLibV1USDT-aw57zGRO.d.ts +468 -0
- package/dist/deployed/FeeLibV1USDT.d.mts +1 -0
- package/dist/deployed/FeeLibV1USDT.d.ts +1 -0
- package/dist/deployed/FeeLibV1mETH-D6xTtHP2.d.mts +328 -0
- package/dist/deployed/FeeLibV1mETH-D6xTtHP2.d.ts +328 -0
- package/dist/deployed/FeeLibV1mETH.d.mts +1 -0
- package/dist/deployed/FeeLibV1mETH.d.ts +1 -0
- package/dist/deployed/OFTTokenETH-D8zQcFzC.d.mts +473 -0
- package/dist/deployed/OFTTokenETH-D8zQcFzC.d.ts +473 -0
- package/dist/deployed/OFTTokenETH.d.mts +1 -0
- package/dist/deployed/OFTTokenETH.d.ts +1 -0
- package/dist/deployed/OFTWrapper-Ct2E5Mwd.d.mts +1364 -0
- package/dist/deployed/OFTWrapper-Ct2E5Mwd.d.ts +1364 -0
- package/dist/deployed/OFTWrapper.cjs +5 -2
- package/dist/deployed/OFTWrapper.cjs.map +1 -1
- package/dist/deployed/OFTWrapper.d.mts +1 -0
- package/dist/deployed/OFTWrapper.d.ts +1 -0
- package/dist/deployed/OFTWrapper.mjs +5 -2
- package/dist/deployed/OFTWrapper.mjs.map +1 -1
- package/dist/deployed/RewardLib-DZPcpNd5.d.mts +115 -0
- package/dist/deployed/RewardLib-DZPcpNd5.d.ts +115 -0
- package/dist/deployed/RewardLib.d.mts +1 -0
- package/dist/deployed/RewardLib.d.ts +1 -0
- package/dist/deployed/RewardRegistryLib-ChjkPjiF.d.mts +115 -0
- package/dist/deployed/RewardRegistryLib-ChjkPjiF.d.ts +115 -0
- package/dist/deployed/RewardRegistryLib.d.mts +1 -0
- package/dist/deployed/RewardRegistryLib.d.ts +1 -0
- package/dist/deployed/RewardTokenMock-B_bipjnn.d.mts +308 -0
- package/dist/deployed/RewardTokenMock-B_bipjnn.d.ts +308 -0
- package/dist/deployed/{StargateOFTETH-DKShRecU.d.mts → StargateOFTETH-DnpwT3Cg.d.mts} +3 -0
- package/dist/deployed/{StargateOFTETH-DKShRecU.d.ts → StargateOFTETH-DnpwT3Cg.d.ts} +3 -0
- package/dist/deployed/StargateOFTETH.cjs +3 -0
- package/dist/deployed/StargateOFTETH.cjs.map +1 -1
- package/dist/deployed/StargateOFTETH.d.mts +1 -1
- package/dist/deployed/StargateOFTETH.d.ts +1 -1
- package/dist/deployed/StargateOFTETH.mjs +3 -0
- package/dist/deployed/StargateOFTETH.mjs.map +1 -1
- package/dist/deployed/StargateOFTEURC.cjs +2 -2
- package/dist/deployed/StargateOFTEURC.cjs.map +1 -1
- package/dist/deployed/StargateOFTEURC.mjs +2 -2
- package/dist/deployed/StargateOFTEURC.mjs.map +1 -1
- package/dist/deployed/StargateOFTUSDC.cjs +2 -2
- package/dist/deployed/StargateOFTUSDC.cjs.map +1 -1
- package/dist/deployed/StargateOFTUSDC.mjs +2 -2
- package/dist/deployed/StargateOFTUSDC.mjs.map +1 -1
- package/dist/deployed/{TokenMessaging-BfnD6v53.d.mts → TokenMessaging-DblIo7R9.d.mts} +3 -0
- package/dist/deployed/{TokenMessaging-BfnD6v53.d.ts → TokenMessaging-DblIo7R9.d.ts} +3 -0
- package/dist/deployed/TokenMessaging.cjs +5 -2
- package/dist/deployed/TokenMessaging.cjs.map +1 -1
- package/dist/deployed/TokenMessaging.d.mts +1 -1
- package/dist/deployed/TokenMessaging.d.ts +1 -1
- package/dist/deployed/TokenMessaging.mjs +5 -2
- package/dist/deployed/TokenMessaging.mjs.map +1 -1
- package/dist/deployed/{Treasurer-DlA2Gv8f.d.mts → Treasurer-OOFshPmY.d.mts} +3 -0
- package/dist/deployed/{Treasurer-DlA2Gv8f.d.ts → Treasurer-OOFshPmY.d.ts} +3 -0
- package/dist/deployed/Treasurer.cjs +5 -2
- package/dist/deployed/Treasurer.cjs.map +1 -1
- package/dist/deployed/Treasurer.d.mts +1 -1
- package/dist/deployed/Treasurer.d.ts +1 -1
- package/dist/deployed/Treasurer.mjs +5 -2
- package/dist/deployed/Treasurer.mjs.map +1 -1
- package/dist/deployed/{contracts-Yg5JhOts.d.ts → contracts-BtrnE9gq.d.ts} +6 -6
- package/dist/deployed/{contracts-CwDH7mzf.d.mts → contracts-CRtAyxkQ.d.mts} +6 -6
- package/dist/deployed/contracts.cjs +34 -16
- package/dist/deployed/contracts.cjs.map +1 -1
- package/dist/deployed/contracts.d.mts +6 -6
- package/dist/deployed/contracts.d.ts +6 -6
- package/dist/deployed/contracts.mjs +34 -16
- package/dist/deployed/contracts.mjs.map +1 -1
- package/dist/deployed/index.cjs +34 -16
- package/dist/deployed/index.cjs.map +1 -1
- package/dist/deployed/index.d.mts +7 -7
- package/dist/deployed/index.d.ts +7 -7
- package/dist/deployed/index.mjs +34 -16
- package/dist/deployed/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -6,14 +6,14 @@ var addresses = {
|
|
|
6
6
|
"bera-mainnet": "0x28BEc7E30E6faee657a03e19Bf1128AaD7632A00",
|
|
7
7
|
"moderato-testnet": "0x3d7882273E5410E981a470924fBA5DF3EA0dc14a",
|
|
8
8
|
"plumephoenix-mainnet": "0x5e2519045B5e38863c879c694fb0811dba333a60",
|
|
9
|
-
"tempo-mainnet": "
|
|
9
|
+
"tempo-mainnet": "0x7753Dc8d4bd48Db599Da21E08b1Ab1D6FDFfdC71"
|
|
10
10
|
};
|
|
11
11
|
var transactionHashes = {
|
|
12
12
|
"arbsep-testnet": "0x5036b62614736ecad02b339fe51a1bfdc3495de8e6b4446e0cb11bb9024338f2",
|
|
13
13
|
"bera-mainnet": "0x61a684bbcde0927af8aac1b12338ac2d397a848c25ce57096eb9037e99d46f92",
|
|
14
14
|
"moderato-testnet": "0x1c4e1dd5b84b1e928e2c334a7051874676cd461ae431f23b405faefd00deb5a1",
|
|
15
15
|
"plumephoenix-mainnet": "0x2af0e44104890b51a0aaf53a305cb0b5f2f7bf5a316659e8b6c3e80106c6d716",
|
|
16
|
-
"tempo-mainnet": "
|
|
16
|
+
"tempo-mainnet": "0x9871c5246f3c6c65f224c505e39d259584fc2c4a1fd91b11e84d772c687bfe09"
|
|
17
17
|
};
|
|
18
18
|
var abi0 = [{ "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "uint8", "name": "_sharedDecimals", "type": "uint8" }, { "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidLocalDecimals", "type": "error" }, { "inputs": [], "name": "Path_AlreadyHasCredit", "type": "error" }, { "inputs": [], "name": "Path_InsufficientCredit", "type": "error" }, { "inputs": [], "name": "Path_UnlimitedCredit", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }], "name": "SlippageExceeded", "type": "error" }, { "inputs": [], "name": "Stargate_InsufficientFare", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidAmount", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidPath", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidTokenDecimals", "type": "error" }, { "inputs": [], "name": "Stargate_LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "Stargate_OutflowFailed", "type": "error" }, { "inputs": [], "name": "Stargate_Paused", "type": "error" }, { "inputs": [], "name": "Stargate_RecoverTokenUnsupported", "type": "error" }, { "inputs": [], "name": "Stargate_ReentrantCall", "type": "error" }, { "inputs": [], "name": "Stargate_SlippageTooHigh", "type": "error" }, { "inputs": [], "name": "Stargate_Unauthorized", "type": "error" }, { "inputs": [], "name": "Stargate_UnreceivedTokenNotFound", "type": "error" }, { "inputs": [], "name": "Transfer_ApproveFailed", "type": "error" }, { "inputs": [], "name": "Transfer_TransferFailed", "type": "error" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "indexed": false, "internalType": "struct StargateBase.AddressConfig", "name": "config", "type": "tuple" }], "name": "AddressConfigSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "indexed": false, "internalType": "struct Credit[]", "name": "credits", "type": "tuple[]" }], "name": "CreditsReceived", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "indexed": false, "internalType": "struct Credit[]", "name": "credits", "type": "tuple[]" }], "name": "CreditsSent", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "bool", "name": "oft", "type": "bool" }], "name": "OFTPathSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "indexed": true, "internalType": "address", "name": "toAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "name": "OFTReceived", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": true, "internalType": "address", "name": "fromAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "name": "OFTSent", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bool", "name": "paused", "type": "bool" }], "name": "PauseSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "PlannerFeeWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "amountSD", "type": "uint64" }], "name": "TreasuryFeeAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint64", "name": "amountSD", "type": "uint64" }], "name": "TreasuryFeeWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint8", "name": "index", "type": "uint8" }, { "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "composeMsg", "type": "bytes" }], "name": "UnreceivedTokenCached", "type": "event" }, { "inputs": [{ "internalType": "uint256", "name": "_amountLD", "type": "uint256" }], "name": "addTreasuryFee", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "approvalRequired", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAddressConfig", "outputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "internalType": "struct StargateBase.AddressConfig", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTransferGasLimit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "localEid", "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oftVersion", "outputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }, { "internalType": "uint64", "name": "version", "type": "uint64" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "paths", "outputs": [{ "internalType": "uint64", "name": "credit", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "plannerFee", "outputs": [{ "internalType": "uint256", "name": "available", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }], "name": "quoteOFT", "outputs": [{ "components": [{ "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "uint256", "name": "maxAmountLD", "type": "uint256" }], "internalType": "struct OFTLimit", "name": "limit", "type": "tuple" }, { "components": [{ "internalType": "int256", "name": "feeAmountLD", "type": "int256" }, { "internalType": "string", "name": "description", "type": "string" }], "internalType": "struct OFTFeeDetail[]", "name": "oftFeeDetails", "type": "tuple[]" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "receipt", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "internalType": "bool", "name": "_payInLzToken", "type": "bool" }], "name": "quoteSend", "outputs": [{ "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_srcEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "internalType": "struct Credit[]", "name": "_credits", "type": "tuple[]" }], "name": "receiveCredits", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "_origin", "type": "tuple" }, { "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "uint8", "name": "_seatNumber", "type": "uint8" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }], "name": "receiveTokenBus", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "_origin", "type": "tuple" }, { "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }, { "internalType": "bytes", "name": "_composeMsg", "type": "bytes" }], "name": "receiveTokenTaxi", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }], "name": "recoverToken", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "uint8", "name": "_index", "type": "uint8" }, { "internalType": "uint32", "name": "_srcEid", "type": "uint32" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint256", "name": "_amountLD", "type": "uint256" }, { "internalType": "bytes", "name": "_composeMsg", "type": "bytes" }], "name": "retryReceiveToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "_fee", "type": "tuple" }, { "internalType": "address", "name": "_refundAddress", "type": "address" }], "name": "send", "outputs": [{ "components": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "internalType": "struct MessagingReceipt", "name": "msgReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "oftReceipt", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }, { "internalType": "uint64", "name": "minAmount", "type": "uint64" }], "internalType": "struct TargetCredit[]", "name": "_credits", "type": "tuple[]" }], "name": "sendCredits", "outputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "internalType": "struct Credit[]", "name": "", "type": "tuple[]" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "_fee", "type": "tuple" }, { "internalType": "address", "name": "_refundAddress", "type": "address" }], "name": "sendToken", "outputs": [{ "components": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "internalType": "struct MessagingReceipt", "name": "msgReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "oftReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint72", "name": "ticketId", "type": "uint72" }, { "internalType": "bytes", "name": "passengerBytes", "type": "bytes" }], "internalType": "struct Ticket", "name": "ticket", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "internalType": "struct StargateBase.AddressConfig", "name": "_config", "type": "tuple" }], "name": "setAddressConfig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "bool", "name": "_oft", "type": "bool" }], "name": "setOFTPath", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "_paused", "type": "bool" }], "name": "setPause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_gasLimit", "type": "uint256" }], "name": "setTransferGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "sharedDecimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "stargateType", "outputs": [{ "internalType": "enum StargateType", "name": "", "type": "uint8" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "status", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "token", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_newOwner", "type": "address" }], "name": "transferTokenOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "treasuryFee", "outputs": [{ "internalType": "uint64", "name": "", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint8", "name": "index", "type": "uint8" }], "name": "unreceivedTokens", "outputs": [{ "internalType": "bytes32", "name": "hash", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "withdrawPlannerFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }], "name": "withdrawTreasuryFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
|
|
19
19
|
var abi1 = [{ "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "uint8", "name": "_sharedDecimals", "type": "uint8" }, { "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidLocalDecimals", "type": "error" }, { "inputs": [], "name": "Path_AlreadyHasCredit", "type": "error" }, { "inputs": [], "name": "Path_InsufficientCredit", "type": "error" }, { "inputs": [], "name": "Path_UnlimitedCredit", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }], "name": "SlippageExceeded", "type": "error" }, { "inputs": [], "name": "Stargate_BusNotAllowedInAlt", "type": "error" }, { "inputs": [], "name": "Stargate_InsufficientFare", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidAmount", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidPath", "type": "error" }, { "inputs": [], "name": "Stargate_InvalidTokenDecimals", "type": "error" }, { "inputs": [], "name": "Stargate_LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "Stargate_NotAnAltEndpoint", "type": "error" }, { "inputs": [], "name": "Stargate_OnlyAltToken", "type": "error" }, { "inputs": [], "name": "Stargate_OutflowFailed", "type": "error" }, { "inputs": [], "name": "Stargate_Paused", "type": "error" }, { "inputs": [], "name": "Stargate_RecoverTokenUnsupported", "type": "error" }, { "inputs": [], "name": "Stargate_ReentrantCall", "type": "error" }, { "inputs": [], "name": "Stargate_SlippageTooHigh", "type": "error" }, { "inputs": [], "name": "Stargate_Unauthorized", "type": "error" }, { "inputs": [], "name": "Stargate_UnreceivedTokenNotFound", "type": "error" }, { "inputs": [], "name": "Transfer_ApproveFailed", "type": "error" }, { "inputs": [], "name": "Transfer_TransferFailed", "type": "error" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "indexed": false, "internalType": "struct StargateBase.AddressConfig", "name": "config", "type": "tuple" }], "name": "AddressConfigSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "indexed": false, "internalType": "struct Credit[]", "name": "credits", "type": "tuple[]" }], "name": "CreditsReceived", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "indexed": false, "internalType": "struct Credit[]", "name": "credits", "type": "tuple[]" }], "name": "CreditsSent", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": false, "internalType": "bool", "name": "oft", "type": "bool" }], "name": "OFTPathSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "indexed": true, "internalType": "address", "name": "toAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "name": "OFTReceived", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "indexed": true, "internalType": "address", "name": "fromAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "name": "OFTSent", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bool", "name": "paused", "type": "bool" }], "name": "PauseSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "PlannerFeeWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "amountSD", "type": "uint64" }], "name": "TreasuryFeeAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint64", "name": "amountSD", "type": "uint64" }], "name": "TreasuryFeeWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "indexed": false, "internalType": "uint8", "name": "index", "type": "uint8" }, { "indexed": false, "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "composeMsg", "type": "bytes" }], "name": "UnreceivedTokenCached", "type": "event" }, { "inputs": [{ "internalType": "uint256", "name": "_amountLD", "type": "uint256" }], "name": "addTreasuryFee", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "approvalRequired", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "feeToken", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAddressConfig", "outputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "internalType": "struct StargateBase.AddressConfig", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTransferGasLimit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "localEid", "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oftVersion", "outputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }, { "internalType": "uint64", "name": "version", "type": "uint64" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "paths", "outputs": [{ "internalType": "uint64", "name": "credit", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "plannerFee", "outputs": [{ "internalType": "uint256", "name": "available", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }], "name": "quoteOFT", "outputs": [{ "components": [{ "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "uint256", "name": "maxAmountLD", "type": "uint256" }], "internalType": "struct OFTLimit", "name": "limit", "type": "tuple" }, { "components": [{ "internalType": "int256", "name": "feeAmountLD", "type": "int256" }, { "internalType": "string", "name": "description", "type": "string" }], "internalType": "struct OFTFeeDetail[]", "name": "oftFeeDetails", "type": "tuple[]" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "receipt", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "internalType": "bool", "name": "_payInLzToken", "type": "bool" }], "name": "quoteSend", "outputs": [{ "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_srcEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "internalType": "struct Credit[]", "name": "_credits", "type": "tuple[]" }], "name": "receiveCredits", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "_origin", "type": "tuple" }, { "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "uint8", "name": "_seatNumber", "type": "uint8" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }], "name": "receiveTokenBus", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "_origin", "type": "tuple" }, { "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }, { "internalType": "bytes", "name": "_composeMsg", "type": "bytes" }], "name": "receiveTokenTaxi", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }], "name": "recoverToken", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "uint8", "name": "_index", "type": "uint8" }, { "internalType": "uint32", "name": "_srcEid", "type": "uint32" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint256", "name": "_amountLD", "type": "uint256" }, { "internalType": "bytes", "name": "_composeMsg", "type": "bytes" }], "name": "retryReceiveToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "_fee", "type": "tuple" }, { "internalType": "address", "name": "_refundAddress", "type": "address" }], "name": "send", "outputs": [{ "components": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "internalType": "struct MessagingReceipt", "name": "msgReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "oftReceipt", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }, { "internalType": "uint64", "name": "minAmount", "type": "uint64" }], "internalType": "struct TargetCredit[]", "name": "_credits", "type": "tuple[]" }], "name": "sendCredits", "outputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "internalType": "struct Credit[]", "name": "", "type": "tuple[]" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "bytes32", "name": "to", "type": "bytes32" }, { "internalType": "uint256", "name": "amountLD", "type": "uint256" }, { "internalType": "uint256", "name": "minAmountLD", "type": "uint256" }, { "internalType": "bytes", "name": "extraOptions", "type": "bytes" }, { "internalType": "bytes", "name": "composeMsg", "type": "bytes" }, { "internalType": "bytes", "name": "oftCmd", "type": "bytes" }], "internalType": "struct SendParam", "name": "_sendParam", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "_fee", "type": "tuple" }, { "internalType": "address", "name": "_refundAddress", "type": "address" }], "name": "sendToken", "outputs": [{ "components": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "internalType": "struct MessagingReceipt", "name": "msgReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "amountSentLD", "type": "uint256" }, { "internalType": "uint256", "name": "amountReceivedLD", "type": "uint256" }], "internalType": "struct OFTReceipt", "name": "oftReceipt", "type": "tuple" }, { "components": [{ "internalType": "uint72", "name": "ticketId", "type": "uint72" }, { "internalType": "bytes", "name": "passengerBytes", "type": "bytes" }], "internalType": "struct Ticket", "name": "ticket", "type": "tuple" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "feeLib", "type": "address" }, { "internalType": "address", "name": "planner", "type": "address" }, { "internalType": "address", "name": "treasurer", "type": "address" }, { "internalType": "address", "name": "tokenMessaging", "type": "address" }, { "internalType": "address", "name": "creditMessaging", "type": "address" }, { "internalType": "address", "name": "lzToken", "type": "address" }], "internalType": "struct StargateBase.AddressConfig", "name": "_config", "type": "tuple" }], "name": "setAddressConfig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "internalType": "bool", "name": "_oft", "type": "bool" }], "name": "setOFTPath", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "_paused", "type": "bool" }], "name": "setPause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_gasLimit", "type": "uint256" }], "name": "setTransferGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "sharedDecimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "stargateType", "outputs": [{ "internalType": "enum StargateType", "name": "", "type": "uint8" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "status", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "token", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_newOwner", "type": "address" }], "name": "transferTokenOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "treasuryFee", "outputs": [{ "internalType": "uint64", "name": "", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint8", "name": "index", "type": "uint8" }], "name": "unreceivedTokens", "outputs": [{ "internalType": "bytes32", "name": "hash", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "withdrawPlannerFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint64", "name": "_amountSD", "type": "uint64" }], "name": "withdrawTreasuryFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
|