The process by which this community makes decisions is called on-chain governance, and it has become a central component of decentralized protocols, fueling varied decisions such as parameter integrations with other protocols, treasury management, grants, etc
The voting power of each account in the governance setup will be determined by an ERC721 token. The token has to implement the ERC721Votes extension. This extension will keep track of historical balances so that voting power is retrieved from past snapshots rather than current balance, which is an important protection that prevents double voting.
Thought to have a fast way of bootstraping projects with best practice's in mind. Having linters, prettiers, standards on how to commit, and changelog creation & maintenance.
The core logic is given by the Governor contract, the user will choose: how voting power is determined, how many votes are needed for quorum, what options people have when casting a vote and how those votes are counted, and what type of token should be used to vote. Each of these aspects are customizable.
# Install dependencies
yarn install
# Copy Env example file
cp .env.example .env
This project includes:
yarn coverage
Runs solidity code coverage
yarn fork
Runs a mainnet fork via hardhat's node forking util.
yarn fork:script {path}
Runs the script in mainnet's fork.
yarn fork:test
Runs tests that should be run in mainnet's fork.
yarn lint:check
Runs solhint.
yarn lint:fix
Runs prettier
yarn release
Runs standard changelog, changes package.json version and modifies CHANGELOG.md accordingly.
yarn test:gas
Runs all tests and report gas usage.