UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

1,255 lines 127 kB
{ "contractName": "IWitnetRequestBytecodes", "abi": [ { "inputs": [ { "internalType": "bytes32", "name": "hash", "type": "bytes32" } ], "name": "UnknownRadonReducer", "type": "error" }, { "inputs": [ { "internalType": "bytes32", "name": "hash", "type": "bytes32" } ], "name": "UnknownRadonRequest", "type": "error" }, { "inputs": [ { "internalType": "bytes32", "name": "hash", "type": "bytes32" } ], "name": "UnknownRadonRetrieval", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "NewDataProvider", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "hash", "type": "bytes32" } ], "name": "NewRadHash", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "hash", "type": "bytes32" } ], "name": "NewRadonReducerHash", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "hash", "type": "bytes32" } ], "name": "NewRadonRetrievalHash", "type": "event" }, { "inputs": [ { "internalType": "bytes32", "name": "radHash", "type": "bytes32" } ], "name": "bytecodeOf", "outputs": [ { "internalType": "bytes", "name": "", "type": "bytes" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "radBytecode", "type": "bytes" }, { "components": [ { "internalType": "uint8", "name": "committeeSize", "type": "uint8" }, { "internalType": "uint64", "name": "witnessingFeeNanoWit", "type": "uint64" } ], "internalType": "struct WitnetV2.RadonSLA", "name": "sla", "type": "tuple" } ], "name": "bytecodeOf", "outputs": [ { "internalType": "bytes", "name": "", "type": "bytes" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "radHash", "type": "bytes32" }, { "components": [ { "internalType": "uint8", "name": "committeeSize", "type": "uint8" }, { "internalType": "uint64", "name": "witnessingFeeNanoWit", "type": "uint64" } ], "internalType": "struct WitnetV2.RadonSLA", "name": "sla", "type": "tuple" } ], "name": "bytecodeOf", "outputs": [ { "internalType": "bytes", "name": "", "type": "bytes" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "hashOf", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "lookupDataProvider", "outputs": [ { "internalType": "string", "name": "", "type": "string" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "authority", "type": "string" } ], "name": "lookupDataProviderIndex", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "index", "type": "uint256" }, { "internalType": "uint256", "name": "offset", "type": "uint256" }, { "internalType": "uint256", "name": "length", "type": "uint256" } ], "name": "lookupDataProviderSources", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "hash", "type": "bytes32" } ], "name": "lookupRadonReducer", "outputs": [ { "components": [ { "internalType": "enum Witnet.RadonReducerOpcodes", "name": "opcode", "type": "uint8" }, { "components": [ { "internalType": "enum Witnet.RadonFilterOpcodes", "name": "opcode", "type": "uint8" }, { "internalType": "bytes", "name": "args", "type": "bytes" } ], "internalType": "struct Witnet.RadonFilter[]", "name": "filters", "type": "tuple[]" } ], "internalType": "struct Witnet.RadonReducer", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "hash", "type": "bytes32" } ], "name": "lookupRadonRetrieval", "outputs": [ { "components": [ { "internalType": "uint8", "name": "argsCount", "type": "uint8" }, { "internalType": "enum Witnet.RadonDataRequestMethods", "name": "method", "type": "uint8" }, { "internalType": "enum Witnet.RadonDataTypes", "name": "resultDataType", "type": "uint8" }, { "internalType": "string", "name": "url", "type": "string" }, { "internalType": "string", "name": "body", "type": "string" }, { "internalType": "string[2][]", "name": "headers", "type": "string[2][]" }, { "internalType": "bytes", "name": "script", "type": "bytes" } ], "internalType": "struct Witnet.RadonRetrieval", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "hash", "type": "bytes32" } ], "name": "lookupRadonRetrievalArgsCount", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "hash", "type": "bytes32" } ], "name": "lookupRadonRetrievalResultDataType", "outputs": [ { "internalType": "enum Witnet.RadonDataTypes", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "radHash", "type": "bytes32" } ], "name": "lookupRadonRequestAggregator", "outputs": [ { "components": [ { "internalType": "enum Witnet.RadonReducerOpcodes", "name": "opcode", "type": "uint8" }, { "components": [ { "internalType": "enum Witnet.RadonFilterOpcodes", "name": "opcode", "type": "uint8" }, { "internalType": "bytes", "name": "args", "type": "bytes" } ], "internalType": "struct Witnet.RadonFilter[]", "name": "filters", "type": "tuple[]" } ], "internalType": "struct Witnet.RadonReducer", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "radHash", "type": "bytes32" } ], "name": "lookupRadonRequestResultMaxSize", "outputs": [ { "internalType": "uint16", "name": "", "type": "uint16" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "radHash", "type": "bytes32" } ], "name": "lookupRadonRequestResultDataType", "outputs": [ { "internalType": "enum Witnet.RadonDataTypes", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "radHash", "type": "bytes32" } ], "name": "lookupRadonRequestSources", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "radHash", "type": "bytes32" } ], "name": "lookupRadonRequestSourcesCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "radHash", "type": "bytes32" } ], "name": "lookupRadonRequestTally", "outputs": [ { "components": [ { "internalType": "enum Witnet.RadonReducerOpcodes", "name": "opcode", "type": "uint8" }, { "components": [ { "internalType": "enum Witnet.RadonFilterOpcodes", "name": "opcode", "type": "uint8" }, { "internalType": "bytes", "name": "args", "type": "bytes" } ], "internalType": "struct Witnet.RadonFilter[]", "name": "filters", "type": "tuple[]" } ], "internalType": "struct Witnet.RadonReducer", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "enum Witnet.RadonDataRequestMethods", "name": "requestMethod", "type": "uint8" }, { "internalType": "string", "name": "requestURL", "type": "string" }, { "internalType": "string", "name": "requestBody", "type": "string" }, { "internalType": "string[2][]", "name": "requestHeaders", "type": "string[2][]" }, { "internalType": "bytes", "name": "requestRadonScript", "type": "bytes" } ], "name": "verifyRadonRetrieval", "outputs": [ { "internalType": "bytes32", "name": "hash", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "enum Witnet.RadonReducerOpcodes", "name": "opcode", "type": "uint8" }, { "components": [ { "internalType": "enum Witnet.RadonFilterOpcodes", "name": "opcode", "type": "uint8" }, { "internalType": "bytes", "name": "args", "type": "bytes" } ], "internalType": "struct Witnet.RadonFilter[]", "name": "filters", "type": "tuple[]" } ], "internalType": "struct Witnet.RadonReducer", "name": "reducer", "type": "tuple" } ], "name": "verifyRadonReducer", "outputs": [ { "internalType": "bytes32", "name": "hash", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32[]", "name": "sources", "type": "bytes32[]" }, { "internalType": "bytes32", "name": "aggregator", "type": "bytes32" }, { "internalType": "bytes32", "name": "tally", "type": "bytes32" }, { "internalType": "uint16", "name": "resultMaxSize", "type": "uint16" }, { "internalType": "string[][]", "name": "args", "type": "string[][]" } ], "name": "verifyRadonRequest", "outputs": [ { "internalType": "bytes32", "name": "radHash", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "totalDataProviders", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"UnknownRadonReducer\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"UnknownRadonRequest\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"UnknownRadonRetrieval\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"NewDataProvider\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"NewRadHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"NewRadonReducerHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"NewRadonRetrievalHash\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"radHash\",\"type\":\"bytes32\"}],\"name\":\"bytecodeOf\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"radBytecode\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"committeeSize\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"witnessingFeeNanoWit\",\"type\":\"uint64\"}],\"internalType\":\"struct WitnetV2.RadonSLA\",\"name\":\"sla\",\"type\":\"tuple\"}],\"name\":\"bytecodeOf\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"radHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"committeeSize\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"witnessingFeeNanoWit\",\"type\":\"uint64\"}],\"internalType\":\"struct WitnetV2.RadonSLA\",\"name\":\"sla\",\"type\":\"tuple\"}],\"name\":\"bytecodeOf\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"hashOf\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"lookupDataProvider\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"authority\",\"type\":\"string\"}],\"name\":\"lookupDataProviderIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"lookupDataProviderSources\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"lookupRadonReducer\",\"outputs\":[{\"components\":[{\"internalType\":\"enum Witnet.RadonReducerOpcodes\",\"name\":\"opcode\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"enum Witnet.RadonFilterOpcodes\",\"name\":\"opcode\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"args\",\"type\":\"bytes\"}],\"internalType\":\"struct Witnet.RadonFilter[]\",\"name\":\"filters\",\"type\":\"tuple[]\"}],\"internalType\":\"struct Witnet.RadonReducer\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"radHash\",\"type\":\"bytes32\"}],\"name\":\"lookupRadonRequestAggregator\",\"outputs\":[{\"components\":[{\"internalType\":\"enum Witnet.RadonReducerOpcodes\",\"name\":\"opcode\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"enum Witnet.RadonFilterOpcodes\",\"name\":\"opcode\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"args\",\"type\":\"bytes\"}],\"internalType\":\"struct Witnet.RadonFilter[]\",\"name\":\"filters\",\"type\":\"tuple[]\"}],\"internalType\":\"struct Witnet.RadonReducer\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"radHash\",\"type\":\"bytes32\"}],\"name\":\"lookupRadonRequestResultDataType\",\"outputs\":[{\"internalType\":\"enum Witnet.RadonDataTypes\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"radHash\",\"type\":\"bytes32\"}],\"name\":\"lookupRadonRequestResultMaxSize\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"radHash\",\"type\":\"bytes32\"}],\"name\":\"lookupRadonRequestSources\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"radHash\",\"type\":\"bytes32\"}],\"name\":\"lookupRadonRequestSourcesCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"radHash\",\"type\":\"bytes32\"}],\"name\":\"lookupRadonRequestTally\",\"outputs\":[{\"components\":[{\"internalType\":\"enum Witnet.RadonReducerOpcodes\",\"name\":\"opcode\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"enum Witnet.RadonFilterOpcodes\",\"name\":\"opcode\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"args\",\"type\":\"bytes\"}],\"internalType\":\"struct Witnet.RadonFilter[]\",\"name\":\"filters\",\"type\":\"tuple[]\"}],\"internalType\":\"struct Witnet.RadonReducer\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"lookupRadonRetrieval\",\"outputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"argsCount\",\"type\":\"uint8\"},{\"internalType\":\"enum Witnet.RadonDataRequestMethods\",\"name\":\"method\",\"type\":\"uint8\"},{\"internalType\":\"enum Witnet.RadonDataTypes\",\"name\":\"resultDataType\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"url\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"body\",\"type\":\"string\"},{\"internalType\":\"string[2][]\",\"name\":\"headers\",\"type\":\"string[2][]\"},{\"internalType\":\"bytes\",\"name\":\"script\",\"type\":\"bytes\"}],\"internalType\":\"struct Witnet.RadonRetrieval\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"lookupRadonRetrievalArgsCount\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"lookupRadonRetrievalResultDataType\",\"outputs\":[{\"internalType\":\"enum Witnet.RadonDataTypes\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalDataProviders\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enum Witnet.RadonReducerOpcodes\",\"name\":\"opcode\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"enum Witnet.RadonFilterOpcodes\",\"name\":\"opcode\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"args\",\"type\":\"bytes\"}],\"internalType\":\"struct Witnet.RadonFilter[]\",\"name\":\"filters\",\"type\":\"tuple[]\"}],\"internalType\":\"struct Witnet.RadonReducer\",\"name\":\"reducer\",\"type\":\"tuple\"}],\"name\":\"verifyRadonReducer\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"sources\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes32\",\"name\":\"aggregator\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"tally\",\"type\":\"bytes32\"},{\"internalType\":\"uint16\",\"name\":\"resultMaxSize\",\"type\":\"uint16\"},{\"internalType\":\"string[][]\",\"name\":\"args\",\"type\":\"string[][]\"}],\"name\":\"verifyRadonRequest\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"radHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum Witnet.RadonDataRequestMethods\",\"name\":\"requestMethod\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"requestURL\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"requestBody\",\"type\":\"string\"},{\"internalType\":\"string[2][]\",\"name\":\"requestHeaders\",\"type\":\"string[2][]\"},{\"internalType\":\"bytes\",\"name\":\"requestRadonScript\",\"type\":\"bytes\"}],\"name\":\"verifyRadonRetrieval\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IWitnetRequestBytecodes.sol\":\"IWitnetRequestBytecodes\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitnetRequestBytecodes.sol\":{\"keccak256\":\"0x8da168bee9a78442216965976b1f29087f760f37dcb09337283242599ed1cbca\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e120623262ee0559913bdae56c0a7921147dfe08ada7ea81061b14e2fc38c5e1\",\"dweb:/ipfs/Qmbxe8XRrH6ZjJHiR6YYzcZV1jnSWwo9iBYz5r6GJ6To5G\"]},\"project:/contracts/libs/Witnet.sol\":{\"keccak256\":\"0x65a87375dd79d63a83fb454b7199b6c999bd59c50b3b59d521c5c4d45a7d3cc3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ca865b681d810c2fc5c3672ea6343c3bdf6fd71764ab824d25994744dc85866b\",\"dweb:/ipfs/QmPGcP3xGTNZfsQ9GSKdujNLRVs8dWDdubyUko1rbQqJNv\"]},\"project:/contracts/libs/WitnetBuffer.sol\":{\"keccak256\":\"0xa14570492eb5a313ddbacae0185c850ec99c67211eb33989a5e21d31bf06a150\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e83c11edb49cab6a767c0b685825bc22ece0d3d2897e0d54fe1923df5cc76ba5\",\"dweb:/ipfs/QmdLDgCc3tnKbgRrXwfNzsg6uUDirNmjvBB8V3iMmnD69a\"]},\"project:/contracts/libs/WitnetCBOR.sol\":{\"keccak256\":\"0xb346547ff731163beea2c657c52675cdf7936691d566a76a045577cf9c34ade0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6d4b5b6424a033584b41f1204d635db98fda9ca9bd2a614c9d82539a3e4e6529\",\"dweb:/ipfs/QmW6Qy3wWpzHSECYaCPaf9LWGfPqWDKVoP2kPSNNQu7LMQ\"]},\"project:/contracts/libs/WitnetV2.sol\":{\"keccak256\":\"0xb276a6da373bfbe9cd942dd7e59979cda898215d1e36ab3df95a6d6cc6ff770f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bc4890876b9bc64f501ccdd48408bb63724865cb2ce8d2057f6b318540adce7c\",\"dweb:/ipfs/QmPMHPdbCsKBavhiLcaDgQ9EjNSvwwzv8TKffotcCv1ctP\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\r\npragma solidity >=0.8.0 <0.9.0;\r\n\r\nimport \"../libs/WitnetV2.sol\";\r\n\r\ninterface IWitnetRequestBytecodes {\r\n\r\n error UnknownRadonRetrieval(bytes32 hash);\r\n error UnknownRadonReducer(bytes32 hash);\r\n error UnknownRadonRequest(bytes32 hash);\r\n\r\n event NewDataProvider(uint256 index);\r\n event NewRadonRetrievalHash(bytes32 hash);\r\n event NewRadonReducerHash(bytes32 hash);\r\n event NewRadHash(bytes32 hash);\r\n\r\n function bytecodeOf(bytes32 radHash) external view returns (bytes memory);\r\n function bytecodeOf(bytes32 radHash, WitnetV2.RadonSLA calldata sla) external view returns (bytes memory);\r\n function bytecodeOf(bytes calldata radBytecode, WitnetV2.RadonSLA calldata sla) external view returns (bytes memory);\r\n \r\n function hashOf(bytes calldata) external view returns (bytes32);\r\n\r\n function lookupDataProvider(uint256 index) external view returns (string memory, uint);\r\n function lookupDataProviderIndex(string calldata authority) external view returns (uint);\r\n function lookupDataProviderSources(uint256 index, uint256 offset, uint256 length) external view returns (bytes32[] memory);\r\n\r\n function lookupRadonReducer(bytes32 hash) external view returns (Witnet.RadonReducer memory);\r\n \r\n function lookupRadonRetrieval(bytes32 hash) external view returns (Witnet.RadonRetrieval memory);\r\n function lookupRadonRetrievalArgsCount(bytes32 hash) external view returns (uint8);\r\n function lookupRadonRetrievalResultDataType(bytes32 hash) external view returns (Witnet.RadonDataTypes);\r\n \r\n function lookupRadonRequestAggregator(bytes32 radHash) external view returns (Witnet.RadonReducer memory);\r\n function lookupRadonRequestResultMaxSize(bytes32 radHash) external view returns (uint16);\r\n function lookupRadonRequestResultDataType(bytes32 radHash) external view returns (Witnet.RadonDataTypes);\r\n function lookupRadonRequestSources(bytes32 radHash) external view returns (bytes32[] memory);\r\n function lookupRadonRequestSourcesCount(bytes32 radHash) external view returns (uint);\r\n function lookupRadonRequestTally(bytes32 radHash) external view returns (Witnet.RadonReducer memory);\r\n \r\n function verifyRadonRetrieval(\r\n Witnet.RadonDataRequestMethods requestMethod,\r\n string calldata requestURL,\r\n string calldata requestBody,\r\n string[2][] calldata requestHeaders,\r\n bytes calldata requestRadonScript\r\n ) external returns (bytes32 hash);\r\n \r\n function verifyRadonReducer(Witnet.RadonReducer calldata reducer)\r\n external returns (bytes32 hash);\r\n \r\n function verifyRadonRequest(\r\n bytes32[] calldata sources,\r\n bytes32 aggregator,\r\n bytes32 tally,\r\n uint16 resultMaxSize,\r\n string[][] calldata args\r\n ) external returns (bytes32 radHash);\r\n\r\n function totalDataProviders() external view returns (uint);\r\n}\r\n", "sourcePath": "C:\\Users\\guill\\github\\witnet\\witnet-solidity-bridge\\contracts\\interfaces\\IWitnetRequestBytecodes.sol", "ast": { "absolutePath": "project:/contracts/interfaces/IWitnetRequestBytecodes.sol", "exportedSymbols": { "IWitnetRequestBytecodes": [ 13979 ], "Witnet": [ 17557 ], "WitnetBuffer": [ 19191 ], "WitnetCBOR": [ 20734 ], "WitnetV2": [ 23640 ] }, "id": 13980, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 13760, "literals": [ "solidity", ">=", "0.8", ".0", "<", "0.9", ".0" ], "nodeType": "PragmaDirective", "src": "33:31:60" }, { "absolutePath": "project:/contracts/libs/WitnetV2.sol", "file": "../libs/WitnetV2.sol", "id": 13761, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 13980, "sourceUnit": 23641, "src": "68:30:60", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "canonicalName": "IWitnetRequestBytecodes", "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 13979, "linearizedBaseContracts": [ 13979 ], "name": "IWitnetRequestBytecodes", "nameLocation": "112:23:60", "nodeType": "ContractDefinition", "nodes": [ { "errorSelector": "d549c0ec", "id": 13765, "name": "UnknownRadonRetrieval", "nameLocation": "151:21:60", "nodeType": "ErrorDefinition", "parameters": { "id": 13764, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13763, "mutability": "mutable", "name": "hash", "nameLocation": "181:4:60", "nodeType": "VariableDeclaration", "scope": 13765, "src": "173:12:60", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 13762, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "173:7:60", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "172:14:60" }, "src": "145:42:60" }, { "errorSelector": "b0204329", "id": 13769, "name": "UnknownRadonReducer", "nameLocation": "199:19:60", "nodeType": "ErrorDefinition", "parameters": { "id": 13768, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13767, "mutability": "mutable", "name": "hash", "nameLocation": "227:4:60", "nodeType": "VariableDeclaration", "scope": 13769, "src": "219:12:60", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 13766, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "219:7:60", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "218:14:60" }, "src": "193:40:60" }, { "errorSelector": "110954d7", "id": 13773, "name": "UnknownRadonRequest", "nameLocation": "245:19:60", "nodeType": "ErrorDefinition", "parameters": { "id": 13772, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13771, "mutability": "mutable", "name": "hash", "nameLocation": "273:4:60", "nodeType": "VariableDeclaration", "scope": 13773, "src": "265:12:60", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 13770, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "265:7:60", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "264:14:60" }, "src": "239:40:60" }, { "anonymous": false, "eventSelector": "a4fe740e79dc153cbe8b39d7dbf854c096dc92c218efd9c6aaf63652435e76a1", "id": 13777, "name": "NewDataProvider", "nameLocation": "293:15:60", "nodeType": "EventDefinition", "parameters": { "id": 13776, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13775, "indexed": false, "mutability": "mutable", "name": "index", "nameLocation": "317:5:60", "nodeType": "VariableDeclaration", "scope": 13777, "src": "309:13:60", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 13774, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "309:7:60", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "308:15:60" }, "src": "287:37:60" }, { "anonymous": false, "eventSelector": "d4d6341509dbdeb3a349aa77cc95076376f8e1c84fd3d27e0081424b01909272", "id": 13781, "name": "NewRadonRetrievalHash", "nameLocation": "336:21:60", "nodeType": "EventDefinition", "parameters": { "id": 13780, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13779, "indexed": false, "mutability": "mutable", "name": "hash", "nameLocation": "366:4:60", "nodeType": "VariableDeclaration", "scope": 13781, "src": "358:12:60", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 13778, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "358:7:60", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "357:14:60" }, "src": "330:42:60" }, { "anonymous": false, "eventSelector": "eb8b5415ec9648a9403c5cce90965dfa18af4388f474323741018a06e231be82", "id": 13785, "name": "NewRadonReducerHash", "nameLocation": "384:19:60", "nodeType": "EventDefinition", "parameters": { "id": 13784, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13783, "indexed": false, "mutability": "mutable", "name": "hash", "nameLocation": "412:4:60", "nodeType": "VariableDeclaration", "scope": 13785, "src": "404:12:60", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 13782, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "404:7:60", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "403:14:60" }, "src": "378:40:60" }, { "anonymous": false, "eventSelector": "e8845fcb11242df46ec5ca06bf7d381c3c6e9cc4f110abacffc933558e8dd67d", "id": 13789, "name": "NewRadHash", "nameLocation": "430:10:60", "nodeType": "EventDefinition", "parameters": { "id": 13788, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13787, "indexed": false, "mutability": "mutable", "name": "hash", "nameLocation": "449:4:60", "nodeType": "VariableDeclaration", "scope": 13789, "src": "441:12:60", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 13786, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "441:7:60", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "440:14:60" }, "src": "424:31:60" }, { "functionSelector": "2ebf5d5c", "id": 13796, "implemented": false, "kind": "function", "modifiers": [], "name": "bytecodeOf", "nameLocation": "472:10:60", "nodeType": "FunctionDefinition", "parameters": { "id": 13792, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13791, "mutability": "mutable", "name": "radHash", "nameLocation": "491:7:60", "nodeType": "VariableDeclaration", "scope": 13796, "src": "483:15:60", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 13790, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "483:7:60", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "482:17:60" }, "returnParameters": { "id": 13795, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13794, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 13796, "src": "523:12:60", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 13793, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "523:5:60", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "522:14:60" }, "scope": 13979, "src": "463:74:60", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "f4f07e99", "id": 13806, "implemented": false, "kind": "function", "modifiers": [], "name": "bytecodeOf", "nameLocation": "552:10:60", "nodeType": "FunctionDefinition", "parameters": { "id": 13802, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13798, "mutability": "mutable", "name": "radHash", "nameLocation": "571:7:60", "nodeType": "VariableDeclaration", "scope": 13806, "src": "563:15:60", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 13797, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "563:7:60", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 13801, "mutability": "mutable", "name": "sla", "nameLocation": "607:3:60", "nodeType": "VariableDeclaration", "scope": 13806, "src": "580:30:60", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_struct$_RadonSLA_$23503_calldata_ptr", "typeString": "struct WitnetV2.RadonSLA" }, "typeName": { "id": 13800, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 13799, "name": "WitnetV2.RadonSLA", "nameLocations": [ "580:8:60", "589:8:60" ], "nodeType": "IdentifierPath", "referencedDeclaration": 23503, "src": "580:17:60" }, "referencedDeclaration": 23503, "src": "580:17:60", "typeDescriptions": { "typeIdentifier": "t_struct$_RadonSLA_$23503_storage_ptr", "typeString": "struct WitnetV2.RadonSLA" } }, "visibility": "internal" } ], "src": "562:49:60" }, "returnParameters": { "id": 13805, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13804, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "node