IERC20Issuance_v1.sol

Git Source

Inherits: IERC20

Functions

setMinter

Sets the minting rights of an address.

function setMinter(address _minter, bool _allowed) external;

Parameters

NameTypeDescription

_minter

address

The address of the minter.

_allowed

bool

If the address is allowed to mint or not.

mint

Mints new tokens.

function mint(address _to, uint _amount) external;

Parameters

NameTypeDescription

_to

address

The address of the recipient.

_amount

uint256

The amount of tokens to mint.

burn

Burns tokens.

function burn(address _from, uint _amount) external;

Parameters

NameTypeDescription

_from

address

The address of the owner or approved address.

_amount

uint256

The amount of tokens to burn.

allowedMinters

Mapping of allowed minters.

function allowedMinters(address _minter) external view returns (bool);

Parameters

NameTypeDescription

_minter

address

The address of the minter.

Returns

NameTypeDescription

<none>

bool

If the address is allowed to mint or not.

Events

MinterSet

Emitted when the minter is set.

event MinterSet(address indexed minter, bool allowed);

Errors

IERC20Issuance__CallerIsNotMinter

The caller is not the minter.

error IERC20Issuance__CallerIsNotMinter();

Last updated