UNPKG

intents-framework

Version:

A reference ERC7683 implementation with TypeScript support

409 lines 7.95 kB
[ { "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": "messageId", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "dispatch", "inputs": [ { "name": "destinationDomain", "type": "uint32", "internalType": "uint32" }, { "name": "recipientAddress", "type": "bytes32", "internalType": "bytes32" }, { "name": "body", "type": "bytes", "internalType": "bytes" }, { "name": "customHookMetadata", "type": "bytes", "internalType": "bytes" }, { "name": "customHook", "type": "address", "internalType": "contract IPostDispatchHook" } ], "outputs": [ { "name": "messageId", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "payable" }, { "type": "function", "name": "dispatch", "inputs": [ { "name": "destinationDomain", "type": "uint32", "internalType": "uint32" }, { "name": "recipientAddress", "type": "bytes32", "internalType": "bytes32" }, { "name": "body", "type": "bytes", "internalType": "bytes" }, { "name": "defaultHookMetadata", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "messageId", "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": "messageId", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "payable" }, { "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": "process", "inputs": [ { "name": "metadata", "type": "bytes", "internalType": "bytes" }, { "name": "message", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "quoteDispatch", "inputs": [ { "name": "destinationDomain", "type": "uint32", "internalType": "uint32" }, { "name": "recipientAddress", "type": "bytes32", "internalType": "bytes32" }, { "name": "messageBody", "type": "bytes", "internalType": "bytes" }, { "name": "customHookMetadata", "type": "bytes", "internalType": "bytes" }, { "name": "customHook", "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": "module", "type": "address", "internalType": "contract IInterchainSecurityModule" } ], "stateMutability": "view" }, { "type": "function", "name": "requiredHook", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract IPostDispatchHook" } ], "stateMutability": "view" }, { "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": "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 } ]