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.
- Tier-Based Membership NFTs (e.g., Gold, Silver, Bronze memberships)
- Ticketing Systems (e.g., Multi-Day Event Passes, Seat Categories)
- Dynamic Rarity Collections (e.g., Limited Edition vs. Open Edition NFTs)
- POAPs with Multiple Categories (e.g., Attendance-Based Badges)
- 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.
- Minting follows a sequential ID model, which is ideal for NFT collections, maintaining a structured token distribution.
- Supports batch minting, allowing multiple tokens to be assigned the same Tier ID in one transaction.
Check out the SampleERC721T contract for a practical implementation.
This contract is unaudited and provided as is, without warranties. Use at your own risk. Always conduct thorough testing before deploying in production.