A template for solidity smart contract development with hardhat.
Built ❤️ with:
- Hardhat: compile, run and test smart contracts
- Biome: format, lint, and more for JavaScript
- Solhint: format, lint, etc for JavaScript
- Husky: git hooks
- Slither: solidity static code analyzer (vulnerabilities detection, code comprehension etc)
Click the Use this template
button at the top of the page to
create a new repository with this repo as the initial state.
- Install dependencies:
yarn
- Run tests:
yarn run test
- Run linting:
# checks
yarn run lint
# fix
yarn run lint:fix
- Run local chain:
yarn run chain
- Compile smart contract:
yarn run compile
- Deploy smart contract:
# local chain
yarn run deploy:local
# sepolia
yarn run deploy:sepolia
- Verify smart contract:
# local chain
npx hardhat verify "<CONTRACT ADDRESS>" --network sepolia