// SPDX-License-Identifier: MIT pragma solidity ^0.8.35; import { _AccessControl } from './_AccessControl.sol'; import { IAccessControl } from './IAccessControl.sol'; /** * @title Role-based access control system */ abstract contract AccessControl is IAccessControl, _AccessControl { /** * @inheritdoc IAccessControl */ function grantRole(bytes32 role, address account) external { _grantRole(role, account); } /** * @inheritdoc IAccessControl */ function hasRole( bytes32 role, address account ) external view returns (bool) { return _hasRole(role, account); } /** * @inheritdoc IAccessControl */ function getRoleAdmin(bytes32 role) external view returns (bytes32) { return _getRoleAdmin(role); } /** * @inheritdoc IAccessControl */ function revokeRole(bytes32 role, address account) external { _revokeRole(role, account); } /** * @inheritdoc IAccessControl */ function renounceRole(bytes32 role) external { _renounceRole(role); } /** * @inheritdoc IAccessControl */ function getRoleMember( bytes32 role, uint256 index ) external view returns (address) { return _getRoleMember(role, index); } /** * @inheritdoc IAccessControl */ function getRoleMemberCount(bytes32 role) external view returns (uint256) { return _getRoleMemberCount(role); } }