Transfer Rules Contract
Smart Contract: SRC20 specific
Created: Step 1 in SRC20 deployment (see Swarm Tokenization App)
Purpose: Manages whitelists and greylists that permits addresses to hold a specific SRC20 token
Example: NUVO on Ropsten
Feature Description
Glossary
Item | Description |
Whitelist | List of addresses able to hold and transfer the specific SRC20 token referring to this |
Greylist | List of addresses able to hold and transfer SRC20 token referring to this |
Read Functions
Function | Description |
| Returns if an address is whitelisted |
| Returns the index of the most recent greylist transfer request |
| Returns the details of a specific greylist transfer request. Returns the from address, to address and the value to be transferred. Note: To view the details of |
| Returns if an address is greylisted |
| Displays the address of the corresponding |
| Displays the address of the contract owner |
| Returns if an address is greylisted |
Write Functions
Function | Description |
| Function to remove multiple addresses from the whitelist. Each account must be separated by a comma (e.g. [0x00, 0x00, 0x00]). Can only be called by an Authority, as set within the |
| Internal function when setting up a transfer. It is executed when transferring SRC20 tokens that checks if the transfer can successfully execute respecting transfer restrictions. If both addresses are on the whitelist, the transfer can go through. If either address is in the greylist, it creates a transfer authorization request. |
| Internal function callable from another contract to check if a specific transfer of this SRC20 requires authorization. It returns true if an |
| Cancels a specific transfer request. Can only be called by initiator of transfer request |
| Owner can call this function to remove multiple addresses from the whitelist. Each account must be separated by a comma (e.g. [0x00, 0x00, 0x00]) Can only be called by an Authority, as set within the |
| Adds a single address to the whitelist. Can only be called by the contract owner |
| Contract owner can renounce ownership of this contract |
| Adds multiple addresses to the whitelist. Each account must be separated by a comma (e.g. [0x00, 0x00, 0x00]). Can only be called by the contract owner |
| Removes a single address from the greylist. Can only be called by the contract owner |
| For token issuer to approve pending transfers. Note, to approve |
| Adds multiple addresses to the greylist. Each account must be separated by a comma (e.g. [0x00, 0x00, 0x00)]. Can only be called by the contract owner |
| Adds a single address to the greylist. Can only be called by the contract owner |
| Removes a single address from the whitelist. Can only be called by the contract owner |
| Transfers ownership of this contract to another address. Can only be called by the contract owner |
| Registers this |
Last updated