UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

193 lines (192 loc) 4.42 kB
{ "_format": "hh-sol-artifact-1", "contractName": "IWitnetOracleReporter", "sourceName": "contracts/interfaces/IWitnetOracleReporter.sol", "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "queryId", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "reason", "type": "string" } ], "name": "BatchReportError", "type": "event" }, { "inputs": [ { "internalType": "uint256[]", "name": "witnetQueryIds", "type": "uint256[]" }, { "internalType": "bytes", "name": "reportTxMsgData", "type": "bytes" }, { "internalType": "uint256", "name": "reportTxGasPrice", "type": "uint256" }, { "internalType": "uint256", "name": "nanoWitPrice", "type": "uint256" } ], "name": "estimateReportEarnings", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256[]", "name": "queryIds", "type": "uint256[]" } ], "name": "extractWitnetDataRequests", "outputs": [ { "internalType": "bytes[]", "name": "drBytecodes", "type": "bytes[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "witnetQueryId", "type": "uint256" }, { "internalType": "bytes32", "name": "witnetQueryResultTallyHash", "type": "bytes32" }, { "internalType": "bytes", "name": "witnetQueryResultCborBytes", "type": "bytes" } ], "name": "reportResult", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "witnetQueryId", "type": "uint256" }, { "internalType": "uint32", "name": "witnetQueryResultTimestamp", "type": "uint32" }, { "internalType": "bytes32", "name": "witnetQueryResultTallyHash", "type": "bytes32" }, { "internalType": "bytes", "name": "witnetQueryResultCborBytes", "type": "bytes" } ], "name": "reportResult", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint256", "name": "queryId", "type": "uint256" }, { "internalType": "uint32", "name": "queryResultTimestamp", "type": "uint32" }, { "internalType": "bytes32", "name": "queryResultTallyHash", "type": "bytes32" }, { "internalType": "bytes", "name": "queryResultCborBytes", "type": "bytes" } ], "internalType": "struct IWitnetOracleReporter.BatchResult[]", "name": "_batchResults", "type": "tuple[]" } ], "name": "reportResultBatch", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }