Time-Travel-(Contract-Testing)

Summary

  • 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.

How it works

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

How to Use this CLI Feature (Instructions):

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

Unix Epoch time to travel to

Troubleshooting / FAQs

n/a

Last updated

Was this helpful?