UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

520 lines 20.7 kB
{ "contractName": "IWitnetRequestBoardAdminACLs", "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address[]", "name": "reporters", "type": "address[]" } ], "name": "ReportersSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address[]", "name": "reporters", "type": "address[]" } ], "name": "ReportersUnset", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "isReporter", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "reporters", "type": "address[]" } ], "name": "setReporters", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "reporters", "type": "address[]" } ], "name": "unsetReporters", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"reporters\",\"type\":\"address[]\"}],\"name\":\"ReportersSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"reporters\",\"type\":\"address[]\"}],\"name\":\"ReportersUnset\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isReporter\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"reporters\",\"type\":\"address[]\"}],\"name\":\"setReporters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"reporters\",\"type\":\"address[]\"}],\"name\":\"unsetReporters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"The Witnet Foundation.\",\"kind\":\"dev\",\"methods\":{\"setReporters(address[])\":{\"details\":\"Can only be called from the owner address.Emits the `ReportersSet` event. \"},\"unsetReporters(address[])\":{\"details\":\"Can only be called from the owner address.Emits the `ReportersUnset` event. \"}},\"title\":\"Witnet Request Board ACLs administration interface.\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"isReporter(address)\":{\"notice\":\"Tells whether given address is included in the active reporters control list.\"},\"setReporters(address[])\":{\"notice\":\"Adds given addresses to the active reporters control list.\"},\"unsetReporters(address[])\":{\"notice\":\"Removes given addresses from the active reporters control list.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IWitnetRequestBoardAdminACLs.sol\":\"IWitnetRequestBoardAdminACLs\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitnetRequestBoardAdminACLs.sol\":{\"keccak256\":\"0xf7dccb4e47d281ce229a9dc219fb2b30dea26f6ad80225f21c75b103d5ab1230\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://814f304ff435f64bbcac9ac512ca636c3245f522f87285909c9a9e0ec6dc5368\",\"dweb:/ipfs/QmXtmoYRgm2iXQmLUmVoRz8d5PNqrZXid4SgX4BoDs8rcm\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity >=0.7.0 <0.9.0;\r\n\r\n/// @title Witnet Request Board ACLs administration interface.\r\n/// @author The Witnet Foundation.\r\ninterface IWitnetRequestBoardAdminACLs {\r\n \r\n event ReportersSet(address[] reporters);\r\n event ReportersUnset(address[] reporters);\r\n\r\n /// Tells whether given address is included in the active reporters control list.\r\n function isReporter(address) external view returns (bool);\r\n\r\n /// Adds given addresses to the active reporters control list.\r\n /// @dev Can only be called from the owner address.\r\n /// @dev Emits the `ReportersSet` event. \r\n function setReporters(address[] calldata reporters) external;\r\n\r\n /// Removes given addresses from the active reporters control list.\r\n /// @dev Can only be called from the owner address.\r\n /// @dev Emits the `ReportersUnset` event. \r\n function unsetReporters(address[] calldata reporters) external;\r\n}\r\n", "sourcePath": "C:\\Users\\guill\\github\\witnet\\witnet-solidity-bridge\\contracts\\interfaces\\IWitnetRequestBoardAdminACLs.sol", "ast": { "absolutePath": "project:/contracts/interfaces/IWitnetRequestBoardAdminACLs.sol", "exportedSymbols": { "IWitnetRequestBoardAdminACLs": [ 13758 ] }, "id": 13759, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 13724, "literals": [ "solidity", ">=", "0.7", ".0", "<", "0.9", ".0" ], "nodeType": "PragmaDirective", "src": "35:31:59" }, { "abstract": false, "baseContracts": [], "canonicalName": "IWitnetRequestBoardAdminACLs", "contractDependencies": [], "contractKind": "interface", "documentation": { "id": 13725, "nodeType": "StructuredDocumentation", "src": "70:100:59", "text": "@title Witnet Request Board ACLs administration interface.\n @author The Witnet Foundation." }, "fullyImplemented": false, "id": 13758, "linearizedBaseContracts": [ 13758 ], "name": "IWitnetRequestBoardAdminACLs", "nameLocation": "180:28:59", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "eventSelector": "4d570ee36dec878006609360d34ac8d6a0b68d521871ae15a407b6340877ca01", "id": 13730, "name": "ReportersSet", "nameLocation": "228:12:59", "nodeType": "EventDefinition", "parameters": { "id": 13729, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13728, "indexed": false, "mutability": "mutable", "name": "reporters", "nameLocation": "251:9:59", "nodeType": "VariableDeclaration", "scope": 13730, "src": "241:19:59", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 13726, "name": "address", "nodeType": "ElementaryTypeName", "src": "241:7:59", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 13727, "nodeType": "ArrayTypeName", "src": "241:9:59", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "visibility": "internal" } ], "src": "240:21:59" }, "src": "222:40:59" }, { "anonymous": false, "eventSelector": "646436560d9757cb3c0f01da0f62642c6040b00c9a80685f94ef1a7725cad5f1", "id": 13735, "name": "ReportersUnset", "nameLocation": "274:14:59", "nodeType": "EventDefinition", "parameters": { "id": 13734, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13733, "indexed": false, "mutability": "mutable", "name": "reporters", "nameLocation": "299:9:59", "nodeType": "VariableDeclaration", "scope": 13735, "src": "289:19:59", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 13731, "name": "address", "nodeType": "ElementaryTypeName", "src": "289:7:59", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 13732, "nodeType": "ArrayTypeName", "src": "289:9:59", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "visibility": "internal" } ], "src": "288:21:59" }, "src": "268:42:59" }, { "documentation": { "id": 13736, "nodeType": "StructuredDocumentation", "src": "318:81:59", "text": "Tells whether given address is included in the active reporters control list." }, "functionSelector": "044ad7be", "id": 13743, "implemented": false, "kind": "function", "modifiers": [], "name": "isReporter", "nameLocation": "414:10:59", "nodeType": "FunctionDefinition", "parameters": { "id": 13739, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13738, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 13743, "src": "425:7:59", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 13737, "name": "address", "nodeType": "ElementaryTypeName", "src": "425:7:59", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "424:9:59" }, "returnParameters": { "id": 13742, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13741, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 13743, "src": "457:4:59", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 13740, "name": "bool", "nodeType": "ElementaryTypeName", "src": "457:4:59", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "456:6:59" }, "scope": 13758, "src": "405:58:59", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "documentation": { "id": 13744, "nodeType": "StructuredDocumentation", "src": "471:166:59", "text": "Adds given addresses to the active reporters control list.\n @dev Can only be called from the owner address.\n @dev Emits the `ReportersSet` event. " }, "functionSelector": "4c9f72e3", "id": 13750, "implemented": false, "kind": "function", "modifiers": [], "name": "setReporters", "nameLocation": "652:12:59", "nodeType": "FunctionDefinition", "parameters": { "id": 13748, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13747, "mutability": "mutable", "name": "reporters", "nameLocation": "684:9:59", "nodeType": "VariableDeclaration", "scope": 13750, "src": "665:28:59", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 13745, "name": "address", "nodeType": "ElementaryTypeName", "src": "665:7:59", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 13746, "nodeType": "ArrayTypeName", "src": "665:9:59", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "visibility": "internal" } ], "src": "664:30:59" }, "returnParameters": { "id": 13749, "nodeType": "ParameterList", "parameters": [], "src": "703:0:59" }, "scope": 13758, "src": "643:61:59", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "documentation": { "id": 13751, "nodeType": "StructuredDocumentation", "src": "712:173:59", "text": "Removes given addresses from the active reporters control list.\n @dev Can only be called from the owner address.\n @dev Emits the `ReportersUnset` event. " }, "functionSelector": "28a78d9b", "id": 13757, "implemented": false, "kind": "function", "modifiers": [], "name": "unsetReporters", "nameLocation": "900:14:59", "nodeType": "FunctionDefinition", "parameters": { "id": 13755, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 13754, "mutability": "mutable", "name": "reporters", "nameLocation": "934:9:59", "nodeType": "VariableDeclaration", "scope": 13757, "src": "915:28:59", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 13752, "name": "address", "nodeType": "ElementaryTypeName", "src": "915:7:59", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 13753, "nodeType": "ArrayTypeName", "src": "915:9:59", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "visibility": "internal" } ], "src": "914:30:59" }, "returnParameters": { "id": 13756, "nodeType": "ParameterList", "parameters": [], "src": "953:0:59" }, "scope": 13758, "src": "891:63:59", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 13759, "src": "170:787:59", "usedErrors": [], "usedEvents": [ 13730, 13735 ] } ], "src": "35:924:59" }, "compiler": { "name": "solc", "version": "0.8.25+commit.b61c2a91.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.16", "updatedAt": "2024-12-05T09:36:04.514Z", "devdoc": { "author": "The Witnet Foundation.", "kind": "dev", "methods": { "setReporters(address[])": { "details": "Can only be called from the owner address.Emits the `ReportersSet` event. " }, "unsetReporters(address[])": { "details": "Can only be called from the owner address.Emits the `ReportersUnset` event. " } }, "title": "Witnet Request Board ACLs administration interface.", "version": 1 }, "userdoc": { "kind": "user", "methods": { "isReporter(address)": { "notice": "Tells whether given address is included in the active reporters control list." }, "setReporters(address[])": { "notice": "Adds given addresses to the active reporters control list." }, "unsetReporters(address[])": { "notice": "Removes given addresses from the active reporters control list." } }, "version": 1 } }