EVM
ERC20Factory
GitHub: ERC20Factory
Overview
The ERC20Factory
contract is designed to create new InitiaERC20 tokens and register them with the MiniEVM’s ERC20Registry
Imports
- InitiaERC20.sol: Contains the implementation of the ERC20 token.
- ERC20Registry.sol: Contains the implementation of the ERC20 registry.
Events
ERC20Created
Emitted when a new ERC20 token is created.
Parameter | Type | Description |
---|---|---|
erc20 | address indexed | The address of the newly created ERC20 token |
owner | address indexed | The address of the owner of the newly created ERC20 token |
Functions
createERC20
Creates a new ERC20 token and registers it with the ERC20 registry.
Parameters
Name | Type | Description |
---|---|---|
name | string memory | The name of the new ERC20 token |
symbol | string memory | The symbol of the new ERC20 token |
decimals | uint8 | The decimal precision of the new ERC20 token |
Returns
Type | Description |
---|---|
address | The address of the newly created ERC20 token |
Emits
Was this page helpful?