{
  "contractName": "IWitOracleLegacy",
  "abi": [
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "id",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "evmReward",
          "type": "uint256"
        },
        {
          "components": [
            {
              "internalType": "uint8",
              "name": "numWitnesses",
              "type": "uint8"
            },
            {
              "internalType": "uint64",
              "name": "witnessReward",
              "type": "uint64"
            }
          ],
          "indexed": false,
          "internalType": "struct IWitOracleLegacy.RadonSLA",
          "name": "witnetSLA",
          "type": "tuple"
        }
      ],
      "name": "WitnetQuery",
      "type": "event"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "gasPrice",
          "type": "uint256"
        },
        {
          "internalType": "uint16",
          "name": "resultMaxSize",
          "type": "uint16"
        }
      ],
      "name": "estimateBaseFee",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "gasPrice",
          "type": "uint256"
        },
        {
          "internalType": "bytes32",
          "name": "radHash",
          "type": "bytes32"
        }
      ],
      "name": "estimateBaseFee",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "getQuery",
      "outputs": [
        {
          "components": [
            {
              "components": [
                {
                  "internalType": "address",
                  "name": "requester",
                  "type": "address"
                },
                {
                  "internalType": "uint24",
                  "name": "callbackGas",
                  "type": "uint24"
                },
                {
                  "internalType": "uint72",
                  "name": "evmReward",
                  "type": "uint72"
                },
                {
                  "internalType": "bytes",
                  "name": "radonBytecode",
                  "type": "bytes"
                },
                {
                  "internalType": "bytes32",
                  "name": "radonHash",
                  "type": "bytes32"
                },
                {
                  "components": [
                    {
                      "internalType": "uint8",
                      "name": "numWitnesses",
                      "type": "uint8"
                    },
                    {
                      "internalType": "uint64",
                      "name": "witnessReward",
                      "type": "uint64"
                    }
                  ],
                  "internalType": "struct IWitOracleLegacy.RadonSLA",
                  "name": "radonParams",
                  "type": "tuple"
                }
              ],
              "internalType": "struct IWitOracleLegacy.QueryRequest",
              "name": "request",
              "type": "tuple"
            },
            {
              "components": [
                {
                  "internalType": "address",
                  "name": "reporter",
                  "type": "address"
                },
                {
                  "internalType": "uint64",
                  "name": "finality",
                  "type": "uint64"
                },
                {
                  "internalType": "uint32",
                  "name": "timestamp",
                  "type": "uint32"
                },
                {
                  "internalType": "bytes32",
                  "name": "trail",
                  "type": "bytes32"
                },
                {
                  "internalType": "bytes",
                  "name": "cborBytes",
                  "type": "bytes"
                }
              ],
              "internalType": "struct IWitOracleLegacy.QueryResponse",
              "name": "response",
              "type": "tuple"
            }
          ],
          "internalType": "struct IWitOracleLegacy.Query",
          "name": "",
          "type": "tuple"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "getQueryRequest",
      "outputs": [
        {
          "components": [
            {
              "internalType": "address",
              "name": "requester",
              "type": "address"
            },
            {
              "internalType": "uint24",
              "name": "callbackGas",
              "type": "uint24"
            },
            {
              "internalType": "uint72",
              "name": "evmReward",
              "type": "uint72"
            },
            {
              "internalType": "bytes",
              "name": "radonBytecode",
              "type": "bytes"
            },
            {
              "internalType": "bytes32",
              "name": "radonHash",
              "type": "bytes32"
            },
            {
              "components": [
                {
                  "internalType": "uint8",
                  "name": "numWitnesses",
                  "type": "uint8"
                },
                {
                  "internalType": "uint64",
                  "name": "witnessReward",
                  "type": "uint64"
                }
              ],
              "internalType": "struct IWitOracleLegacy.RadonSLA",
              "name": "radonParams",
              "type": "tuple"
            }
          ],
          "internalType": "struct IWitOracleLegacy.QueryRequest",
          "name": "",
          "type": "tuple"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "getQueryResponse",
      "outputs": [
        {
          "components": [
            {
              "internalType": "address",
              "name": "reporter",
              "type": "address"
            },
            {
              "internalType": "uint64",
              "name": "finality",
              "type": "uint64"
            },
            {
              "internalType": "uint32",
              "name": "timestamp",
              "type": "uint32"
            },
            {
              "internalType": "bytes32",
              "name": "trail",
              "type": "bytes32"
            },
            {
              "internalType": "bytes",
              "name": "cborBytes",
              "type": "bytes"
            }
          ],
          "internalType": "struct IWitOracleLegacy.QueryResponse",
          "name": "",
          "type": "tuple"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "getQueryResponseStatus",
      "outputs": [
        {
          "internalType": "enum IWitOracleLegacy.QueryResponseStatus",
          "name": "",
          "type": "uint8"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "getQueryResultCborBytes",
      "outputs": [
        {
          "internalType": "bytes",
          "name": "",
          "type": "bytes"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "getQueryResultError",
      "outputs": [
        {
          "components": [
            {
              "internalType": "uint8",
              "name": "code",
              "type": "uint8"
            },
            {
              "internalType": "string",
              "name": "reason",
              "type": "string"
            }
          ],
          "internalType": "struct IWitOracleLegacy.ResultError",
          "name": "",
          "type": "tuple"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256[]",
          "name": "queryIds",
          "type": "uint256[]"
        }
      ],
      "name": "extractWitnetDataRequests",
      "outputs": [
        {
          "internalType": "bytes[]",
          "name": "",
          "type": "bytes[]"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "queryId",
          "type": "uint256"
        }
      ],
      "name": "fetchQueryResponse",
      "outputs": [
        {
          "internalType": "bytes",
          "name": "",
          "type": "bytes"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        },
        {
          "components": [
            {
              "internalType": "uint8",
              "name": "numWitnesses",
              "type": "uint8"
            },
            {
              "internalType": "uint64",
              "name": "witnessReward",
              "type": "uint64"
            }
          ],
          "internalType": "struct IWitOracleLegacy.RadonSLA",
          "name": "",
          "type": "tuple"
        }
      ],
      "name": "postRequest",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "payable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        },
        {
          "components": [
            {
              "internalType": "uint8",
              "name": "numWitnesses",
              "type": "uint8"
            },
            {
              "internalType": "uint64",
              "name": "witnessReward",
              "type": "uint64"
            }
          ],
          "internalType": "struct IWitOracleLegacy.RadonSLA",
          "name": "",
          "type": "tuple"
        },
        {
          "internalType": "uint24",
          "name": "",
          "type": "uint24"
        }
      ],
      "name": "postRequestWithCallback",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "payable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        },
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        },
        {
          "internalType": "bytes",
          "name": "",
          "type": "bytes"
        }
      ],
      "name": "reportResult",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        },
        {
          "internalType": "uint32",
          "name": "",
          "type": "uint32"
        },
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        },
        {
          "internalType": "bytes",
          "name": "",
          "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": "resultTimestamp",
              "type": "uint32"
            },
            {
              "internalType": "bytes32",
              "name": "drTxHash",
              "type": "bytes32"
            },
            {
              "internalType": "bytes",
              "name": "resultCborBytes",
              "type": "bytes"
            }
          ],
          "internalType": "struct IWitOracleLegacy.BatchResultLegacy[]",
          "name": "",
          "type": "tuple[]"
        }
      ],
      "name": "reportResultBatch",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"evmReward\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"numWitnesses\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"witnessReward\",\"type\":\"uint64\"}],\"indexed\":false,\"internalType\":\"struct IWitOracleLegacy.RadonSLA\",\"name\":\"witnetSLA\",\"type\":\"tuple\"}],\"name\":\"WitnetQuery\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"resultMaxSize\",\"type\":\"uint16\"}],\"name\":\"estimateBaseFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"radHash\",\"type\":\"bytes32\"}],\"name\":\"estimateBaseFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"queryIds\",\"type\":\"uint256[]\"}],\"name\":\"extractWitnetDataRequests\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"\",\"type\":\"bytes[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"queryId\",\"type\":\"uint256\"}],\"name\":\"fetchQueryResponse\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getQuery\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"callbackGas\",\"type\":\"uint24\"},{\"internalType\":\"uint72\",\"name\":\"evmReward\",\"type\":\"uint72\"},{\"internalType\":\"bytes\",\"name\":\"radonBytecode\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"radonHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"numWitnesses\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"witnessReward\",\"type\":\"uint64\"}],\"internalType\":\"struct IWitOracleLegacy.RadonSLA\",\"name\":\"radonParams\",\"type\":\"tuple\"}],\"internalType\":\"struct IWitOracleLegacy.QueryRequest\",\"name\":\"request\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"reporter\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"finality\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"trail\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"cborBytes\",\"type\":\"bytes\"}],\"internalType\":\"struct IWitOracleLegacy.QueryResponse\",\"name\":\"response\",\"type\":\"tuple\"}],\"internalType\":\"struct IWitOracleLegacy.Query\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getQueryRequest\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"requester\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"callbackGas\",\"type\":\"uint24\"},{\"internalType\":\"uint72\",\"name\":\"evmReward\",\"type\":\"uint72\"},{\"internalType\":\"bytes\",\"name\":\"radonBytecode\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"radonHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"numWitnesses\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"witnessReward\",\"type\":\"uint64\"}],\"internalType\":\"struct IWitOracleLegacy.RadonSLA\",\"name\":\"radonParams\",\"type\":\"tuple\"}],\"internalType\":\"struct IWitOracleLegacy.QueryRequest\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getQueryResponse\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"reporter\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"finality\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"trail\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"cborBytes\",\"type\":\"bytes\"}],\"internalType\":\"struct IWitOracleLegacy.QueryResponse\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getQueryResponseStatus\",\"outputs\":[{\"internalType\":\"enum IWitOracleLegacy.QueryResponseStatus\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getQueryResultCborBytes\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getQueryResultError\",\"outputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"code\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"internalType\":\"struct IWitOracleLegacy.ResultError\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"numWitnesses\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"witnessReward\",\"type\":\"uint64\"}],\"internalType\":\"struct IWitOracleLegacy.RadonSLA\",\"name\":\"\",\"type\":\"tuple\"}],\"name\":\"postRequest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"numWitnesses\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"witnessReward\",\"type\":\"uint64\"}],\"internalType\":\"struct IWitOracleLegacy.RadonSLA\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"name\":\"postRequestWithCallback\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"reportResult\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"\",\"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\":\"resultTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"drTxHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"resultCborBytes\",\"type\":\"bytes\"}],\"internalType\":\"struct IWitOracleLegacy.BatchResultLegacy[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"name\":\"reportResultBatch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"estimateBaseFee(uint256,bytes32)\":{\"details\":\"Fails if the RAD hash was not previously verified on the WitOracleRadonRegistry registry.\",\"params\":{\"gasPrice\":\"Expected gas price to pay upon posting the data request.\",\"radHash\":\"The RAD hash of the data request to be solved by Witnet.\"}},\"estimateBaseFee(uint256,uint16)\":{\"details\":\"Underestimates if the size of returned data is greater than `resultMaxSize`. \",\"params\":{\"gasPrice\":\"Expected gas price to pay upon posting the data request.\",\"resultMaxSize\":\"Maximum expected size of returned data (in bytes).  \"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"estimateBaseFee(uint256,bytes32)\":{\"notice\":\"Estimate the minimum reward required for posting a data request.\"},\"estimateBaseFee(uint256,uint16)\":{\"notice\":\"Estimate the minimum reward required for posting a data request.\"},\"getQueryResponseStatus(uint256)\":{\"notice\":\"Returns query's result current status from a requester's point of view:- 0 => Void: the query is either non-existent or deleted;- 1 => Awaiting: the query has not yet been reported;- 2 => Ready: the query response was finalized, and contains a result with no erros.- 3 => Error: the query response was finalized, and contains a result with errors.- 4 => Finalizing: some result to the query has been reported, but cannot yet be considered finalized.- 5 => Delivered: at least one response, either successful or with errors, was delivered to the requesting contract.\"},\"getQueryResultCborBytes(uint256)\":{\"notice\":\"Retrieves the CBOR-encoded buffer containing the Witnet-provided result to the given query.\"},\"getQueryResultError(uint256)\":{\"notice\":\"Gets error code identifying some possible failure on the resolution of the given query.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/legacy/IWitOracleLegacy.sol\":\"IWitOracleLegacy\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitOracleRadonRegistry.sol\":{\"keccak256\":\"0x437bbb89129311bd1cc8f6becd333df46109ec53b24d3159be942b225614071f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ef9bcdf4a73cb126885478c994821b7fe2b87d9221b767b4c9342b89b0d6550a\",\"dweb:/ipfs/QmXzZXPMxjSiFpcEnhg6CjLFNxGCpDZt22xpUh7VHxNTGd\"]},\"project:/contracts/interfaces/legacy/IWitOracleLegacy.sol\":{\"keccak256\":\"0xd2929c9aa5a02d261d6d1a068a6b7231ae58d8f81f081ba89f2d3267a31fbbb5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://956b26323a02cf400c32012586954fc5dbc98b4d5b7a8b0533401cbda8619059\",\"dweb:/ipfs/QmSWdCRwL5t3atFM8osdaohLTqEEmY1FbnR6xrRCmw1GDM\"]},\"project:/contracts/interfaces/legacy/IWitOracleRequest.sol\":{\"keccak256\":\"0x0fb3f0ba03f4f7a0214ecb36df26525564cf51a8a2176cba92c185af8a1d419e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://340b7bdb92c3259519fe120eb3061b393e7a5e9c1b576a2fe4eab020af466b64\",\"dweb:/ipfs/QmRt4wMX9WdxFwfdFMUZ3zKMAW1grS7qLk1x1PDMJdEAVU\"]},\"project:/contracts/interfaces/legacy/IWitOracleRequestTemplate.sol\":{\"keccak256\":\"0x9e065ef5880c64eefff5fcfb1347fde6684e0e311f8c2350a6aefdbd1f8b0f22\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://817de760c7cce9d00dcd4312aea6434d88abddf1c0e68ea7e8fb1e6c5165a445\",\"dweb:/ipfs/QmUNmtn85nFXbje2nRJQY2h65KJCVinDMMU6P2jQmo1Nij\"]},\"project:/contracts/libs/Bech32.sol\":{\"keccak256\":\"0x14618323a0efe7586c20906a2e9cee7ad63baa976ff231c57f7f2d7d3707fb8b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a19f05fe84047a7a6d3d6fc39972b432e6e536aa70472386a9d7a6d9aab64a64\",\"dweb:/ipfs/QmcHwUY66yjiotRH4Q3kbRvSzcHyLQ1yHL3KbtQKiMhtZE\"]},\"project:/contracts/libs/Secp256k1.sol\":{\"keccak256\":\"0xbe686002da5004ff39dd70709f3820eba2afe9323ae9cb894009c161e4b1a666\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://18fab91775216de0707cea9ad285b10be09127461a13432fea358bf9cb2a0c2e\",\"dweb:/ipfs/QmeRUGsgstnM4hxM9hpkBf3L6cE5btirEaowcMxmuw3utj\"]},\"project:/contracts/libs/Witnet.sol\":{\"keccak256\":\"0x1d446c3e534e40e676d1763bfb2897fadfac8afed904ab757843d7d6770b0a6c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://338fb1073f17d64e8d31bfe492d9475ce906788ee08e6489ce30413f91dc1328\",\"dweb:/ipfs/QmPe5QX2AGTnQFjse1Xttq4ZYWwYAiXoySb5VUui3PqPhk\"]},\"project:/contracts/libs/WitnetBuffer.sol\":{\"keccak256\":\"0x8e07aebe2954ab3e6f2d8eceedb12db7cf915c1f3e8630f4fa9999cecb1c78ec\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ed6c54cc901183d61546e8fd15bd5ea8ef238ebc915642946071d435dd7481ea\",\"dweb:/ipfs/Qmcaqta7YjUSBbBUGqoh44bsCS6UqqoyHjBuz4qnKBShXM\"]},\"project:/contracts/libs/WitnetCBOR.sol\":{\"keccak256\":\"0xd99308373575cc10fb7f2ceb0f6a8625f3911275c1fa27811fae498d98d03d97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b4909a999d7b660a2dc54ca957b6eccfa523e2765fc4d6a2574dee7d5cd67b43\",\"dweb:/ipfs/QmWGQT4KDcfSFe1hcHVoWx6E4PhYMaod5iLpJCWBEeShzh\"]}},\"version\":1}",
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "immutableReferences": {},
  "generatedSources": [],
  "deployedGeneratedSources": [],
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity >=0.8.0 <0.9.0;\r\n\r\nimport \"../IWitOracleRadonRegistry.sol\";\r\nimport \"./IWitOracleRequest.sol\";\r\nimport \"./IWitOracleRequestTemplate.sol\";\r\n\r\ninterface IWitOracleLegacy {\r\n\r\n    struct Query {\r\n        QueryRequest request;\r\n        QueryResponse response;\r\n    }\r\n\r\n    struct QueryRequest {\r\n        address requester;\r\n        uint24  callbackGas;\r\n        uint72  evmReward;\r\n        bytes   radonBytecode;\r\n        bytes32 radonHash;\r\n        RadonSLA radonParams;\r\n    }\r\n\r\n    struct QueryResponse {\r\n        address reporter;\r\n        uint64 finality;\r\n        uint32 timestamp;\r\n        bytes32 trail;\r\n        bytes cborBytes;\r\n    }\r\n\r\n    struct RadonSLA {\r\n        uint8 numWitnesses;\r\n        uint64 witnessReward;\r\n    }\r\n\r\n    event WitnetQuery(uint256 id, uint256 evmReward, RadonSLA witnetSLA);\r\n\r\n    /// @notice Estimate the minimum reward required for posting a data request.\r\n    /// @dev Underestimates if the size of returned data is greater than `resultMaxSize`. \r\n    /// @param gasPrice Expected gas price to pay upon posting the data request.\r\n    /// @param resultMaxSize Maximum expected size of returned data (in bytes).  \r\n    function estimateBaseFee(uint256 gasPrice, uint16 resultMaxSize) external view returns (uint256);\r\n    \r\n    /// @notice Estimate the minimum reward required for posting a data request.\r\n    /// @dev Fails if the RAD hash was not previously verified on the WitOracleRadonRegistry registry.\r\n    /// @param gasPrice Expected gas price to pay upon posting the data request.\r\n    /// @param radHash The RAD hash of the data request to be solved by Witnet.\r\n    function estimateBaseFee(uint256 gasPrice, bytes32 radHash) external view returns (uint256);\r\n\r\n    function getQuery(uint256) external view returns (Query memory);\r\n    function getQueryRequest(uint256) external view returns (QueryRequest memory);\r\n    function getQueryResponse(uint256) external view returns (QueryResponse memory);\r\n\r\n    /// @notice Returns query's result current status from a requester's point of view:\r\n    /// @notice   - 0 => Void: the query is either non-existent or deleted;\r\n    /// @notice   - 1 => Awaiting: the query has not yet been reported;\r\n    /// @notice   - 2 => Ready: the query response was finalized, and contains a result with no erros.\r\n    /// @notice   - 3 => Error: the query response was finalized, and contains a result with errors.\r\n    /// @notice   - 4 => Finalizing: some result to the query has been reported, but cannot yet be considered finalized.\r\n    /// @notice   - 5 => Delivered: at least one response, either successful or with errors, was delivered to the requesting contract.\r\n    function getQueryResponseStatus(uint256) external view returns (QueryResponseStatus);\r\n\r\n        /// QueryResponse status from a requester's point of view.\r\n        enum QueryResponseStatus {\r\n            Void,\r\n            Awaiting,\r\n            Ready,\r\n            Error,\r\n            Finalizing,\r\n            Delivered,\r\n            Expired\r\n        }\r\n\r\n    /// @notice Retrieves the CBOR-encoded buffer containing the Witnet-provided result to the given query.\r\n    function getQueryResultCborBytes(uint256) external view returns (bytes memory);\r\n\r\n    /// @notice Gets error code identifying some possible failure on the resolution of the given query.\r\n    function getQueryResultError(uint256) external view returns (ResultError memory);\r\n\r\n        /// Data struct describing an error when trying to fetch a Witnet-provided result to a Data Request.\r\n        struct ResultError {\r\n            uint8 code;\r\n            string reason;\r\n        }\r\n\r\n    function extractWitnetDataRequests(uint256[] calldata queryIds) external view returns (bytes[] memory);\r\n    function fetchQueryResponse(uint256 queryId) external returns (bytes memory);\r\n    function postRequest(bytes32, RadonSLA calldata) external payable returns (uint256);\r\n    function postRequestWithCallback(bytes32, RadonSLA calldata, uint24) external payable returns (uint256);\r\n    function reportResult(uint256, uint32, bytes32, bytes calldata) external returns (uint256);\r\n    function reportResult(uint256, bytes32, bytes calldata) external returns (uint256);\r\n\r\n    struct BatchResultLegacy {\r\n        uint256 queryId;\r\n        uint32 resultTimestamp;\r\n        bytes32 drTxHash;\r\n        bytes resultCborBytes;\r\n    }\r\n    function reportResultBatch(BatchResultLegacy[] calldata) external returns (uint256);\r\n}\r\n",
  "sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\legacy\\IWitOracleLegacy.sol",
  "ast": {
    "absolutePath": "project:/contracts/interfaces/legacy/IWitOracleLegacy.sol",
    "exportedSymbols": {
      "Bech32": [
        31372
      ],
      "IWitOracleLegacy": [
        28786
      ],
      "IWitOracleRadonRegistry": [
        27394
      ],
      "IWitOracleRequest": [
        28922
      ],
      "IWitOracleRequestTemplate": [
        29115
      ],
      "Secp256k1": [
        32535
      ],
      "Witnet": [
        40741
      ],
      "WitnetBuffer": [
        42631
      ],
      "WitnetCBOR": [
        44174
      ]
    },
    "id": 28787,
    "license": "MIT",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 28571,
        "literals": [
          "solidity",
          ">=",
          "0.8",
          ".0",
          "<",
          "0.9",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "35:31:93"
      },
      {
        "absolutePath": "project:/contracts/interfaces/IWitOracleRadonRegistry.sol",
        "file": "../IWitOracleRadonRegistry.sol",
        "id": 28572,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 28787,
        "sourceUnit": 27395,
        "src": "70:40:93",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "project:/contracts/interfaces/legacy/IWitOracleRequest.sol",
        "file": "./IWitOracleRequest.sol",
        "id": 28573,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 28787,
        "sourceUnit": 28923,
        "src": "112:33:93",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "project:/contracts/interfaces/legacy/IWitOracleRequestTemplate.sol",
        "file": "./IWitOracleRequestTemplate.sol",
        "id": 28574,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 28787,
        "sourceUnit": 29116,
        "src": "147:41:93",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "abstract": false,
        "baseContracts": [],
        "canonicalName": "IWitOracleLegacy",
        "contractDependencies": [],
        "contractKind": "interface",
        "fullyImplemented": false,
        "id": 28786,
        "linearizedBaseContracts": [
          28786
        ],
        "name": "IWitOracleLegacy",
        "nameLocation": "202:16:93",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "canonicalName": "IWitOracleLegacy.Query",
            "id": 28581,
            "members": [
              {
                "constant": false,
                "id": 28577,
                "mutability": "mutable",
                "name": "request",
                "nameLocation": "265:7:93",
                "nodeType": "VariableDeclaration",
                "scope": 28581,
                "src": "252:20:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_struct$_QueryRequest_$28595_storage_ptr",
                  "typeString": "struct IWitOracleLegacy.QueryRequest"
                },
                "typeName": {
                  "id": 28576,
                  "nodeType": "UserDefinedTypeName",
                  "pathNode": {
                    "id": 28575,
                    "name": "QueryRequest",
                    "nameLocations": [
                      "252:12:93"
                    ],
                    "nodeType": "IdentifierPath",
                    "referencedDeclaration": 28595,
                    "src": "252:12:93"
                  },
                  "referencedDeclaration": 28595,
                  "src": "252:12:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_QueryRequest_$28595_storage_ptr",
                    "typeString": "struct IWitOracleLegacy.QueryRequest"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28580,
                "mutability": "mutable",
                "name": "response",
                "nameLocation": "297:8:93",
                "nodeType": "VariableDeclaration",
                "scope": 28581,
                "src": "283:22:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_struct$_QueryResponse_$28606_storage_ptr",
                  "typeString": "struct IWitOracleLegacy.QueryResponse"
                },
                "typeName": {
                  "id": 28579,
                  "nodeType": "UserDefinedTypeName",
                  "pathNode": {
                    "id": 28578,
                    "name": "QueryResponse",
                    "nameLocations": [
                      "283:13:93"
                    ],
                    "nodeType": "IdentifierPath",
                    "referencedDeclaration": 28606,
                    "src": "283:13:93"
                  },
                  "referencedDeclaration": 28606,
                  "src": "283:13:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_QueryResponse_$28606_storage_ptr",
                    "typeString": "struct IWitOracleLegacy.QueryResponse"
                  }
                },
                "visibility": "internal"
              }
            ],
            "name": "Query",
            "nameLocation": "235:5:93",
            "nodeType": "StructDefinition",
            "scope": 28786,
            "src": "228:85:93",
            "visibility": "public"
          },
          {
            "canonicalName": "IWitOracleLegacy.QueryRequest",
            "id": 28595,
            "members": [
              {
                "constant": false,
                "id": 28583,
                "mutability": "mutable",
                "name": "requester",
                "nameLocation": "360:9:93",
                "nodeType": "VariableDeclaration",
                "scope": 28595,
                "src": "352:17:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                },
                "typeName": {
                  "id": 28582,
                  "name": "address",
                  "nodeType": "ElementaryTypeName",
                  "src": "352:7:93",
                  "stateMutability": "nonpayable",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28585,
                "mutability": "mutable",
                "name": "callbackGas",
                "nameLocation": "388:11:93",
                "nodeType": "VariableDeclaration",
                "scope": 28595,
                "src": "380:19:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint24",
                  "typeString": "uint24"
                },
                "typeName": {
                  "id": 28584,
                  "name": "uint24",
                  "nodeType": "ElementaryTypeName",
                  "src": "380:6:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28587,
                "mutability": "mutable",
                "name": "evmReward",
                "nameLocation": "418:9:93",
                "nodeType": "VariableDeclaration",
                "scope": 28595,
                "src": "410:17:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint72",
                  "typeString": "uint72"
                },
                "typeName": {
                  "id": 28586,
                  "name": "uint72",
                  "nodeType": "ElementaryTypeName",
                  "src": "410:6:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint72",
                    "typeString": "uint72"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28589,
                "mutability": "mutable",
                "name": "radonBytecode",
                "nameLocation": "446:13:93",
                "nodeType": "VariableDeclaration",
                "scope": 28595,
                "src": "438:21:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes_storage_ptr",
                  "typeString": "bytes"
                },
                "typeName": {
                  "id": 28588,
                  "name": "bytes",
                  "nodeType": "ElementaryTypeName",
                  "src": "438:5:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_storage_ptr",
                    "typeString": "bytes"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28591,
                "mutability": "mutable",
                "name": "radonHash",
                "nameLocation": "478:9:93",
                "nodeType": "VariableDeclaration",
                "scope": 28595,
                "src": "470:17:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes32",
                  "typeString": "bytes32"
                },
                "typeName": {
                  "id": 28590,
                  "name": "bytes32",
                  "nodeType": "ElementaryTypeName",
                  "src": "470:7:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28594,
                "mutability": "mutable",
                "name": "radonParams",
                "nameLocation": "507:11:93",
                "nodeType": "VariableDeclaration",
                "scope": 28595,
                "src": "498:20:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_struct$_RadonSLA_$28611_storage_ptr",
                  "typeString": "struct IWitOracleLegacy.RadonSLA"
                },
                "typeName": {
                  "id": 28593,
                  "nodeType": "UserDefinedTypeName",
                  "pathNode": {
                    "id": 28592,
                    "name": "RadonSLA",
                    "nameLocations": [
                      "498:8:93"
                    ],
                    "nodeType": "IdentifierPath",
                    "referencedDeclaration": 28611,
                    "src": "498:8:93"
                  },
                  "referencedDeclaration": 28611,
                  "src": "498:8:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_RadonSLA_$28611_storage_ptr",
                    "typeString": "struct IWitOracleLegacy.RadonSLA"
                  }
                },
                "visibility": "internal"
              }
            ],
            "name": "QueryRequest",
            "nameLocation": "328:12:93",
            "nodeType": "StructDefinition",
            "scope": 28786,
            "src": "321:205:93",
            "visibility": "public"
          },
          {
            "canonicalName": "IWitOracleLegacy.QueryResponse",
            "id": 28606,
            "members": [
              {
                "constant": false,
                "id": 28597,
                "mutability": "mutable",
                "name": "reporter",
                "nameLocation": "574:8:93",
                "nodeType": "VariableDeclaration",
                "scope": 28606,
                "src": "566:16:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                },
                "typeName": {
                  "id": 28596,
                  "name": "address",
                  "nodeType": "ElementaryTypeName",
                  "src": "566:7:93",
                  "stateMutability": "nonpayable",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28599,
                "mutability": "mutable",
                "name": "finality",
                "nameLocation": "600:8:93",
                "nodeType": "VariableDeclaration",
                "scope": 28606,
                "src": "593:15:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint64",
                  "typeString": "uint64"
                },
                "typeName": {
                  "id": 28598,
                  "name": "uint64",
                  "nodeType": "ElementaryTypeName",
                  "src": "593:6:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint64",
                    "typeString": "uint64"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28601,
                "mutability": "mutable",
                "name": "timestamp",
                "nameLocation": "626:9:93",
                "nodeType": "VariableDeclaration",
                "scope": 28606,
                "src": "619:16:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint32",
                  "typeString": "uint32"
                },
                "typeName": {
                  "id": 28600,
                  "name": "uint32",
                  "nodeType": "ElementaryTypeName",
                  "src": "619:6:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint32",
                    "typeString": "uint32"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28603,
                "mutability": "mutable",
                "name": "trail",
                "nameLocation": "654:5:93",
                "nodeType": "VariableDeclaration",
                "scope": 28606,
                "src": "646:13:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes32",
                  "typeString": "bytes32"
                },
                "typeName": {
                  "id": 28602,
                  "name": "bytes32",
                  "nodeType": "ElementaryTypeName",
                  "src": "646:7:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28605,
                "mutability": "mutable",
                "name": "cborBytes",
                "nameLocation": "676:9:93",
                "nodeType": "VariableDeclaration",
                "scope": 28606,
                "src": "670:15:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes_storage_ptr",
                  "typeString": "bytes"
                },
                "typeName": {
                  "id": 28604,
                  "name": "bytes",
                  "nodeType": "ElementaryTypeName",
                  "src": "670:5:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_storage_ptr",
                    "typeString": "bytes"
                  }
                },
                "visibility": "internal"
              }
            ],
            "name": "QueryResponse",
            "nameLocation": "541:13:93",
            "nodeType": "StructDefinition",
            "scope": 28786,
            "src": "534:159:93",
            "visibility": "public"
          },
          {
            "canonicalName": "IWitOracleLegacy.RadonSLA",
            "id": 28611,
            "members": [
              {
                "constant": false,
                "id": 28608,
                "mutability": "mutable",
                "name": "numWitnesses",
                "nameLocation": "734:12:93",
                "nodeType": "VariableDeclaration",
                "scope": 28611,
                "src": "728:18:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint8",
                  "typeString": "uint8"
                },
                "typeName": {
                  "id": 28607,
                  "name": "uint8",
                  "nodeType": "ElementaryTypeName",
                  "src": "728:5:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28610,
                "mutability": "mutable",
                "name": "witnessReward",
                "nameLocation": "764:13:93",
                "nodeType": "VariableDeclaration",
                "scope": 28611,
                "src": "757:20:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint64",
                  "typeString": "uint64"
                },
                "typeName": {
                  "id": 28609,
                  "name": "uint64",
                  "nodeType": "ElementaryTypeName",
                  "src": "757:6:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint64",
                    "typeString": "uint64"
                  }
                },
                "visibility": "internal"
              }
            ],
            "name": "RadonSLA",
            "nameLocation": "708:8:93",
            "nodeType": "StructDefinition",
            "scope": 28786,
            "src": "701:84:93",
            "visibility": "public"
          },
          {
            "anonymous": false,
            "eventSelector": "fb94adf28ab7e538d2691d90927f622cbc1100eae6afec58052efdee6c98a616",
            "id": 28620,
            "name": "WitnetQuery",
            "nameLocation": "799:11:93",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 28619,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28613,
                  "indexed": false,
                  "mutability": "mutable",
                  "name": "id",
                  "nameLocation": "819:2:93",
                  "nodeType": "VariableDeclaration",
                  "scope": 28620,
                  "src": "811:10:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28612,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "811:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 28615,
                  "indexed": false,
                  "mutability": "mutable",
                  "name": "evmReward",
                  "nameLocation": "831:9:93",
                  "nodeType": "VariableDeclaration",
                  "scope": 28620,
                  "src": "823:17:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28614,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "823:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 28618,
                  "indexed": false,
                  "mutability": "mutable",
                  "name": "witnetSLA",
                  "nameLocation": "851:9:93",
                  "nodeType": "VariableDeclaration",
                  "scope": 28620,
                  "src": "842:18:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_RadonSLA_$28611_memory_ptr",
                    "typeString": "struct IWitOracleLegacy.RadonSLA"
                  },
                  "typeName": {
                    "id": 28617,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 28616,
                      "name": "RadonSLA",
                      "nameLocations": [
                        "842:8:93"
                      ],
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 28611,
                      "src": "842:8:93"
                    },
                    "referencedDeclaration": 28611,
                    "src": "842:8:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_RadonSLA_$28611_storage_ptr",
                      "typeString": "struct IWitOracleLegacy.RadonSLA"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "810:51:93"
            },
            "src": "793:69:93"
          },
          {
            "documentation": {
              "id": 28621,
              "nodeType": "StructuredDocumentation",
              "src": "870:333:93",
              "text": "@notice Estimate the minimum reward required for posting a data request.\n @dev Underestimates if the size of returned data is greater than `resultMaxSize`. \n @param gasPrice Expected gas price to pay upon posting the data request.\n @param resultMaxSize Maximum expected size of returned data (in bytes).  "
            },
            "functionSelector": "7bd88218",
            "id": 28630,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "estimateBaseFee",
            "nameLocation": "1218:15:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28626,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28623,
                  "mutability": "mutable",
                  "name": "gasPrice",
                  "nameLocation": "1242:8:93",
                  "nodeType": "VariableDeclaration",
                  "scope": 28630,
                  "src": "1234:16:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28622,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1234:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 28625,
                  "mutability": "mutable",
                  "name": "resultMaxSize",
                  "nameLocation": "1259:13:93",
                  "nodeType": "VariableDeclaration",
                  "scope": 28630,
                  "src": "1252:20:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint16",
                    "typeString": "uint16"
                  },
                  "typeName": {
                    "id": 28624,
                    "name": "uint16",
                    "nodeType": "ElementaryTypeName",
                    "src": "1252:6:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint16",
                      "typeString": "uint16"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1233:40:93"
            },
            "returnParameters": {
              "id": 28629,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28628,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28630,
                  "src": "1297:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28627,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1297:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1296:9:93"
            },
            "scope": 28786,
            "src": "1209:97:93",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "documentation": {
              "id": 28631,
              "nodeType": "StructuredDocumentation",
              "src": "1318:343:93",
              "text": "@notice Estimate the minimum reward required for posting a data request.\n @dev Fails if the RAD hash was not previously verified on the WitOracleRadonRegistry registry.\n @param gasPrice Expected gas price to pay upon posting the data request.\n @param radHash The RAD hash of the data request to be solved by Witnet."
            },
            "functionSelector": "9cc56e67",
            "id": 28640,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "estimateBaseFee",
            "nameLocation": "1676:15:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28636,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28633,
                  "mutability": "mutable",
                  "name": "gasPrice",
                  "nameLocation": "1700:8:93",
                  "nodeType": "VariableDeclaration",
                  "scope": 28640,
                  "src": "1692:16:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28632,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1692:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 28635,
                  "mutability": "mutable",
                  "name": "radHash",
                  "nameLocation": "1718:7:93",
                  "nodeType": "VariableDeclaration",
                  "scope": 28640,
                  "src": "1710:15:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 28634,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1710:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1691:35:93"
            },
            "returnParameters": {
              "id": 28639,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28638,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28640,
                  "src": "1750:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28637,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1750:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1749:9:93"
            },
            "scope": 28786,
            "src": "1667:92:93",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "aeb2ffc1",
            "id": 28648,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "getQuery",
            "nameLocation": "1776:8:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28643,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28642,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28648,
                  "src": "1785:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28641,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1785:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1784:9:93"
            },
            "returnParameters": {
              "id": 28647,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28646,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28648,
                  "src": "1817:12:93",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Query_$28581_memory_ptr",
                    "typeString": "struct IWitOracleLegacy.Query"
                  },
                  "typeName": {
                    "id": 28645,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 28644,
                      "name": "Query",
                      "nameLocations": [
                        "1817:5:93"
                      ],
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 28581,
                      "src": "1817:5:93"
                    },
                    "referencedDeclaration": 28581,
                    "src": "1817:5:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Query_$28581_storage_ptr",
                      "typeString": "struct IWitOracleLegacy.Query"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1816:14:93"
            },
            "scope": 28786,
            "src": "1767:64:93",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "0aa4112a",
            "id": 28656,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "getQueryRequest",
            "nameLocation": "1846:15:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28651,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28650,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28656,
                  "src": "1862:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28649,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1862:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1861:9:93"
            },
            "returnParameters": {
              "id": 28655,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28654,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28656,
                  "src": "1894:19:93",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_QueryRequest_$28595_memory_ptr",
                    "typeString": "struct IWitOracleLegacy.QueryRequest"
                  },
                  "typeName": {
                    "id": 28653,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 28652,
                      "name": "QueryRequest",
                      "nameLocations": [
                        "1894:12:93"
                      ],
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 28595,
                      "src": "1894:12:93"
                    },
                    "referencedDeclaration": 28595,
                    "src": "1894:12:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_QueryRequest_$28595_storage_ptr",
                      "typeString": "struct IWitOracleLegacy.QueryRequest"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1893:21:93"
            },
            "scope": 28786,
            "src": "1837:78:93",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "f61921b2",
            "id": 28664,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "getQueryResponse",
            "nameLocation": "1930:16:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28659,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28658,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28664,
                  "src": "1947:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28657,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1947:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1946:9:93"
            },
            "returnParameters": {
              "id": 28663,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28662,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28664,
                  "src": "1979:20:93",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_QueryResponse_$28606_memory_ptr",
                    "typeString": "struct IWitOracleLegacy.QueryResponse"
                  },
                  "typeName": {
                    "id": 28661,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 28660,
                      "name": "QueryResponse",
                      "nameLocations": [
                        "1979:13:93"
                      ],
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 28606,
                      "src": "1979:13:93"
                    },
                    "referencedDeclaration": 28606,
                    "src": "1979:13:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_QueryResponse_$28606_storage_ptr",
                      "typeString": "struct IWitOracleLegacy.QueryResponse"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1978:22:93"
            },
            "scope": 28786,
            "src": "1921:80:93",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "documentation": {
              "id": 28665,
              "nodeType": "StructuredDocumentation",
              "src": "2009:697:93",
              "text": "@notice Returns query's result current status from a requester's point of view:\n @notice   - 0 => Void: the query is either non-existent or deleted;\n @notice   - 1 => Awaiting: the query has not yet been reported;\n @notice   - 2 => Ready: the query response was finalized, and contains a result with no erros.\n @notice   - 3 => Error: the query response was finalized, and contains a result with errors.\n @notice   - 4 => Finalizing: some result to the query has been reported, but cannot yet be considered finalized.\n @notice   - 5 => Delivered: at least one response, either successful or with errors, was delivered to the requesting contract."
            },
            "functionSelector": "234fe6e3",
            "id": 28673,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "getQueryResponseStatus",
            "nameLocation": "2721:22:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28668,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28667,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28673,
                  "src": "2744:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28666,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2744:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2743:9:93"
            },
            "returnParameters": {
              "id": 28672,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28671,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28673,
                  "src": "2776:19:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_enum$_QueryResponseStatus_$28682",
                    "typeString": "enum IWitOracleLegacy.QueryResponseStatus"
                  },
                  "typeName": {
                    "id": 28670,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 28669,
                      "name": "QueryResponseStatus",
                      "nameLocations": [
                        "2776:19:93"
                      ],
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 28682,
                      "src": "2776:19:93"
                    },
                    "referencedDeclaration": 28682,
                    "src": "2776:19:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_QueryResponseStatus_$28682",
                      "typeString": "enum IWitOracleLegacy.QueryResponseStatus"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2775:21:93"
            },
            "scope": 28786,
            "src": "2712:85:93",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "canonicalName": "IWitOracleLegacy.QueryResponseStatus",
            "documentation": {
              "id": 28674,
              "nodeType": "StructuredDocumentation",
              "src": "2809:58:93",
              "text": "QueryResponse status from a requester's point of view."
            },
            "id": 28682,
            "members": [
              {
                "id": 28675,
                "name": "Void",
                "nameLocation": "2917:4:93",
                "nodeType": "EnumValue",
                "src": "2917:4:93"
              },
              {
                "id": 28676,
                "name": "Awaiting",
                "nameLocation": "2936:8:93",
                "nodeType": "EnumValue",
                "src": "2936:8:93"
              },
              {
                "id": 28677,
                "name": "Ready",
                "nameLocation": "2959:5:93",
                "nodeType": "EnumValue",
                "src": "2959:5:93"
              },
              {
                "id": 28678,
                "name": "Error",
                "nameLocation": "2979:5:93",
                "nodeType": "EnumValue",
                "src": "2979:5:93"
              },
              {
                "id": 28679,
                "name": "Finalizing",
                "nameLocation": "2999:10:93",
                "nodeType": "EnumValue",
                "src": "2999:10:93"
              },
              {
                "id": 28680,
                "name": "Delivered",
                "nameLocation": "3024:9:93",
                "nodeType": "EnumValue",
                "src": "3024:9:93"
              },
              {
                "id": 28681,
                "name": "Expired",
                "nameLocation": "3048:7:93",
                "nodeType": "EnumValue",
                "src": "3048:7:93"
              }
            ],
            "name": "QueryResponseStatus",
            "nameLocation": "2882:19:93",
            "nodeType": "EnumDefinition",
            "src": "2877:189:93"
          },
          {
            "documentation": {
              "id": 28683,
              "nodeType": "StructuredDocumentation",
              "src": "3074:103:93",
              "text": "@notice Retrieves the CBOR-encoded buffer containing the Witnet-provided result to the given query."
            },
            "functionSelector": "8d3d8b38",
            "id": 28690,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "getQueryResultCborBytes",
            "nameLocation": "3192:23:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28686,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28685,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28690,
                  "src": "3216:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28684,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3216:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3215:9:93"
            },
            "returnParameters": {
              "id": 28689,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28688,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28690,
                  "src": "3248:12:93",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 28687,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "3248:5:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3247:14:93"
            },
            "scope": 28786,
            "src": "3183:79:93",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "documentation": {
              "id": 28691,
              "nodeType": "StructuredDocumentation",
              "src": "3270:99:93",
              "text": "@notice Gets error code identifying some possible failure on the resolution of the given query."
            },
            "functionSelector": "a77fc1a4",
            "id": 28699,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "getQueryResultError",
            "nameLocation": "3384:19:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28694,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28693,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28699,
                  "src": "3404:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28692,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3404:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3403:9:93"
            },
            "returnParameters": {
              "id": 28698,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28697,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28699,
                  "src": "3436:18:93",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_ResultError_$28705_memory_ptr",
                    "typeString": "struct IWitOracleLegacy.ResultError"
                  },
                  "typeName": {
                    "id": 28696,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 28695,
                      "name": "ResultError",
                      "nameLocations": [
                        "3436:11:93"
                      ],
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 28705,
                      "src": "3436:11:93"
                    },
                    "referencedDeclaration": 28705,
                    "src": "3436:11:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_ResultError_$28705_storage_ptr",
                      "typeString": "struct IWitOracleLegacy.ResultError"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3435:20:93"
            },
            "scope": 28786,
            "src": "3375:81:93",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "canonicalName": "IWitOracleLegacy.ResultError",
            "documentation": {
              "id": 28700,
              "nodeType": "StructuredDocumentation",
              "src": "3468:100:93",
              "text": "Data struct describing an error when trying to fetch a Witnet-provided result to a Data Request."
            },
            "id": 28705,
            "members": [
              {
                "constant": false,
                "id": 28702,
                "mutability": "mutable",
                "name": "code",
                "nameLocation": "3618:4:93",
                "nodeType": "VariableDeclaration",
                "scope": 28705,
                "src": "3612:10:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint8",
                  "typeString": "uint8"
                },
                "typeName": {
                  "id": 28701,
                  "name": "uint8",
                  "nodeType": "ElementaryTypeName",
                  "src": "3612:5:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28704,
                "mutability": "mutable",
                "name": "reason",
                "nameLocation": "3644:6:93",
                "nodeType": "VariableDeclaration",
                "scope": 28705,
                "src": "3637:13:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_string_storage_ptr",
                  "typeString": "string"
                },
                "typeName": {
                  "id": 28703,
                  "name": "string",
                  "nodeType": "ElementaryTypeName",
                  "src": "3637:6:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_storage_ptr",
                    "typeString": "string"
                  }
                },
                "visibility": "internal"
              }
            ],
            "name": "ResultError",
            "nameLocation": "3585:11:93",
            "nodeType": "StructDefinition",
            "scope": 28786,
            "src": "3578:84:93",
            "visibility": "public"
          },
          {
            "functionSelector": "45ea6c17",
            "id": 28714,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "extractWitnetDataRequests",
            "nameLocation": "3679:25:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28709,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28708,
                  "mutability": "mutable",
                  "name": "queryIds",
                  "nameLocation": "3724:8:93",
                  "nodeType": "VariableDeclaration",
                  "scope": 28714,
                  "src": "3705:27:93",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 28706,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "3705:7:93",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 28707,
                    "nodeType": "ArrayTypeName",
                    "src": "3705:9:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3704:29:93"
            },
            "returnParameters": {
              "id": 28713,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28712,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28714,
                  "src": "3757:14:93",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_bytes_memory_ptr_$dyn_memory_ptr",
                    "typeString": "bytes[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 28710,
                      "name": "bytes",
                      "nodeType": "ElementaryTypeName",
                      "src": "3757:5:93",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes_storage_ptr",
                        "typeString": "bytes"
                      }
                    },
                    "id": 28711,
                    "nodeType": "ArrayTypeName",
                    "src": "3757:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_bytes_storage_$dyn_storage_ptr",
                      "typeString": "bytes[]"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3756:16:93"
            },
            "scope": 28786,
            "src": "3670:103:93",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "08b7e85e",
            "id": 28721,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "fetchQueryResponse",
            "nameLocation": "3788:18:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28717,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28716,
                  "mutability": "mutable",
                  "name": "queryId",
                  "nameLocation": "3815:7:93",
                  "nodeType": "VariableDeclaration",
                  "scope": 28721,
                  "src": "3807:15:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28715,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3807:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3806:17:93"
            },
            "returnParameters": {
              "id": 28720,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28719,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28721,
                  "src": "3842:12:93",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 28718,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "3842:5:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3841:14:93"
            },
            "scope": 28786,
            "src": "3779:77:93",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "3dc2b7a2",
            "id": 28731,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "postRequest",
            "nameLocation": "3871:11:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28727,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28723,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28731,
                  "src": "3883:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 28722,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "3883:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 28726,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28731,
                  "src": "3892:17:93",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_RadonSLA_$28611_calldata_ptr",
                    "typeString": "struct IWitOracleLegacy.RadonSLA"
                  },
                  "typeName": {
                    "id": 28725,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 28724,
                      "name": "RadonSLA",
                      "nameLocations": [
                        "3892:8:93"
                      ],
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 28611,
                      "src": "3892:8:93"
                    },
                    "referencedDeclaration": 28611,
                    "src": "3892:8:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_RadonSLA_$28611_storage_ptr",
                      "typeString": "struct IWitOracleLegacy.RadonSLA"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3882:28:93"
            },
            "returnParameters": {
              "id": 28730,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28729,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28731,
                  "src": "3937:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28728,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3937:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3936:9:93"
            },
            "scope": 28786,
            "src": "3862:84:93",
            "stateMutability": "payable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "e900aa33",
            "id": 28743,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "postRequestWithCallback",
            "nameLocation": "3961:23:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28739,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28733,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28743,
                  "src": "3985:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 28732,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "3985:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 28736,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28743,
                  "src": "3994:17:93",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_RadonSLA_$28611_calldata_ptr",
                    "typeString": "struct IWitOracleLegacy.RadonSLA"
                  },
                  "typeName": {
                    "id": 28735,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 28734,
                      "name": "RadonSLA",
                      "nameLocations": [
                        "3994:8:93"
                      ],
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 28611,
                      "src": "3994:8:93"
                    },
                    "referencedDeclaration": 28611,
                    "src": "3994:8:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_RadonSLA_$28611_storage_ptr",
                      "typeString": "struct IWitOracleLegacy.RadonSLA"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 28738,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28743,
                  "src": "4013:6:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint24",
                    "typeString": "uint24"
                  },
                  "typeName": {
                    "id": 28737,
                    "name": "uint24",
                    "nodeType": "ElementaryTypeName",
                    "src": "4013:6:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint24",
                      "typeString": "uint24"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3984:36:93"
            },
            "returnParameters": {
              "id": 28742,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28741,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28743,
                  "src": "4047:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28740,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4047:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4046:9:93"
            },
            "scope": 28786,
            "src": "3952:104:93",
            "stateMutability": "payable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "b207e730",
            "id": 28756,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "reportResult",
            "nameLocation": "4071:12:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28752,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28745,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28756,
                  "src": "4084:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28744,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4084:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 28747,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28756,
                  "src": "4093:6:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint32",
                    "typeString": "uint32"
                  },
                  "typeName": {
                    "id": 28746,
                    "name": "uint32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4093:6:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint32",
                      "typeString": "uint32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 28749,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28756,
                  "src": "4101:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 28748,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4101:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 28751,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28756,
                  "src": "4110:14:93",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 28750,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "4110:5:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4083:42:93"
            },
            "returnParameters": {
              "id": 28755,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28754,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28756,
                  "src": "4144:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28753,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4144:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4143:9:93"
            },
            "scope": 28786,
            "src": "4062:91:93",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "6280bce8",
            "id": 28767,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "reportResult",
            "nameLocation": "4168:12:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28763,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28758,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28767,
                  "src": "4181:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28757,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4181:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 28760,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28767,
                  "src": "4190:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 28759,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4190:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 28762,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28767,
                  "src": "4199:14:93",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 28761,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "4199:5:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4180:34:93"
            },
            "returnParameters": {
              "id": 28766,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28765,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28767,
                  "src": "4233:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28764,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4233:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4232:9:93"
            },
            "scope": 28786,
            "src": "4159:83:93",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "canonicalName": "IWitOracleLegacy.BatchResultLegacy",
            "id": 28776,
            "members": [
              {
                "constant": false,
                "id": 28769,
                "mutability": "mutable",
                "name": "queryId",
                "nameLocation": "4294:7:93",
                "nodeType": "VariableDeclaration",
                "scope": 28776,
                "src": "4286:15:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint256",
                  "typeString": "uint256"
                },
                "typeName": {
                  "id": 28768,
                  "name": "uint256",
                  "nodeType": "ElementaryTypeName",
                  "src": "4286:7:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28771,
                "mutability": "mutable",
                "name": "resultTimestamp",
                "nameLocation": "4319:15:93",
                "nodeType": "VariableDeclaration",
                "scope": 28776,
                "src": "4312:22:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint32",
                  "typeString": "uint32"
                },
                "typeName": {
                  "id": 28770,
                  "name": "uint32",
                  "nodeType": "ElementaryTypeName",
                  "src": "4312:6:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint32",
                    "typeString": "uint32"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28773,
                "mutability": "mutable",
                "name": "drTxHash",
                "nameLocation": "4353:8:93",
                "nodeType": "VariableDeclaration",
                "scope": 28776,
                "src": "4345:16:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes32",
                  "typeString": "bytes32"
                },
                "typeName": {
                  "id": 28772,
                  "name": "bytes32",
                  "nodeType": "ElementaryTypeName",
                  "src": "4345:7:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 28775,
                "mutability": "mutable",
                "name": "resultCborBytes",
                "nameLocation": "4378:15:93",
                "nodeType": "VariableDeclaration",
                "scope": 28776,
                "src": "4372:21:93",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes_storage_ptr",
                  "typeString": "bytes"
                },
                "typeName": {
                  "id": 28774,
                  "name": "bytes",
                  "nodeType": "ElementaryTypeName",
                  "src": "4372:5:93",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_storage_ptr",
                    "typeString": "bytes"
                  }
                },
                "visibility": "internal"
              }
            ],
            "name": "BatchResultLegacy",
            "nameLocation": "4257:17:93",
            "nodeType": "StructDefinition",
            "scope": 28786,
            "src": "4250:151:93",
            "visibility": "public"
          },
          {
            "functionSelector": "06eb2c42",
            "id": 28785,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "reportResultBatch",
            "nameLocation": "4416:17:93",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 28781,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28780,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28785,
                  "src": "4434:28:93",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_struct$_BatchResultLegacy_$28776_calldata_ptr_$dyn_calldata_ptr",
                    "typeString": "struct IWitOracleLegacy.BatchResultLegacy[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 28778,
                      "nodeType": "UserDefinedTypeName",
                      "pathNode": {
                        "id": 28777,
                        "name": "BatchResultLegacy",
                        "nameLocations": [
                          "4434:17:93"
                        ],
                        "nodeType": "IdentifierPath",
                        "referencedDeclaration": 28776,
                        "src": "4434:17:93"
                      },
                      "referencedDeclaration": 28776,
                      "src": "4434:17:93",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_BatchResultLegacy_$28776_storage_ptr",
                        "typeString": "struct IWitOracleLegacy.BatchResultLegacy"
                      }
                    },
                    "id": 28779,
                    "nodeType": "ArrayTypeName",
                    "src": "4434:19:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_struct$_BatchResultLegacy_$28776_storage_$dyn_storage_ptr",
                      "typeString": "struct IWitOracleLegacy.BatchResultLegacy[]"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4433:30:93"
            },
            "returnParameters": {
              "id": 28784,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 28783,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 28785,
                  "src": "4482:7:93",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 28782,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4482:7:93",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4481:9:93"
            },
            "scope": 28786,
            "src": "4407:84:93",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          }
        ],
        "scope": 28787,
        "src": "192:4302:93",
        "usedErrors": [],
        "usedEvents": [
          28620
        ]
      }
    ],
    "src": "35:4461:93"
  },
  "compiler": {
    "name": "solc",
    "version": "0.8.30+commit.73712a01.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.4.16",
  "updatedAt": "2025-10-15T14:34:45.923Z",
  "devdoc": {
    "kind": "dev",
    "methods": {
      "estimateBaseFee(uint256,bytes32)": {
        "details": "Fails if the RAD hash was not previously verified on the WitOracleRadonRegistry registry.",
        "params": {
          "gasPrice": "Expected gas price to pay upon posting the data request.",
          "radHash": "The RAD hash of the data request to be solved by Witnet."
        }
      },
      "estimateBaseFee(uint256,uint16)": {
        "details": "Underestimates if the size of returned data is greater than `resultMaxSize`. ",
        "params": {
          "gasPrice": "Expected gas price to pay upon posting the data request.",
          "resultMaxSize": "Maximum expected size of returned data (in bytes).  "
        }
      }
    },
    "version": 1
  },
  "userdoc": {
    "kind": "user",
    "methods": {
      "estimateBaseFee(uint256,bytes32)": {
        "notice": "Estimate the minimum reward required for posting a data request."
      },
      "estimateBaseFee(uint256,uint16)": {
        "notice": "Estimate the minimum reward required for posting a data request."
      },
      "getQueryResponseStatus(uint256)": {
        "notice": "Returns query's result current status from a requester's point of view:- 0 => Void: the query is either non-existent or deleted;- 1 => Awaiting: the query has not yet been reported;- 2 => Ready: the query response was finalized, and contains a result with no erros.- 3 => Error: the query response was finalized, and contains a result with errors.- 4 => Finalizing: some result to the query has been reported, but cannot yet be considered finalized.- 5 => Delivered: at least one response, either successful or with errors, was delivered to the requesting contract."
      },
      "getQueryResultCborBytes(uint256)": {
        "notice": "Retrieves the CBOR-encoded buffer containing the Witnet-provided result to the given query."
      },
      "getQueryResultError(uint256)": {
        "notice": "Gets error code identifying some possible failure on the resolution of the given query."
      }
    },
    "version": 1
  }
}