Whitelist
Last updated
Last updated
Inherits: IWhitelist, Auth2Step
Contract for managing a whitelist of addresses
Mapping of addresses to whether they are whitelisted
EnumerableMap.AddressToUintMap internal whitelist;
constructor(address initialOwner, Authority initialAuthority) Auth2Step(initialOwner, initialAuthority);
Set the address whitelisted status
function setWhitelisted(address addr, bool isAddressWhitelisted) external requiresAuth;
Parameters
addr
address
The address to add/remove from the whitelist
isAddressWhitelisted
bool
Whether address should be whitelisted going forward
Checks if the address is whitelisted
function isWhitelisted(address addr) external view returns (bool);
Parameters
addr
address
The address to check
Returns
<none>
bool
True if the addr is whitelisted, false otherwise
Get all whitelisted addresses
function getAllWhitelisted() external view returns (address[] memory);
Returns
<none>
address[]
An array of all whitelisted addresses