-
Notifications
You must be signed in to change notification settings - Fork 160
Transfer manager results
Mudit Gupta edited this page May 27, 2019
·
2 revisions
A transfer manager module in Polymath core can return one of the four predefined results:
- INVALID: The transfer should not be allowed (INVALID Trumps VALID)
- NA: The result from this TM is ignored
- VALID: The transfer is valid
- FORCE_VALID: The transaction will always be valid, regardless of other TM results (FORCE_VALID Trumps INVALID)
The transfer managers are mainly of three types:
- Transfer scanners: These modules keep an eye on all the transfers but don't participate in deciding if a transfer is valid or not. These modules should always return NA during verification/execution of transfers. ScheduledCheckpoint module is one of the Transfer scanners.
- Whitelist transfer managers: Modules like manual approval transfer managers and general transfer manager fall under this category. These modules usually deal with KYC and whitelisting of addresses and return VALID if the sender and receiver are whitelisted. These modules return NA instead of INVALID when they don't have users' info as some other Whitelist module may have the relevant data. Only one such module needs to return VALID for the transfer to be deemed valid.
- Blacklist transfer manager: Modules like count transfer manager and volume restriction transfer manager are examples of blacklist transfer managers. These modules are used to add restrictions to transfers. If a restriction is triggered, these modules return INVALID, and if no restriction is triggered, these modules return NA. Blacklist transfer managers don't explicitly approve any transfers. They just make sure that the transfer is not invalid. If even a single restriction is triggered and a module returns INVALID, the transfer is deemed invalid.
NOTE: FORCE_VALID is currently not used by any module, but it can be used in a case where some transfer managers aren't playing along as needed, or Issuer wants to override the transfer restrictions.
CLI Installation
Running the CLI Features and Modules
- How to Use the POLY Faucet
- St-20 Generator
- STO Manager
- How to Use the Investor Portal
- Token Manager
- Transfer Feature
- Transfer Ownership
- Dividends Manager
- Transfer Manager
- Contract Manager
- Permission Manager
- Time Travel for Contract Testing
Modules
- LockupTransferManager
- VolumeRestrictionTransferManager
- BlacklistTransferManager
- ManualApprovalTransferManager
- CountTransferManager
- GeneralPermissionManager
- PercentageTransferManager
- GeneralTransferManager
- DividendCheckpointModules
- VestingEscrowWallet
- CappedSTO
- USDTieredSTO
- AdvancedPLCRVotingCheckpoint
- VotingCheckpointModules
- Schedule Checkpoint