A set of smart contracts tools for governance written in vyper
- Timelock.vy - "Vyper implementation of a timelock contract for governance"
- SerpentorBravo.vy - "Vyper implementation of a governance contract for on-chain voting on proposals and execution"
The test environment requires that the vyper
compiler command can be accessed from your path
As an alternative you can also install vvm
and run
vvm install 0.3.6
This project uses foundry and apeworx to combine both unit test, fuzz tests with integration tests in python.
Install ape framework.
Install foundry
Install JS dependencies
npm install
forge build
forge test
forge test -vvv
Recommendation: for faster test times install vvm-rs. This will add a caching layer to the vyper compiler that improves test times with forge. E.g 32s-> 52ms in local benchmarks
ape compile
ape test
This is experimental software and is provided on an "as is" and "as available" basis without any warranties.
While the first release has been audited, these contracts have not been widely used in production.
- Although the functionality is meant to be compatible with other well tested governance contracts, still expect changes from the original features.
- You should thoroughly read each contract you plan to use.
Use at your own risk.