Foundry contracts templates
Click use this template on Github to create a new repository with this repo as the initial state.
Or, if your repo already exists, run:
forge init --template https://github.com/finiam/contracts-template
git submodule update --init --recursive
forge installYou have 2 options , Nix or system dependencies with asdf.
We recomend you have direnv installed for both of them
We have a flake file.
Add experimental-features = nix-command flakes to your ~/.config/nix/nix.conf
And uncomment the use flake line on your .envrc
All the dependencies should be installed for you by nix
If you need to install and read about forgery please go to
You need node 16 and yarn
You can use asdf and run asdf install
Deployment & Verification
Inside the bin/ directory there are a few scripts that can be used to deploy and verify contracts.These are simple wrappers for forge.
Interacting with contracts
Inside the bin/ directory there are a few scripts that can be used to send transactions and read contract state. These are simple wrappers for cast.
To learn about testing in Foundry see solmate
See the Foundry configuration documentation.