This is a list of the most frequently needed commands.
Build the contracts:
forge build
Delete the build artifacts and cache directories:
forge clean
Compile the contracts:
forge build
Get a test coverage report:
forge coverage
Deploy to Anvil:
bash script/deploy.local.sh
Format the contracts:
forge fmt
Get a gas report:
forge test --gas-report
Lint the contracts:
bun run lint
Run the tests:
forge test
Generate test coverage and output result to the terminal:
bun run test:coverage
Generate test coverage with lcov report (you'll have to open the ./coverage/index.html
file in your browser, to do so
simply copy paste the path):
bun run test:coverage:report
This project is licensed under MIT.