Template foundry repository for ad-hoc smart contracts development.
First, install foundryup (foundry toolchain installer)
curl -L https://foundry.paradigm.xyz | bashSecond, install Foundry itself. This will download forge, cast, anvil, and chisel binaries
foundryupThird, use make to install local dependencies:
make installThe template works out of the box. To clean up the repo, you may need to delete the mock contracts and tests.
Also check out relevant dependencies in the Makefile.
To run the tests, execute the following command:
make testOr to see the coverage, run:
make coverageTo deploy the contracts locally, run the following commands (in the different terminals):
make private-network
make deploy-localhost- The template comes with presetup
prettierandslippythat lint the project viahuskybefore compilation hook. - The
.env.examplefile is provided to check what is required as ENVs - Preinstalled
@openzeppelin/contractsand@solarity/solidity-lib