1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00
docs/core-concepts/roles.md

37 lines
4.1 KiB
Markdown
Raw Normal View History

2021-12-28 11:09:16 +01:00
---
title: Data NFTs and datatoken roles
description: The permissions stored on chain in the contracts control the access to the data NFT (ERC721) and datatoken (ERC20) smart contract functions.
2021-12-28 11:09:16 +01:00
---
2022-01-11 07:11:28 +01:00
The permissions are stored in the data NFT (ERC721) smart contract. The data NFT (ERC721) and datatoken (ERC20) smart contracts both use this information to restrict access to the smart contract functions. The tables below list restricted actions that are accessible only to the allowed users.
## Roles in data NFT (ERC721) smart contract
2021-12-28 11:09:16 +01:00
2022-04-08 13:26:24 +02:00
| Action ↓ / Role → | NFT Owner | Manager | ERC20 Deployer | Store Updater | Metadata Updater |
| --------------------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- |
| Set token URI | | | | | |
| Add manager | <center>**✓**</center> | | | | |
| Remove manager | <center>**✓**</center> | | | | |
| Clean permissions | <center>**✓**</center> | | | | |
| Set base URI | <center>**✓**</center> | | | | |
| Set Metadata state | | | | | <center>**✓**</center> |
| Set Metadata | | | | | <center>**✓**</center> |
| Create new datatoken | | | <center>**✓**</center> | | |
| Executes any other smart contract | | <center>**✓**</center> | | | |
| Set new key-value in store | | | | <center>**✓**</center> | |
2021-12-28 11:09:16 +01:00
2022-01-11 07:11:28 +01:00
## Roles in datatoken (ERC20) smart contract
2022-01-04 08:29:16 +01:00
2022-04-08 13:26:24 +02:00
| Action &darr; / Role &rarr; | ERC20 Deployer | Minter | NFT owner | Fee manager |
| --------------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- |
| Create Fixed Rate exchange | <center>**✓**</center> | | | |
| Create Dispenser | <center>**✓**</center> | | | |
| Add minter | <center>**✓**</center> | | | |
| Remove minter | <center>**✓**</center> | | | |
| Add fee manager | <center>**✓**</center> | | | |
| Remove fee manager | <center>**✓**</center> | | | |
| Set data | <center>**✓**</center> | | | |
| Clean permissions | | | <center>**✓**</center> | |
| Mint | | <center>**✓**</center> | | |
| Set fee collector | | | | <center>**✓**</center> |