-
Notifications
You must be signed in to change notification settings - Fork 160
Time Travel (Contract Testing)
Charles Plant St.Louis edited this page Jan 9, 2019
·
2 revisions
- This CLI feature is for testing purposes only (using ganache)and works by allowing the tester to travel to the future and test out the Polymath contracts.
Options Command $ node CLI/polymath-cli time_travel -h
Usage: time_travel|tt [options]
Increases time on EVM according to given value.
Options:
-p, --period <seconds> Period of time in seconds to increase
-d, --toDate <date> Human readable date ("MM/DD/YY [HH:mm:ss]") to travel to
-e, --toEpochTime <epochTime> Unix Epoch time to travel to
-h, --help output usage information
Period of time in seconds to increase
$ node CLI/polymath-cli time_travel -p 100
Current datetime is 1547057116 or 01/09/2019 13:05:16
Human readable date ("MM/DD/YY [HH:mm:ss]") to travel to
$ node CLI/polymath-cli time_travel -d 03/01/23
Current datetime is 1677646800 or 03/01/2023 00:00:00
Unix Epoch time to travel to
$ node CLI/polymath-cli time_travel -e 1551476197
Current datetime is 1551476197 or 03/01/2019 16:36:37
n/a
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