Roles Contract
Smart Contract: SRC20 specific
Created: Step 3 in SRC20 deployment (see Swarm Tokenization App)
Purpose: Manages the addresses that can perform restricted actions for an SRC20 as defined by the contract owner. SRC20 tokens can have four types of roles: Owner, Authority, Manager and Delegate
Example: NUVO on Ropsten
Feature Description
Glossary
Item | Description |
Owner | Owner is the owner of the |
Delegate | Address responsible for updating the KYA document, Net Asset Value, transfer restrictions and rules and perform bulk transfers that bypass whitelist and greylist. There can be multiple authorities granted |
Authority | Address authorized to maintain the white and greylists (add/remove) for a specific SRC20 token, as well as authorize transfers subject to a greylist |
Manager | There is one manager, which is a smart contract responsible for minting or burning tokens. It is initially set to be the |
Read Functions
Function | Description |
| Returns true/false whether an address is a Delegate for this contract |
| Returns true/false whether an address is an Authority for this contract |
| Returns the address of the Manager contract. This is normally the address of the |
| Returns the address of the contract owner |
| Returns true if the caller is the current owner |
| Returns true if the caller is the current Manager |
Write Functions
Function | Description |
| Relinquish the ability to manage this contract. Attention: If a manager renounces management there is no possible way to mint or burn SRC20 tokens anymore |
| Adds an address authorized to maintain the white and greylists (add/remove) for a specific SRC20 token, as well as authorize transfers subject to a greylist. Can only be called by the owner |
| Remove an address from being able to perform delegate functions. Can only be called by the owner |
| Can only be called by the owner and it sets the owner address to |
| Removes an address authorized to maintain the white and greylists (add/remove) for a specific SRC20 token, as well as authorize transfers subject to a greylist. Can only be called by the owner |
| A manager can transfer their role to a new address |
| Add an address that is able to perform delegate only functions. Can only be called by the owner |
| An owner can transfer their role to a new address or to a multisig wallet or to a multisig wallet |
Last updated