Skip to content
LogoLogo

Whitelist

Git Source

Inherits: Initializable, IWhitelist

Constants

WhitelistStorageLocation

bytes32 private constant WhitelistStorageLocation =
        0x8ecd71e87c506d6932770ce52ba8e8dc85963cc6e1a5097e1b32e68fbabfcb00;

Functions

_getWhitelistStorage

function _getWhitelistStorage() private pure returns (WhitelistStorage storage $);

Returns

NameTypeDescription
$WhitelistStorage

__Whitelist_init

function __Whitelist_init(bool _initialWhitelistStatus) internal onlyInitializing;

Parameters

NameTypeDescription
_initialWhitelistStatusbool

whitelistCheck

modifier whitelistCheck();

isWhitelistEnabled

True if whitelist is enabled, false otherwise.

function isWhitelistEnabled() public view override returns (bool);

Returns

NameTypeDescription
<none>bool

isWhitelistedUser

User => Whitelisting status.

function isWhitelistedUser(address user) public view override returns (bool);

Parameters

NameTypeDescription
useraddress

Returns

NameTypeDescription
<none>bool

_setWhitelistStatus

Internal function to set the whitelist status.

function _setWhitelistStatus(bool enabled) internal;

Parameters

NameTypeDescription
enabledbool

_setWhitelistedUsers

Internal function to set the whitelisted users.

function _setWhitelistedUsers(address[] calldata users, bool whitelisted) internal;

Parameters

NameTypeDescription
usersaddress[]
whitelistedbool

Structs

WhitelistStorage

Note:

  • storage-location: erc7201:makina.storage.Whitelist
struct WhitelistStorage {
        mapping(address user => bool isWhitelisted) _isWhitelistedUser;
        bool _isWhitelistEnabled;
    }

Properties

NameTypeDescription
_isWhitelistedUsermapping(address user => bool isWhitelisted)
_isWhitelistEnabledbool