IWhitelist
Functions
isWhitelistEnabled
True if whitelist is enabled, false otherwise.
function isWhitelistEnabled() external view returns (bool);
isWhitelistedUser
User => Whitelisting status.
function isWhitelistedUser(address user) external view returns (bool);
setWhitelistStatus
Enables or disables the whitelist.
function setWhitelistStatus(bool enabled) external;
Parameters
Name | Type | Description |
---|---|---|
enabled | bool | True to enable the whitelist, false to disable. |
setWhitelistedUsers
Whitelists or unwhitelists a list of users.
function setWhitelistedUsers(address[] calldata users, bool whitelisted) external;
Parameters
Name | Type | Description |
---|---|---|
users | address[] | The addresses of the users to update. |
whitelisted | bool | True to whitelist the users, false to unwhitelist. |
Events
UserWhitelistingChanged
event UserWhitelistingChanged(address indexed user, bool indexed whitelisted);
WhitelistStatusChanged
event WhitelistStatusChanged(bool indexed enabled);