witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
137 lines (136 loc) • 3.16 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "IWitnetPriceFeeds",
"sourceName": "contracts/interfaces/IWitnetPriceFeeds.sol",
"abi": [
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "latestPrice",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "tallyHash",
"type": "bytes32"
},
{
"internalType": "enum WitnetV2.ResponseStatus",
"name": "status",
"type": "uint8"
}
],
"internalType": "struct IWitnetPriceSolver.Price",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4[]",
"name": "feedIds",
"type": "bytes4[]"
}
],
"name": "latestPrices",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "tallyHash",
"type": "bytes32"
},
{
"internalType": "enum WitnetV2.ResponseStatus",
"name": "status",
"type": "uint8"
}
],
"internalType": "struct IWitnetPriceSolver.Price[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "lookupDecimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "lookupPriceSolver",
"outputs": [
{
"internalType": "contract IWitnetPriceSolver",
"name": "solverAddress",
"type": "address"
},
{
"internalType": "string[]",
"name": "solverDeps",
"type": "string[]"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}