MiraToken

Git Source

Inherits: AccessControlEnumerable, IERC20Mintable, ERC777

State Variables

BLOCK_ROLE

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

Functions

constructor

constructor(string memory name_, string memory symbol_, address admin) ERC777(name_, symbol_, new address[](0));

mint

*Creates amount new tokens for to. Requirements:

  • the caller must have the DEFAULT_ADMIN_ROLE.*
function mint(address to, uint256 amount) external override onlyRole(DEFAULT_ADMIN_ROLE);

renounceRole

*Revokes role from the calling account. Requirements:

  • the caller must have the DEFAULT_ADMIN_ROLE.*
function renounceRole(bytes32 role, address account)
    public
    override(AccessControl, IAccessControl)
    onlyRole(DEFAULT_ADMIN_ROLE);

_send

Blocks send tokens from account from who has the BLOCK_ROLE.

function _send(
    address from,
    address to,
    uint256 amount,
    bytes memory userData,
    bytes memory operatorData,
    bool requireReceptionAck
) internal override;

_burn

Disables burn

function _burn(address, uint256, bytes memory, bytes memory) internal pure override;