witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
1,233 lines • 52.5 kB
JSON
{
"contractName": "IWitOracleRadonRegistryLegacy",
"abi": [
{
"inputs": [
{
"internalType": "Witnet.RadonHash",
"name": "",
"type": "bytes32"
}
],
"name": "bytecodeOf",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "Witnet.RadonHash",
"name": "radonRequestHash",
"type": "bytes32"
}
],
"name": "lookupRadonRequest",
"outputs": [
{
"components": [
{
"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": "retrieve",
"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": "aggregate",
"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": "tally",
"type": "tuple"
}
],
"internalType": "struct Witnet.RadonRequest",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "Witnet.RadonHash",
"name": "radHash",
"type": "bytes32"
}
],
"name": "lookupRadonRequestAggregator",
"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": "",
"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": "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": "Witnet.RadonHash",
"name": "radHash",
"type": "bytes32"
}
],
"name": "lookupRadonRequestTally",
"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": "",
"type": "tuple"
}
],
"stateMutability": "view",
"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"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"Witnet.RadonHash\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"bytecodeOf\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"Witnet.RadonHash\",\"name\":\"radonRequestHash\",\"type\":\"bytes32\"}],\"name\":\"lookupRadonRequest\",\"outputs\":[{\"components\":[{\"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\":\"retrieve\",\"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\":\"aggregate\",\"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\":\"tally\",\"type\":\"tuple\"}],\"internalType\":\"struct Witnet.RadonRequest\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"Witnet.RadonHash\",\"name\":\"radHash\",\"type\":\"bytes32\"}],\"name\":\"lookupRadonRequestAggregator\",\"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\":\"\",\"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\":\"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\":\"Witnet.RadonHash\",\"name\":\"radHash\",\"type\":\"bytes32\"}],\"name\":\"lookupRadonRequestTally\",\"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\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"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\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/legacy/IWitOracleRadonRegistryLegacy.sol\":\"IWitOracleRadonRegistryLegacy\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/legacy/IWitOracleRadonRegistryLegacy.sol\":{\"keccak256\":\"0x65bdae6efdcc6418685dd0e9064b06239c4ef336a41eaf74a7a39edbf51c0db0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://71fb7cafd03f88505935386207c259cf727de06164fd4a4f2c0784b6b0cd0ea5\",\"dweb:/ipfs/QmRfbjp6fpGcwGkam9viR9RNR1H6GiEUKmKZSDBjump9q9\"]},\"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 IWitOracleRadonRegistryLegacy {\r\n\r\n function bytecodeOf(Witnet.RadonHash) external view returns (bytes memory);\r\n function lookupRadonRequest(Witnet.RadonHash radonRequestHash) external view returns (Witnet.RadonRequest memory);\r\n function lookupRadonRequestAggregator(Witnet.RadonHash radHash) external view returns (Witnet.RadonReducer memory);\r\n function lookupRadonRequestResultMaxSize(bytes32 radHash) external view returns (uint16);\r\n // function lookupRadonRequestRetrievalByIndex(Witnet.RadonHash radHash, uint256 index) external view returns (Witnet.RadonRetrieval memory);\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(Witnet.RadonHash radHash) external view returns (Witnet.RadonReducer memory);\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",
"sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\legacy\\IWitOracleRadonRegistryLegacy.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/legacy/IWitOracleRadonRegistryLegacy.sol",
"exportedSymbols": {
"Bech32": [
31372
],
"IWitOracleRadonRegistryLegacy": [
28865
],
"Secp256k1": [
32535
],
"Witnet": [
40741
],
"WitnetBuffer": [
42631
],
"WitnetCBOR": [
44174
]
},
"id": 28866,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 28788,
"literals": [
"solidity",
">=",
"0.8",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:31:94"
},
{
"absolutePath": "project:/contracts/libs/Witnet.sol",
"file": "../../libs/Witnet.sol",
"id": 28789,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 28866,
"sourceUnit": 40742,
"src": "70:31:94",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IWitOracleRadonRegistryLegacy",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 28865,
"linearizedBaseContracts": [
28865
],
"name": "IWitOracleRadonRegistryLegacy",
"nameLocation": "115:29:94",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "2ebf5d5c",
"id": 28797,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "bytecodeOf",
"nameLocation": "163:10:94",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28793,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28792,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28797,
"src": "174:16:94",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
},
"typeName": {
"id": 28791,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28790,
"name": "Witnet.RadonHash",
"nameLocations": [
"174:6:94",
"181:9:94"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37153,
"src": "174:16:94"
},
"referencedDeclaration": 37153,
"src": "174:16:94",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
}
},
"visibility": "internal"
}
],
"src": "173:18:94"
},
"returnParameters": {
"id": 28796,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28795,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28797,
"src": "215:12:94",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 28794,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "215:5:94",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "214:14:94"
},
"scope": 28865,
"src": "154:75:94",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "f0bd92d9",
"id": 28806,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "lookupRadonRequest",
"nameLocation": "244:18:94",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28801,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28800,
"mutability": "mutable",
"name": "radonRequestHash",
"nameLocation": "280:16:94",
"nodeType": "VariableDeclaration",
"scope": 28806,
"src": "263:33:94",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
},
"typeName": {
"id": 28799,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28798,
"name": "Witnet.RadonHash",
"nameLocations": [
"263:6:94",
"270:9:94"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37153,
"src": "263:16:94"
},
"referencedDeclaration": 37153,
"src": "263:16:94",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
}
},
"visibility": "internal"
}
],
"src": "262:35:94"
},
"returnParameters": {
"id": 28805,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28804,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28806,
"src": "321:26:94",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonRequest_$37774_memory_ptr",
"typeString": "struct Witnet.RadonRequest"
},
"typeName": {
"id": 28803,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28802,
"name": "Witnet.RadonRequest",
"nameLocations": [
"321:6:94",
"328:12:94"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37774,
"src": "321:19:94"
},
"referencedDeclaration": 37774,
"src": "321:19:94",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonRequest_$37774_storage_ptr",
"typeString": "struct Witnet.RadonRequest"
}
},
"visibility": "internal"
}
],
"src": "320:28:94"
},
"scope": 28865,
"src": "235:114:94",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "9f34df19",
"id": 28815,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "lookupRadonRequestAggregator",
"nameLocation": "364:28:94",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28810,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28809,
"mutability": "mutable",
"name": "radHash",
"nameLocation": "410:7:94",
"nodeType": "VariableDeclaration",
"scope": 28815,
"src": "393:24:94",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
},
"typeName": {
"id": 28808,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28807,
"name": "Witnet.RadonHash",
"nameLocations": [
"393:6:94",
"400:9:94"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37153,
"src": "393:16:94"
},
"referencedDeclaration": 37153,
"src": "393:16:94",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
}
},
"visibility": "internal"
}
],
"src": "392:26:94"
},
"returnParameters": {
"id": 28814,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28813,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28815,
"src": "442:26:94",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonReducer_$37748_memory_ptr",
"typeString": "struct Witnet.RadonReducer"
},
"typeName": {
"id": 28812,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28811,
"name": "Witnet.RadonReducer",
"nameLocations": [
"442:6:94",
"449:12:94"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37748,
"src": "442:19:94"
},
"referencedDeclaration": 37748,
"src": "442:19:94",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonReducer_$37748_storage_ptr",
"typeString": "struct Witnet.RadonReducer"
}
},
"visibility": "internal"
}
],
"src": "441:28:94"
},
"scope": 28865,
"src": "355:115:94",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "76b78a06",
"id": 28822,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "lookupRadonRequestResultMaxSize",
"nameLocation": "485:31:94",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28818,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28817,
"mutability": "mutable",
"name": "radHash",
"nameLocation": "525:7:94",
"nodeType": "VariableDeclaration",
"scope": 28822,
"src": "517:15:94",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 28816,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "517:7:94",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "516:17:94"
},
"returnParameters": {
"id": 28821,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28820,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28822,
"src": "557:6:94",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 28819,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "557:6:94",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "556:8:94"
},
"scope": 28865,
"src": "476:89:94",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "a83e942c",
"id": 28830,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "lookupRadonRequestSources",
"nameLocation": "727:25:94",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28825,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28824,
"mutability": "mutable",
"name": "radHash",
"nameLocation": "761:7:94",
"nodeType": "VariableDeclaration",
"scope": 28830,
"src": "753:15:94",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 28823,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "753:7:94",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "752:17:94"
},
"returnParameters": {
"id": 28829,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28828,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28830,
"src": "793:16:94",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
"id": 28826,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "793:7:94",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"id": 28827,
"nodeType": "ArrayTypeName",
"src": "793:9:94",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"visibility": "internal"
}
],
"src": "792:18:94"
},
"scope": 28865,
"src": "718:93:94",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "6ea3ebe4",
"id": 28837,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "lookupRadonRequestSourcesCount",
"nameLocation": "826:30:94",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28833,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28832,
"mutability": "mutable",
"name": "radHash",
"nameLocation": "865:7:94",
"nodeType": "VariableDeclaration",
"scope": 28837,
"src": "857:15:94",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 28831,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "857:7:94",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "856:17:94"
},
"returnParameters": {
"id": 28836,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28835,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28837,
"src": "897:4:94",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 28834,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "897:4:94",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "896:6:94"
},
"scope": 28865,
"src": "817:86:94",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "db4c6b21",
"id": 28846,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "lookupRadonRequestTally",
"nameLocation": "918:23:94",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28841,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28840,
"mutability": "mutable",
"name": "radHash",
"nameLocation": "959:7:94",
"nodeType": "VariableDeclaration",
"scope": 28846,
"src": "942:24:94",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
},
"typeName": {
"id": 28839,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28838,
"name": "Witnet.RadonHash",
"nameLocations": [
"942:6:94",
"949:9:94"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37153,
"src": "942:16:94"
},
"referencedDeclaration": 37153,
"src": "942:16:94",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
}
},
"visibility": "internal"
}
],
"src": "941:26:94"
},
"returnParameters": {
"id": 28845,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28844,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 28846,
"src": "991:26:94",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonReducer_$37748_memory_ptr",
"typeString": "struct Witnet.RadonReducer"
},
"typeName": {
"id": 28843,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28842,
"name": "Witnet.RadonReducer",
"nameLocations": [
"991:6:94",
"998:12:94"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37748,
"src": "991:19:94"
},
"referencedDeclaration": 37748,
"src": "991:19:94",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonReducer_$37748_storage_ptr",
"typeString": "struct Witnet.RadonReducer"
}
},
"visibility": "internal"
}
],
"src": "990:28:94"
},
"scope": 28865,
"src": "909:110:94",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "a4a7cecd",
"id": 28864,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "verifyRadonRequest",
"nameLocation": "1040:18:94",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28860,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28849,
"mutability": "mutable",
"name": "sources",
"nameLocation": "1092:7:94",
"nodeType": "VariableDeclaration",
"scope": 28864,
"src": "1073:26:94",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
"id": 28847,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1073:7:94",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"id": 28848,
"nodeType": "ArrayTypeName",
"src": "1073:9:94",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28851,
"mutability": "mutable",
"name": "aggregator",
"nameLocation": "1122:10:94",
"nodeType": "VariableDeclaration",
"scope": 28864,
"src": "1114:18:94",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 28850,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1114:7:94",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28853,
"mutability": "mutable",
"name": "tally",
"nameLocation": "1155:5:94",
"nodeType": "VariableDeclaration",
"scope": 28864,
"src": "1147:13:94",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 28852,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1147:7:94",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28855,
"mutability": "mutable",
"name": "resultMaxSize",
"nameLocation": "1182:13:94",
"nodeType": "VariableDeclaration",
"scope": 28864,
"src": "1175:20:94",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 28854,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "1175:6:94",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28859,
"mutability": "mutable",
"name": "args",
"nameLocation": "1230:4:94",
"nodeType": "VariableDeclaration",
"scope": 28864,
"src": "1210:24:94",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_array$_t_string_calldata_ptr_$dyn_calldata_ptr_$dyn_calldata_ptr",
"typeString": "string[][]"
},
"typeName": {
"baseType": {
"baseType": {
"id": 28856,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1210:6:94",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"id": 28857,
"nodeType": "ArrayTypeName",
"src": "1210:8:94",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
"typeString