UNPKG

intents-framework

Version:

A reference ERC7683 implementation with TypeScript support

681 lines 12.9 kB
[ { "type": "constructor", "inputs": [ { "name": "_localDomain", "type": "uint32", "internalType": "uint32" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "PACKAGE_VERSION", "inputs": [], "outputs": [ { "name": "", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "VERSION", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "defaultHook", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract IPostDispatchHook" } ], "stateMutability": "view" }, { "type": "function", "name": "defaultIsm", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract IInterchainSecurityModule" } ], "stateMutability": "view" }, { "type": "function", "name": "delivered", "inputs": [ { "name": "_id", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "deployedBlock", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "dispatch", "inputs": [ { "name": "destinationDomain", "type": "uint32", "internalType": "uint32" }, { "name": "recipientAddress", "type": "bytes32", "internalType": "bytes32" }, { "name": "messageBody", "type": "bytes", "internalType": "bytes" }, { "name": "metadata", "type": "bytes", "internalType": "bytes" }, { "name": "hook", "type": "address", "internalType": "contract IPostDispatchHook" } ], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "payable" }, { "type": "function", "name": "dispatch", "inputs": [ { "name": "destinationDomain", "type": "uint32", "internalType": "uint32" }, { "name": "recipientAddress", "type": "bytes32", "internalType": "bytes32" }, { "name": "messageBody", "type": "bytes", "internalType": "bytes" }, { "name": "hookMetadata", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "payable" }, { "type": "function", "name": "dispatch", "inputs": [ { "name": "_destinationDomain", "type": "uint32", "internalType": "uint32" }, { "name": "_recipientAddress", "type": "bytes32", "internalType": "bytes32" }, { "name": "_messageBody", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "payable" }, { "type": "function", "name": "initialize", "inputs": [ { "name": "_owner", "type": "address", "internalType": "address" }, { "name": "_defaultIsm", "type": "address", "internalType": "address" }, { "name": "_defaultHook", "type": "address", "internalType": "address" }, { "name": "_requiredHook", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "latestDispatchedId", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "localDomain", "inputs": [], "outputs": [ { "name": "", "type": "uint32", "internalType": "uint32" } ], "stateMutability": "view" }, { "type": "function", "name": "nonce", "inputs": [], "outputs": [ { "name": "", "type": "uint32", "internalType": "uint32" } ], "stateMutability": "view" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "process", "inputs": [ { "name": "_metadata", "type": "bytes", "internalType": "bytes" }, { "name": "_message", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "processedAt", "inputs": [ { "name": "_id", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "uint48", "internalType": "uint48" } ], "stateMutability": "view" }, { "type": "function", "name": "processor", "inputs": [ { "name": "_id", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "quoteDispatch", "inputs": [ { "name": "destinationDomain", "type": "uint32", "internalType": "uint32" }, { "name": "recipientAddress", "type": "bytes32", "internalType": "bytes32" }, { "name": "messageBody", "type": "bytes", "internalType": "bytes" }, { "name": "metadata", "type": "bytes", "internalType": "bytes" }, { "name": "hook", "type": "address", "internalType": "contract IPostDispatchHook" } ], "outputs": [ { "name": "fee", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "quoteDispatch", "inputs": [ { "name": "destinationDomain", "type": "uint32", "internalType": "uint32" }, { "name": "recipientAddress", "type": "bytes32", "internalType": "bytes32" }, { "name": "messageBody", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "fee", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "quoteDispatch", "inputs": [ { "name": "destinationDomain", "type": "uint32", "internalType": "uint32" }, { "name": "recipientAddress", "type": "bytes32", "internalType": "bytes32" }, { "name": "messageBody", "type": "bytes", "internalType": "bytes" }, { "name": "defaultHookMetadata", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "fee", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "recipientIsm", "inputs": [ { "name": "_recipient", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "address", "internalType": "contract IInterchainSecurityModule" } ], "stateMutability": "view" }, { "type": "function", "name": "renounceOwnership", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "requiredHook", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract IPostDispatchHook" } ], "stateMutability": "view" }, { "type": "function", "name": "setDefaultHook", "inputs": [ { "name": "_hook", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setDefaultIsm", "inputs": [ { "name": "_module", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setRequiredHook", "inputs": [ { "name": "_hook", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "transferOwnership", "inputs": [ { "name": "newOwner", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "DefaultHookSet", "inputs": [ { "name": "hook", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "DefaultIsmSet", "inputs": [ { "name": "module", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "Dispatch", "inputs": [ { "name": "sender", "type": "address", "indexed": true, "internalType": "address" }, { "name": "destination", "type": "uint32", "indexed": true, "internalType": "uint32" }, { "name": "recipient", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "message", "type": "bytes", "indexed": false, "internalType": "bytes" } ], "anonymous": false }, { "type": "event", "name": "DispatchId", "inputs": [ { "name": "messageId", "type": "bytes32", "indexed": true, "internalType": "bytes32" } ], "anonymous": false }, { "type": "event", "name": "Initialized", "inputs": [ { "name": "version", "type": "uint8", "indexed": false, "internalType": "uint8" } ], "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": "Process", "inputs": [ { "name": "origin", "type": "uint32", "indexed": true, "internalType": "uint32" }, { "name": "sender", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "recipient", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "ProcessId", "inputs": [ { "name": "messageId", "type": "bytes32", "indexed": true, "internalType": "bytes32" } ], "anonymous": false }, { "type": "event", "name": "RequiredHookSet", "inputs": [ { "name": "hook", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false } ]