IAccessRegistry
Author: luoyhang003
Interface for managing access control via whitelist and blacklist
Provides events and view functions to track and query account permissions
Functions
isWhitelisted
Checks whether a given address is whitelisted
function isWhitelisted(address _account) external view returns (bool);
Parameters
| Name | Type | Description |
|---|---|---|
_account | address | The address to check |
Returns
| Name | Type | Description |
|---|---|---|
<none> | bool | True if the address is whitelisted, false otherwise |
isBlacklisted
Checks whether a given address is blacklisted
function isBlacklisted(address _account) external view returns (bool);
Parameters
| Name | Type | Description |
|---|---|---|
_account | address | The address to check |
Returns
| Name | Type | Description |
|---|---|---|
<none> | bool | True if the address is blacklisted, false otherwise |
Events
WhitelistAdded
Emitted when an array of users is added to the whitelist.
event WhitelistAdded(address[] users);
Parameters
| Name | Type | Description |
|---|---|---|
users | address[] | An array of addresses added to the whitelist. |
BlacklistAdded
Emitted when an array of users is added to the blacklist.
event BlacklistAdded(address[] users);
Parameters
| Name | Type | Description |
|---|---|---|
users | address[] | An array of addresses added to the blacklist. |
WhitelistRemoved
Emitted when an array of users is removed from the whitelist.
event WhitelistRemoved(address[] users);
Parameters
| Name | Type | Description |
|---|---|---|
users | address[] | An array of addresses removed from the whitelist. |
BlacklistRemoved
Emitted when an array of users is removed from the blacklist.
event BlacklistRemoved(address[] users);
Parameters
| Name | Type | Description |
|---|---|---|
users | address[] | An array of addresses removed from the blacklist. |