Whitelist

Git Source

Inherits: BaseRoles

Provides whitelisting capabilities that can be inherited

State Variables

_whitelist

mapping(address => bool) private _whitelist;

whitelistedInvestors

address[] public whitelistedInvestors;

Functions

whitelistInvestor

Whitelists a single investor.

function whitelistInvestor(address investor) public onlyRole(ISSUER_ROLE);

Parameters

Name
Type
Description

investor

address

The address to whitelist.

bulkWhitelistInvestors

Whitelists a batch of investor addresses.

function bulkWhitelistInvestors(address[] calldata investors) public onlyRole(ISSUER_ROLE);

Parameters

Name
Type
Description

investors

address[]

Array of addresses to whitelist.

isWhitelisted

Returns true if an investor is whitelisted.

function isWhitelisted(address investor) public view returns (bool);

Parameters

Name
Type
Description

investor

address

The address to check.

Events

InvestorWhitelisted

Events

event InvestorWhitelisted(address indexed investor);

InvestorBatchWhitelisted

event InvestorBatchWhitelisted(address[] investors);

Last updated

Was this helpful?