UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

1,090 lines 46 kB
{ "contractName": "IWitOracleQueriableExperimental", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "evmSubscriber", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "witRadHash", "type": "bytes32" }, { "indexed": false, "internalType": "Witnet.ServiceProvider[]", "name": "witServiceCommittee", "type": "bytes20[]" } ], "name": "WitOracleServiceCommittee", "type": "event" }, { "inputs": [ { "internalType": "bytes32", "name": "radHash", "type": "bytes32" }, { "internalType": "Witnet.ServiceProvider[]", "name": "", "type": "bytes20[]" } ], "name": "settleMyOwnServiceCommittee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" } ], "name": "extractDelegatedDataRequest", "outputs": [ { "components": [ { "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "internalType": "Witnet.QueryUUID", "name": "queryUUID", "type": "bytes15" }, { "internalType": "Witnet.QueryEvmReward", "name": "queryEvmReward", "type": "uint72" }, { "components": [ { "internalType": "uint16", "name": "witResultMaxSize", "type": "uint16" }, { "internalType": "uint16", "name": "witCommitteeSize", "type": "uint16" }, { "internalType": "uint64", "name": "witUnitaryReward", "type": "uint64" }, { "internalType": "Witnet.ServiceProvider[]", "name": "providers", "type": "bytes20[]" } ], "internalType": "struct IWitOracleQueriableExperimental.QueryParams", "name": "queryParams", "type": "tuple" }, { "internalType": "bytes", "name": "radonBytecode", "type": "bytes" } ], "internalType": "struct IWitOracleQueriableExperimental.DDR", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "Witnet.QueryId[]", "name": "queryIds", "type": "uint64[]" } ], "name": "extractDelegatedDataRequestBatch", "outputs": [ { "components": [ { "internalType": "Witnet.QueryId", "name": "queryId", "type": "uint64" }, { "internalType": "Witnet.QueryUUID", "name": "queryUUID", "type": "bytes15" }, { "internalType": "Witnet.QueryEvmReward", "name": "queryEvmReward", "type": "uint72" }, { "components": [ { "internalType": "uint16", "name": "witResultMaxSize", "type": "uint16" }, { "internalType": "uint16", "name": "witCommitteeSize", "type": "uint16" }, { "internalType": "uint64", "name": "witUnitaryReward", "type": "uint64" }, { "internalType": "Witnet.ServiceProvider[]", "name": "providers", "type": "bytes20[]" } ], "internalType": "struct IWitOracleQueriableExperimental.QueryParams", "name": "queryParams", "type": "tuple" }, { "internalType": "bytes", "name": "radonBytecode", "type": "bytes" } ], "internalType": "struct IWitOracleQueriableExperimental.DDR[]", "name": "", "type": "tuple[]" } ], "stateMutability": "view", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"evmSubscriber\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"witRadHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"Witnet.ServiceProvider[]\",\"name\":\"witServiceCommittee\",\"type\":\"bytes20[]\"}],\"name\":\"WitOracleServiceCommittee\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"Witnet.QueryId\",\"name\":\"queryId\",\"type\":\"uint64\"}],\"name\":\"extractDelegatedDataRequest\",\"outputs\":[{\"components\":[{\"internalType\":\"Witnet.QueryId\",\"name\":\"queryId\",\"type\":\"uint64\"},{\"internalType\":\"Witnet.QueryUUID\",\"name\":\"queryUUID\",\"type\":\"bytes15\"},{\"internalType\":\"Witnet.QueryEvmReward\",\"name\":\"queryEvmReward\",\"type\":\"uint72\"},{\"components\":[{\"internalType\":\"uint16\",\"name\":\"witResultMaxSize\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"witCommitteeSize\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"witUnitaryReward\",\"type\":\"uint64\"},{\"internalType\":\"Witnet.ServiceProvider[]\",\"name\":\"providers\",\"type\":\"bytes20[]\"}],\"internalType\":\"struct IWitOracleQueriableExperimental.QueryParams\",\"name\":\"queryParams\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"radonBytecode\",\"type\":\"bytes\"}],\"internalType\":\"struct IWitOracleQueriableExperimental.DDR\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"Witnet.QueryId[]\",\"name\":\"queryIds\",\"type\":\"uint64[]\"}],\"name\":\"extractDelegatedDataRequestBatch\",\"outputs\":[{\"components\":[{\"internalType\":\"Witnet.QueryId\",\"name\":\"queryId\",\"type\":\"uint64\"},{\"internalType\":\"Witnet.QueryUUID\",\"name\":\"queryUUID\",\"type\":\"bytes15\"},{\"internalType\":\"Witnet.QueryEvmReward\",\"name\":\"queryEvmReward\",\"type\":\"uint72\"},{\"components\":[{\"internalType\":\"uint16\",\"name\":\"witResultMaxSize\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"witCommitteeSize\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"witUnitaryReward\",\"type\":\"uint64\"},{\"internalType\":\"Witnet.ServiceProvider[]\",\"name\":\"providers\",\"type\":\"bytes20[]\"}],\"internalType\":\"struct IWitOracleQueriableExperimental.QueryParams\",\"name\":\"queryParams\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"radonBytecode\",\"type\":\"bytes\"}],\"internalType\":\"struct IWitOracleQueriableExperimental.DDR[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"radHash\",\"type\":\"bytes32\"},{\"internalType\":\"Witnet.ServiceProvider[]\",\"name\":\"\",\"type\":\"bytes20[]\"}],\"name\":\"settleMyOwnServiceCommittee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"settleMyOwnServiceCommittee(bytes32,bytes20[])\":{\"notice\":\"Enables data requesters to settle the actual validators in the Wit/Oraclesidechain that will be entitled to solve data requests requiring tosupport the specified Radon Request hash (i.e. RAD hash).\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IWitOracleQueriableExperimental.sol\":\"IWitOracleQueriableExperimental\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitOracleQueriableExperimental.sol\":{\"keccak256\":\"0x57c0007d813ed3e6dd3e0bb128e6ca7a0324214962823c6456e2e37d78ab4070\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b5edc498ccc728327f1f3c80d2decd7ca64920a3aee4faaba08dd354f1256b66\",\"dweb:/ipfs/QmdEJWUtQqTVdFLCiNKUPSe3NwXzuHmG6XzA1VbHHHgdPy\"]},\"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 IWitOracleQueriableExperimental {\r\n \r\n event WitOracleServiceCommittee(\r\n address indexed evmSubscriber,\r\n bytes32 indexed witRadHash,\r\n Witnet.ServiceProvider[] witServiceCommittee\r\n );\r\n\r\n /// @notice Enables data requesters to settle the actual validators in the Wit/Oracle\r\n /// @notice sidechain that will be entitled to solve data requests requiring to\r\n /// @notice support the specified Radon Request hash (i.e. RAD hash).\r\n function settleMyOwnServiceCommittee(bytes32 radHash, Witnet.ServiceProvider[] calldata) external;\r\n\r\n /// Structure containing extra query params for Delegated Data Requests and optional Service Committees\r\n struct QueryParams {\r\n uint16 witResultMaxSize;\r\n uint16 witCommitteeSize;\r\n uint64 witUnitaryReward;\r\n Witnet.ServiceProvider[] providers;\r\n }\r\n\r\n /// Delegated Data Requests\r\n struct DDR {\r\n Witnet.QueryId queryId;\r\n Witnet.QueryUUID queryUUID;\r\n Witnet.QueryEvmReward queryEvmReward;\r\n QueryParams queryParams;\r\n bytes radonBytecode;\r\n }\r\n\r\n function extractDelegatedDataRequest(Witnet.QueryId queryId) external view returns (DDR memory);\r\n function extractDelegatedDataRequestBatch(Witnet.QueryId[] calldata queryIds) external view returns (DDR[] memory);\r\n}\r\n", "sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\IWitOracleQueriableExperimental.sol", "ast": { "absolutePath": "project:/contracts/interfaces/IWitOracleQueriableExperimental.sol", "exportedSymbols": { "Bech32": [ 31372 ], "IWitOracleQueriableExperimental": [ 26964 ], "Secp256k1": [ 32535 ], "Witnet": [ 40741 ], "WitnetBuffer": [ 42631 ], "WitnetCBOR": [ 44174 ] }, "id": 26965, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 26894, "literals": [ "solidity", ">=", "0.8", ".0", "<", "0.9", ".0" ], "nodeType": "PragmaDirective", "src": "35:31:70" }, { "absolutePath": "project:/contracts/libs/Witnet.sol", "file": "../libs/Witnet.sol", "id": 26895, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 26965, "sourceUnit": 40742, "src": "70:28:70", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "canonicalName": "IWitOracleQueriableExperimental", "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 26964, "linearizedBaseContracts": [ 26964 ], "name": "IWitOracleQueriableExperimental", "nameLocation": "112:31:70", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "eventSelector": "23756db25709786dbc09e6af056afb44fb8ed4fb0201b7cbc24aecc8be0a45f6", "id": 26905, "name": "WitOracleServiceCommittee", "nameLocation": "163:25:70", "nodeType": "EventDefinition", "parameters": { "id": 26904, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26897, "indexed": true, "mutability": "mutable", "name": "evmSubscriber", "nameLocation": "215:13:70", "nodeType": "VariableDeclaration", "scope": 26905, "src": "199:29:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 26896, "name": "address", "nodeType": "ElementaryTypeName", "src": "199:7:70", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 26899, "indexed": true, "mutability": "mutable", "name": "witRadHash", "nameLocation": "255:10:70", "nodeType": "VariableDeclaration", "scope": 26905, "src": "239:26:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 26898, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "239:7:70", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 26903, "indexed": false, "mutability": "mutable", "name": "witServiceCommittee", "nameLocation": "301:19:70", "nodeType": "VariableDeclaration", "scope": 26905, "src": "276:44:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_userDefinedValueType$_ServiceProvider_$37155_$dyn_memory_ptr", "typeString": "Witnet.ServiceProvider[]" }, "typeName": { "baseType": { "id": 26901, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 26900, "name": "Witnet.ServiceProvider", "nameLocations": [ "276:6:70", "283:15:70" ], "nodeType": "IdentifierPath", "referencedDeclaration": 37155, "src": "276:22:70" }, "referencedDeclaration": 37155, "src": "276:22:70", "typeDescriptions": { "typeIdentifier": "t_userDefinedValueType$_ServiceProvider_$37155", "typeString": "Witnet.ServiceProvider" } }, "id": 26902, "nodeType": "ArrayTypeName", "src": "276:24:70", "typeDescriptions": { "typeIdentifier": "t_array$_t_userDefinedValueType$_ServiceProvider_$37155_$dyn_storage_ptr", "typeString": "Witnet.ServiceProvider[]" } }, "visibility": "internal" } ], "src": "188:139:70" }, "src": "157:171:70" }, { "documentation": { "id": 26906, "nodeType": "StructuredDocumentation", "src": "336:245:70", "text": "@notice Enables data requesters to settle the actual validators in the Wit/Oracle\n @notice sidechain that will be entitled to solve data requests requiring to\n @notice support the specified Radon Request hash (i.e. RAD hash)." }, "functionSelector": "69978d7e", "id": 26915, "implemented": false, "kind": "function", "modifiers": [], "name": "settleMyOwnServiceCommittee", "nameLocation": "596:27:70", "nodeType": "FunctionDefinition", "parameters": { "id": 26913, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26908, "mutability": "mutable", "name": "radHash", "nameLocation": "632:7:70", "nodeType": "VariableDeclaration", "scope": 26915, "src": "624:15:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 26907, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "624:7:70", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 26912, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 26915, "src": "641:33:70", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_array$_t_userDefinedValueType$_ServiceProvider_$37155_$dyn_calldata_ptr", "typeString": "Witnet.ServiceProvider[]" }, "typeName": { "baseType": { "id": 26910, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 26909, "name": "Witnet.ServiceProvider", "nameLocations": [ "641:6:70", "648:15:70" ], "nodeType": "IdentifierPath", "referencedDeclaration": 37155, "src": "641:22:70" }, "referencedDeclaration": 37155, "src": "641:22:70", "typeDescriptions": { "typeIdentifier": "t_userDefinedValueType$_ServiceProvider_$37155", "typeString": "Witnet.ServiceProvider" } }, "id": 26911, "nodeType": "ArrayTypeName", "src": "641:24:70", "typeDescriptions": { "typeIdentifier": "t_array$_t_userDefinedValueType$_ServiceProvider_$37155_$dyn_storage_ptr", "typeString": "Witnet.ServiceProvider[]" } }, "visibility": "internal" } ], "src": "623:52:70" }, "returnParameters": { "id": 26914, "nodeType": "ParameterList", "parameters": [], "src": "684:0:70" }, "scope": 26964, "src": "587:98:70", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "canonicalName": "IWitOracleQueriableExperimental.QueryParams", "documentation": { "id": 26916, "nodeType": "StructuredDocumentation", "src": "693:103:70", "text": "Structure containing extra query params for Delegated Data Requests and optional Service Committees" }, "id": 26927, "members": [ { "constant": false, "id": 26918, "mutability": "mutable", "name": "witResultMaxSize", "nameLocation": "839:16:70", "nodeType": "VariableDeclaration", "scope": 26927, "src": "832:23:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" }, "typeName": { "id": 26917, "name": "uint16", "nodeType": "ElementaryTypeName", "src": "832:6:70", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" } }, "visibility": "internal" }, { "constant": false, "id": 26920, "mutability": "mutable", "name": "witCommitteeSize", "nameLocation": "873:16:70", "nodeType": "VariableDeclaration", "scope": 26927, "src": "866:23:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" }, "typeName": { "id": 26919, "name": "uint16", "nodeType": "ElementaryTypeName", "src": "866:6:70", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" } }, "visibility": "internal" }, { "constant": false, "id": 26922, "mutability": "mutable", "name": "witUnitaryReward", "nameLocation": "907:16:70", "nodeType": "VariableDeclaration", "scope": 26927, "src": "900:23:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint64", "typeString": "uint64" }, "typeName": { "id": 26921, "name": "uint64", "nodeType": "ElementaryTypeName", "src": "900:6:70", "typeDescriptions": { "typeIdentifier": "t_uint64", "typeString": "uint64" } }, "visibility": "internal" }, { "constant": false, "id": 26926, "mutability": "mutable", "name": "providers", "nameLocation": "959:9:70", "nodeType": "VariableDeclaration", "scope": 26927, "src": "934:34:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_userDefinedValueType$_ServiceProvider_$37155_$dyn_storage_ptr", "typeString": "Witnet.ServiceProvider[]" }, "typeName": { "baseType": { "id": 26924, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 26923, "name": "Witnet.ServiceProvider", "nameLocations": [ "934:6:70", "941:15:70" ], "nodeType": "IdentifierPath", "referencedDeclaration": 37155, "src": "934:22:70" }, "referencedDeclaration": 37155, "src": "934:22:70", "typeDescriptions": { "typeIdentifier": "t_userDefinedValueType$_ServiceProvider_$37155", "typeString": "Witnet.ServiceProvider" } }, "id": 26925, "nodeType": "ArrayTypeName", "src": "934:24:70", "typeDescriptions": { "typeIdentifier": "t_array$_t_userDefinedValueType$_ServiceProvider_$37155_$dyn_storage_ptr", "typeString": "Witnet.ServiceProvider[]" } }, "visibility": "internal" } ], "name": "QueryParams", "nameLocation": "809:11:70", "nodeType": "StructDefinition", "scope": 26964, "src": "802:174:70", "visibility": "public" }, { "canonicalName": "IWitOracleQueriableExperimental.DDR", "documentation": { "id": 26928, "nodeType": "StructuredDocumentation", "src": "984:27:70", "text": "Delegated Data Requests" }, "id": 26943, "members": [ { "constant": false, "id": 26931, "mutability": "mutable", "name": "queryId", "nameLocation": "1054:7:70", "nodeType": "VariableDeclaration", "scope": 26943, "src": "1039:22:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_userDefinedValueType$_QueryId_$37151", "typeString": "Witnet.QueryId" }, "typeName": { "id": 26930, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 26929, "name": "Witnet.QueryId", "nameLocations": [ "1039:6:70", "1046:7:70" ], "nodeType": "IdentifierPath", "referencedDeclaration": 37151, "src": "1039:14:70" }, "referencedDeclaration": 37151, "src": "1039:14:70", "typeDescriptions": { "typeIdentifier": "t_userDefinedValueType$_QueryId_$37151", "typeString": "Witnet.QueryId" } }, "visibility": "internal" }, { "constant": false, "id": 26934, "mutability": "mutable", "name": "queryUUID", "nameLocation": "1089:9:70", "nodeType": "VariableDeclaration", "scope": 26943, "src": "1072:26:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_userDefinedValueType$_QueryUUID_$37149", "typeString": "Witnet.QueryUUID" }, "typeName": { "id": 26933, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 26932, "name": "Witnet.QueryUUID", "nameLocations": [ "1072:6:70", "1079:9:70" ], "nodeType": "IdentifierPath", "referencedDeclaration": 37149, "src": "1072:16:70" }, "referencedDeclaration": 37149, "src": "1072:16:70", "typeDescriptions": { "typeIdentifier": "t_userDefinedValueType$_QueryUUID_$37149", "typeString": "Witnet.QueryUUID" } }, "visibility": "internal" }, { "constant": false, "id": 26937, "mutability": "mutable", "name": "queryEvmReward", "nameLocation": "1131:14:70", "nodeType": "VariableDeclaration", "scope": 26943, "src": "1109:36:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_userDefinedValueType$_QueryEvmReward_$37147", "typeString": "Witnet.QueryEvmReward" }, "typeName": { "id": 26936, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 26935, "name": "Witnet.QueryEvmReward", "nameLocations": [ "1109:6:70", "1116:14:70" ], "nodeType": "IdentifierPath", "referencedDeclaration": 37147, "src": "1109:21:70" }, "referencedDeclaration": 37147, "src": "1109:21:70", "typeDescriptions": { "typeIdentifier": "t_userDefinedValueType$_QueryEvmReward_$37147", "typeString": "Witnet.QueryEvmReward" } }, "visibility": "internal" }, { "constant": false, "id": 26940, "mutability": "mutable", "name": "queryParams", "nameLocation": "1168:11:70", "nodeType": "VariableDeclaration", "scope": 26943, "src": "1156:23:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_QueryParams_$26927_storage_ptr", "typeString": "struct IWitOracleQueriableExperimental.QueryParams" }, "typeName": { "id": 26939, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 26938, "name": "QueryParams", "nameLocations": [ "1156:11:70" ], "nodeType": "IdentifierPath", "referencedDeclaration": 26927, "src": "1156:11:70" }, "referencedDeclaration": 26927, "src": "1156:11:70", "typeDescriptions": { "typeIdentifier": "t_struct$_QueryParams_$26927_storage_ptr", "typeString": "struct IWitOracleQueriableExperimental.QueryParams" } }, "visibility": "internal" }, { "constant": false, "id": 26942, "mutability": "mutable", "name": "radonBytecode", "nameLocation": "1196:13:70", "nodeType": "VariableDeclaration", "scope": 26943, "src": "1190:19:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" }, "typeName": { "id": 26941, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "1190:5:70", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "name": "DDR", "nameLocation": "1024:3:70", "nodeType": "StructDefinition", "scope": 26964, "src": "1017:200:70", "visibility": "public" }, { "functionSelector": "378f35d9", "id": 26952, "implemented": false, "kind": "function", "modifiers": [], "name": "extractDelegatedDataRequest", "nameLocation": "1234:27:70", "nodeType": "FunctionDefinition", "parameters": { "id": 26947, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26946, "mutability": "mutable", "name": "queryId", "nameLocation": "1277:7:70", "nodeType": "VariableDeclaration", "scope": 26952, "src": "1262:22:70", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_userDefinedValueType$_QueryId_$37151", "typeString": "Witnet.QueryId" }, "typeName": { "id": 26945, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 26944, "name": "Witnet.QueryId", "nameLocations": [ "1262:6:70", "1269:7:70" ], "nodeType": "IdentifierPath", "referencedDeclaration": 37151, "src": "1262:14:70" }, "referencedDeclaration": 37151, "src": "1262:14:70", "typeDescriptions": { "typeIdentifier": "t_userDefinedValueType$_QueryId_$37151", "typeString": "Witnet.QueryId" } }, "visibility": "internal" } ], "src": "1261:24:70" }, "returnParameters": { "id": 26951, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26950, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 26952, "src": "1309:10:70", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_DDR_$26943_memory_ptr", "typeString": "struct IWitOracleQueriableExperimental.DDR" }, "typeName": { "id": 26949, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 26948, "name": "DDR", "nameLocations": [ "1309:3:70" ], "nodeType": "IdentifierPath", "referencedDeclaration": 26943, "src": "1309:3:70" }, "referencedDeclaration": 26943, "src": "1309:3:70", "typeDescriptions": { "typeIdentifier": "t_struct$_DDR_$26943_storage_ptr", "typeString": "struct IWitOracleQueriableExperimental.DDR" } }, "visibility": "internal" } ], "src": "1308:12:70" }, "scope": 26964, "src": "1225:96:70", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "fb55e9f3", "id": 26963, "implemented": false, "kind": "function", "modifiers": [], "name": "extractDelegatedDataRequestBatch", "nameLocation": "1336:32:70", "nodeType": "FunctionDefinition", "parameters": { "id": 26957, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26956, "mutability": "mutable", "name": "queryIds", "nameLocation": "1395:8:70", "nodeType": "VariableDeclaration", "scope": 26963, "src": "1369:34:70", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_array$_t_userDefinedValueType$_QueryId_$37151_$dyn_calldata_ptr", "typeString": "Witnet.QueryId[]" }, "typeName": { "baseType": { "id": 26954, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 26953, "name": "Witnet.QueryId", "nameLocations": [ "1369:6:70", "1376:7:70" ], "nodeType": "IdentifierPath", "referencedDeclaration": 37151, "src": "1369:14:70" }, "referencedDeclaration": 37151, "src": "1369:14:70", "typeDescriptions": { "typeIdentifier": "t_userDefinedValueType$_QueryId_$37151", "typeString": "Witnet.QueryId" } }, "id": 26955, "nodeType": "ArrayTypeName", "src": "1369:16:70", "typeDescriptions": { "typeIdentifier": "t_array$_t_userDefinedValueType$_QueryId_$37151_$dyn_storage_ptr", "typeString": "Witnet.QueryId[]" } }, "visibility": "internal" } ], "src": "1368:36:70" }, "returnParameters": { "id": 26962, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 26961, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 26963, "src": "1428:12:70", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_DDR_$26943_memory_ptr_$dyn_memory_ptr", "typeString": "struct IWitOracleQueriableExperimental.DDR[]" }, "typeName": { "baseType": { "id": 26959, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 26958, "name": "DDR", "nameLocations": [ "1428:3:70" ], "nodeType": "IdentifierPath", "referencedDeclaration": 26943, "src": "1428:3:70" }, "referencedDeclaration": 26943, "src": "1428:3:70", "typeDescriptions": { "typeIdentifier": "t_struct$_DDR_$26943_storage_ptr", "typeString": "struct IWitOracleQueriableExperimental.DDR" } }, "id": 26960, "nodeType": "ArrayTypeName", "src": "1428:5:70", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_DDR_$26943_storage_$dyn_storage_ptr", "typeString": "struct IWitOracleQueriableExperimental.DDR[]" } }, "visibility": "internal" } ], "src": "1427:14:70" }, "scope": 26964, "src": "1327:115:70", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 26965, "src": "102:1343:70", "usedErrors": [], "usedEvents": [ 26905 ] } ], "src": "35:1412:70" }, "compiler": { "name": "solc", "version": "0.8.30+commit.73712a01.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.16", "updatedAt": "2025-10-15T14:34:45.898Z", "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": { "settleMyOwnServiceCommittee(bytes32,bytes20[])": { "notice": "Enables data requesters to settle the actual validators in the Wit/Oraclesidechain that will be entitled to solve data requests requiring tosupport the specified Radon Request hash (i.e. RAD hash)." } }, "version": 1 } }