@functionx_io/contracts
Version:
Smart Contract library for Solidity
399 lines (398 loc) • 9.49 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "IBridgeFeeQuote",
"sourceName": "contracts/interfaces/IBridgeFee.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "chainName",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "tokenName",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "address",
"name": "oracle",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "fee",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "gasLimit",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "expiry",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint8",
"name": "cap",
"type": "uint8"
}
],
"name": "NewQuote",
"type": "event"
},
{
"inputs": [],
"name": "getChainNames",
"outputs": [
{
"internalType": "bytes32[]",
"name": "",
"type": "bytes32[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_chainName",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "_token",
"type": "bytes32"
}
],
"name": "getDefaultOracleQuote",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "chainName",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "tokenName",
"type": "bytes32"
},
{
"internalType": "address",
"name": "oracle",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "gasLimit",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "expiry",
"type": "uint64"
}
],
"internalType": "struct IBridgeFeeQuote.QuoteInfo[]",
"name": "quotes",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_id",
"type": "uint256"
}
],
"name": "getQuoteById",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "chainName",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "tokenName",
"type": "bytes32"
},
{
"internalType": "address",
"name": "oracle",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "gasLimit",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "expiry",
"type": "uint64"
}
],
"internalType": "struct IBridgeFeeQuote.QuoteInfo",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_chainName",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "_token",
"type": "bytes32"
},
{
"internalType": "address",
"name": "_oracle",
"type": "address"
},
{
"internalType": "uint8",
"name": "_cap",
"type": "uint8"
}
],
"name": "getQuoteByIndex",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "chainName",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "tokenName",
"type": "bytes32"
},
{
"internalType": "address",
"name": "oracle",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "gasLimit",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "expiry",
"type": "uint64"
}
],
"internalType": "struct IBridgeFeeQuote.QuoteInfo",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_chainName",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "_token",
"type": "bytes32"
}
],
"name": "getQuotesByToken",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "chainName",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "tokenName",
"type": "bytes32"
},
{
"internalType": "address",
"name": "oracle",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "gasLimit",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "expiry",
"type": "uint64"
}
],
"internalType": "struct IBridgeFeeQuote.QuoteInfo[]",
"name": "quotes",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_chainName",
"type": "bytes32"
}
],
"name": "getTokens",
"outputs": [
{
"internalType": "bytes32[]",
"name": "",
"type": "bytes32[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint8",
"name": "cap",
"type": "uint8"
},
{
"internalType": "uint64",
"name": "gasLimit",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "expiry",
"type": "uint64"
},
{
"internalType": "bytes32",
"name": "chainName",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "tokenName",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"internalType": "struct IBridgeFeeQuote.QuoteInput[]",
"name": "_inputs",
"type": "tuple[]"
}
],
"name": "quote",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}