This repository contains a template of a Hardhat project with additional plugins integrated. Use it as a base for your own project.
Feel free to customize it further in any way you like, as well as remove parts you find redundant.
- Run linter
solhint 'contracts/**/*.sol'
- Install
pip3 install slither-analyzer
- Run the security check
slither .
- Run the coverage check
npx hardhat coverage
- Open the results in the browser
- See results in
coverage/index.html
file
- See results in
- Run code formatter
npx prettier --write .
- Run
npx hardhat dodoc
- It's configured to run on each contracts compilation
- See results in
docs/
directory
- Run (automatically runs with tests)
npx hardhat test
- Run
npx hardhat export-abi
It automatically runs on contracts compilation
- Run
npx hardhat size-contracts
It automatically runs on contracts compilation
- Run
npx hardhat test --trace
or
npx hardhat test --fulltrace