Skip to content

OriumNetwork/roles-registry

Repository files navigation

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

About

ERC-7432 based Roles Registry for NFTs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •