witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
110 lines (109 loc) • 2.37 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "IWitnetPriceSolver",
"sourceName": "contracts/interfaces/IWitnetPriceSolver.sol",
"abi": [
{
"inputs": [],
"name": "class",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "delegator",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
}
],
"name": "solve",
"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": [],
"name": "specs",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "feedId",
"type": "bytes4"
},
{
"internalType": "string[]",
"name": "initdata",
"type": "string[]"
}
],
"name": "validate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}