Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AccessControlERC20MintUpgradeable

Inherits: Initializable, ERC20Upgradeable, AccessControlUpgradeable

State Variables

MINTER_ROLE

bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

BURNER_ROLE

bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");

Functions

__AccessControlERC20Mint_init

function __AccessControlERC20Mint_init(address minter, address burner) internal onlyInitializing;

__AccessControlERC20Mint_init_unchained

function __AccessControlERC20Mint_init_unchained(address minter, address burner) internal onlyInitializing;

mint

function mint(address to, uint256 amount) public onlyRole(MINTER_ROLE);

burn

function burn(address from, uint256 amount) public onlyRole(BURNER_ROLE);