UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

2,025 lines 730 kB
{ "contractName": "WitOracleBaseQueriableTrustless", "abi": [ { "inputs": [], "name": "InvalidDataReport", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "indexed": false, "internalType": "string", "name": "reason", "type": "string" } ], "name": "BatchQueryError", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Burnt", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Received", "type": "event" }, { "anonymous": false, "inputs": [ { "components": [ { "internalType": "uint32", "name": "index", "type": "uint32" }, { "internalType": "uint32", "name": "prevIndex", "type": "uint32" }, { "internalType": "bytes24", "name": "prevRoot", "type": "bytes24" }, { "internalType": "bytes16", "name": "ddrTalliesMerkleRoot", "type": "bytes16" }, { "internalType": "bytes16", "name": "droTalliesMerkleRoot", "type": "bytes16" }, { "internalType": "uint256[4]", "name": "nextCommitteeAggPubkey", "type": "uint256[4]" } ], "indexed": false, "internalType": "struct Witnet.Beacon", "name": "head", "type": "tuple" } ], "name": "Rollup", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Slashed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Staked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Unstaked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "evmRequester", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "evmGasPrice", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "evmReward", "type": "uint256" }, { "indexed": false, "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "indexed": false, "internalType": "Witnet.RadonHash", "name": "radonHash", "type": "bytes32" }, { "components": [ { "internalType": "uint16", "name": "witResultMaxSize", "type": "uint16" }, { "internalType": "uint16", "name": "witCommitteeSize", "type": "uint16" }, { "internalType": "uint64", "name": "witUnitaryReward", "type": "uint64" } ], "indexed": false, "internalType": "struct Witnet.QuerySLA", "name": "radonParams", "type": "tuple" } ], "name": "WitOracleQuery", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "indexed": false, "internalType": "uint256", "name": "evmGasPrice", "type": "uint256" } ], "name": "WitOracleQueryReport", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "indexed": false, "internalType": "address", "name": "evmConsumer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "evmGasPrice", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "evmCallbackGas", "type": "uint256" } ], "name": "WitOracleQueryReportDelivery", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "indexed": false, "internalType": "address", "name": "evmDisputer", "type": "address" } ], "name": "WitOracleQueryReportDispute", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "indexed": false, "internalType": "address", "name": "evmSender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "evmGasPrice", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "evmReward", "type": "uint256" } ], "name": "WitOracleQueryUpgrade", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "evmOrigin", "type": "address" }, { "indexed": true, "internalType": "address", "name": "evmConsumer", "type": "address" }, { "indexed": false, "internalType": "address", "name": "evmReporter", "type": "address" }, { "indexed": false, "internalType": "Witnet.TransactionHash", "name": "witDrTxHash", "type": "bytes32" }, { "indexed": false, "internalType": "Witnet.RadonHash", "name": "queryRadHash", "type": "bytes32" }, { "components": [ { "internalType": "uint16", "name": "witResultMaxSize", "type": "uint16" }, { "internalType": "uint16", "name": "witCommitteeSize", "type": "uint16" }, { "internalType": "uint64", "name": "witUnitaryReward", "type": "uint64" } ], "indexed": false, "internalType": "struct Witnet.QuerySLA", "name": "queryParams", "type": "tuple" }, { "indexed": false, "internalType": "Witnet.Timestamp", "name": "resultTimestamp", "type": "uint64" }, { "indexed": false, "internalType": "bytes", "name": "resultCborBytes", "type": "bytes" } ], "name": "WitOracleReport", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "indexed": false, "internalType": "address", "name": "evmConsumer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "evmGasPrice", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "evmCallbackActualGas", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "evmCallbackRevertReason", "type": "string" }, { "indexed": false, "internalType": "bytes", "name": "resultCborBytes", "type": "bytes" } ], "name": "WitOracleResportDeliveryFailed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Withdrawn", "type": "event" }, { "inputs": [], "name": "QUERY_AWAITING_BLOCKS", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "QUERY_REPORTING_STAKE", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "channel", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "class", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "currency", "outputs": [ { "internalType": "contract IERC20", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_evmGasPrice", "type": "uint256" } ], "name": "estimateBaseFee", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_evmGasPrice", "type": "uint256" }, { "internalType": "uint24", "name": "_evmCallbackGasLimit", "type": "uint24" } ], "name": "estimateBaseFeeWithCallback", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_evmGasPrice", "type": "uint256" }, { "internalType": "uint256", "name": "_evmWitPrice", "type": "uint256" }, { "components": [ { "internalType": "uint16", "name": "witResultMaxSize", "type": "uint16" }, { "internalType": "uint16", "name": "witCommitteeSize", "type": "uint16" }, { "internalType": "uint64", "name": "witUnitaryReward", "type": "uint64" } ], "internalType": "struct Witnet.QuerySLA", "name": "_querySLA", "type": "tuple" } ], "name": "estimateExtraFee", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getNextQueryId", "outputs": [ { "internalType": "Witnet.QueryId", "name": "", "type": "uint64" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "Witnet.QueryId", "name": "_queryId", "type": "uint64" } ], "name": "getQuery", "outputs": [ { "components": [ { "components": [ { "internalType": "address", "name": "requester", "type": "address" }, { "internalType": "uint24", "name": "callbackGas", "type": "uint24" }, { "internalType": "bytes", "name": "radonBytecode", "type": "bytes" }, { "internalType": "Witnet.RadonHash", "name": "radonHash", "type": "bytes32" } ], "internalType": "struct Witnet.QueryRequest", "name": "request", "type": "tuple" }, { "components": [ { "internalType": "address", "name": "reporter", "type": "address" }, { "internalType": "Witnet.Timestamp", "name": "resultTimestamp", "type": "uint64" }, { "internalType": "Witnet.TransactionHash", "name": "resultDrTxHash", "type": "bytes32" }, { "internalType": "bytes", "name": "resultCborBytes", "type": "bytes" }, { "internalType": "address", "name": "disputer", "type": "address" } ], "internalType": "struct Witnet.QueryResponse", "name": "response", "type": "tuple" }, { "components": [ { "internalType": "uint16", "name": "witResultMaxSize", "type": "uint16" }, { "internalType": "uint16", "name": "witCommitteeSize", "type": "uint16" }, { "internalType": "uint64", "name": "witUnitaryReward", "type": "uint64" } ], "internalType": "struct Witnet.QuerySLA", "name": "slaParams", "type": "tuple" }, { "internalType": "Witnet.QueryUUID", "name": "uuid", "type": "bytes15" }, { "internalType": "Witnet.QueryEvmReward", "name": "reward", "type": "uint72" }, { "internalType": "Witnet.BlockNumber", "name": "checkpoint", "type": "uint64" } ], "internalType": "struct Witnet.Query", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_queryId", "type": "uint256" } ], "name": "getQueryEvmReward", "outputs": [ { "internalType": "Witnet.QueryEvmReward", "name": "", "type": "uint72" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "Witnet.QueryId", "name": "_queryId", "type": "uint64" } ], "name": "getQueryRequest", "outputs": [ { "components": [ { "internalType": "address", "name": "requester", "type": "address" }, { "internalType": "uint24", "name": "callbackGas", "type": "uint24" }, { "internalType": "bytes", "name": "radonBytecode", "type": "bytes" }, { "internalType": "Witnet.RadonHash", "name": "radonHash", "type": "bytes32" } ], "internalType": "struct Witnet.QueryRequest", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "Witnet.QueryId", "name": "_queryId", "type": "uint64" } ], "name": "getQueryResponse", "outputs": [ { "components": [ { "internalType": "address", "name": "reporter", "type": "address" }, { "internalType": "Witnet.Timestamp", "name": "resultTimestamp", "type": "uint64" }, { "internalType": "Witnet.TransactionHash", "name": "resultDrTxHash", "type": "bytes32" }, { "internalType": "bytes", "name": "resultCborBytes", "type": "bytes" }, { "internalType": "address", "name": "disputer", "type": "address" } ], "internalType": "struct Witnet.QueryResponse", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_queryId", "type": "uint256" } ], "name": "getQueryResult", "outputs": [ { "components": [ { "internalType": "enum Witnet.ResultStatus", "name": "status", "type": "uint8" }, { "internalType": "enum Witnet.RadonDataTypes", "name": "dataType", "type": "uint8" }, { "internalType": "Witnet.TransactionHash", "name": "drTxHash", "type": "bytes32" }, { "internalType": "uint256", "name": "finality", "type": "uint256" }, { "internalType": "Witnet.Timestamp", "name": "timestamp", "type": "uint64" }, { "components": [ { "components": [ { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint256", "name": "cursor", "type": "uint256" } ], "internalType": "struct WitnetBuffer.Buffer", "name": "buffer", "type": "tuple" }, { "internalType": "uint8", "name": "initialByte", "type": "uint8" }, { "internalType": "uint8", "name": "majorType", "type": "uint8" }, { "internalType": "uint8", "name": "additionalInformation", "type": "uint8" }, { "internalType": "uint64", "name": "len", "type": "uint64" }, { "internalType": "uint64", "name": "tag", "type": "uint64" } ], "internalType": "struct WitnetCBOR.CBOR", "name": "value", "type": "tuple" } ], "internalType": "struct Witnet.DataResult", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_queryId", "type": "uint256" } ], "name": "getQueryResultStatus", "outputs": [ { "internalType": "enum Witnet.ResultStatus", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_queryId", "type": "uint256" } ], "name": "getQueryResultStatusDescription", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_queryId", "type": "uint256" } ], "name": "getQueryResultTrails", "outputs": [ { "internalType": "bytes32", "name": "queryUUID", "type": "bytes32" }, { "internalType": "Witnet.TransactionHash", "name": "resultDrTxHash", "type": "bytes32" }, { "internalType": "Witnet.Timestamp", "name": "resultTimestamp", "type": "uint64" }, { "internalType": "uint256", "name": "resultFinalityBlock", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256[]", "name": "_queryIds", "type": "uint256[]" } ], "name": "getQueryStatusBatch", "outputs": [ { "internalType": "enum Witnet.QueryStatus[]", "name": "_status", "type": "uint8[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_queryId", "type": "uint256" } ], "name": "getQueryStatusString", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "Witnet.RadonHash", "name": "_queryRAD", "type": "bytes32" }, { "components": [ { "internalType": "uint16", "name": "witResultMaxSize", "type": "uint16" }, { "internalType": "uint16", "name": "witCommitteeSize", "type": "uint16" }, { "internalType": "uint64", "name": "witUnitaryReward", "type": "uint64" } ], "internalType": "struct Witnet.QuerySLA", "name": "_querySLA", "type": "tuple" } ], "name": "queryData", "outputs": [ { "internalType": "uint256", "name": "_queryId", "type": "uint256" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "Witnet.RadonHash", "name": "_queryRAD", "type": "bytes32" }, { "components": [ { "internalType": "uint16", "name": "witResultMaxSize", "type": "uint16" }, { "internalType": "uint16", "name": "witCommitteeSize", "type": "uint16" }, { "internalType": "uint64", "name": "witUnitaryReward", "type": "uint64" } ], "internalType": "struct Witnet.QuerySLA", "name": "_querySLA", "type": "tuple" }, { "components": [ { "internalType": "address", "name": "consumer", "type": "address" }, { "internalType": "uint24", "name": "gasLimit", "type": "uint24" } ], "internalType": "struct Witnet.QueryCallback", "name": "_queryCallback", "type": "tuple" } ], "name": "queryDataWithCallback", "outputs": [ { "internalType": "uint256", "name": "_queryId", "type": "uint256" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "registry", "outputs": [ { "internalType": "contract IWitOracleRadonRegistry", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "specs", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_queryId", "type": "uint256" } ], "name": "upgradeQueryEvmReward", "outputs": [], "stateMutability": "payable", "type": "function" }, { "stateMutability": "payable", "type": "receive" }, { "inputs": [ { "internalType": "address", "name": "tenant", "type": "address" } ], "name": "collateralOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "tenant", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "withdraw", "outputs": [ { "internalType": "uint256", "name": "_withdrawn", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "Witnet.TransactionHash", "name": "witDrTxHash", "type": "bytes32" }, { "internalType": "Witnet.RadonHash", "name": "queryRadHash", "type": "bytes32" }, { "components": [ { "internalType": "uint16", "name": "witResultMaxSize", "type": "uint16" }, { "internalType": "uint16", "name": "witCommitteeSize", "type": "uint16" }, { "internalType": "uint64", "name": "witUnitaryReward", "type": "uint64" } ], "internalType": "struct Witnet.QuerySLA", "name": "queryParams", "type": "tuple" }, { "internalType": "Witnet.Timestamp", "name": "resultTimestamp", "type": "uint64" }, { "internalType": "bytes", "name": "resultCborBytes", "type": "bytes" } ], "internalType": "struct Witnet.DataPushReport", "name": "_dataPushReport", "type": "tuple" }, { "internalType": "bytes", "name": "_proof", "type": "bytes" } ], "name": "parseDataReport", "outputs": [ { "components": [ { "internalType": "enum Witnet.ResultStatus", "name": "status", "type": "uint8" }, { "internalType": "enum Witnet.RadonDataTypes", "name": "dataType", "type": "uint8" }, { "internalType": "Witnet.TransactionHash", "name": "drTxHash", "type": "bytes32" }, { "internalType": "uint256", "name": "finality", "type": "uint256" }, { "internalType": "Witnet.Timestamp", "name": "timestamp", "type": "uint64" }, { "components": [ { "components": [ { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint256", "name": "cursor", "type": "uint256" } ], "internalType": "struct WitnetBuffer.Buffer", "name": "buffer", "type": "tuple" }, { "internalType": "uint8", "name": "initialByte", "type": "uint8" }, { "internalType": "uint8", "name": "majorType", "type": "uint8" }, { "internalType": "uint8", "name": "additionalInformation", "type": "uint8" }, { "internalType": "uint64", "name": "len", "type": "uint64" }, { "internalType": "uint64", "name": "tag", "type": "uint64" } ], "internalType": "struct WitnetCBOR.CBOR", "name": "value", "type": "tuple" } ], "internalType": "struct Witnet.DataResult", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "Witnet.TransactionHash", "name": "witDrTxHash", "type": "bytes32" }, { "internalType": "Witnet.RadonHash", "name": "queryRadHash", "type": "bytes32" }, { "components": [ { "internalType": "uint16", "name": "witResultMaxSize", "type": "uint16" }, { "internalType": "uint16", "name": "witCommitteeSize", "type": "uint16" }, { "internalType": "uint64", "name": "witUnitaryReward", "type": "uint64" } ], "internalType": "struct Witnet.QuerySLA", "name": "queryParams", "type": "tuple" }, { "internalType": "Witnet.Timestamp", "name": "resultTimestamp", "type": "uint64" }, { "internalType": "bytes", "name": "resultCborBytes", "type": "bytes" } ], "internalType": "struct Witnet.DataPushReport", "name": "_dataPushReport", "type": "tuple" }, { "internalType": "bytes", "name": "_proof", "type": "bytes" } ], "name": "pushDataReport", "outputs": [ { "components": [ { "internalType": "enum Witnet.ResultStatus", "name": "status", "type": "uint8" }, { "internalType": "enum Witnet.RadonDataTypes", "name": "dataType", "type": "uint8" }, { "internalType": "Witnet.TransactionHash", "name": "drTxHash", "type": "bytes32" }, { "internalType": "uint256", "name": "finality", "type": "uint256" }, { "internalType": "Witnet.Timestamp", "name": "timestamp", "type": "uint64" }, { "components": [ { "components": [ { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint256", "name": "cursor", "type": "uint256" } ], "internalType": "struct WitnetBuffer.Buffer", "name": "buffer", "type": "tuple" }, { "internalType": "uint8", "name": "initialByte", "type": "uint8" }, { "internalType": "uint8", "name": "majorType", "type": "uint8" }, { "internalType": "uint8", "name": "additionalInformation", "type": "uint8" }, { "internalType": "uint64", "name": "len", "type": "uint64" }, { "internalType": "uint64", "name": "tag", "type": "uint64" } ], "internalType": "struct WitnetCBOR.CBOR", "name": "value", "type": "tuple" } ], "internalType": "struct Witnet.DataResult", "name": "", "type": "tuple" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_queryId", "type": "uint256" } ], "name": "deleteQuery", "outputs": [ { "internalType": "Witnet.QueryEvmReward", "name": "", "type": "uint72" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_queryId", "type": "uint256" } ], "name": "getQueryStatus", "outputs": [ { "internalType": "enum Witnet.QueryStatus", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "Witnet.Timestamp", "name": "timestamp", "type": "uint64" } ], "name": "determineBeaconIndexFromTimestamp", "outputs": [ { "internalType": "uint64", "name": "", "type": "uint64" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "Witnet.Timestamp", "name": "timestamp", "type": "uint64" } ], "name": "determineEpochFromTimestamp", "outputs": [ { "internalType": "Witnet.BlockNumber", "name": "", "type": "uint64" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint32", "name": "index", "type": "uint32" } ], "name": "getBeaconByIndex", "outputs": [ { "components": [ { "internalType": "uint32", "name": "index", "type": "uint32" }, { "internalType": "uint32", "name": "prevIndex", "type": "uint32" }, { "internalType": "bytes24", "name": "prevRoot", "type": "bytes24" }, { "internalType": "bytes16", "name": "ddrTalliesMerkleRoot", "type": "bytes16" }, { "internalType": "bytes16", "name": "droTalliesMerkleRoot", "type": "bytes16" }, { "internalType": "uint256[4]", "name": "nextCommitteeAggPubkey", "type": "uint256[4]" } ], "internalType": "struct Witnet.Beacon", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getGenesisBeacon", "outputs": [ { "components": [ { "internalType": "uint32", "name": "index", "type": "uint32" }, { "internalType": "uint32", "name": "prevIndex", "type": "uint32" }, { "internalType": "bytes24", "name": "prevRoot", "type": "bytes24" }, { "internalType": "bytes16", "name": "ddrTalliesMerkleRoot", "type": "bytes16" }, { "internalType": "bytes16", "name": "droTalliesMerkleRoot", "type": "bytes16" }, { "internalType": "uint256[4]", "name": "nextCommitteeAggPubkey", "type": "uint256[4]" } ], "internalType": "struct Witnet.Beacon", "name": "", "type": "tuple" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "getLastKnownBeacon", "outputs": [ { "components": [ { "internalType": "uint32", "name": "index", "type": "uint32" }, { "internalType": "uint32", "name": "prevIndex", "type": "uint32" }, { "internalType": "bytes24", "name": "prevRoot", "type": "bytes24" }, { "internalType": "bytes16", "name": "ddrTalliesMerkleRoot", "type": "bytes16" }, { "internalType": "bytes16", "name": "droTalliesMerkleRoot", "type": "bytes16" }, { "internalType": "uint256[4]", "name": "nextCommitteeAggPubkey", "type": "uint256[4]" } ], "internalType": "struct Witnet.Beacon", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getLastKnownBeaconIndex", "outputs": [ { "internalType": "uint32", "name": "", "type": "uint32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "components": [ { "components": [ { "internalType": "uint32", "name": "index", "type": "uint32" }, { "internalType": "uint32", "name": "prevIndex", "type": "uint32" }, { "internalType": "bytes24", "name": "prevRoot", "type": "bytes24" }, { "internalType": "bytes16", "name": "ddrTalliesMerkleRoot", "type": "bytes16" }, { "internalType": "bytes16", "name": "droTalliesMerkleRoot", "type": "bytes16" }, { "internalType": "uint256[4]", "name": "nextCommitteeAggPubkey", "type": "uint256[4]" } ], "internalType": "struct Witnet.Beacon", "name": "beacon", "type": "tuple" }, { "internalType": "uint256[2]", "name": "committeeAggSignature", "type": "uint256[2]" }, { "internalType": "uint256[4][]", "name": "committeeMissingPubkeys", "type": "uint256[4][]" } ], "internalType": "struct Witnet.FastForward[]", "name": "_witOracleRollup", "type": "tuple[]" } ], "name": "rollupBeacons", "outputs": [ { "components": [ { "internalType": "uint32", "name": "index", "type": "uint32" }, { "internalType": "uint32", "name": "prevIndex", "type": "uint32" }, { "internalType": "bytes24", "name": "prevRoot", "type": "bytes24" }, { "internalType": "bytes16", "name": "ddrTalliesMerkleRoot", "type": "bytes16" }, { "internalType": "bytes16", "name": "droTalliesMerkleRoot", "type": "bytes16" }, { "internalType": "uint256[4]", "name": "nextCommitteeAggPubkey", "type": "uint256[4]" } ], "internalType": "struct Witnet.Beacon", "name": "", "type": "tuple" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "Witnet.QueryId", "name": "_queryId", "type": "uint64" } ], "name": "claimQueryReward", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "Witnet.QueryId[]", "name": "_queryIds", "type": "uint64[]" } ], "name": "claimQueryRewardBatch", "outputs": [ { "internalType": "uint256", "name": "_evmTotalReward", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "Witnet.QueryId", "name": "_queryId", "type": "uint64" } ], "name": "disputeQueryResponse", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "internalType": "Witnet.QueryUUID", "name": "queryHash", "type": "bytes15" }, { "internalType": "bytes", "name": "witDrRelayerSignature", "type": "bytes" }, { "internalType": "Witnet.BlockNumber", "name": "witDrResultEpoch", "type": "uint64" }, { "internalType": "bytes", "name": "witDrResultCborBytes", "type": "bytes" }, { "internalType": "Witnet.TransactionHash", "name": "witDrTxHash", "type": "bytes32" } ], "internalType": "struct Witnet.DataPullReport", "name": "_responseReport", "type": "tuple" } ], "name": "reportQueryResponse", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "internalType": "Witnet.QueryUUID", "name": "queryHash", "type": "bytes15" }, { "internalType": "bytes", "name": "witDrRelayerSignature", "type": "bytes" }, { "internalType": "Witnet.BlockNumber", "name": "witDrResultEpoch", "type": "uint64" }, { "internalType": "bytes", "name": "witDrResultCborBytes", "type": "bytes" }, { "inter