@synthetixio/governance
v3.8.1
Published
On-Chain elections for all Synthetix councils
Downloads
37
Keywords
Readme
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
- If on Administration Period, fast forward to Nomination
- Create wallets and add them as nominees
- Move on to Voting Period
- Create voters and randomly vote on candidates
- Move on to Evaluation Period
- Evaluate Votes and resolve epoch (going back to point
1.
)