Skip to main content

Documentation Index

Fetch the complete documentation index at: https://initialabs-mintlify-changelog-interwovenkit-1777853576.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

GitHub: ERC20Factory

Overview

The ERC20Factory contract creates new InitiaERC20 tokens and registers 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