@stargatefinance/stg-evm-sdk-v2 2.0.4 → 2.0.5
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/artifacts/src/interfaces/ICreditMessagingMintableBurnable.sol/ICreditMessagingMintableBurnable.json +191 -0
- package/artifacts/src/messaging/CreditMessagingMintableBurnable.sol/CreditMessagingMintableBurnable.json +1263 -0
- package/deployments/ethereum-mainnet/CreditMessaging.json +218 -405
- package/deployments/ethereum-mainnet/CreditMessaging_old.json +1501 -0
- package/dist/deployed/CreditMessaging.cjs +7 -6
- package/dist/deployed/CreditMessaging.cjs.map +1 -1
- package/dist/deployed/CreditMessaging.mjs +7 -6
- package/dist/deployed/CreditMessaging.mjs.map +1 -1
- package/dist/deployed/CreditMessaging_old.cjs +19 -0
- package/dist/deployed/CreditMessaging_old.cjs.map +1 -0
- package/dist/deployed/CreditMessaging_old.mjs +15 -0
- package/dist/deployed/CreditMessaging_old.mjs.map +1 -0
- package/dist/deployed/contracts.cjs +1089 -1069
- package/dist/deployed/contracts.cjs.map +1 -1
- package/dist/deployed/contracts.mjs +1089 -1070
- package/dist/deployed/contracts.mjs.map +1 -1
- package/dist/deployed/index.cjs +1090 -1070
- package/dist/deployed/index.cjs.map +1 -1
- package/dist/deployed/index.mjs +1090 -1070
- package/dist/deployed/index.mjs.map +1 -1
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -22,7 +22,7 @@ var addresses = {
|
|
|
22
22
|
"degen-mainnet": "0x9d1B1669c73b033DFe47ae5a0164Ab96df25B944",
|
|
23
23
|
"doma-mainnet": "0x12a272A581feE5577A5dFa371afEB4b2F3a8C2F8",
|
|
24
24
|
"edu-mainnet": "0x93819FfD972Fd57b1AAf42ba85e6B437D60FC807",
|
|
25
|
-
"ethereum-mainnet": "
|
|
25
|
+
"ethereum-mainnet": "0x9b4D17b45d60B8173a5904b85a7bAaeC291E9173",
|
|
26
26
|
"ethereum-sandbox-local": "0x380f560152542A4157d1A729c0cfAfdbBD5453D4",
|
|
27
27
|
"flare-mainnet": "0x0dB9afb4C33be43a0a0e396Fd1383B4ea97aB10a",
|
|
28
28
|
"flow-mainnet": "0x9d1B1669c73b033DFe47ae5a0164Ab96df25B944",
|
|
@@ -107,7 +107,7 @@ var transactionHashes = {
|
|
|
107
107
|
"degen-mainnet": "0x019338c93008aa78c70a44b578eaed65f233d35ecdefed0383a0abbc9cb4020f",
|
|
108
108
|
"doma-mainnet": "0x7308fd46e1c9fb747a768e82b97bc261cf8b8d1aa9b3421b0e6b2712d1c9b08b",
|
|
109
109
|
"edu-mainnet": "0x144455a0d5884d6323efc8bcf164a9061d0da36cbb9ddd10e685250bcf7babae",
|
|
110
|
-
"ethereum-mainnet": "
|
|
110
|
+
"ethereum-mainnet": "0xf5e5fd8c2d4183571b466d26e56d2ecb8642df2ae979ccfd7d2171fee9cc29a8",
|
|
111
111
|
"ethereum-sandbox-local": "0xdc42210d0d47a87c535cd119049e4f3e13b8e2dd679fabf5f5f697ae158be2c2",
|
|
112
112
|
"flare-mainnet": "0x65108976169d07f6be1afc6b820610850a3068252afa28e7b29c824df0080144",
|
|
113
113
|
"flow-mainnet": "0x64f6486993a292582c0ae754f83df9fbad8cf7cd54d637b447bcfd5ed74991b8",
|
|
@@ -170,7 +170,8 @@ var transactionHashes = {
|
|
|
170
170
|
"zkconsensys-mainnet": "0x6742fcfa893d1064e87d0d4e6cf03ee07d8a616d5770752ef49a0cd690f2b66b"
|
|
171
171
|
};
|
|
172
172
|
var abi0 = [{ "inputs": [{ "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "CreditMsgCodec_InvalidMessage", "type": "error" }, { "inputs": [], "name": "InvalidDelegate", "type": "error" }, { "inputs": [], "name": "InvalidEndpointCall", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "options", "type": "bytes" }], "name": "InvalidOptions", "type": "error" }, { "inputs": [], "name": "LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "MessagingOptions_ZeroGasLimit", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidAssetId", "type": "error" }, { "inputs": [], "name": "Messaging_Unauthorized", "type": "error" }, { "inputs": [], "name": "Messaging_Unavailable", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "NoPeer", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "msgValue", "type": "uint256" }], "name": "NotEnoughNative", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "addr", "type": "address" }], "name": "OnlyEndpoint", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }], "name": "OnlyPeer", "type": "error" }, { "inputs": [], "name": "OnlySelf", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "result", "type": "bytes" }], "name": "SimulationResult", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "stargateImpl", "type": "address" }, { "indexed": false, "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "AssetIdSet", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "indexed": false, "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "EnforcedOptionSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "name": "GasLimitSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint16", "name": "maxAssetId", "type": "uint16" }], "name": "MaxAssetIdSet", "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": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "name": "PeerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "planner", "type": "address" }], "name": "PlannerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "preCrimeAddress", "type": "address" }], "name": "PreCrimeSet", "type": "event" }, { "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" }], "name": "allowInitializePath", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "name": "assetIds", "outputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint16", "name": "_msgType", "type": "uint16" }, { "internalType": "bytes", "name": "_extraOptions", "type": "bytes" }], "name": "combineOptions", "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }], "name": "enforcedOptions", "outputs": [{ "internalType": "bytes", "name": "enforcedOption", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "gasLimits", "outputs": [{ "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "stateMutability": "view", "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": "", "type": "tuple" }, { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "address", "name": "_sender", "type": "address" }], "name": "isComposeMsgSender", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "isPeer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceive", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "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": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "address", "name": "executor", "type": "address" }, { "internalType": "bytes", "name": "message", "type": "bytes" }, { "internalType": "bytes", "name": "extraData", "type": "bytes" }], "internalType": "struct InboundPacket[]", "name": "_packets", "type": "tuple[]" }], "name": "lzReceiveAndRevert", "outputs": [], "stateMutability": "payable", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceiveSimulate", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "maxAssetId", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "nextNonce", "outputs": [{ "internalType": "uint64", "name": "nonce", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oApp", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oAppVersion", "outputs": [{ "internalType": "uint64", "name": "senderVersion", "type": "uint64" }, { "internalType": "uint64", "name": "receiverVersion", "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": "peers", "outputs": [{ "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "planner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "preCrime", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "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[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "quoteSendCredits", "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": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "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[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "sendCredits", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_stargateImpl", "type": "address" }, { "internalType": "uint16", "name": "_assetId", "type": "uint16" }], "name": "setAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_delegate", "type": "address" }], "name": "setDelegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "setEnforcedOptions", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint128", "name": "_gasLimit", "type": "uint128" }], "name": "setGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "_maxAssetId", "type": "uint16" }], "name": "setMaxAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "setPeer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_planner", "type": "address" }], "name": "setPlanner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_preCrime", "type": "address" }], "name": "setPreCrime", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "stargateImpls", "outputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
|
|
173
|
-
var abi1 = [{ "inputs": [{ "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "CreditMessaging_NotAnAltEndpoint", "type": "error" }, { "inputs": [], "name": "CreditMessaging_OnlyAltToken", "type": "error" }, { "inputs": [], "name": "CreditMsgCodec_InvalidMessage", "type": "error" }, { "inputs": [], "name": "InvalidDelegate", "type": "error" }, { "inputs": [], "name": "InvalidEndpointCall", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "options", "type": "bytes" }], "name": "InvalidOptions", "type": "error" }, { "inputs": [], "name": "LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "MessagingOptions_ZeroGasLimit", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidAssetId", "type": "error" }, { "inputs": [], "name": "Messaging_Unauthorized", "type": "error" }, { "inputs": [], "name": "Messaging_Unavailable", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "NoPeer", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "msgValue", "type": "uint256" }], "name": "NotEnoughNative", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "addr", "type": "address" }], "name": "OnlyEndpoint", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }], "name": "OnlyPeer", "type": "error" }, { "inputs": [], "name": "OnlySelf", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "result", "type": "bytes" }], "name": "SimulationResult", "type": "error" }, { "inputs": [], "name": "Transfer_ApproveFailed", "type": "error" }, { "inputs": [], "name": "Transfer_TransferFailed", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "stargateImpl", "type": "address" }, { "indexed": false, "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "AssetIdSet", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "indexed": false, "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "EnforcedOptionSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "name": "GasLimitSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint16", "name": "maxAssetId", "type": "uint16" }], "name": "MaxAssetIdSet", "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": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "name": "PeerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "planner", "type": "address" }], "name": "PlannerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "preCrimeAddress", "type": "address" }], "name": "PreCrimeSet", "type": "event" }, { "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" }], "name": "allowInitializePath", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "name": "assetIds", "outputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint16", "name": "_msgType", "type": "uint16" }, { "internalType": "bytes", "name": "_extraOptions", "type": "bytes" }], "name": "combineOptions", "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }], "name": "enforcedOptions", "outputs": [{ "internalType": "bytes", "name": "enforcedOption", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "feeToken", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "gasLimits", "outputs": [{ "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTransferGasLimit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "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": "", "type": "tuple" }, { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "address", "name": "_sender", "type": "address" }], "name": "isComposeMsgSender", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "isPeer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceive", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "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": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "address", "name": "executor", "type": "address" }, { "internalType": "bytes", "name": "message", "type": "bytes" }, { "internalType": "bytes", "name": "extraData", "type": "bytes" }], "internalType": "struct InboundPacket[]", "name": "_packets", "type": "tuple[]" }], "name": "lzReceiveAndRevert", "outputs": [], "stateMutability": "payable", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceiveSimulate", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "maxAssetId", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "nextNonce", "outputs": [{ "internalType": "uint64", "name": "nonce", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oApp", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oAppVersion", "outputs": [{ "internalType": "uint64", "name": "senderVersion", "type": "uint64" }, { "internalType": "uint64", "name": "receiverVersion", "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": "peers", "outputs": [{ "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "planner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "preCrime", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "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[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "quoteSendCredits", "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": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "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[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "sendCredits", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_stargateImpl", "type": "address" }, { "internalType": "uint16", "name": "_assetId", "type": "uint16" }], "name": "setAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_delegate", "type": "address" }], "name": "setDelegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "setEnforcedOptions", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint128", "name": "_gasLimit", "type": "uint128" }], "name": "setGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "_maxAssetId", "type": "uint16" }], "name": "setMaxAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "setPeer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_planner", "type": "address" }], "name": "setPlanner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_preCrime", "type": "address" }], "name": "setPreCrime", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_gasLimit", "type": "uint256" }], "name": "setTransferGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "stargateImpls", "outputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
|
|
173
|
+
var abi1 = [{ "inputs": [{ "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "CreditMessagingMintableBurnable_EmptyReason", "type": "error" }, { "inputs": [], "name": "CreditMsgCodec_InvalidMessage", "type": "error" }, { "inputs": [], "name": "InvalidDelegate", "type": "error" }, { "inputs": [], "name": "InvalidEndpointCall", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "options", "type": "bytes" }], "name": "InvalidOptions", "type": "error" }, { "inputs": [], "name": "LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "MessagingOptions_ZeroGasLimit", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidAssetId", "type": "error" }, { "inputs": [], "name": "Messaging_Unauthorized", "type": "error" }, { "inputs": [], "name": "Messaging_Unavailable", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "NoPeer", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "msgValue", "type": "uint256" }], "name": "NotEnoughNative", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "addr", "type": "address" }], "name": "OnlyEndpoint", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }], "name": "OnlyPeer", "type": "error" }, { "inputs": [], "name": "OnlySelf", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "result", "type": "bytes" }], "name": "SimulationResult", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "stargateImpl", "type": "address" }, { "indexed": false, "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "AssetIdSet", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "internalType": "struct Credit[]", "name": "credits", "type": "tuple[]" }], "indexed": false, "internalType": "struct CreditBatch[]", "name": "batches", "type": "tuple[]" }, { "indexed": false, "internalType": "string", "name": "reason", "type": "string" }], "name": "CreditsBurned", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "internalType": "struct Credit[]", "name": "credits", "type": "tuple[]" }], "indexed": false, "internalType": "struct CreditBatch[]", "name": "batches", "type": "tuple[]" }, { "indexed": false, "internalType": "string", "name": "reason", "type": "string" }], "name": "CreditsMinted", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "indexed": false, "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "EnforcedOptionSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "name": "GasLimitSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint16", "name": "maxAssetId", "type": "uint16" }], "name": "MaxAssetIdSet", "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": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "name": "PeerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "planner", "type": "address" }], "name": "PlannerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "preCrimeAddress", "type": "address" }], "name": "PreCrimeSet", "type": "event" }, { "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" }], "name": "allowInitializePath", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "name": "assetIds", "outputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "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[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_batches", "type": "tuple[]" }, { "internalType": "string", "name": "_reason", "type": "string" }], "name": "burnCredits", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint16", "name": "_msgType", "type": "uint16" }, { "internalType": "bytes", "name": "_extraOptions", "type": "bytes" }], "name": "combineOptions", "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }], "name": "enforcedOptions", "outputs": [{ "internalType": "bytes", "name": "enforcedOption", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "gasLimits", "outputs": [{ "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "stateMutability": "view", "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": "", "type": "tuple" }, { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "address", "name": "_sender", "type": "address" }], "name": "isComposeMsgSender", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "isPeer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceive", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "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": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "address", "name": "executor", "type": "address" }, { "internalType": "bytes", "name": "message", "type": "bytes" }, { "internalType": "bytes", "name": "extraData", "type": "bytes" }], "internalType": "struct InboundPacket[]", "name": "_packets", "type": "tuple[]" }], "name": "lzReceiveAndRevert", "outputs": [], "stateMutability": "payable", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceiveSimulate", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "maxAssetId", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }], "internalType": "struct Credit[]", "name": "credits", "type": "tuple[]" }], "internalType": "struct CreditBatch[]", "name": "_batches", "type": "tuple[]" }, { "internalType": "string", "name": "_reason", "type": "string" }], "name": "mintCredits", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "nextNonce", "outputs": [{ "internalType": "uint64", "name": "nonce", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oApp", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oAppVersion", "outputs": [{ "internalType": "uint64", "name": "senderVersion", "type": "uint64" }, { "internalType": "uint64", "name": "receiverVersion", "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": "peers", "outputs": [{ "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "planner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "preCrime", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "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[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "quoteSendCredits", "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": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "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[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "sendCredits", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_stargateImpl", "type": "address" }, { "internalType": "uint16", "name": "_assetId", "type": "uint16" }], "name": "setAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_delegate", "type": "address" }], "name": "setDelegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "setEnforcedOptions", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint128", "name": "_gasLimit", "type": "uint128" }], "name": "setGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "_maxAssetId", "type": "uint16" }], "name": "setMaxAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "setPeer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_planner", "type": "address" }], "name": "setPlanner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_preCrime", "type": "address" }], "name": "setPreCrime", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "stargateImpls", "outputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
|
|
174
|
+
var abi2 = [{ "inputs": [{ "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "CreditMessaging_NotAnAltEndpoint", "type": "error" }, { "inputs": [], "name": "CreditMessaging_OnlyAltToken", "type": "error" }, { "inputs": [], "name": "CreditMsgCodec_InvalidMessage", "type": "error" }, { "inputs": [], "name": "InvalidDelegate", "type": "error" }, { "inputs": [], "name": "InvalidEndpointCall", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "options", "type": "bytes" }], "name": "InvalidOptions", "type": "error" }, { "inputs": [], "name": "LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "MessagingOptions_ZeroGasLimit", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidAssetId", "type": "error" }, { "inputs": [], "name": "Messaging_Unauthorized", "type": "error" }, { "inputs": [], "name": "Messaging_Unavailable", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "NoPeer", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "msgValue", "type": "uint256" }], "name": "NotEnoughNative", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "addr", "type": "address" }], "name": "OnlyEndpoint", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }], "name": "OnlyPeer", "type": "error" }, { "inputs": [], "name": "OnlySelf", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "result", "type": "bytes" }], "name": "SimulationResult", "type": "error" }, { "inputs": [], "name": "Transfer_ApproveFailed", "type": "error" }, { "inputs": [], "name": "Transfer_TransferFailed", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "stargateImpl", "type": "address" }, { "indexed": false, "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "AssetIdSet", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "indexed": false, "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "EnforcedOptionSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "name": "GasLimitSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint16", "name": "maxAssetId", "type": "uint16" }], "name": "MaxAssetIdSet", "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": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "name": "PeerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "planner", "type": "address" }], "name": "PlannerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "preCrimeAddress", "type": "address" }], "name": "PreCrimeSet", "type": "event" }, { "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" }], "name": "allowInitializePath", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "name": "assetIds", "outputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint16", "name": "_msgType", "type": "uint16" }, { "internalType": "bytes", "name": "_extraOptions", "type": "bytes" }], "name": "combineOptions", "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }], "name": "enforcedOptions", "outputs": [{ "internalType": "bytes", "name": "enforcedOption", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "feeToken", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "gasLimits", "outputs": [{ "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTransferGasLimit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "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": "", "type": "tuple" }, { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "address", "name": "_sender", "type": "address" }], "name": "isComposeMsgSender", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "isPeer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceive", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "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": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "address", "name": "executor", "type": "address" }, { "internalType": "bytes", "name": "message", "type": "bytes" }, { "internalType": "bytes", "name": "extraData", "type": "bytes" }], "internalType": "struct InboundPacket[]", "name": "_packets", "type": "tuple[]" }], "name": "lzReceiveAndRevert", "outputs": [], "stateMutability": "payable", "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": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceiveSimulate", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "maxAssetId", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "nextNonce", "outputs": [{ "internalType": "uint64", "name": "nonce", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oApp", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oAppVersion", "outputs": [{ "internalType": "uint64", "name": "senderVersion", "type": "uint64" }, { "internalType": "uint64", "name": "receiverVersion", "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": "peers", "outputs": [{ "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "planner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "preCrime", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "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[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "quoteSendCredits", "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": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "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[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "sendCredits", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_stargateImpl", "type": "address" }, { "internalType": "uint16", "name": "_assetId", "type": "uint16" }], "name": "setAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_delegate", "type": "address" }], "name": "setDelegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "setEnforcedOptions", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint128", "name": "_gasLimit", "type": "uint128" }], "name": "setGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "_maxAssetId", "type": "uint16" }], "name": "setMaxAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "setPeer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_planner", "type": "address" }], "name": "setPlanner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_preCrime", "type": "address" }], "name": "setPreCrime", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_gasLimit", "type": "uint256" }], "name": "setTransferGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "stargateImpls", "outputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
|
|
174
175
|
var abis = {
|
|
175
176
|
"abstract-mainnet": abi0,
|
|
176
177
|
"ape-mainnet": abi0,
|
|
@@ -194,7 +195,7 @@ var abis = {
|
|
|
194
195
|
"degen-mainnet": abi0,
|
|
195
196
|
"doma-mainnet": abi0,
|
|
196
197
|
"edu-mainnet": abi0,
|
|
197
|
-
"ethereum-mainnet":
|
|
198
|
+
"ethereum-mainnet": abi1,
|
|
198
199
|
"ethereum-sandbox-local": abi0,
|
|
199
200
|
"flare-mainnet": abi0,
|
|
200
201
|
"flow-mainnet": abi0,
|
|
@@ -221,7 +222,7 @@ var abis = {
|
|
|
221
222
|
"mantlesep-testnet": abi0,
|
|
222
223
|
"metis-mainnet": abi0,
|
|
223
224
|
"moca-mainnet": abi0,
|
|
224
|
-
"moderato-testnet":
|
|
225
|
+
"moderato-testnet": abi2,
|
|
225
226
|
"monad-testnet": abi0,
|
|
226
227
|
"nibiru-mainnet": abi0,
|
|
227
228
|
"odyssey-testnet": abi0,
|
|
@@ -252,7 +253,7 @@ var abis = {
|
|
|
252
253
|
"swell-mainnet": abi0,
|
|
253
254
|
"taiko-mainnet": abi0,
|
|
254
255
|
"telos-mainnet": abi0,
|
|
255
|
-
"tempo-mainnet":
|
|
256
|
+
"tempo-mainnet": abi2,
|
|
256
257
|
"unichain-mainnet": abi0,
|
|
257
258
|
"xdc-mainnet": abi0,
|
|
258
259
|
"zkconsensys-mainnet": abi0
|