UNPKG

@hashflow/contracts-evm

Version:

EVM Smart Contracts for Solidity

645 lines 16.9 kB
[ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint16", "name": "srcChainId", "type": "uint16" }, { "indexed": false, "internalType": "bytes", "name": "srcAddress", "type": "bytes" }, { "indexed": false, "internalType": "uint64", "name": "nonce", "type": "uint64" } ], "name": "LayerZeroMessageFailed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint16", "name": "srcChainId", "type": "uint16" }, { "indexed": false, "internalType": "bytes", "name": "srcAddress", "type": "bytes" }, { "indexed": false, "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "indexed": false, "internalType": "bytes", "name": "payload", "type": "bytes" } ], "name": "LayerZeroMessageMalformed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "txid", "type": "bytes32" } ], "name": "LayerZeroMessageReceive", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "txid", "type": "bytes32" } ], "name": "LayerZeroMessageSend", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint16", "name": "srcChainId", "type": "uint16" }, { "indexed": false, "internalType": "bytes", "name": "srcAddress", "type": "bytes" }, { "indexed": false, "internalType": "uint64", "name": "nonce", "type": "uint64" } ], "name": "LayerZeroMessageUnauthorized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint16", "name": "srcChainId", "type": "uint16" }, { "indexed": false, "internalType": "bytes", "name": "srcAddress", "type": "bytes" }, { "indexed": false, "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "indexed": false, "internalType": "bytes", "name": "payload", "type": "bytes" } ], "name": "LayerZeroPayloadStored", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "hChainId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "lzChainId", "type": "uint256" } ], "name": "UpdateLzChainId", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "lzEndpoint", "type": "address" }, { "indexed": false, "internalType": "address", "name": "prevLzEndpoint", "type": "address" } ], "name": "UpdateLzEndpoint", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "gasEstimate", "type": "uint256" } ], "name": "UpdateLzGasEstimate", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint16", "name": "chainId", "type": "uint16" }, { "indexed": false, "internalType": "bytes", "name": "remoteAddress", "type": "bytes" } ], "name": "UpdateXChainRemoteAddress", "type": "event" }, { "inputs": [ { "internalType": "uint16", "name": "_srcChainId", "type": "uint16" }, { "internalType": "bytes", "name": "_srcAddress", "type": "bytes" } ], "name": "forceResumeReceive", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "hChainId", "outputs": [ { "internalType": "uint16", "name": "", "type": "uint16" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "hChainId", "type": "uint16" } ], "name": "hChainIdToLzChainId", "outputs": [ { "internalType": "uint16", "name": "", "type": "uint16" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "lzChainId", "type": "uint16" } ], "name": "lzChainIdToHChainId", "outputs": [ { "internalType": "uint16", "name": "", "type": "uint16" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "lzEndpoint", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "lzGasEstimate", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "_srcChainId", "type": "uint16" }, { "internalType": "bytes", "name": "_srcAddress", "type": "bytes" }, { "internalType": "uint64", "name": "_nonce", "type": "uint64" }, { "internalType": "bytes", "name": "_payload", "type": "bytes" } ], "name": "lzReceive", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "srcChainId", "type": "uint16" }, { "internalType": "bytes", "name": "srcAddress", "type": "bytes" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "internalType": "bytes", "name": "payload", "type": "bytes" } ], "name": "retryPayload", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "srcChainId", "type": "uint16" }, { "internalType": "bytes", "name": "srcAddress", "type": "bytes" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" } ], "name": "retryableLayerZeroPayloads", "outputs": [ { "internalType": "uint64", "name": "", "type": "uint64" }, { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "router", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "_version", "type": "uint16" }, { "internalType": "uint16", "name": "_chainId", "type": "uint16" }, { "internalType": "uint256", "name": "_configType", "type": "uint256" }, { "internalType": "bytes", "name": "_config", "type": "bytes" } ], "name": "setConfig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "_version", "type": "uint16" } ], "name": "setReceiveVersion", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "_version", "type": "uint16" } ], "name": "setSendVersion", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint16", "name": "srcChainId", "type": "uint16" }, { "internalType": "uint16", "name": "dstChainId", "type": "uint16" }, { "internalType": "address", "name": "srcPool", "type": "address" }, { "internalType": "bytes32", "name": "dstPool", "type": "bytes32" }, { "internalType": "address", "name": "srcExternalAccount", "type": "address" }, { "internalType": "bytes32", "name": "dstExternalAccount", "type": "bytes32" }, { "internalType": "address", "name": "trader", "type": "address" }, { "internalType": "bytes32", "name": "dstTrader", "type": "bytes32" }, { "internalType": "address", "name": "baseToken", "type": "address" }, { "internalType": "bytes32", "name": "quoteToken", "type": "bytes32" }, { "internalType": "uint256", "name": "baseTokenAmount", "type": "uint256" }, { "internalType": "uint256", "name": "quoteTokenAmount", "type": "uint256" }, { "internalType": "bytes32", "name": "txid", "type": "bytes32" } ], "internalType": "struct IHashflowXChainMessenger.XChainQuote", "name": "xChainQuote", "type": "tuple" }, { "internalType": "address", "name": "caller", "type": "address" }, { "internalType": "bytes32", "name": "dstContract", "type": "bytes32" }, { "internalType": "bytes", "name": "dstCalldata", "type": "bytes" } ], "name": "tradeXChain", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "hChainId", "type": "uint16" }, { "internalType": "uint16", "name": "lzChainId", "type": "uint16" } ], "name": "updateLzChainIdForHashflowChainId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "lzEndpoint", "type": "address" } ], "name": "updateLzEndpoint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "lzGasEstimate", "type": "uint256" } ], "name": "updateLzGasEstimate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "hChainId", "type": "uint16" }, { "internalType": "bytes", "name": "remoteAddress", "type": "bytes" } ], "name": "updateXChainRemoteAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "withdrawFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "hChainId", "type": "uint16" } ], "name": "xChainRemotes", "outputs": [ { "internalType": "bytes", "name": "", "type": "bytes" } ], "stateMutability": "view", "type": "function" } ]