witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
520 lines • 20.6 kB
JSON
{
"contractName": "IWitOracleTrustableAdmin",
"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.30+commit.73712a01\"},\"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/IWitOracleTrustableAdmin.sol\":\"IWitOracleTrustableAdmin\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitOracleTrustableAdmin.sol\":{\"keccak256\":\"0x94b69b5a460d1407746ac70d32a0c5d4fca564b16cbd1940b822dd0ecb5336e9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a773b9d963647a5591b95c8fb359efd461dc494d1e3a1754cc83343310e07605\",\"dweb:/ipfs/QmU77Zre43r5sVj4DK2FjTda31zWgNDr9sGPug1dRv4ih6\"]}},\"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\n/// @title Witnet Request Board ACLs administration interface.\r\n/// @author The Witnet Foundation.\r\ninterface IWitOracleTrustableAdmin {\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\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\IWitOracleTrustableAdmin.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/IWitOracleTrustableAdmin.sol",
"exportedSymbols": {
"IWitOracleTrustableAdmin": [
27628
]
},
"id": 27629,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 27594,
"literals": [
"solidity",
">=",
"0.8",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:31:78"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IWitOracleTrustableAdmin",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 27595,
"nodeType": "StructuredDocumentation",
"src": "70:100:78",
"text": "@title Witnet Request Board ACLs administration interface.\n @author The Witnet Foundation."
},
"fullyImplemented": false,
"id": 27628,
"linearizedBaseContracts": [
27628
],
"name": "IWitOracleTrustableAdmin",
"nameLocation": "180:24:78",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"eventSelector": "4d570ee36dec878006609360d34ac8d6a0b68d521871ae15a407b6340877ca01",
"id": 27600,
"name": "ReportersSet",
"nameLocation": "224:12:78",
"nodeType": "EventDefinition",
"parameters": {
"id": 27599,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 27598,
"indexed": false,
"mutability": "mutable",
"name": "reporters",
"nameLocation": "247:9:78",
"nodeType": "VariableDeclaration",
"scope": 27600,
"src": "237:19:78",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 27596,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "237:7:78",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 27597,
"nodeType": "ArrayTypeName",
"src": "237:9:78",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"visibility": "internal"
}
],
"src": "236:21:78"
},
"src": "218:40:78"
},
{
"anonymous": false,
"eventSelector": "646436560d9757cb3c0f01da0f62642c6040b00c9a80685f94ef1a7725cad5f1",
"id": 27605,
"name": "ReportersUnset",
"nameLocation": "270:14:78",
"nodeType": "EventDefinition",
"parameters": {
"id": 27604,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 27603,
"indexed": false,
"mutability": "mutable",
"name": "reporters",
"nameLocation": "295:9:78",
"nodeType": "VariableDeclaration",
"scope": 27605,
"src": "285:19:78",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 27601,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "285:7:78",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 27602,
"nodeType": "ArrayTypeName",
"src": "285:9:78",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"visibility": "internal"
}
],
"src": "284:21:78"
},
"src": "264:42:78"
},
{
"documentation": {
"id": 27606,
"nodeType": "StructuredDocumentation",
"src": "314:81:78",
"text": "Tells whether given address is included in the active reporters control list."
},
"functionSelector": "044ad7be",
"id": 27613,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "isReporter",
"nameLocation": "410:10:78",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 27609,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 27608,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 27613,
"src": "421:7:78",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 27607,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "421:7:78",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "420:9:78"
},
"returnParameters": {
"id": 27612,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 27611,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 27613,
"src": "453:4:78",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 27610,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "453:4:78",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "452:6:78"
},
"scope": 27628,
"src": "401:58:78",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 27614,
"nodeType": "StructuredDocumentation",
"src": "467:166:78",
"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": 27620,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setReporters",
"nameLocation": "648:12:78",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 27618,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 27617,
"mutability": "mutable",
"name": "reporters",
"nameLocation": "680:9:78",
"nodeType": "VariableDeclaration",
"scope": 27620,
"src": "661:28:78",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 27615,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "661:7:78",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 27616,
"nodeType": "ArrayTypeName",
"src": "661:9:78",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"visibility": "internal"
}
],
"src": "660:30:78"
},
"returnParameters": {
"id": 27619,
"nodeType": "ParameterList",
"parameters": [],
"src": "699:0:78"
},
"scope": 27628,
"src": "639:61:78",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 27621,
"nodeType": "StructuredDocumentation",
"src": "708:173:78",
"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": 27627,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "unsetReporters",
"nameLocation": "896:14:78",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 27625,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 27624,
"mutability": "mutable",
"name": "reporters",
"nameLocation": "930:9:78",
"nodeType": "VariableDeclaration",
"scope": 27627,
"src": "911:28:78",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 27622,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "911:7:78",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 27623,
"nodeType": "ArrayTypeName",
"src": "911:9:78",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"visibility": "internal"
}
],
"src": "910:30:78"
},
"returnParameters": {
"id": 27626,
"nodeType": "ParameterList",
"parameters": [],
"src": "949:0:78"
},
"scope": 27628,
"src": "887:63:78",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 27629,
"src": "170:783:78",
"usedErrors": [],
"usedEvents": [
27600,
27605
]
}
],
"src": "35:920:78"
},
"compiler": {
"name": "solc",
"version": "0.8.30+commit.73712a01.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.16",
"updatedAt": "2025-10-15T14:34:45.907Z",
"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
}
}