@eco-foundation/routes
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 choice.
290 lines (289 loc) • 9.58 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IProverDeployedBytecode = exports.IProverBytecode = exports.IProverAbi = void 0;
/**
* ABI for the IProver contract
*/
exports.IProverAbi = [
{
"inputs": [],
"name": "ArrayLengthMismatch",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_hash",
"type": "bytes32"
},
{
"internalType": "uint96",
"name": "_expectedDestinationChainID",
"type": "uint96"
},
{
"internalType": "uint96",
"name": "_actualDestinationChainID",
"type": "uint96"
}
],
"name": "BadDestinationChainID",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "_intentHash",
"type": "bytes32"
}
],
"name": "IntentAlreadyProven",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "_hash",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "_claimant",
"type": "address"
}
],
"name": "IntentProven",
"type": "event"
},
{
"inputs": [
{
"components": [
{
"components": [
{
"internalType": "bytes32",
"name": "salt",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "source",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "destination",
"type": "uint256"
},
{
"internalType": "address",
"name": "inbox",
"type": "address"
},
{
"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"
},
{
"components": [
{
"internalType": "address",
"name": "creator",
"type": "address"
},
{
"internalType": "address",
"name": "prover",
"type": "address"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "nativeValue",
"type": "uint256"
},
{
"components": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"internalType": "struct TokenAmount[]",
"name": "tokens",
"type": "tuple[]"
}
],
"internalType": "struct Reward",
"name": "reward",
"type": "tuple"
}
],
"internalType": "struct Intent",
"name": "_intent",
"type": "tuple"
}
],
"name": "challengeIntentProof",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getProofType",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_sender",
"type": "address"
},
{
"internalType": "uint256",
"name": "_sourceChainId",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "_intentHashes",
"type": "bytes32[]"
},
{
"internalType": "address[]",
"name": "_claimants",
"type": "address[]"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "prove",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_intentHash",
"type": "bytes32"
}
],
"name": "provenIntents",
"outputs": [
{
"components": [
{
"internalType": "uint96",
"name": "destinationChainID",
"type": "uint96"
},
{
"internalType": "address",
"name": "claimant",
"type": "address"
}
],
"internalType": "struct IProver.ProofData",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
}
];
/**
* Bytecode for the IProver contract
*/
exports.IProverBytecode = "0x";
/**
* Deployed bytecode for the IProver contract
*/
exports.IProverDeployedBytecode = "0x";