Small boilerplate repository for developing on Foundry.
It will compile and test your contracts under src
on save. Happy coding!
Foundry is still in a very alpha version so chances are that nothing in here will work in the near future. Bugs are not only probable, they are guaranteed. This is not suitable for production.
Can be used via docker-compose:
docker-compose up
You can set environment variables and flags with an .env
file
FOUNDRY_FLAGS="--fork-url https://eth-mainnet.alchemyapi.io/v2/QfzWQxGrh8ORZGyXbpg0I8hsVDnT_yTq"
If you have nodemon already installed as a global:
nodemon <--args>
To reenable deleted git submodules, use this example:
git submodule add --force https://github.com/foundry-rs/forge-std lib/forge-std
This will redownload and link github submodules