Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Latest commit

 

History

History
42 lines (33 loc) · 1.31 KB

epoch-transition.md

File metadata and controls

42 lines (33 loc) · 1.31 KB
description
Epoch transition to the next epoch

Epoch transition

epochTransition

npx ts-node cli/index.ts epochTransition
                  [-h] 
                  [-e ETH_PROVIDER] 
                  [-t] 
                  -x CONTRACT 
                  -d ETH_PRIVKEY
  • In a Unirep system, each epoch transition is called only once.
  • After calling an epoch transition, all epoch keys in this epoch are sealed and they cannot be attested anymore.
  • After an epoch transition, the current epoch is increased by 1.

Options

  -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 contract address
  -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.

{% hint style="info" %} source: core/cli/epochTransition.ts {% endhint %}