Skip to content

Repository for testing governance proposals against mainnet prior to execution.

Notifications You must be signed in to change notification settings

indexed-finance/proposal-tester

Repository files navigation

@indexed-finance/proposal-tester

Hardhat package for testing contract upgrades and other proposals before executing them on-chain.

This uses the mainnet forking feature of hardhat to execute tests against already deployed contracts.

In order to run the tests, you will need to add an Alchemy API Key to .env, or configure hardhat.config.ts for use with a different provider that supports archival features. The free version of Alchemy supports this, which is why it is the default.

See .env.example for an example env configuration.

Scripts

yarn test

Runs all tests in test/

yarn coverage

Runs all tests with solidity-coverage and generates a coverage report.

yarn compile

Compiles artifacts into artifacts/ and generates typechain interfaces in typechain/

yarn lint

Runs solhint against the contracts.

About

Repository for testing governance proposals against mainnet prior to execution.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published