witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
911 lines • 39.9 kB
JSON
{
"contractName": "IWitOracleRequest",
"abi": [
{
"inputs": [],
"name": "bytecode",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "radHash",
"outputs": [
{
"internalType": "Witnet.RadonHash",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRadonReducers",
"outputs": [
{
"components": [
{
"internalType": "enum Witnet.RadonReduceOpcodes",
"name": "opcode",
"type": "uint8"
},
{
"components": [
{
"internalType": "enum Witnet.RadonFilterOpcodes",
"name": "opcode",
"type": "uint8"
},
{
"internalType": "bytes",
"name": "cborArgs",
"type": "bytes"
}
],
"internalType": "struct Witnet.RadonFilter[]",
"name": "filters",
"type": "tuple[]"
}
],
"internalType": "struct Witnet.RadonReducer",
"name": "aggregateStage",
"type": "tuple"
},
{
"components": [
{
"internalType": "enum Witnet.RadonReduceOpcodes",
"name": "opcode",
"type": "uint8"
},
{
"components": [
{
"internalType": "enum Witnet.RadonFilterOpcodes",
"name": "opcode",
"type": "uint8"
},
{
"internalType": "bytes",
"name": "cborArgs",
"type": "bytes"
}
],
"internalType": "struct Witnet.RadonFilter[]",
"name": "filters",
"type": "tuple[]"
}
],
"internalType": "struct Witnet.RadonReducer",
"name": "tallyStage",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "getRadonRetrievalByIndex",
"outputs": [
{
"components": [
{
"internalType": "uint8",
"name": "argsCount",
"type": "uint8"
},
{
"internalType": "enum Witnet.RadonRetrievalMethods",
"name": "method",
"type": "uint8"
},
{
"internalType": "enum Witnet.RadonDataTypes",
"name": "dataType",
"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": "radonScript",
"type": "bytes"
}
],
"internalType": "struct Witnet.RadonRetrieval",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRadonRetrievals",
"outputs": [
{
"components": [
{
"internalType": "uint8",
"name": "argsCount",
"type": "uint8"
},
{
"internalType": "enum Witnet.RadonRetrievalMethods",
"name": "method",
"type": "uint8"
},
{
"internalType": "enum Witnet.RadonDataTypes",
"name": "dataType",
"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": "radonScript",
"type": "bytes"
}
],
"internalType": "struct Witnet.RadonRetrieval[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getResultDataType",
"outputs": [
{
"internalType": "enum Witnet.RadonDataTypes",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"bytecode\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRadonReducers\",\"outputs\":[{\"components\":[{\"internalType\":\"enum Witnet.RadonReduceOpcodes\",\"name\":\"opcode\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"enum Witnet.RadonFilterOpcodes\",\"name\":\"opcode\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"cborArgs\",\"type\":\"bytes\"}],\"internalType\":\"struct Witnet.RadonFilter[]\",\"name\":\"filters\",\"type\":\"tuple[]\"}],\"internalType\":\"struct Witnet.RadonReducer\",\"name\":\"aggregateStage\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum Witnet.RadonReduceOpcodes\",\"name\":\"opcode\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"enum Witnet.RadonFilterOpcodes\",\"name\":\"opcode\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"cborArgs\",\"type\":\"bytes\"}],\"internalType\":\"struct Witnet.RadonFilter[]\",\"name\":\"filters\",\"type\":\"tuple[]\"}],\"internalType\":\"struct Witnet.RadonReducer\",\"name\":\"tallyStage\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getRadonRetrievalByIndex\",\"outputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"argsCount\",\"type\":\"uint8\"},{\"internalType\":\"enum Witnet.RadonRetrievalMethods\",\"name\":\"method\",\"type\":\"uint8\"},{\"internalType\":\"enum Witnet.RadonDataTypes\",\"name\":\"dataType\",\"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\":\"radonScript\",\"type\":\"bytes\"}],\"internalType\":\"struct Witnet.RadonRetrieval\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRadonRetrievals\",\"outputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"argsCount\",\"type\":\"uint8\"},{\"internalType\":\"enum Witnet.RadonRetrievalMethods\",\"name\":\"method\",\"type\":\"uint8\"},{\"internalType\":\"enum Witnet.RadonDataTypes\",\"name\":\"dataType\",\"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\":\"radonScript\",\"type\":\"bytes\"}],\"internalType\":\"struct Witnet.RadonRetrieval[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getResultDataType\",\"outputs\":[{\"internalType\":\"enum Witnet.RadonDataTypes\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"radHash\",\"outputs\":[{\"internalType\":\"Witnet.RadonHash\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"bytecode()\":{\"notice\":\"Returns the Witnet-compliant RAD bytecode for the data request (i.e. Radon Request) contained within this WitOracleRequest.\"},\"getRadonReducers()\":{\"notice\":\"Returns the filters and reducing functions to be applied by witnessing nodes on the Witnet blockchain both at the: - Aggregate stage: when aggregating data extracted from the public data sources (i.e. Radon Retrievals). - Tally stage: when aggregating values revealed by witnesses.\"},\"getRadonRetrievalByIndex(uint256)\":{\"notice\":\"Returns metadata concerning the data source specified by the given index.\"},\"getRadonRetrievals()\":{\"notice\":\"Returns the array of one or more data sources (i.e. Radon Retrievals) that compose this WitOracleRequest.\"},\"getResultDataType()\":{\"notice\":\"Returns the expected data type produced by successful resolutions of the Witnet-compliant data request contained within this WitOracleRequest.\"},\"radHash()\":{\"notice\":\"Returns the Witnet-compliant RAD hash of the data request (i.e. Radon Request) contained within this WitOracleRequest. \"},\"version()\":{\"notice\":\"If built out of an upgradable factory, or template, returns the SemVer tag of the actual implementation version at the time when this WitOracleRequest got built.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/legacy/IWitOracleRequest.sol\":\"IWitOracleRequest\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/legacy/IWitOracleRequest.sol\":{\"keccak256\":\"0x0fb3f0ba03f4f7a0214ecb36df26525564cf51a8a2176cba92c185af8a1d419e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://340b7bdb92c3259519fe120eb3061b393e7a5e9c1b576a2fe4eab020af466b64\",\"dweb:/ipfs/QmRt4wMX9WdxFwfdFMUZ3zKMAW1grS7qLk1x1PDMJdEAVU\"]},\"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 \"../../libs/Witnet.sol\";\r\n\r\ninterface IWitOracleRequest {\r\n\r\n /// Returns the Witnet-compliant RAD bytecode for the data request (i.e. Radon Request) \r\n /// contained within this WitOracleRequest.\r\n function bytecode() external view returns (bytes memory);\r\n\r\n /// Returns the Witnet-compliant RAD hash of the data request (i.e. Radon Request) \r\n /// contained within this WitOracleRequest. \r\n function radHash() external view returns (Witnet.RadonHash);\r\n\r\n /// Returns the filters and reducing functions to be applied by witnessing nodes \r\n /// on the Witnet blockchain both at the:\r\n /// - Aggregate stage: when aggregating data extracted from the public \r\n /// data sources (i.e. Radon Retrievals).\r\n /// - Tally stage: when aggregating values revealed by witnesses.\r\n function getRadonReducers() external view returns (\r\n Witnet.RadonReducer memory aggregateStage,\r\n Witnet.RadonReducer memory tallyStage\r\n );\r\n\r\n \r\n /// Returns metadata concerning the data source specified by the given index.\r\n function getRadonRetrievalByIndex(uint256) external view returns (Witnet.RadonRetrieval memory);\r\n\r\n /// Returns the array of one or more data sources (i.e. Radon Retrievals) \r\n /// that compose this WitOracleRequest.\r\n function getRadonRetrievals() external view returns (Witnet.RadonRetrieval[] memory);\r\n\r\n /// Returns the expected data type produced by successful resolutions of the \r\n /// Witnet-compliant data request contained within this WitOracleRequest.\r\n function getResultDataType() external view returns (Witnet.RadonDataTypes);\r\n\r\n /// If built out of an upgradable factory, or template, returns the SemVer tag of \r\n /// the actual implementation version at the time when this WitOracleRequest got built.\r\n function version() external view returns (string memory);\r\n}\r\n",
"sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\legacy\\IWitOracleRequest.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/legacy/IWitOracleRequest.sol",
"exportedSymbols": {
"Bech32": [
31372
],
"IWitOracleRequest": [
28922
],
"Secp256k1": [
32535
],
"Witnet": [
40741
],
"WitnetBuffer": [
42631
],
"WitnetCBOR": [
44174
]
},
"id": 28923,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 28867,
"literals": [
"solidity",
">=",
"0.8",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:31:95"
},
{
"absolutePath": "project:/contracts/libs/Witnet.sol",
"file": "../../libs/Witnet.sol",
"id": 28868,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 28923,
"sourceUnit": 40742,
"src": "70:31:95",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IWitOracleRequest",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 28922,
"linearizedBaseContracts": [
28922
],
"name": "IWitOracleRequest",
"nameLocation": "115:17:95",
"nodeType": "ContractDefinition",
"nodes": [
{
"documentation": {
"id": 28869,
"nodeType": "StructuredDocumentation",
"src": "142:137:95",
"text": "Returns the Witnet-compliant RAD bytecode for the data request (i.e. Radon Request) \n contained within this WitOracleRequest."
},
"functionSelector": "f0940002",
"id": 28874,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "bytecode",
"nameLocation": "294:8:95",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28870,
"nodeType": "ParameterList",
"parameters": [],
"src": "302:2:95"
},
"returnParameters": {
"id": 28873,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28872,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28874,
"src": "328:12:95",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 28871,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "328:5:95",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "327:14:95"
},
"scope": 28922,
"src": "285:57:95",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 28875,
"nodeType": "StructuredDocumentation",
"src": "350:133:95",
"text": "Returns the Witnet-compliant RAD hash of the data request (i.e. Radon Request) \n contained within this WitOracleRequest. "
},
"functionSelector": "1eef9052",
"id": 28881,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "radHash",
"nameLocation": "498:7:95",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28876,
"nodeType": "ParameterList",
"parameters": [],
"src": "505:2:95"
},
"returnParameters": {
"id": 28880,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28879,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28881,
"src": "531:16:95",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
},
"typeName": {
"id": 28878,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28877,
"name": "Witnet.RadonHash",
"nameLocations": [
"531:6:95",
"538:9:95"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37153,
"src": "531:16:95"
},
"referencedDeclaration": 37153,
"src": "531:16:95",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
}
},
"visibility": "internal"
}
],
"src": "530:18:95"
},
"scope": 28922,
"src": "489:60:95",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 28882,
"nodeType": "StructuredDocumentation",
"src": "557:342:95",
"text": "Returns the filters and reducing functions to be applied by witnessing nodes \n on the Witnet blockchain both at the:\n - Aggregate stage: when aggregating data extracted from the public \n data sources (i.e. Radon Retrievals).\n - Tally stage: when aggregating values revealed by witnesses."
},
"functionSelector": "94d6c9bf",
"id": 28891,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getRadonReducers",
"nameLocation": "914:16:95",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28883,
"nodeType": "ParameterList",
"parameters": [],
"src": "930:2:95"
},
"returnParameters": {
"id": 28890,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28886,
"mutability": "mutable",
"name": "aggregateStage",
"nameLocation": "997:14:95",
"nodeType": "VariableDeclaration",
"scope": 28891,
"src": "970:41:95",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonReducer_$37748_memory_ptr",
"typeString": "struct Witnet.RadonReducer"
},
"typeName": {
"id": 28885,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28884,
"name": "Witnet.RadonReducer",
"nameLocations": [
"970:6:95",
"977:12:95"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37748,
"src": "970:19:95"
},
"referencedDeclaration": 37748,
"src": "970:19:95",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonReducer_$37748_storage_ptr",
"typeString": "struct Witnet.RadonReducer"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28889,
"mutability": "mutable",
"name": "tallyStage",
"nameLocation": "1053:10:95",
"nodeType": "VariableDeclaration",
"scope": 28891,
"src": "1026:37:95",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonReducer_$37748_memory_ptr",
"typeString": "struct Witnet.RadonReducer"
},
"typeName": {
"id": 28888,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28887,
"name": "Witnet.RadonReducer",
"nameLocations": [
"1026:6:95",
"1033:12:95"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37748,
"src": "1026:19:95"
},
"referencedDeclaration": 37748,
"src": "1026:19:95",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonReducer_$37748_storage_ptr",
"typeString": "struct Witnet.RadonReducer"
}
},
"visibility": "internal"
}
],
"src": "955:119:95"
},
"scope": 28922,
"src": "905:170:95",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 28892,
"nodeType": "StructuredDocumentation",
"src": "1089:77:95",
"text": "Returns metadata concerning the data source specified by the given index."
},
"functionSelector": "341e11c8",
"id": 28900,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getRadonRetrievalByIndex",
"nameLocation": "1181:24:95",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28895,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28894,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28900,
"src": "1206:7:95",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 28893,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1206:7:95",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1205:9:95"
},
"returnParameters": {
"id": 28899,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28898,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28900,
"src": "1238:28:95",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonRetrieval_$37795_memory_ptr",
"typeString": "struct Witnet.RadonRetrieval"
},
"typeName": {
"id": 28897,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28896,
"name": "Witnet.RadonRetrieval",
"nameLocations": [
"1238:6:95",
"1245:14:95"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37795,
"src": "1238:21:95"
},
"referencedDeclaration": 37795,
"src": "1238:21:95",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonRetrieval_$37795_storage_ptr",
"typeString": "struct Witnet.RadonRetrieval"
}
},
"visibility": "internal"
}
],
"src": "1237:30:95"
},
"scope": 28922,
"src": "1172:96:95",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 28901,
"nodeType": "StructuredDocumentation",
"src": "1276:119:95",
"text": "Returns the array of one or more data sources (i.e. Radon Retrievals) \n that compose this WitOracleRequest."
},
"functionSelector": "033ac336",
"id": 28908,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getRadonRetrievals",
"nameLocation": "1410:18:95",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28902,
"nodeType": "ParameterList",
"parameters": [],
"src": "1428:2:95"
},
"returnParameters": {
"id": 28907,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28906,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28908,
"src": "1454:30:95",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_struct$_RadonRetrieval_$37795_memory_ptr_$dyn_memory_ptr",
"typeString": "struct Witnet.RadonRetrieval[]"
},
"typeName": {
"baseType": {
"id": 28904,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28903,
"name": "Witnet.RadonRetrieval",
"nameLocations": [
"1454:6:95",
"1461:14:95"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37795,
"src": "1454:21:95"
},
"referencedDeclaration": 37795,
"src": "1454:21:95",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonRetrieval_$37795_storage_ptr",
"typeString": "struct Witnet.RadonRetrieval"
}
},
"id": 28905,
"nodeType": "ArrayTypeName",
"src": "1454:23:95",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_struct$_RadonRetrieval_$37795_storage_$dyn_storage_ptr",
"typeString": "struct Witnet.RadonRetrieval[]"
}
},
"visibility": "internal"
}
],
"src": "1453:32:95"
},
"scope": 28922,
"src": "1401:85:95",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 28909,
"nodeType": "StructuredDocumentation",
"src": "1494:156:95",
"text": "Returns the expected data type produced by successful resolutions of the \n Witnet-compliant data request contained within this WitOracleRequest."
},
"functionSelector": "db705d68",
"id": 28915,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getResultDataType",
"nameLocation": "1665:17:95",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28910,
"nodeType": "ParameterList",
"parameters": [],
"src": "1682:2:95"
},
"returnParameters": {
"id": 28914,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28913,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28915,
"src": "1708:21:95",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_RadonDataTypes_$37720",
"typeString": "enum Witnet.RadonDataTypes"
},
"typeName": {
"id": 28912,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28911,
"name": "Witnet.RadonDataTypes",
"nameLocations": [
"1708:6:95",
"1715:14:95"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37720,
"src": "1708:21:95"
},
"referencedDeclaration": 37720,
"src": "1708:21:95",
"typeDescriptions": {
"typeIdentifier": "t_enum$_RadonDataTypes_$37720",
"typeString": "enum Witnet.RadonDataTypes"
}
},
"visibility": "internal"
}
],
"src": "1707:23:95"
},
"scope": 28922,
"src": "1656:75:95",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 28916,
"nodeType": "StructuredDocumentation",
"src": "1739:175:95",
"text": "If built out of an upgradable factory, or template, returns the SemVer tag of \n the actual implementation version at the time when this WitOracleRequest got built."
},
"functionSelector": "54fd4d50",
"id": 28921,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "version",
"nameLocation": "1929:7:95",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28917,
"nodeType": "ParameterList",
"parameters": [],
"src": "1936:2:95"
},
"returnParameters": {
"id": 28920,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28919,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28921,
"src": "1962:13:95",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 28918,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1962:6:95",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "1961:15:95"
},
"scope": 28922,
"src": "1920:57:95",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 28923,
"src": "105:1875:95",
"usedErrors": [],
"usedEvents": []
}
],
"src": "35:1947:95"
},
"compiler": {
"name": "solc",
"version": "0.8.30+commit.73712a01.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.16",
"updatedAt": "2025-10-15T14:34:45.926Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"bytecode()": {
"notice": "Returns the Witnet-compliant RAD bytecode for the data request (i.e. Radon Request) contained within this WitOracleRequest."
},
"getRadonReducers()": {
"notice": "Returns the filters and reducing functions to be applied by witnessing nodes on the Witnet blockchain both at the: - Aggregate stage: when aggregating data extracted from the public data sources (i.e. Radon Retrievals). - Tally stage: when aggregating values revealed by witnesses."
},
"getRadonRetrievalByIndex(uint256)": {
"notice": "Returns metadata concerning the data source specified by the given index."
},
"getRadonRetrievals()": {
"notice": "Returns the array of one or more data sources (i.e. Radon Retrievals) that compose this WitOracleRequest."
},
"getResultDataType()": {
"notice": "Returns the expected data type produced by successful resolutions of the Witnet-compliant data request contained within this WitOracleRequest."
},
"radHash()": {
"notice": "Returns the Witnet-compliant RAD hash of the data request (i.e. Radon Request) contained within this WitOracleRequest. "
},
"version()": {
"notice": "If built out of an upgradable factory, or template, returns the SemVer tag of the actual implementation version at the time when this WitOracleRequest got built."
}
},
"version": 1
}
}