Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.68 KB

File metadata and controls

28 lines (20 loc) · 1.68 KB

Nft Roles

Coverage Status Github Badge solidity - v0.8.9 License: CC0 v1 Discord Twitter Follow

This repository contains a minimal implementation of ERC-7432 (Non-Fungible Token Roles). ERC-7432 introduces role management for NFTs. Each role assignment is associated with a single NFT and expires automatically at a given timestamp.

ERC-7432 can be deeply integrated with dApps to create a utility-sharing mechanism. A good example is in digital real estate. A user can create a digital property NFT and grant a keccak256("PROPERTY_MANAGER") role to another user, allowing them to delegate specific utility without compromising ownership. The same user could also grant multiple keccak256("PROPERTY_TENANT") roles, allowing the grantees to access and interact with the digital property.

You can find the full specification here.

Build

npm install
npm run build

Test

npm run test