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

4.0 KiB

title description
Data NFTs and datatoken roles The permssions 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
Deploy pool 🗸
Create Fixed Rate exchange 🗸
Create Dispenser 🗸
Add minter 🗸
Remove minter 🗸
Add fee manager 🗸
Remove fee manager 🗸
Set data 🗸
Clean permissions 🗸
Mint 🗸
Set fee collector 🗸