Epoch Transition

An epoch transition should be called to terminate an epoch

  • See (the definition of epoch transition).


npx ts-node cli/index.ts epochTransition 
                  [-e ETH_PROVIDER] 
                  -x CONTRACT 
                  (-dp | -d ETH_PRIVKEY)
  • Every user can execute epoch transition and it can only be called once.


  -e ETH_PROVIDER, --eth-provider ETH_PROVIDER
                        A connection string to an Ethereum provider. Default: http://localhost:8545
  -t, --is-test         Indicate if the provider is a testing environment
  -x CONTRACT, --contract CONTRACT
                        The Unirep Social contract address
  -dp, --prompt-for-eth-privkey
                        Whether to prompt for the user's Ethereum private key and ignore -d / --eth-privkey
  -d ETH_PRIVKEY, --eth-privkey ETH_PRIVKEY
                        The deployer's Ethereum private key

Options inherited from parent commands

  -h, --help            Show this help message and exit.

Last updated