ERC-403 is a new Ethereum token standard designed to seamlessly integrate the capabilities of ERC-1155 and ERC-20. By combining these standards, ERC-403 enables efficient, flexible, and gas-optimized management of both fungible and non-fungible tokens within a single contract. This standard is ideal for applications requiring fractional ownership of non-fungible tokens, enhanced liquidity, and simplified token management.
- Multi-Token Capability: Supports the creation and management of both fungible (ERC-20) and non-fungible (ERC-1155) tokens.
- Batch Operations: Efficient batch transfers and operations, reducing gas costs.
- Mint-and-Burn Mechanism: Allows for the fractionalization of NFTs and the reassembly of fractionalized tokens.
- Metadata Management: Handles metadata for ERC-1155 tokens effectively.
- Security and Compatibility: Implements secure transfer and approval mechanisms, ensuring compatibility with existing ERC standards.
The ERC403 contract leverages Solmate's minimalist and gas-efficient templates to implement the core functionalities of ERC-1155 and ERC-20 within a unified framework.
The Token
contract should implement the ERC-20 standard functionalities to interact seamlessly with the ERC403 contract.
Deploy the ERC403 contract to the Ethereum network. Ensure that the Token
contract is deployed and properly referenced.
Use the _mint
and _batchMint
functions to create new ERC-1155 tokens that are linked to their ERC-20 counterparts.
Utilize safeTransferFrom
and safeBatchTransferFrom
for transferring tokens securely between addresses.
Use balanceOf
and balanceOfBatch
to check the balances of ERC-1155 tokens.
Manage token approvals with the setApprovalForAll
function.
ERC-403 aims to bridge the gap between ERC-1155 and ERC-20, providing a flexible and efficient standard for managing a wide variety of tokens on the Ethereum blockchain. This standard is ideal for applications in DeFi, gaming, digital art, and more, offering enhanced liquidity and simplified token management.
This project is licensed under the MIT License. See the LICENSE file for more details.