UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

195 lines 4.67 kB
{ "_format": "hh3-artifact-1", "contractName": "IWitOracleQueriableTrustableReporter", "sourceName": "contracts/interfaces/IWitOracleQueriableTrustableReporter.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": "queryIds", "type": "uint256[]" }, { "internalType": "bytes", "name": "evmReportTxMsgData", "type": "bytes" }, { "internalType": "uint256", "name": "evmReportTxGasPrice", "type": "uint256" }, { "internalType": "uint256", "name": "witEthPrice9", "type": "uint256" } ], "name": "estimateReportEarnings", "outputs": [ { "internalType": "uint256", "name": "evmRevenues", "type": "uint256" }, { "internalType": "uint256", "name": "evmExpenses", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "Witnet.QueryId[]", "name": "queryIds", "type": "uint64[]" } ], "name": "extractRadonBytecodes", "outputs": [ { "internalType": "bytes[]", "name": "drBytecodes", "type": "bytes[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "internalType": "Witnet.Timestamp", "name": "resultTimestamp", "type": "uint64" }, { "internalType": "Witnet.TransactionHash", "name": "witDrTxHash", "type": "bytes32" }, { "internalType": "bytes", "name": "resultCborBytes", "type": "bytes" } ], "name": "reportResult", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "internalType": "Witnet.TransactionHash", "name": "witDrTxHash", "type": "bytes32" }, { "internalType": "bytes", "name": "resultCborBytes", "type": "bytes" } ], "name": "reportResult", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "internalType": "Witnet.Timestamp", "name": "resultTimestamp", "type": "uint64" }, { "internalType": "Witnet.TransactionHash", "name": "drTxHash", "type": "bytes32" }, { "internalType": "bytes", "name": "resultCborBytes", "type": "bytes" } ], "internalType": "struct IWitOracleQueriableTrustableReporter.BatchResult[]", "name": "_batchResults", "type": "tuple[]" } ], "name": "reportResultBatch", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {}, "immutableReferences": {}, "inputSourceName": "project/contracts/interfaces/IWitOracleQueriableTrustableReporter.sol", "buildInfoId": "solc-0_8_30-47301052af11a5aa5062e9b98ca44d5e142950cf" }