{ "contractName": "AccessControlEnumerable", "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": [], "name": "DEFAULT_ADMIN_ROLE", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "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" }, { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "getRoleMember", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "role", "type": "bytes32" } ], "name": "getRoleMemberCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"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\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Extension of {AccessControl} that allows enumerating the members of each role.\",\"kind\":\"dev\",\"methods\":{\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"getRoleMember(bytes32,uint256)\":{\"details\":\"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information.\"},\"getRoleMemberCount(bytes32)\":{\"details\":\"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role.\"},\"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. May emit a {RoleGranted} event.\"},\"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 revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event.\"},\"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. May emit a {RoleRevoked} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/access/AccessControlEnumerable.sol\":\"AccessControlEnumerable\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/AccessControl.sol\":{\"keccak256\":\"0x0dd6e52cb394d7f5abe5dca2d4908a6be40417914720932de757de34a99ab87f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://dc117ce50ea746cab6b97ed1a1facee17a715ae0cb95d67b943dacbaf15176fb\",\"dweb:/ipfs/QmYRZ2UGNYwsHwfNu7Wjr8L2j1LBZ1mKv6NvbwgterYMXc\"]},\"@openzeppelin/contracts/access/AccessControlEnumerable.sol\":{\"keccak256\":\"0x13f5e15f2a0650c0b6aaee2ef19e89eaf4870d6e79662d572a393334c1397247\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ee05f28f549a5d6515e152580716b87636ed4bfab9812499a6e3803df88288b\",\"dweb:/ipfs/QmeEnhdwY1t5Y3YU5a4ffzgXuToydH2PNdNxV9W7dEPRQJ\"]},\"@openzeppelin/contracts/access/IAccessControl.sol\":{\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bb2c137c343ef0c4c7ce7b18c1d108afdc9d315a04e48307288d2d05adcbde3a\",\"dweb:/ipfs/QmUxhrAQM3MM3FF5j7AtcXLXguWCJBHJ14BRdVtuoQc8Fh\"]},\"@openzeppelin/contracts/access/IAccessControlEnumerable.sol\":{\"keccak256\":\"0xba4459ab871dfa300f5212c6c30178b63898c03533a1ede28436f11546626676\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3dcc7b09bfa6e18aab262ca372f4a9b1fc82e294b430706a4e1378cf58e6a276\",\"dweb:/ipfs/QmT8oSAcesdctR15HMLhr2a1HRpXymxdjTfdtfTYJcj2N2\"]},\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6df0ddf21ce9f58271bdfaa85cde98b200ef242a05a3f85c2bc10a8294800a92\",\"dweb:/ipfs/QmRK2Y5Yc6BK7tGKkgsgn3aJEQGi5aakeSPZvS65PV8Xp3\"]},\"@openzeppelin/contracts/utils/Strings.sol\":{\"keccak256\":\"0x3088eb2868e8d13d89d16670b5f8612c4ab9ff8956272837d8e90106c59c14a0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b81d9ff6559ea5c47fc573e17ece6d9ba5d6839e213e6ebc3b4c5c8fe4199d7f\",\"dweb:/ipfs/QmPCW1bFisUzJkyjroY3yipwfism9RRCigCcK1hbXtVM8n\"]},\"@openzeppelin/contracts/utils/introspection/ERC165.sol\":{\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fb0048dee081f6fffa5f74afc3fb328483c2a30504e94a0ddd2a5114d731ec4d\",\"dweb:/ipfs/QmZptt1nmYoA5SgjwnSgWqgUSDgm4q52Yos3xhnMv3MV43\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"keccak256\":\"0xe4455ac1eb7fc497bb7402579e7b4d64d928b846fce7d2b6fde06d366f21c2b3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://cc8841b3cd48ad125e2f46323c8bad3aa0e88e399ec62acb9e57efa7e7c8058c\",\"dweb:/ipfs/QmSqE4mXHA2BXW58deDbXE8MTcsL5JSKNDbm23sVQxRLPS\"]},\"@openzeppelin/contracts/utils/math/SignedMath.sol\":{\"keccak256\":\"0xf92515413956f529d95977adc9b0567d583c6203fc31ab1c23824c35187e3ddc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c50fcc459e49a9858b6d8ad5f911295cb7c9ab57567845a250bf0153f84a95c7\",\"dweb:/ipfs/QmcEW85JRzvDkQggxiBBLVAasXWdkhEysqypj9EaB6H2g6\"]},\"@openzeppelin/contracts/utils/structs/EnumerableSet.sol\":{\"keccak256\":\"0x9f4357008a8f7d8c8bf5d48902e789637538d8c016be5766610901b4bba81514\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://20bf19b2b851f58a4c24543de80ae70b3e08621f9230eb335dc75e2d4f43f5df\",\"dweb:/ipfs/QmSYuH1AhvJkPK8hNvoPqtExBcgTB42pPRHgTHkS5c5zYW\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IAccessControlEnumerable.sol\";\nimport \"./AccessControl.sol\";\nimport \"../utils/structs/EnumerableSet.sol\";\n\n/**\n * @dev Extension of {AccessControl} that allows enumerating the members of each role.\n */\nabstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {\n using EnumerableSet for EnumerableSet.AddressSet;\n\n mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev Returns one of the accounts that have `role`. `index` must be a\n * value between 0 and {getRoleMemberCount}, non-inclusive.\n *\n * Role bearers are not sorted in any particular way, and their ordering may\n * change at any point.\n *\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\n * you perform all queries on the same block. See the following\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\n * for more information.\n */\n function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {\n return _roleMembers[role].at(index);\n }\n\n /**\n * @dev Returns the number of accounts that have `role`. Can be used\n * together with {getRoleMember} to enumerate all bearers of a role.\n */\n function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {\n return _roleMembers[role].length();\n }\n\n /**\n * @dev Overload {_grantRole} to track enumerable memberships\n */\n function _grantRole(bytes32 role, address account) internal virtual override {\n super._grantRole(role, account);\n _roleMembers[role].add(account);\n }\n\n /**\n * @dev Overload {_revokeRole} to track enumerable memberships\n */\n function _revokeRole(bytes32 role, address account) internal virtual override {\n super._revokeRole(role, account);\n _roleMembers[role].remove(account);\n }\n}\n", "sourcePath": "@openzeppelin\\contracts\\access\\AccessControlEnumerable.sol", "ast": { "absolutePath": "@openzeppelin/contracts/access/AccessControlEnumerable.sol", "exportedSymbols": { "AccessControl": [ 315 ], "AccessControlEnumerable": [ 440 ], "Context": [ 6470 ], "ERC165": [ 7163 ], "EnumerableSet": [ 8759 ], "IAccessControl": [ 513 ], "IAccessControlEnumerable": [ 538 ], "IERC165": [ 7175 ], "Math": [ 8041 ], "SignedMath": [ 8146 ], "Strings": [ 6773 ] }, "id": 441, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 317, "literals": [ "solidity", "^", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "118:23:1" }, { "absolutePath": "@openzeppelin/contracts/access/IAccessControlEnumerable.sol", "file": "./IAccessControlEnumerable.sol", "id": 318, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 441, "sourceUnit": 539, "src": "143:40:1", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@openzeppelin/contracts/access/AccessControl.sol", "file": "./AccessControl.sol", "id": 319, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 441, "sourceUnit": 316, "src": "184:29:1", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@openzeppelin/contracts/utils/structs/EnumerableSet.sol", "file": "../utils/structs/EnumerableSet.sol", "id": 320, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 441, "sourceUnit": 8760, "src": "214:44:1", "symbolAliases": [], "unitAlias": "" }, { "abstract": true, "baseContracts": [ { "baseName": { "id": 322, "name": "IAccessControlEnumerable", "nodeType": "IdentifierPath", "referencedDeclaration": 538, "src": "400:24:1" }, "id": 323, "nodeType": "InheritanceSpecifier", "src": "400:24:1" }, { "baseName": { "id": 324, "name": "AccessControl", "nodeType": "IdentifierPath", "referencedDeclaration": 315, "src": "426:13:1" }, "id": 325, "nodeType": "InheritanceSpecifier", "src": "426:13:1" } ], "canonicalName": "AccessControlEnumerable", "contractDependencies": [], "contractKind": "contract", "documentation": { "id": 321, "nodeType": "StructuredDocumentation", "src": "260:94:1", "text": " @dev Extension of {AccessControl} that allows enumerating the members of each role." }, "fullyImplemented": true, "id": 440, "linearizedBaseContracts": [ 440, 315, 7163, 7175, 538, 513, 6470 ], "name": "AccessControlEnumerable", "nameLocation": "373:23:1", "nodeType": "ContractDefinition", "nodes": [ { "id": 329, "libraryName": { "id": 326, "name": "EnumerableSet", "nodeType": "IdentifierPath", "referencedDeclaration": 8759, "src": "452:13:1" }, "nodeType": "UsingForDirective", "src": "446:49:1", "typeName": { "id": 328, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 327, "name": "EnumerableSet.AddressSet", "nodeType": "IdentifierPath", "referencedDeclaration": 8472, "src": "470:24:1" }, "referencedDeclaration": 8472, "src": "470:24:1", "typeDescriptions": { "typeIdentifier": "t_struct$_AddressSet_$8472_storage_ptr", "typeString": "struct EnumerableSet.AddressSet" } } }, { "constant": false, "id": 334, "mutability": "mutable", "name": "_roleMembers", "nameLocation": "554:12:1", "nodeType": "VariableDeclaration", "scope": 440, "src": "501:65:1", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_AddressSet_$8472_storage_$", "typeString": "mapping(bytes32 => struct EnumerableSet.AddressSet)" }, "typeName": { "id": 333, "keyType": { "id": 330, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "509:7:1", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Mapping", "src": "501:44:1", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_AddressSet_$8472_storage_$", "typeString": "mapping(bytes32 => struct EnumerableSet.AddressSet)" }, "valueType": { "id": 332, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 331, "name": "EnumerableSet.AddressSet", "nodeType": "IdentifierPath", "referencedDeclaration": 8472, "src": "520:24:1" }, "referencedDeclaration": 8472, "src": "520:24:1", "typeDescriptions": { "typeIdentifier": "t_struct$_AddressSet_$8472_storage_ptr", "typeString": "struct EnumerableSet.AddressSet" } } }, "visibility": "private" }, { "baseFunctions": [ 60 ], "body": { "id": 355, "nodeType": "Block", "src": "725:121:1", "statements": [ { "expression": { "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 353, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "id": 348, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 343, "name": "interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 337, "src": "742:11:1", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "arguments": [ { "id": 345, "name": "IAccessControlEnumerable", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 538, "src": "762:24:1", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_IAccessControlEnumerable_$538_$", "typeString": "type(contract IAccessControlEnumerable)" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_type$_t_contract$_IAccessControlEnumerable_$538_$", "typeString": "type(contract IAccessControlEnumerable)" } ], "id": 344, "name": "type", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967269, "src": "757:4:1", "typeDescriptions": { "typeIdentifier": "t_function_metatype_pure$__$returns$__$", "typeString": "function () pure" } }, "id": 346, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "757:30:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_magic_meta_type_t_contract$_IAccessControlEnumerable_$538", "typeString": "type(contract IAccessControlEnumerable)" } }, "id": 347, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "memberName": "interfaceId", "nodeType": "MemberAccess", "src": "757:42:1", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "src": "742:57:1", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "||", "rightExpression": { "arguments": [ { "id": 351, "name": "interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 337, "src": "827:11:1", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } ], "expression": { "id": 349, "name": "super", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967271, "src": "803:5:1", "typeDescriptions": { "typeIdentifier": "t_type$_t_super$_AccessControlEnumerable_$440_$", "typeString": "type(contract super AccessControlEnumerable)" } }, "id": 350, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "supportsInterface", "nodeType": "MemberAccess", "referencedDeclaration": 60, "src": "803:23:1", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_bytes4_$returns$_t_bool_$", "typeString": "function (bytes4) view returns (bool)" } }, "id": 352, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "803:36:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "742:97:1", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 342, "id": 354, "nodeType": "Return", "src": "735:104:1" } ] }, "documentation": { "id": 335, "nodeType": "StructuredDocumentation", "src": "573:56:1", "text": " @dev See {IERC165-supportsInterface}." }, "functionSelector": "01ffc9a7", "id": 356, "implemented": true, "kind": "function", "modifiers": [], "name": "supportsInterface", "nameLocation": "643:17:1", "nodeType": "FunctionDefinition", "overrides": { "id": 339, "nodeType": "OverrideSpecifier", "overrides": [], "src": "701:8:1" }, "parameters": { "id": 338, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 337, "mutability": "mutable", "name": "interfaceId", "nameLocation": "668:11:1", "nodeType": "VariableDeclaration", "scope": 356, "src": "661:18:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 336, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "661:6:1", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "visibility": "internal" } ], "src": "660:20:1" }, "returnParameters": { "id": 342, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 341, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 356, "src": "719:4:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 340, "name": "bool", "nodeType": "ElementaryTypeName", "src": "719:4:1", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "718:6:1" }, "scope": 440, "src": "634:212:1", "stateMutability": "view", "virtual": true, "visibility": "public" }, { "baseFunctions": [ 529 ], "body": { "id": 374, "nodeType": "Block", "src": "1530:52:1", "statements": [ { "expression": { "arguments": [ { "id": 371, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 361, "src": "1569:5:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "baseExpression": { "id": 367, "name": "_roleMembers", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 334, "src": "1547:12:1", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_AddressSet_$8472_storage_$", "typeString": "mapping(bytes32 => struct EnumerableSet.AddressSet storage ref)" } }, "id": 369, "indexExpression": { "id": 368, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 359, "src": "1560:4:1", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1547:18:1", "typeDescriptions": { "typeIdentifier": "t_struct$_AddressSet_$8472_storage", "typeString": "struct EnumerableSet.AddressSet storage ref" } }, "id": 370, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "at", "nodeType": "MemberAccess", "referencedDeclaration": 8595, "src": "1547:21:1", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_AddressSet_$8472_storage_ptr_$_t_uint256_$returns$_t_address_$bound_to$_t_struct$_AddressSet_$8472_storage_ptr_$", "typeString": "function (struct EnumerableSet.AddressSet storage pointer,uint256) view returns (address)" } }, "id": 372, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1547:28:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "functionReturnParameters": 366, "id": 373, "nodeType": "Return", "src": "1540:35:1" } ] }, "documentation": { "id": 357, "nodeType": "StructuredDocumentation", "src": "852:574:1", "text": " @dev Returns one of the accounts that have `role`. `index` must be a\n value between 0 and {getRoleMemberCount}, non-inclusive.\n Role bearers are not sorted in any particular way, and their ordering may\n change at any point.\n WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\n you perform all queries on the same block. See the following\n https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\n for more information." }, "functionSelector": "9010d07c", "id": 375, "implemented": true, "kind": "function", "modifiers": [], "name": "getRoleMember", "nameLocation": "1440:13:1", "nodeType": "FunctionDefinition", "overrides": { "id": 363, "nodeType": "OverrideSpecifier", "overrides": [], "src": "1503:8:1" }, "parameters": { "id": 362, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 359, "mutability": "mutable", "name": "role", "nameLocation": "1462:4:1", "nodeType": "VariableDeclaration", "scope": 375, "src": "1454:12:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 358, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1454:7:1", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 361, "mutability": "mutable", "name": "index", "nameLocation": "1476:5:1", "nodeType": "VariableDeclaration", "scope": 375, "src": "1468:13:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 360, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1468:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1453:29:1" }, "returnParameters": { "id": 366, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 365, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 375, "src": "1521:7:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 364, "name": "address", "nodeType": "ElementaryTypeName", "src": "1521:7:1", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1520:9:1" }, "scope": 440, "src": "1431:151:1", "stateMutability": "view", "virtual": true, "visibility": "public" }, { "baseFunctions": [ 537 ], "body": { "id": 390, "nodeType": "Block", "src": "1839:51:1", "statements": [ { "expression": { "arguments": [], "expression": { "argumentTypes": [], "expression": { "baseExpression": { "id": 384, "name": "_roleMembers", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 334, "src": "1856:12:1", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_AddressSet_$8472_storage_$", "typeString": "mapping(bytes32 => struct EnumerableSet.AddressSet storage ref)" } }, "id": 386, "indexExpression": { "id": 385, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 378, "src": "1869:4:1", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "1856:18:1", "typeDescriptions": { "typeIdentifier": "t_struct$_AddressSet_$8472_storage", "typeString": "struct EnumerableSet.AddressSet storage ref" } }, "id": 387, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": 8568, "src": "1856:25:1", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_AddressSet_$8472_storage_ptr_$returns$_t_uint256_$bound_to$_t_struct$_AddressSet_$8472_storage_ptr_$", "typeString": "function (struct EnumerableSet.AddressSet storage pointer) view returns (uint256)" } }, "id": 388, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1856:27:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 383, "id": 389, "nodeType": "Return", "src": "1849:34:1" } ] }, "documentation": { "id": 376, "nodeType": "StructuredDocumentation", "src": "1588:157:1", "text": " @dev Returns the number of accounts that have `role`. Can be used\n together with {getRoleMember} to enumerate all bearers of a role." }, "functionSelector": "ca15c873", "id": 391, "implemented": true, "kind": "function", "modifiers": [], "name": "getRoleMemberCount", "nameLocation": "1759:18:1", "nodeType": "FunctionDefinition", "overrides": { "id": 380, "nodeType": "OverrideSpecifier", "overrides": [], "src": "1812:8:1" }, "parameters": { "id": 379, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 378, "mutability": "mutable", "name": "role", "nameLocation": "1786:4:1", "nodeType": "VariableDeclaration", "scope": 391, "src": "1778:12:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 377, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1778:7:1", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "1777:14:1" }, "returnParameters": { "id": 383, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 382, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 391, "src": "1830:7:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 381, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1830:7:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1829:9:1" }, "scope": 440, "src": "1750:140:1", "stateMutability": "view", "virtual": true, "visibility": "public" }, { "baseFunctions": [ 283 ], "body": { "id": 414, "nodeType": "Block", "src": "2055:89:1", "statements": [ { "expression": { "arguments": [ { "id": 403, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 394, "src": "2082:4:1", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 404, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 396, "src": "2088:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "expression": { "id": 400, "name": "super", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967271, "src": "2065:5:1", "typeDescriptions": { "typeIdentifier": "t_type$_t_super$_AccessControlEnumerable_$440_$", "typeString": "type(contract super AccessControlEnumerable)" } }, "id": 402, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "_grantRole", "nodeType": "MemberAccess", "referencedDeclaration": 283, "src": "2065:16:1", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$returns$__$", "typeString": "function (bytes32,address)" } }, "id": 405, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2065:31:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 406, "nodeType": "ExpressionStatement", "src": "2065:31:1" }, { "expression": { "arguments": [ { "id": 411, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 396, "src": "2129:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "expression": { "baseExpression": { "id": 407, "name": "_roleMembers", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 334, "src": "2106:12:1", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_AddressSet_$8472_storage_$", "typeString": "mapping(bytes32 => struct EnumerableSet.AddressSet storage ref)" } }, "id": 409, "indexExpression": { "id": 408, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 394, "src": "2119:4:1", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2106:18:1", "typeDescriptions": { "typeIdentifier": "t_struct$_AddressSet_$8472_storage", "typeString": "struct EnumerableSet.AddressSet storage ref" } }, "id": 410, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", "referencedDeclaration": 8499, "src": "2106:22:1", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_AddressSet_$8472_storage_ptr_$_t_address_$returns$_t_bool_$bound_to$_t_struct$_AddressSet_$8472_storage_ptr_$", "typeString": "function (struct EnumerableSet.AddressSet storage pointer,address) returns (bool)" } }, "id": 412, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2106:31:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 413, "nodeType": "ExpressionStatement", "src": "2106:31:1" } ] }, "documentation": { "id": 392, "nodeType": "StructuredDocumentation", "src": "1896:77:1", "text": " @dev Overload {_grantRole} to track enumerable memberships" }, "id": 415, "implemented": true, "kind": "function", "modifiers": [], "name": "_grantRole", "nameLocation": "1987:10:1", "nodeType": "FunctionDefinition", "overrides": { "id": 398, "nodeType": "OverrideSpecifier", "overrides": [], "src": "2046:8:1" }, "parameters": { "id": 397, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 394, "mutability": "mutable", "name": "role", "nameLocation": "2006:4:1", "nodeType": "VariableDeclaration", "scope": 415, "src": "1998:12:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 393, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1998:7:1", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 396, "mutability": "mutable", "name": "account", "nameLocation": "2020:7:1", "nodeType": "VariableDeclaration", "scope": 415, "src": "2012:15:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 395, "name": "address", "nodeType": "ElementaryTypeName", "src": "2012:7:1", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1997:31:1" }, "returnParameters": { "id": 399, "nodeType": "ParameterList", "parameters": [], "src": "2055:0:1" }, "scope": 440, "src": "1978:166:1", "stateMutability": "nonpayable", "virtual": true, "visibility": "internal" }, { "baseFunctions": [ 314 ], "body": { "id": 438, "nodeType": "Block", "src": "2311:93:1", "statements": [ { "expression": { "arguments": [ { "id": 427, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 418, "src": "2339:4:1", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 428, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 420, "src": "2345:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "expression": { "id": 424, "name": "super", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967271, "src": "2321:5:1", "typeDescriptions": { "typeIdentifier": "t_type$_t_super$_AccessControlEnumerable_$440_$", "typeString": "type(contract super AccessControlEnumerable)" } }, "id": 426, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "_revokeRole", "nodeType": "MemberAccess", "referencedDeclaration": 314, "src": "2321:17:1", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$returns$__$", "typeString": "function (bytes32,address)" } }, "id": 429, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2321:32:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 430, "nodeType": "ExpressionStatement", "src": "2321:32:1" }, { "expression": { "arguments": [ { "id": 435, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 420, "src": "2389:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "expression": { "baseExpression": { "id": 431, "name": "_roleMembers", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 334, "src": "2363:12:1", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_AddressSet_$8472_storage_$", "typeString": "mapping(bytes32 => struct EnumerableSet.AddressSet storage ref)" } }, "id": 433, "indexExpression": { "id": 432, "name": "role", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 418, "src": "2376:4:1", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2363:18:1", "typeDescriptions": { "typeIdentifier": "t_struct$_AddressSet_$8472_storage", "typeString": "struct EnumerableSet.AddressSet storage ref" } }, "id": 434, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "remove", "nodeType": "MemberAccess", "referencedDeclaration": 8526, "src": "2363:25:1", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_AddressSet_$8472_storage_ptr_$_t_address_$returns$_t_bool_$bound_to$_t_struct$_AddressSet_$8472_storage_ptr_$", "typeString": "function (struct EnumerableSet.AddressSet storage pointer,address) returns (bool)" } }, "id": 436, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2363:34:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 437, "nodeType": "ExpressionStatement", "src": "2363:34:1" } ] }, "documentation": { "id": 416, "nodeType": "StructuredDocumentation", "src": "2150:78:1", "text": " @dev Overload {_revokeRole} to track enumerable memberships" }, "id": 439, "implemented": true, "kind": "function", "modifiers": [], "name": "_revokeRole", "nameLocation": "2242:11:1", "nodeType": "FunctionDefinition", "overrides": { "id": 422, "nodeType": "OverrideSpecifier", "overrides": [], "src": "2302:8:1" }, "parameters": { "id": 421, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 418, "mutability": "mutable", "name": "role", "nameLocation": "2262:4:1", "nodeType": "VariableDeclaration", "scope": 439, "src": "2254:12:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 417, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "2254:7:1", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 420, "mutability": "mutable", "name": "account", "nameLocation": "2276:7:1", "nodeType": "VariableDeclaration", "scope": 439, "src": "2268:15:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 419, "name": "address", "nodeType": "ElementaryTypeName", "src": "2268:7:1", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "2253:31:1" }, "returnParameters": { "id": 423, "nodeType": "ParameterList", "parameters": [], "src": "2311:0:1" }, "scope": 440, "src": "2233:171:1", "stateMutability": "nonpayable", "virtual": true, "visibility": "internal" } ], "scope": 441, "src": "355:2051:1", "usedErrors": [] } ], "src": "118:2289:1" }, "compiler": { "name": "solc", "version": "0.8.10+commit.fc410830.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.14", "updatedAt": "2023-07-12T06:52:15.160Z", "devdoc": { "details": "Extension of {AccessControl} that allows enumerating the members of each role.", "kind": "dev", "methods": { "getRoleAdmin(bytes32)": { "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}." }, "getRoleMember(bytes32,uint256)": { "details": "Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information." }, "getRoleMemberCount(bytes32)": { "details": "Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role." }, "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. May emit a {RoleGranted} event." }, "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 revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event." }, "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. May emit a {RoleRevoked} event." }, "supportsInterface(bytes4)": { "details": "See {IERC165-supportsInterface}." } }, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }