IERC20Issuance_v1.sol
Inherits: IERC20
Functions
setMinter
Sets the minting rights of an address.
function setMinter(address _minter, bool _allowed) external;
Parameters
Name
Type
Description
_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
Name
Type
Description
_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
Name
Type
Description
_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
Name
Type
Description
_minter
address
The address of the minter.
Returns
Name
Type
Description
<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