Socket
Book a DemoInstallSign in
Socket

@synthetixio/governance

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synthetixio/governance

On-Chain elections for all Synthetix councils

npmnpm
Version
3.12.3
Version published
Weekly downloads
37
1750%
Maintainers
3
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 22 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts