A solidity-based NFT utility management standard by 0xWira
NFTUtilities offers a comprehensive platform for NFT token holders to seamlessly assign, modify, and oversee utilities linked to their assets. This standard is compatible with web3 wallets like Phantom, Metamask, and Rainbow, so utilities can be easily discovered right on the wallet apps by the holders. This framework is made for NFT projects that wants to give practical rewards to their community beyond mere ownership of the token.
Using Paradigm's Foundry
Utility Management: Assign utilities to specific NFTs or all NFTs.
Utility Tracking: Keep track of utility uses, expiration, and deletion statuses.
Secure: Only the NFT holder can add or modify the utilities tied to their tokens.
Expandable: Utilities are defined in a separate library, making it easier to expand upon or modify the utility structure.
1. Adding Utilities:
- For specific tokens:
addUtility(tokenIds[], utilityURI, uses, utilityExpiry)
- For all tokens:
addUtilityToAll(utilityURI, uses, utilityExpiry)
2. Editing Utilities:
editUtility(utilityId, newUtilityURI, newUses, newExpiry)
3. Deleting Utilities:
deleteUtility(utilityId)
4. Using a Utility:
useUtility(tokenId, utilityId)
5. Getting Utilities for a Token:
getUtility(tokenId)
Tests are located in the tests/
directory.