This repository is a template for smart contract projects based on Foundry. It includes Vulcan to make your life easier when writing tests and scripts. ❤️
You can either click here to let GitHub create the project for you, or you can do it manually by using the forge init
CLI command:
forge init my-awesome-vulcan-project --template https://github.com/nomoixyz/vulcan-template
If you want to check the format of your code before creating a commit, you can use the install-fmt-hook.sh
script to create a pre-commit
Git hook. This will replace the contents of the current pre-commit
hook file, so be careful.
To install the hook, run:
chmod +x install-fmt-hook.sh
./install-fmt-hook.sh
Alternatively, you can use one of the following commands:
bash install-fmt-hook.sh
sh install-fmt-hook.sh