Skip to content

An ERC721 extension that enables tier-based NFT collections by leveraging extra data storage for efficient token-tier mapping.

Notifications You must be signed in to change notification settings

0xkuwabatake/ERC721T

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERC721T

About

ERC721T extends Solady’s ERC721 by mapping token IDs to Tier IDs using extra data packing, enabling tier-based NFT collections with efficient on-chain storage.

Use Cases

  1. Tier-Based Membership NFTs (e.g., Gold, Silver, Bronze memberships)
  2. Ticketing Systems (e.g., Multi-Day Event Passes, Seat Categories)
  3. Dynamic Rarity Collections (e.g., Limited Edition vs. Open Edition NFTs)
  4. POAPs with Multiple Categories (e.g., Attendance-Based Badges)

How It Works

  1. Tier ID is assigned on mint, stored via extra data in Solady’s ERC721.
    • Tier ID cannot be zero, as zero is the default value for non-minted tokens.
    • When a token is burned, its tier ID resets to zero, ensuring no ambiguity in existence.
  2. Minting follows a sequential ID model, which is ideal for NFT collections, maintaining a structured token distribution.
  3. Supports batch minting, allowing multiple tokens to be assigned the same Tier ID in one transaction.

Example Implementation

Check out the SampleERC721T contract for a practical implementation.

Disclaimer

This contract is unaudited and provided as is, without warranties. Use at your own risk. Always conduct thorough testing before deploying in production.

About

An ERC721 extension that enables tier-based NFT collections by leveraging extra data storage for efficient token-tier mapping.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published