TokenController
TokenController
TokenController contract acts as a governance and access control mechanism, allowing the owner to manage minting restrictions and blacklist certain addresses to maintain control and security within the token ecosystem. It provides a flexible framework for token-related operations.
Solidity API
accessControlManager
Access control manager contract address.
minterToCap
A mapping is used to keep track of the maximum amount a minter is permitted to mint.
minterToMintedAmount
A Mapping used to keep track of the amount i.e already minted by minter.
pause
Pauses Token
⛔️ Access Requirements
Controlled by AccessControlManager.
unpause
Resumes Token
⛔️ Access Requirements
Controlled by AccessControlManager.
updateBlacklist
Function to update blacklist.
Parameters
📅 Events
Emits BlacklistUpdated event.
⛔️ Access Requirements
Controlled by AccessControlManager.
setMintCap
Sets the minting cap for minter.
Parameters
📅 Events
Emits MintCapChanged.
⛔️ Access Requirements
Controlled by AccessControlManager.
setAccessControlManager
Sets the address of the access control manager of this contract.
Parameters
📅 Events
Emits NewAccessControlManager.
⛔️ Access Requirements
Only owner.
❌ Errors
ZeroAddressNotAllowed is thrown when newAccessControlAddress_ contract address is zero.
isBlackListed
Returns the blacklist status of the address.
Parameters
Return Values
Last updated