Overview
TheInitiaCustomERC20 contract is a custom implementation of the ERC20 token
standard. It includes additional access control mechanisms and registry
functionalities to allow for better integration with the rollup’s underlying
Cosmos SDK stack.
This is the main ERC20 token contract that developers should use to create their
own custom ERC20 tokens on the MiniEVM.
Inheritance
IERC20: Interface for ERC20 standard functions.Ownable: Provides ownership control.ERC20Registry: Handles ERC20 registry functionalities.ERC165: Supports interface identification.ERC20ACL: Provides access control mechanisms.
State Variables
mapping(address => uint256) public balanceOf: Tracks the balance of each address.mapping(address => mapping(address => uint256)) public allowance: Tracks the allowance each address has given to another address.string public name: The name of the token.string public symbol: The symbol of the token.uint8 public decimals: The number of decimals the token uses.uint256 public totalSupply: The total supply of the token.