Skip to main content
GitHub: ERC20

Overview

The ERC20 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 updateMetadata by authority.
  • updateMetadata: One-time metadata update by authority (gov).
  • sudoMint / sudoBurn: Chain signer operations for bridging and module interactions.

Constructor

constructor(string memory _name, string memory _symbol, uint8 _decimals, bool _metadataSealed)
NameTypeDescription
_namestring memoryThe name of the token.
_symbolstring memoryThe symbol of the token.
_decimalsuint8The number of decimals.
_metadataSealedboolIf true, metadata cannot be updated by authority.