{ "address": "0x5Ba000Bb06230E0582e111F08e1f2F2F200005BA", "constructorArgs": "0x0000000000000000000000001a44076050125825900e736c501f859c50fe728c0000000000000000000000000fea3e5840334fc758a3decf14546bfdfbef5cd3", "receipt": { "hash": "0xccda0c623878332e3fbe4a9174023751618c5e6c07a28b21a3433217d2c50ea7", "blockNumber": 55836531 }, "abi": [ { "type": "constructor", "inputs": [ { "name": "endpoint_", "type": "address", "internalType": "address" }, { "name": "owner_", "type": "address", "internalType": "address" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "MIN_GAS_LIMIT", "inputs": [], "outputs": [ { "name": "", "type": "uint64", "internalType": "uint64" } ], "stateMutability": "view" }, { "type": "function", "name": "addToken", "inputs": [ { "name": "token", "type": "address", "internalType": "address" }, { "name": "tokenType", "type": "uint8", "internalType": "enum ISynapseBridgeAdapter.TokenType" }, { "name": "remoteTokens", "type": "tuple[]", "internalType": "struct ISynapseBridgeAdapter.RemoteToken[]", "components": [ { "name": "eid", "type": "uint32", "internalType": "uint32" }, { "name": "addr", "type": "address", "internalType": "address" } ] } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "allowInitializePath", "inputs": [ { "name": "origin", "type": "tuple", "internalType": "struct Origin", "components": [ { "name": "srcEid", "type": "uint32", "internalType": "uint32" }, { "name": "sender", "type": "bytes32", "internalType": "bytes32" }, { "name": "nonce", "type": "uint64", "internalType": "uint64" } ] } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "bridge", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "bridgeERC20", "inputs": [ { "name": "dstEid", "type": "uint32", "internalType": "uint32" }, { "name": "to", "type": "address", "internalType": "address" }, { "name": "token", "type": "address", "internalType": "address" }, { "name": "amount", "type": "uint256", "internalType": "uint256" }, { "name": "gasLimit", "type": "uint64", "internalType": "uint64" } ], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "endpoint", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract ILayerZeroEndpointV2" } ], "stateMutability": "view" }, { "type": "function", "name": "getLocalAddress", "inputs": [ { "name": "eid", "type": "uint32", "internalType": "uint32" }, { "name": "remoteAddr", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "localAddr", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getNativeFee", "inputs": [ { "name": "dstEid", "type": "uint32", "internalType": "uint32" }, { "name": "gasLimit", "type": "uint64", "internalType": "uint64" } ], "outputs": [ { "name": "nativeFee", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getRemoteAddress", "inputs": [ { "name": "eid", "type": "uint32", "internalType": "uint32" }, { "name": "localAddr", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "remoteAddr", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getTokenType", "inputs": [ { "name": "localAddr", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "tokenType", "type": "uint8", "internalType": "enum ISynapseBridgeAdapter.TokenType" } ], "stateMutability": "view" }, { "type": "function", "name": "isComposeMsgSender", "inputs": [ { "name": "", "type": "tuple", "internalType": "struct Origin", "components": [ { "name": "srcEid", "type": "uint32", "internalType": "uint32" }, { "name": "sender", "type": "bytes32", "internalType": "bytes32" }, { "name": "nonce", "type": "uint64", "internalType": "uint64" } ] }, { "name": "", "type": "bytes", "internalType": "bytes" }, { "name": "_sender", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "lzReceive", "inputs": [ { "name": "_origin", "type": "tuple", "internalType": "struct Origin", "components": [ { "name": "srcEid", "type": "uint32", "internalType": "uint32" }, { "name": "sender", "type": "bytes32", "internalType": "bytes32" }, { "name": "nonce", "type": "uint64", "internalType": "uint64" } ] }, { "name": "_guid", "type": "bytes32", "internalType": "bytes32" }, { "name": "_message", "type": "bytes", "internalType": "bytes" }, { "name": "_executor", "type": "address", "internalType": "address" }, { "name": "_extraData", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "nextNonce", "inputs": [ { "name": "", "type": "uint32", "internalType": "uint32" }, { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "nonce", "type": "uint64", "internalType": "uint64" } ], "stateMutability": "view" }, { "type": "function", "name": "oAppVersion", "inputs": [], "outputs": [ { "name": "senderVersion", "type": "uint64", "internalType": "uint64" }, { "name": "receiverVersion", "type": "uint64", "internalType": "uint64" } ], "stateMutability": "pure" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "peers", "inputs": [ { "name": "eid", "type": "uint32", "internalType": "uint32" } ], "outputs": [ { "name": "peer", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "renounceOwnership", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setBridge", "inputs": [ { "name": "newBridge", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setDelegate", "inputs": [ { "name": "_delegate", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setPeer", "inputs": [ { "name": "_eid", "type": "uint32", "internalType": "uint32" }, { "name": "_peer", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "transferOwnership", "inputs": [ { "name": "newOwner", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "BridgeSet", "inputs": [ { "name": "bridge", "type": "address", "indexed": false, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "OwnershipTransferred", "inputs": [ { "name": "previousOwner", "type": "address", "indexed": true, "internalType": "address" }, { "name": "newOwner", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "PeerSet", "inputs": [ { "name": "eid", "type": "uint32", "indexed": false, "internalType": "uint32" }, { "name": "peer", "type": "bytes32", "indexed": false, "internalType": "bytes32" } ], "anonymous": false }, { "type": "event", "name": "TokenAdded", "inputs": [ { "name": "token", "type": "address", "indexed": false, "internalType": "address" }, { "name": "tokenType", "type": "uint8", "indexed": false, "internalType": "enum ISynapseBridgeAdapter.TokenType" }, { "name": "remoteTokens", "type": "tuple[]", "indexed": false, "internalType": "struct ISynapseBridgeAdapter.RemoteToken[]", "components": [ { "name": "eid", "type": "uint32", "internalType": "uint32" }, { "name": "addr", "type": "address", "internalType": "address" } ] } ], "anonymous": false }, { "type": "event", "name": "TokenReceived", "inputs": [ { "name": "srcEid", "type": "uint32", "indexed": true, "internalType": "uint32" }, { "name": "to", "type": "address", "indexed": true, "internalType": "address" }, { "name": "token", "type": "address", "indexed": true, "internalType": "address" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "guid", "type": "bytes32", "indexed": false, "internalType": "bytes32" } ], "anonymous": false }, { "type": "event", "name": "TokenSent", "inputs": [ { "name": "dstEid", "type": "uint32", "indexed": true, "internalType": "uint32" }, { "name": "to", "type": "address", "indexed": true, "internalType": "address" }, { "name": "token", "type": "address", "indexed": true, "internalType": "address" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "guid", "type": "bytes32", "indexed": false, "internalType": "bytes32" } ], "anonymous": false }, { "type": "error", "name": "AddressEmptyCode", "inputs": [ { "name": "target", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "AddressInsufficientBalance", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "BridgeMessage__InvalidPayload", "inputs": [] }, { "type": "error", "name": "FailedInnerCall", "inputs": [] }, { "type": "error", "name": "InvalidDelegate", "inputs": [] }, { "type": "error", "name": "InvalidEndpointCall", "inputs": [] }, { "type": "error", "name": "InvalidOptionType", "inputs": [ { "name": "optionType", "type": "uint16", "internalType": "uint16" } ] }, { "type": "error", "name": "LzTokenUnavailable", "inputs": [] }, { "type": "error", "name": "NoPeer", "inputs": [ { "name": "eid", "type": "uint32", "internalType": "uint32" } ] }, { "type": "error", "name": "NotEnoughNative", "inputs": [ { "name": "msgValue", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "OnlyEndpoint", "inputs": [ { "name": "addr", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "OnlyPeer", "inputs": [ { "name": "eid", "type": "uint32", "internalType": "uint32" }, { "name": "sender", "type": "bytes32", "internalType": "bytes32" } ] }, { "type": "error", "name": "OwnableInvalidOwner", "inputs": [ { "name": "owner", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "OwnableUnauthorizedAccount", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "SBA__BridgeAlreadySet", "inputs": [] }, { "type": "error", "name": "SBA__BridgeNotSet", "inputs": [] }, { "type": "error", "name": "SBA__GasLimitBelowMinimum", "inputs": [] }, { "type": "error", "name": "SBA__LocalPairAlreadyExists", "inputs": [ { "name": "eid", "type": "uint32", "internalType": "uint32" }, { "name": "remoteAddr", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "SBA__LocalPairNotFound", "inputs": [ { "name": "eid", "type": "uint32", "internalType": "uint32" }, { "name": "remoteAddr", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "SBA__RemotePairAlreadySet", "inputs": [ { "name": "eid", "type": "uint32", "internalType": "uint32" }, { "name": "localAddr", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "SBA__RemotePairNotSet", "inputs": [ { "name": "eid", "type": "uint32", "internalType": "uint32" }, { "name": "localAddr", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "SBA__TokenAlreadyAdded", "inputs": [ { "name": "token", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "SBA__TokenTypeUnknown", "inputs": [] }, { "type": "error", "name": "SBA__TokenUnknown", "inputs": [ { "name": "token", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "SBA__ZeroAddress", "inputs": [] }, { "type": "error", "name": "SBA__ZeroAmount", "inputs": [] }, { "type": "error", "name": "SafeCastOverflowedUintDowncast", "inputs": [ { "name": "bits", "type": "uint8", "internalType": "uint8" }, { "name": "value", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "SafeERC20FailedOperation", "inputs": [ { "name": "token", "type": "address", "internalType": "address" } ] } ] }