@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.
369 lines (368 loc) • 10.8 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IInboxDeployedBytecode = exports.IInboxBytecode = exports.IInboxAbi = void 0;
/**
* ABI for the IInbox contract
*/
exports.IInboxAbi = [
{
"inputs": [
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
}
],
"name": "ChainIdTooLarge",
"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": [],
"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"
},
{
"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 IInbox contract
*/
exports.IInboxBytecode = "0x";
/**
* Deployed bytecode for the IInbox contract
*/
exports.IInboxDeployedBytecode = "0x";