1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-02 08:20:22 +01:00
docs/core-concepts/roles.md

4.1 KiB

title description
Data NFTs and datatoken roles The permissions stored on chain in the contracts control the access to the data NFT (ERC721) and datatoken (ERC20) smart contract functions.

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

Action ↓ / Role → NFT Owner Manager ERC20 Deployer Store Updater Metadata Updater
Set token URI
Add manager
Remove manager
Clean permissions
Set base URI
Set Metadata state
Set Metadata
Create new datatoken
Executes any other smart contract
Set new key-value in store

Roles in datatoken (ERC20) smart contract

Action ↓ / Role → ERC20 Deployer Minter NFT owner Fee manager
Create Fixed Rate exchange
Create Dispenser
Add minter
Remove minter
Add fee manager
Remove fee manager
Set data
Clean permissions
Mint
Set fee collector