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

TrendexOne

ABI

Inherits: ITrendexOne, ERC20, ERC20Capped, ERC20Burnable, ERC20Pausable, AccessControl

State Variables

PAUSER_ROLE

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

MINTER_ROLE

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

Functions

constructor

constructor(address maintainer) ERC20("TrendexONE", "TRDX1") ERC20Capped(1_000_000_000 * 10 ** decimals());

mint

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

pause

function pause() public onlyRole(PAUSER_ROLE);

unpause

function unpause() public onlyRole(PAUSER_ROLE);

_update

function _update(address from, address to, uint256 value) internal override(ERC20, ERC20Pausable, ERC20Capped);