This is a template for Solidity projects that runs on top of Foundry. It is ready to use, so you can clone it and start building your Solidity projects right away.
To compile your Solidity contracts, run:
forge buildTo run the tests for your contracts, execute:
forge testTo format your Solidity code, use:
forge fmtThe formatter is preconfigured, and you can change its configuration in the foundry.toml file under the fmt section.
To deploy your contracts, make sure you have the DEPLOYER_PK and RPC URL environment variables set in your .env file. Then run the following command:
forge script script/Deploy.s.solTo install dependencies using Soldeer, you can use the following command example:
forge soldeer install solmate~6.7.0If you've just cloned the repository and want to download the pre-configured dependencies listed in foundry.toml, run:
forge soldeer updateThis project is licensed under MIT.