Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 2.29 KB

README.md

File metadata and controls

42 lines (32 loc) · 2.29 KB

Nft Roles

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

This repository contains multiple implementations of two EIPs (Ethereum Improvement Proposals):

  • ERC-7432 (Non-Fungible Token Roles).
  • ERC-7589 (Semi-Fungible Token Roles).

The goal of these EIPs is to introduce role management for NFTs. Each role assignment is associated with one or more NFTs and expire automatically at a given timestamp. Token Roles 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 additional users to access the digital property.

You can find the full specification here: ERC-721 Token Roles and ERC-1155 Token Roles.

Implementations

Build

npm ci
npm run build

Test

npm run test