UNPKG

@eco-foundation/routes-ts

Version:

The Eco Routes Protocol is a decentralized intent based system that allows users to submit their intent to the network and have it fulfilled by a solver on the destination rollup of their choise.

481 lines (480 loc) 13.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InboxDeployedBytecode = exports.InboxBytecode = exports.InboxAbi = void 0; /** * ABI for the Inbox contract */ exports.InboxAbi = [ { "inputs": [ { "internalType": "address", "name": "target", "type": "address" } ], "name": "AddressEmptyCode", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "AddressInsufficientBalance", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "chainId", "type": "uint256" } ], "name": "ChainIdTooLarge", "type": "error" }, { "inputs": [], "name": "FailedInnerCall", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "sent", "type": "uint256" }, { "internalType": "uint256", "name": "required", "type": "uint256" } ], "name": "InsufficientNativeAmount", "type": "error" }, { "inputs": [ { "internalType": "bytes32", "name": "intentHash", "type": "bytes32" } ], "name": "IntentAlreadyFulfilled", "type": "error" }, { "inputs": [], "name": "IntentExpired", "type": "error" }, { "inputs": [ { "internalType": "bytes32", "name": "intentHash", "type": "bytes32" } ], "name": "IntentNotFulfilled", "type": "error" }, { "inputs": [ { "internalType": "bytes32", "name": "expectedHash", "type": "bytes32" } ], "name": "InvalidHash", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "portal", "type": "address" } ], "name": "InvalidPortal", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "token", "type": "address" } ], "name": "SafeERC20FailedOperation", "type": "error" }, { "inputs": [], "name": "ZeroClaimant", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "intentHash", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "claimant", "type": "bytes32" } ], "name": "IntentFulfilled", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "intentHash", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "claimant", "type": "bytes32" } ], "name": "IntentProven", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "orderId", "type": "bytes32" }, { "indexed": false, "internalType": "address", "name": "solver", "type": "address" } ], "name": "OrderFilled", "type": "event" }, { "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "claimants", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "executor", "outputs": [ { "internalType": "contract IExecutor", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "orderId", "type": "bytes32" }, { "internalType": "bytes", "name": "originData", "type": "bytes" }, { "internalType": "bytes", "name": "fillerData", "type": "bytes" } ], "name": "fill", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "intentHash", "type": "bytes32" }, { "components": [ { "internalType": "bytes32", "name": "salt", "type": "bytes32" }, { "internalType": "uint64", "name": "deadline", "type": "uint64" }, { "internalType": "address", "name": "portal", "type": "address" }, { "internalType": "uint256", "name": "nativeAmount", "type": "uint256" }, { "components": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "internalType": "struct TokenAmount[]", "name": "tokens", "type": "tuple[]" }, { "components": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "internalType": "struct Call[]", "name": "calls", "type": "tuple[]" } ], "internalType": "struct Route", "name": "route", "type": "tuple" }, { "internalType": "bytes32", "name": "rewardHash", "type": "bytes32" }, { "internalType": "bytes32", "name": "claimant", "type": "bytes32" } ], "name": "fulfill", "outputs": [ { "internalType": "bytes[]", "name": "", "type": "bytes[]" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "intentHash", "type": "bytes32" }, { "components": [ { "internalType": "bytes32", "name": "salt", "type": "bytes32" }, { "internalType": "uint64", "name": "deadline", "type": "uint64" }, { "internalType": "address", "name": "portal", "type": "address" }, { "internalType": "uint256", "name": "nativeAmount", "type": "uint256" }, { "components": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "internalType": "struct TokenAmount[]", "name": "tokens", "type": "tuple[]" }, { "components": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "internalType": "struct Call[]", "name": "calls", "type": "tuple[]" } ], "internalType": "struct Route", "name": "route", "type": "tuple" }, { "internalType": "bytes32", "name": "rewardHash", "type": "bytes32" }, { "internalType": "bytes32", "name": "claimant", "type": "bytes32" }, { "internalType": "address", "name": "prover", "type": "address" }, { "internalType": "uint64", "name": "sourceChainDomainID", "type": "uint64" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "fulfillAndProve", "outputs": [ { "internalType": "bytes[]", "name": "", "type": "bytes[]" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "prover", "type": "address" }, { "internalType": "uint64", "name": "sourceChainDomainID", "type": "uint64" }, { "internalType": "bytes32[]", "name": "intentHashes", "type": "bytes32[]" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "prove", "outputs": [], "stateMutability": "payable", "type": "function" } ]; /** * Bytecode for the Inbox contract */ exports.InboxBytecode = "0x"; /** * Deployed bytecode for the Inbox contract */ exports.InboxDeployedBytecode = "0x";