Last update: September 30, 2021
WhiteListManager
Functions
DOMAIN_SEPARATOR
function DOMAIN_SEPARATOR(
) public returns (bytes32 domainSeperator)
whitelistAccount
function whitelistAccount(
) external
setWhitelisting
function setWhitelisting(
address operator,
address account,
bool approved,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external
Approves or revokes whitelisting for accounts.
Parameters:
Name | Type | Description |
---|---|---|
operator |
address | The address of the operator that approves or revokes access. |
account |
address | The address who gains or loses access. |
approved |
bool | If ‘true’, approves access - if ‘false’, revokes access. |
deadline |
uint256 | The time at which to expire the signature. |
v |
uint8 | The recovery byte of the signature. |
r |
bytes32 | Half of the ECDSA signature pair. |
s |
bytes32 | Half of the ECDSA signature pair. |
isWhitelisted
function isWhitelisted(
) public returns (bool success)
**** WHITELISTING
Adapted from OpenZeppelin utilities and Uniswap merkle distributor.
joinWhitelist
function joinWhitelist(
) external
setMerkleRoot
function setMerkleRoot(
) external
Events
WhiteListAccount
event WhiteListAccount(
)
SetMerkleRoot
event SetMerkleRoot(
)
JoinWithMerkle
event JoinWithMerkle(
)