2.0.0 • Published 5 months ago

@synthetixio/governance v2.0.0

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

Synthetix Governance Modules

Governance contracts for on chain voting.

Cannon Usage

Local node spin up can be done using Cannon, simply run the following command to startup a development hardhat node with all the Governance Modules deployed:

yarn hardhat cannon

Periods

Then, for development purposes, you can for example fast forward to the nomination period on the current running node (remember to use the Proxy address as the --address paramenter):

yarn hardhat --network local fast-forward-to --address 0x866cf0358C0514D4E63fCef80fD4B57C2eE5Fbe0 nomination

Fixtures

Also, you can simulate complete epochs:

yarn hardhat --network local fixture:epoch --address 0x866cf0358C0514D4E63fCef80fD4B57C2eE5Fbe0

Which will do the following steps

  1. If on Administration Period, fast forward to Nomination
  2. Create wallets and add them as nominees
  3. Move on to Voting Period
  4. Create voters and randomly vote on candidates
  5. Move on to Evaluation Period
  6. Evaluate Votes and resolve epoch (going back to point 1.)
2.0.0

5 months ago