Whitelist
Inherits: Initializable, IWhitelist
Constants
WhitelistStorageLocation
bytes32 private constant WhitelistStorageLocation =
0x8ecd71e87c506d6932770ce52ba8e8dc85963cc6e1a5097e1b32e68fbabfcb00;Functions
_getWhitelistStorage
function _getWhitelistStorage() private pure returns (WhitelistStorage storage $);Returns
| Name | Type | Description |
|---|---|---|
| $ | WhitelistStorage |
__Whitelist_init
function __Whitelist_init(bool _initialWhitelistStatus) internal onlyInitializing;Parameters
| Name | Type | Description |
|---|---|---|
| _initialWhitelistStatus | bool |
whitelistCheck
modifier whitelistCheck();isWhitelistEnabled
True if whitelist is enabled, false otherwise.
function isWhitelistEnabled() public view override returns (bool);Returns
| Name | Type | Description |
|---|---|---|
| <none> | bool |
isWhitelistedUser
User => Whitelisting status.
function isWhitelistedUser(address user) public view override returns (bool);Parameters
| Name | Type | Description |
|---|---|---|
| user | address |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bool |
_setWhitelistStatus
Internal function to set the whitelist status.
function _setWhitelistStatus(bool enabled) internal;Parameters
| Name | Type | Description |
|---|---|---|
| enabled | bool |
_setWhitelistedUsers
Internal function to set the whitelisted users.
function _setWhitelistedUsers(address[] calldata users, bool whitelisted) internal;Parameters
| Name | Type | Description |
|---|---|---|
| users | address[] | |
| whitelisted | bool |
Structs
WhitelistStorage
Note:
- storage-location: erc7201:makina.storage.Whitelist
struct WhitelistStorage {
mapping(address user => bool isWhitelisted) _isWhitelistedUser;
bool _isWhitelistEnabled;
}Properties
| Name | Type | Description |
|---|---|---|
| _isWhitelistedUser | mapping(address user => bool isWhitelisted) | |
| _isWhitelistEnabled | bool |