GitHub: ERC20Factory

Overview

The ERC20Factory contract is designed to create new InitiaERC20 tokens and register them with the MiniEVM’s ERC20Registry

Imports

Events

ERC20Created

Emitted when a new ERC20 token is created.

ParameterTypeDescription
erc20address indexedThe address of the newly created ERC20 token
owneraddress indexedThe address of the owner of the newly created ERC20 token

Functions

createERC20

Creates a new ERC20 token and registers it with the ERC20 registry.

function createERC20(string memory name, string memory symbol, uint8 decimals) external returns (address)

Parameters

NameTypeDescription
namestring memoryThe name of the new ERC20 token
symbolstring memoryThe symbol of the new ERC20 token
decimalsuint8The decimal precision of the new ERC20 token

Returns

TypeDescription
addressThe address of the newly created ERC20 token

Emits