Overview
TheERC20 contract is used by the
ERC20Factory to
create standard tokens. It does not self-register in the constructor—the factory
calls register_erc20_from_factory after deployment.
For custom ERC20 tokens with additional logic, use
InitiaERC20
instead.
Key Features
- metadataSealed: Prevents metadata changes after sealing. Set via
updateMetadataby authority. - updateMetadata: One-time metadata update by authority (gov).
- sudoMint / sudoBurn: Chain signer operations for bridging and module interactions.
Constructor
| Name | Type | Description |
|---|---|---|
_name | string memory | The name of the token. |
_symbol | string memory | The symbol of the token. |
_decimals | uint8 | The number of decimals. |
_metadataSealed | bool | If true, metadata cannot be updated by authority. |