witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
1,171 lines • 76.1 kB
JSON
{
"contractName": "WitOracleRadonRegistryData",
"abi": [],
"metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"author\":\"The Witnet Foundation.\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Witnet Request Board base data model. \",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/data/WitOracleRadonRegistryData.sol\":\"WitOracleRadonRegistryData\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/data/WitOracleRadonRegistryData.sol\":{\"keccak256\":\"0x96a98990248a3e196567ffab81d96c575727ef026db84b7f1ee8df342eb13c34\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0a7e051f4e6b2f5a6b4c7e70d3450f77ad47cba0ebb9dd731181281661c89705\",\"dweb:/ipfs/Qmf7Zq7BoCAHiGZKgwkDdbkBEDa3gEhzqx8wDUCTtvRNkQ\"]},\"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\n/// @title Witnet Request Board base data model. \r\n/// @author The Witnet Foundation.\r\nabstract contract WitOracleRadonRegistryData {\r\n \r\n bytes32 private constant _WIT_BYTECODES_DATA_SLOTHASH =\r\n /* keccak256(\"io.witnet.bytecodes.data\") */\r\n 0x673359bdfd0124f9962355e7aed2d07d989b0d4bc4cbe2c94c295e0f81427dec;\r\n\r\n struct Storage {\r\n address base;\r\n address owner;\r\n address pendingOwner;\r\n Database db;\r\n }\r\n\r\n struct DataProvider {\r\n string authority;\r\n uint256 totalEndpoints;\r\n mapping (uint256 => bytes32) endpoints;\r\n }\r\n\r\n struct RadonRequestLegacyPacked {\r\n string[][] _args;\r\n bytes32 aggregateTallyHashes;\r\n bytes32 _radHash;\r\n Witnet.RadonDataTypes _resultDataType;\r\n uint16 _resultMaxSize;\r\n bytes32[] retrievals;\r\n bytes32 legacyTallyHash;\r\n }\r\n\r\n struct RadonRequestInfo {\r\n bytes15 crowdAttestationTallyHash;\r\n uint8 dataSourcesCount;\r\n bytes15 dataSourcesAggregatorHash;\r\n Witnet.RadonDataTypes resultDataType;\r\n }\r\n\r\n struct Database {\r\n bytes32 _reservedSlot0;\r\n bytes32 _reservedSlot1;\r\n mapping (bytes32 => Witnet.RadonReducer) reducers;\r\n mapping (bytes32 => Witnet.RadonRetrieval) retrievals;\r\n mapping (Witnet.RadonHash => RadonRequestLegacyPacked) legacyRequests;\r\n mapping (bytes32 => Witnet.RadonHash) rads;\r\n mapping (Witnet.RadonHash => bytes) radsBytecode;\r\n mapping (Witnet.RadonHash => RadonRequestInfo) radsInfo;\r\n }\r\n\r\n constructor() {\r\n // auto-initialize upon deployment\r\n __bytecodes().base = address(this);\r\n }\r\n\r\n\r\n // ================================================================================================================\r\n // --- Internal state-modifying functions -------------------------------------------------------------------------\r\n \r\n /// @dev Returns storage pointer to contents of 'Storage' struct.\r\n function __bytecodes()\r\n internal pure\r\n returns (Storage storage _ptr)\r\n {\r\n assembly {\r\n _ptr.slot := _WIT_BYTECODES_DATA_SLOTHASH\r\n }\r\n }\r\n\r\n /// @dev Returns storage pointer to contents of 'Database' struct.\r\n function __database()\r\n internal view\r\n returns (Database storage _ptr)\r\n {\r\n return __bytecodes().db;\r\n }\r\n\r\n function __requests(Witnet.RadonHash _radHash)\r\n internal view\r\n returns (RadonRequestLegacyPacked storage _ptr)\r\n {\r\n return __database().legacyRequests[_radHash];\r\n }\r\n}",
"sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\data\\WitOracleRadonRegistryData.sol",
"ast": {
"absolutePath": "project:/contracts/data/WitOracleRadonRegistryData.sol",
"exportedSymbols": {
"Bech32": [
31372
],
"Secp256k1": [
32535
],
"WitOracleRadonRegistryData": [
20253
],
"Witnet": [
40741
],
"WitnetBuffer": [
42631
],
"WitnetCBOR": [
44174
]
},
"id": 20254,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 20112,
"literals": [
"solidity",
">=",
"0.8",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:31:59"
},
{
"absolutePath": "project:/contracts/libs/Witnet.sol",
"file": "../libs/Witnet.sol",
"id": 20113,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 20254,
"sourceUnit": 40742,
"src": "70:28:59",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": true,
"baseContracts": [],
"canonicalName": "WitOracleRadonRegistryData",
"contractDependencies": [],
"contractKind": "contract",
"documentation": {
"id": 20114,
"nodeType": "StructuredDocumentation",
"src": "102:87:59",
"text": "@title Witnet Request Board base data model. \n @author The Witnet Foundation."
},
"fullyImplemented": true,
"id": 20253,
"linearizedBaseContracts": [
20253
],
"name": "WitOracleRadonRegistryData",
"nameLocation": "207:26:59",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 20117,
"mutability": "constant",
"name": "_WIT_BYTECODES_DATA_SLOTHASH",
"nameLocation": "272:28:59",
"nodeType": "VariableDeclaration",
"scope": 20253,
"src": "247:184:59",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20115,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "247:7:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": {
"hexValue": "307836373333353962646664303132346639393632333535653761656432643037643938396230643462633463626532633934633239356530663831343237646563",
"id": 20116,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "365:66:59",
"typeDescriptions": {
"typeIdentifier": "t_rational_46678951981879400639642737301436337472165334789432541772196806227380807040492_by_1",
"typeString": "int_const 4667...(69 digits omitted)...0492"
},
"value": "0x673359bdfd0124f9962355e7aed2d07d989b0d4bc4cbe2c94c295e0f81427dec"
},
"visibility": "private"
},
{
"canonicalName": "WitOracleRadonRegistryData.Storage",
"id": 20127,
"members": [
{
"constant": false,
"id": 20119,
"mutability": "mutable",
"name": "base",
"nameLocation": "474:4:59",
"nodeType": "VariableDeclaration",
"scope": 20127,
"src": "466:12:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20118,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "466:7:59",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20121,
"mutability": "mutable",
"name": "owner",
"nameLocation": "497:5:59",
"nodeType": "VariableDeclaration",
"scope": 20127,
"src": "489:13:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20120,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "489:7:59",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20123,
"mutability": "mutable",
"name": "pendingOwner",
"nameLocation": "521:12:59",
"nodeType": "VariableDeclaration",
"scope": 20127,
"src": "513:20:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20122,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "513:7:59",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20126,
"mutability": "mutable",
"name": "db",
"nameLocation": "553:2:59",
"nodeType": "VariableDeclaration",
"scope": 20127,
"src": "544:11:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Database_$20202_storage_ptr",
"typeString": "struct WitOracleRadonRegistryData.Database"
},
"typeName": {
"id": 20125,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20124,
"name": "Database",
"nameLocations": [
"544:8:59"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 20202,
"src": "544:8:59"
},
"referencedDeclaration": 20202,
"src": "544:8:59",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Database_$20202_storage_ptr",
"typeString": "struct WitOracleRadonRegistryData.Database"
}
},
"visibility": "internal"
}
],
"name": "Storage",
"nameLocation": "447:7:59",
"nodeType": "StructDefinition",
"scope": 20253,
"src": "440:123:59",
"visibility": "public"
},
{
"canonicalName": "WitOracleRadonRegistryData.DataProvider",
"id": 20136,
"members": [
{
"constant": false,
"id": 20129,
"mutability": "mutable",
"name": "authority",
"nameLocation": "610:9:59",
"nodeType": "VariableDeclaration",
"scope": 20136,
"src": "602:17:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
},
"typeName": {
"id": 20128,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "602:6:59",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20131,
"mutability": "mutable",
"name": "totalEndpoints",
"nameLocation": "638:14:59",
"nodeType": "VariableDeclaration",
"scope": 20136,
"src": "630:22:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20130,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "630:7:59",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20135,
"mutability": "mutable",
"name": "endpoints",
"nameLocation": "692:9:59",
"nodeType": "VariableDeclaration",
"scope": 20136,
"src": "663:38:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_bytes32_$",
"typeString": "mapping(uint256 => bytes32)"
},
"typeName": {
"id": 20134,
"keyName": "",
"keyNameLocation": "-1:-1:-1",
"keyType": {
"id": 20132,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "672:7:59",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Mapping",
"src": "663:28:59",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_bytes32_$",
"typeString": "mapping(uint256 => bytes32)"
},
"valueName": "",
"valueNameLocation": "-1:-1:-1",
"valueType": {
"id": 20133,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "683:7:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
},
"visibility": "internal"
}
],
"name": "DataProvider",
"nameLocation": "578:12:59",
"nodeType": "StructDefinition",
"scope": 20253,
"src": "571:138:59",
"visibility": "public"
},
{
"canonicalName": "WitOracleRadonRegistryData.RadonRequestLegacyPacked",
"id": 20155,
"members": [
{
"constant": false,
"id": 20140,
"mutability": "mutable",
"name": "_args",
"nameLocation": "771:5:59",
"nodeType": "VariableDeclaration",
"scope": 20155,
"src": "760:16:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_array$_t_string_storage_$dyn_storage_$dyn_storage_ptr",
"typeString": "string[][]"
},
"typeName": {
"baseType": {
"baseType": {
"id": 20137,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "760:6:59",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"id": 20138,
"nodeType": "ArrayTypeName",
"src": "760:8:59",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
"typeString": "string[]"
}
},
"id": 20139,
"nodeType": "ArrayTypeName",
"src": "760:10:59",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_array$_t_string_storage_$dyn_storage_$dyn_storage_ptr",
"typeString": "string[][]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20142,
"mutability": "mutable",
"name": "aggregateTallyHashes",
"nameLocation": "795:20:59",
"nodeType": "VariableDeclaration",
"scope": 20155,
"src": "787:28:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20141,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "787:7:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20144,
"mutability": "mutable",
"name": "_radHash",
"nameLocation": "834:8:59",
"nodeType": "VariableDeclaration",
"scope": 20155,
"src": "826:16:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20143,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "826:7:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20147,
"mutability": "mutable",
"name": "_resultDataType",
"nameLocation": "875:15:59",
"nodeType": "VariableDeclaration",
"scope": 20155,
"src": "853:37:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_RadonDataTypes_$37720",
"typeString": "enum Witnet.RadonDataTypes"
},
"typeName": {
"id": 20146,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20145,
"name": "Witnet.RadonDataTypes",
"nameLocations": [
"853:6:59",
"860:14:59"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37720,
"src": "853:21:59"
},
"referencedDeclaration": 37720,
"src": "853:21:59",
"typeDescriptions": {
"typeIdentifier": "t_enum$_RadonDataTypes_$37720",
"typeString": "enum Witnet.RadonDataTypes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20149,
"mutability": "mutable",
"name": "_resultMaxSize",
"nameLocation": "908:14:59",
"nodeType": "VariableDeclaration",
"scope": 20155,
"src": "901:21:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 20148,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "901:6:59",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20152,
"mutability": "mutable",
"name": "retrievals",
"nameLocation": "943:10:59",
"nodeType": "VariableDeclaration",
"scope": 20155,
"src": "933:20:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
"id": 20150,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "933:7:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"id": 20151,
"nodeType": "ArrayTypeName",
"src": "933:9:59",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20154,
"mutability": "mutable",
"name": "legacyTallyHash",
"nameLocation": "972:15:59",
"nodeType": "VariableDeclaration",
"scope": 20155,
"src": "964:23:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20153,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "964:7:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"name": "RadonRequestLegacyPacked",
"nameLocation": "724:24:59",
"nodeType": "StructDefinition",
"scope": 20253,
"src": "717:278:59",
"visibility": "public"
},
{
"canonicalName": "WitOracleRadonRegistryData.RadonRequestInfo",
"id": 20165,
"members": [
{
"constant": false,
"id": 20157,
"mutability": "mutable",
"name": "crowdAttestationTallyHash",
"nameLocation": "1046:25:59",
"nodeType": "VariableDeclaration",
"scope": 20165,
"src": "1038:33:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes15",
"typeString": "bytes15"
},
"typeName": {
"id": 20156,
"name": "bytes15",
"nodeType": "ElementaryTypeName",
"src": "1038:7:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes15",
"typeString": "bytes15"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20159,
"mutability": "mutable",
"name": "dataSourcesCount",
"nameLocation": "1090:16:59",
"nodeType": "VariableDeclaration",
"scope": 20165,
"src": "1082:24:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 20158,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "1082:5:59",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20161,
"mutability": "mutable",
"name": "dataSourcesAggregatorHash",
"nameLocation": "1125:25:59",
"nodeType": "VariableDeclaration",
"scope": 20165,
"src": "1117:33:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes15",
"typeString": "bytes15"
},
"typeName": {
"id": 20160,
"name": "bytes15",
"nodeType": "ElementaryTypeName",
"src": "1117:7:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes15",
"typeString": "bytes15"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20164,
"mutability": "mutable",
"name": "resultDataType",
"nameLocation": "1183:14:59",
"nodeType": "VariableDeclaration",
"scope": 20165,
"src": "1161:36:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_RadonDataTypes_$37720",
"typeString": "enum Witnet.RadonDataTypes"
},
"typeName": {
"id": 20163,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20162,
"name": "Witnet.RadonDataTypes",
"nameLocations": [
"1161:6:59",
"1168:14:59"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37720,
"src": "1161:21:59"
},
"referencedDeclaration": 37720,
"src": "1161:21:59",
"typeDescriptions": {
"typeIdentifier": "t_enum$_RadonDataTypes_$37720",
"typeString": "enum Witnet.RadonDataTypes"
}
},
"visibility": "internal"
}
],
"name": "RadonRequestInfo",
"nameLocation": "1010:16:59",
"nodeType": "StructDefinition",
"scope": 20253,
"src": "1003:202:59",
"visibility": "public"
},
{
"canonicalName": "WitOracleRadonRegistryData.Database",
"id": 20202,
"members": [
{
"constant": false,
"id": 20167,
"mutability": "mutable",
"name": "_reservedSlot0",
"nameLocation": "1248:14:59",
"nodeType": "VariableDeclaration",
"scope": 20202,
"src": "1240:22:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20166,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1240:7:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20169,
"mutability": "mutable",
"name": "_reservedSlot1",
"nameLocation": "1281:14:59",
"nodeType": "VariableDeclaration",
"scope": 20202,
"src": "1273:22:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20168,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1273:7:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20174,
"mutability": "mutable",
"name": "reducers",
"nameLocation": "1347:8:59",
"nodeType": "VariableDeclaration",
"scope": 20202,
"src": "1306:49:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_RadonReducer_$37748_storage_$",
"typeString": "mapping(bytes32 => struct Witnet.RadonReducer)"
},
"typeName": {
"id": 20173,
"keyName": "",
"keyNameLocation": "-1:-1:-1",
"keyType": {
"id": 20170,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1315:7:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "Mapping",
"src": "1306:40:59",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_RadonReducer_$37748_storage_$",
"typeString": "mapping(bytes32 => struct Witnet.RadonReducer)"
},
"valueName": "",
"valueNameLocation": "-1:-1:-1",
"valueType": {
"id": 20172,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20171,
"name": "Witnet.RadonReducer",
"nameLocations": [
"1326:6:59",
"1333:12:59"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37748,
"src": "1326:19:59"
},
"referencedDeclaration": 37748,
"src": "1326:19:59",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonReducer_$37748_storage_ptr",
"typeString": "struct Witnet.RadonReducer"
}
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20179,
"mutability": "mutable",
"name": "retrievals",
"nameLocation": "1409:10:59",
"nodeType": "VariableDeclaration",
"scope": 20202,
"src": "1366:53:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_RadonRetrieval_$37795_storage_$",
"typeString": "mapping(bytes32 => struct Witnet.RadonRetrieval)"
},
"typeName": {
"id": 20178,
"keyName": "",
"keyNameLocation": "-1:-1:-1",
"keyType": {
"id": 20175,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1375:7:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "Mapping",
"src": "1366:42:59",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_RadonRetrieval_$37795_storage_$",
"typeString": "mapping(bytes32 => struct Witnet.RadonRetrieval)"
},
"valueName": "",
"valueNameLocation": "-1:-1:-1",
"valueType": {
"id": 20177,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20176,
"name": "Witnet.RadonRetrieval",
"nameLocations": [
"1386:6:59",
"1393:14:59"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37795,
"src": "1386:21:59"
},
"referencedDeclaration": 37795,
"src": "1386:21:59",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonRetrieval_$37795_storage_ptr",
"typeString": "struct Witnet.RadonRetrieval"
}
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20185,
"mutability": "mutable",
"name": "legacyRequests",
"nameLocation": "1485:14:59",
"nodeType": "VariableDeclaration",
"scope": 20202,
"src": "1430:69:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_userDefinedValueType$_RadonHash_$37153_$_t_struct$_RadonRequestLegacyPacked_$20155_storage_$",
"typeString": "mapping(Witnet.RadonHash => struct WitOracleRadonRegistryData.RadonRequestLegacyPacked)"
},
"typeName": {
"id": 20184,
"keyName": "",
"keyNameLocation": "-1:-1:-1",
"keyType": {
"id": 20181,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20180,
"name": "Witnet.RadonHash",
"nameLocations": [
"1439:6:59",
"1446:9:59"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37153,
"src": "1439:16:59"
},
"referencedDeclaration": 37153,
"src": "1439:16:59",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
}
},
"nodeType": "Mapping",
"src": "1430:54:59",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_userDefinedValueType$_RadonHash_$37153_$_t_struct$_RadonRequestLegacyPacked_$20155_storage_$",
"typeString": "mapping(Witnet.RadonHash => struct WitOracleRadonRegistryData.RadonRequestLegacyPacked)"
},
"valueName": "",
"valueNameLocation": "-1:-1:-1",
"valueType": {
"id": 20183,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20182,
"name": "RadonRequestLegacyPacked",
"nameLocations": [
"1459:24:59"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 20155,
"src": "1459:24:59"
},
"referencedDeclaration": 20155,
"src": "1459:24:59",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonRequestLegacyPacked_$20155_storage_ptr",
"typeString": "struct WitOracleRadonRegistryData.RadonRequestLegacyPacked"
}
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20190,
"mutability": "mutable",
"name": "rads",
"nameLocation": "1548:4:59",
"nodeType": "VariableDeclaration",
"scope": 20202,
"src": "1510:42:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_userDefinedValueType$_RadonHash_$37153_$",
"typeString": "mapping(bytes32 => Witnet.RadonHash)"
},
"typeName": {
"id": 20189,
"keyName": "",
"keyNameLocation": "-1:-1:-1",
"keyType": {
"id": 20186,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1519:7:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "Mapping",
"src": "1510:37:59",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_userDefinedValueType$_RadonHash_$37153_$",
"typeString": "mapping(bytes32 => Witnet.RadonHash)"
},
"valueName": "",
"valueNameLocation": "-1:-1:-1",
"valueType": {
"id": 20188,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20187,
"name": "Witnet.RadonHash",
"nameLocations": [
"1530:6:59",
"1537:9:59"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37153,
"src": "1530:16:59"
},
"referencedDeclaration": 37153,
"src": "1530:16:59",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
}
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20195,
"mutability": "mutable",
"name": "radsBytecode",
"nameLocation": "1599:12:59",
"nodeType": "VariableDeclaration",
"scope": 20202,
"src": "1563:48:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_userDefinedValueType$_RadonHash_$37153_$_t_bytes_storage_$",
"typeString": "mapping(Witnet.RadonHash => bytes)"
},
"typeName": {
"id": 20194,
"keyName": "",
"keyNameLocation": "-1:-1:-1",
"keyType": {
"id": 20192,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20191,
"name": "Witnet.RadonHash",
"nameLocations": [
"1572:6:59",
"1579:9:59"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37153,
"src": "1572:16:59"
},
"referencedDeclaration": 37153,
"src": "1572:16:59",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
}
},
"nodeType": "Mapping",
"src": "1563:35:59",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_userDefinedValueType$_RadonHash_$37153_$_t_bytes_storage_$",
"typeString": "mapping(Witnet.RadonHash => bytes)"
},
"valueName": "",
"valueNameLocation": "-1:-1:-1",
"valueType": {
"id": 20193,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1592:5:59",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20201,
"mutability": "mutable",
"name": "radsInfo",
"nameLocation": "1669:8:59",
"nodeType": "VariableDeclaration",
"scope": 20202,
"src": "1622:55:59",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_userDefinedValueType$_RadonHash_$37153_$_t_struct$_RadonRequestInfo_$20165_storage_$",
"typeString": "mapping(Witnet.RadonHash => struct WitOracleRadonRegistryData.RadonRequestInfo)"
},
"typeName": {
"id": 20200,
"keyName": "",
"keyNameLocation": "-1:-1:-1",
"keyType": {
"id": 20197,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20196,
"name": "Witnet.RadonHash",
"nameLocations": [
"1631:6:59",
"1638:9:59"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37153,
"src": "1631:16:59"
},
"referencedDeclaration": 37153,
"src": "1631:16:59",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_RadonHash_$37153",
"typeString": "Witnet.RadonHash"
}
},
"nodeType": "Mapping",
"src": "1622:46:59",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_userDefinedValueType$_RadonHash_$37153_$_t_struct$_RadonRequestInfo_$20165_storage_$",
"typeString": "mapping(Witnet.RadonHash => struct WitOracleRadonRegistryData.RadonRequestInfo)"
},
"valueName": "",
"valueNameLocation": "-1:-1:-1",
"valueType": {
"i