{ "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "previousAdminRole", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32" } ], "name": "RoleAdminChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "RoleGranted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "RoleRevoked", "type": "event" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" } ], "name": "getRoleAdmin", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "grantRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "hasRole", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "renounceRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "revokeRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} }, "deployedBytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} }, "methodIdentifiers": { "getRoleAdmin(bytes32)": "248a9ca3", "grantRole(bytes32,address)": "2f2ff15d", "hasRole(bytes32,address)": "91d14854", "renounceRole(bytes32,address)": "36568abe", "revokeRole(bytes32,address)": "d547741f" }, "rawMetadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"External interface of AccessControl declared to support ERC165 detection.\",\"events\":{\"RoleAdminChanged(bytes32,bytes32,bytes32)\":{\"details\":\"Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._\"},\"RoleGranted(bytes32,address,address)\":{\"details\":\"Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {AccessControl-_setupRole}.\"},\"RoleRevoked(bytes32,address,address)\":{\"details\":\"Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call: - if using `revokeRole`, it is the admin role bearer - if using `renounceRole`, it is the role bearer (i.e. `account`)\"}},\"kind\":\"dev\",\"methods\":{\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {AccessControl-_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"renounceRole(bytes32,address)\":{\"details\":\"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`.\"},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"node_modules/@openzeppelin/contracts/access/IAccessControl.sol\":\"IAccessControl\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@ensdomains/=node_modules/@ensdomains/\",\":@openzeppelin/=node_modules/@openzeppelin/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":eth-gas-reporter/=node_modules/eth-gas-reporter/\",\":forge-std/=lib/forge-std/src/\",\":hardhat-deploy/=node_modules/hardhat-deploy/\",\":hardhat/=node_modules/hardhat/\"],\"viaIR\":true},\"sources\":{\"node_modules/@openzeppelin/contracts/access/IAccessControl.sol\":{\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bb2c137c343ef0c4c7ce7b18c1d108afdc9d315a04e48307288d2d05adcbde3a\",\"dweb:/ipfs/QmUxhrAQM3MM3FF5j7AtcXLXguWCJBHJ14BRdVtuoQc8Fh\"]}},\"version\":1}", "metadata": { "compiler": { "version": "0.8.17+commit.8df45f5f" }, "language": "Solidity", "output": { "abi": [ { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32", "indexed": true }, { "internalType": "bytes32", "name": "previousAdminRole", "type": "bytes32", "indexed": true }, { "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32", "indexed": true } ], "type": "event", "name": "RoleAdminChanged", "anonymous": false }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32", "indexed": true }, { "internalType": "address", "name": "account", "type": "address", "indexed": true }, { "internalType": "address", "name": "sender", "type": "address", "indexed": true } ], "type": "event", "name": "RoleGranted", "anonymous": false }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32", "indexed": true }, { "internalType": "address", "name": "account", "type": "address", "indexed": true }, { "internalType": "address", "name": "sender", "type": "address", "indexed": true } ], "type": "event", "name": "RoleRevoked", "anonymous": false }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" } ], "stateMutability": "view", "type": "function", "name": "getRoleAdmin", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ] }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "stateMutability": "nonpayable", "type": "function", "name": "grantRole" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "stateMutability": "view", "type": "function", "name": "hasRole", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ] }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "stateMutability": "nonpayable", "type": "function", "name": "renounceRole" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "stateMutability": "nonpayable", "type": "function", "name": "revokeRole" } ], "devdoc": { "kind": "dev", "methods": { "getRoleAdmin(bytes32)": { "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {AccessControl-_setRoleAdmin}." }, "grantRole(bytes32,address)": { "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role." }, "hasRole(bytes32,address)": { "details": "Returns `true` if `account` has been granted `role`." }, "renounceRole(bytes32,address)": { "details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`." }, "revokeRole(bytes32,address)": { "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role." } }, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }, "settings": { "remappings": [ ":@ensdomains/=node_modules/@ensdomains/", ":@openzeppelin/=node_modules/@openzeppelin/", ":ds-test/=lib/forge-std/lib/ds-test/src/", ":eth-gas-reporter/=node_modules/eth-gas-reporter/", ":forge-std/=lib/forge-std/src/", ":hardhat-deploy/=node_modules/hardhat-deploy/", ":hardhat/=node_modules/hardhat/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "compilationTarget": { "node_modules/@openzeppelin/contracts/access/IAccessControl.sol": "IAccessControl" }, "libraries": {}, "viaIR": true }, "sources": { "node_modules/@openzeppelin/contracts/access/IAccessControl.sol": { "keccak256": "0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57", "urls": [ "bzz-raw://bb2c137c343ef0c4c7ce7b18c1d108afdc9d315a04e48307288d2d05adcbde3a", "dweb:/ipfs/QmUxhrAQM3MM3FF5j7AtcXLXguWCJBHJ14BRdVtuoQc8Fh" ], "license": "MIT" } }, "version": 1 }, "ast": { "absolutePath": "node_modules/@openzeppelin/contracts/access/IAccessControl.sol", "id": 25775, "exportedSymbols": { "IAccessControl": [ 25774 ] }, "nodeType": "SourceUnit", "src": "94:2826:17", "nodes": [ { "id": 25703, "nodeType": "PragmaDirective", "src": "94:23:17", "nodes": [], "literals": [ "solidity", "^", "0.8", ".0" ] }, { "id": 25774, "nodeType": "ContractDefinition", "src": "209:2710:17", "nodes": [ { "id": 25713, "nodeType": "EventDefinition", "src": "537:110:17", "nodes": [], "anonymous": false, "documentation": { "id": 25705, "nodeType": "StructuredDocumentation", "src": "240:292:17", "text": " @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n {RoleAdminChanged} not being emitted signaling this.\n _Available since v3.1._" }, "eventSelector": "bd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff", "name": "RoleAdminChanged", "nameLocation": "543:16:17", "parameters": { "id": 25712, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 25707, "indexed": true, "mutability": "mutable", "name": "role", "nameLocation": "576:4:17", "nodeType": "VariableDeclaration", "scope": 25713, "src": "560:20:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25706, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "560:7:17", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 25709, "indexed": true, "mutability": "mutable", "name": "previousAdminRole", "nameLocation": "598:17:17", "nodeType": "VariableDeclaration", "scope": 25713, "src": "582:33:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25708, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "582:7:17", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 25711, "indexed": true, "mutability": "mutable", "name": "newAdminRole", "nameLocation": "633:12:17", "nodeType": "VariableDeclaration", "scope": 25713, "src": "617:28:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25710, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "617:7:17", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "559:87:17" } }, { "id": 25722, "nodeType": "EventDefinition", "src": "870:89:17", "nodes": [], "anonymous": false, "documentation": { "id": 25714, "nodeType": "StructuredDocumentation", "src": "653:212:17", "text": " @dev Emitted when `account` is granted `role`.\n `sender` is the account that originated the contract call, an admin role\n bearer except when using {AccessControl-_setupRole}." }, "eventSelector": "2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", "name": "RoleGranted", "nameLocation": "876:11:17", "parameters": { "id": 25721, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 25716, "indexed": true, "mutability": "mutable", "name": "role", "nameLocation": "904:4:17", "nodeType": "VariableDeclaration", "scope": 25722, "src": "888:20:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25715, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "888:7:17", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 25718, "indexed": true, "mutability": "mutable", "name": "account", "nameLocation": "926:7:17", "nodeType": "VariableDeclaration", "scope": 25722, "src": "910:23:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 25717, "name": "address", "nodeType": "ElementaryTypeName", "src": "910:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 25720, "indexed": true, "mutability": "mutable", "name": "sender", "nameLocation": "951:6:17", "nodeType": "VariableDeclaration", "scope": 25722, "src": "935:22:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 25719, "name": "address", "nodeType": "ElementaryTypeName", "src": "935:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "887:71:17" } }, { "id": 25731, "nodeType": "EventDefinition", "src": "1245:89:17", "nodes": [], "anonymous": false, "documentation": { "id": 25723, "nodeType": "StructuredDocumentation", "src": "965:275:17", "text": " @dev Emitted when `account` is revoked `role`.\n `sender` is the account that originated the contract call:\n - if using `revokeRole`, it is the admin role bearer\n - if using `renounceRole`, it is the role bearer (i.e. `account`)" }, "eventSelector": "f6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b", "name": "RoleRevoked", "nameLocation": "1251:11:17", "parameters": { "id": 25730, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 25725, "indexed": true, "mutability": "mutable", "name": "role", "nameLocation": "1279:4:17", "nodeType": "VariableDeclaration", "scope": 25731, "src": "1263:20:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25724, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1263:7:17", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 25727, "indexed": true, "mutability": "mutable", "name": "account", "nameLocation": "1301:7:17", "nodeType": "VariableDeclaration", "scope": 25731, "src": "1285:23:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 25726, "name": "address", "nodeType": "ElementaryTypeName", "src": "1285:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 25729, "indexed": true, "mutability": "mutable", "name": "sender", "nameLocation": "1326:6:17", "nodeType": "VariableDeclaration", "scope": 25731, "src": "1310:22:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 25728, "name": "address", "nodeType": "ElementaryTypeName", "src": "1310:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1262:71:17" } }, { "id": 25741, "nodeType": "FunctionDefinition", "src": "1421:77:17", "nodes": [], "documentation": { "id": 25732, "nodeType": "StructuredDocumentation", "src": "1340:76:17", "text": " @dev Returns `true` if `account` has been granted `role`." }, "functionSelector": "91d14854", "implemented": false, "kind": "function", "modifiers": [], "name": "hasRole", "nameLocation": "1430:7:17", "parameters": { "id": 25737, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 25734, "mutability": "mutable", "name": "role", "nameLocation": "1446:4:17", "nodeType": "VariableDeclaration", "scope": 25741, "src": "1438:12:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25733, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1438:7:17", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 25736, "mutability": "mutable", "name": "account", "nameLocation": "1460:7:17", "nodeType": "VariableDeclaration", "scope": 25741, "src": "1452:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 25735, "name": "address", "nodeType": "ElementaryTypeName", "src": "1452:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1437:31:17" }, "returnParameters": { "id": 25740, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 25739, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 25741, "src": "1492:4:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 25738, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1492:4:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "1491:6:17" }, "scope": 25774, "stateMutability": "view", "virtual": false, "visibility": "external" }, { "id": 25749, "nodeType": "FunctionDefinition", "src": "1693:68:17", "nodes": [], "documentation": { "id": 25742, "nodeType": "StructuredDocumentation", "src": "1504:184:17", "text": " @dev Returns the admin role that controls `role`. See {grantRole} and\n {revokeRole}.\n To change a role's admin, use {AccessControl-_setRoleAdmin}." }, "functionSelector": "248a9ca3", "implemented": false, "kind": "function", "modifiers": [], "name": "getRoleAdmin", "nameLocation": "1702:12:17", "parameters": { "id": 25745, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 25744, "mutability": "mutable", "name": "role", "nameLocation": "1723:4:17", "nodeType": "VariableDeclaration", "scope": 25749, "src": "1715:12:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25743, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1715:7:17", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "1714:14:17" }, "returnParameters": { "id": 25748, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 25747, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 25749, "src": "1752:7:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25746, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1752:7:17", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "1751:9:17" }, "scope": 25774, "stateMutability": "view", "virtual": false, "visibility": "external" }, { "id": 25757, "nodeType": "FunctionDefinition", "src": "2011:59:17", "nodes": [], "documentation": { "id": 25750, "nodeType": "StructuredDocumentation", "src": "1767:239:17", "text": " @dev Grants `role` to `account`.\n If `account` had not been already granted `role`, emits a {RoleGranted}\n event.\n Requirements:\n - the caller must have ``role``'s admin role." }, "functionSelector": "2f2ff15d", "implemented": false, "kind": "function", "modifiers": [], "name": "grantRole", "nameLocation": "2020:9:17", "parameters": { "id": 25755, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 25752, "mutability": "mutable", "name": "role", "nameLocation": "2038:4:17", "nodeType": "VariableDeclaration", "scope": 25757, "src": "2030:12:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25751, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "2030:7:17", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 25754, "mutability": "mutable", "name": "account", "nameLocation": "2052:7:17", "nodeType": "VariableDeclaration", "scope": 25757, "src": "2044:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 25753, "name": "address", "nodeType": "ElementaryTypeName", "src": "2044:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "2029:31:17" }, "returnParameters": { "id": 25756, "nodeType": "ParameterList", "parameters": [], "src": "2069:0:17" }, "scope": 25774, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "id": 25765, "nodeType": "FunctionDefinition", "src": "2304:60:17", "nodes": [], "documentation": { "id": 25758, "nodeType": "StructuredDocumentation", "src": "2076:223:17", "text": " @dev Revokes `role` from `account`.\n If `account` had been granted `role`, emits a {RoleRevoked} event.\n Requirements:\n - the caller must have ``role``'s admin role." }, "functionSelector": "d547741f", "implemented": false, "kind": "function", "modifiers": [], "name": "revokeRole", "nameLocation": "2313:10:17", "parameters": { "id": 25763, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 25760, "mutability": "mutable", "name": "role", "nameLocation": "2332:4:17", "nodeType": "VariableDeclaration", "scope": 25765, "src": "2324:12:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25759, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "2324:7:17", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 25762, "mutability": "mutable", "name": "account", "nameLocation": "2346:7:17", "nodeType": "VariableDeclaration", "scope": 25765, "src": "2338:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 25761, "name": "address", "nodeType": "ElementaryTypeName", "src": "2338:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "2323:31:17" }, "returnParameters": { "id": 25764, "nodeType": "ParameterList", "parameters": [], "src": "2363:0:17" }, "scope": 25774, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "id": 25773, "nodeType": "FunctionDefinition", "src": "2855:62:17", "nodes": [], "documentation": { "id": 25766, "nodeType": "StructuredDocumentation", "src": "2370:480:17", "text": " @dev Revokes `role` from the calling account.\n Roles are often managed via {grantRole} and {revokeRole}: this function's\n purpose is to provide a mechanism for accounts to lose their privileges\n if they are compromised (such as when a trusted device is misplaced).\n If the calling account had been granted `role`, emits a {RoleRevoked}\n event.\n Requirements:\n - the caller must be `account`." }, "functionSelector": "36568abe", "implemented": false, "kind": "function", "modifiers": [], "name": "renounceRole", "nameLocation": "2864:12:17", "parameters": { "id": 25771, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 25768, "mutability": "mutable", "name": "role", "nameLocation": "2885:4:17", "nodeType": "VariableDeclaration", "scope": 25773, "src": "2877:12:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 25767, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "2877:7:17", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 25770, "mutability": "mutable", "name": "account", "nameLocation": "2899:7:17", "nodeType": "VariableDeclaration", "scope": 25773, "src": "2891:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 25769, "name": "address", "nodeType": "ElementaryTypeName", "src": "2891:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "2876:31:17" }, "returnParameters": { "id": 25772, "nodeType": "ParameterList", "parameters": [], "src": "2916:0:17" }, "scope": 25774, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "abstract": false, "baseContracts": [], "canonicalName": "IAccessControl", "contractDependencies": [], "contractKind": "interface", "documentation": { "id": 25704, "nodeType": "StructuredDocumentation", "src": "119:89:17", "text": " @dev External interface of AccessControl declared to support ERC165 detection." }, "fullyImplemented": false, "linearizedBaseContracts": [ 25774 ], "name": "IAccessControl", "nameLocation": "219:14:17", "scope": 25775, "usedErrors": [] } ], "license": "MIT" }, "id": 17 }