This project is boilerplate with some config, tasks, docs, coverage, verify scan to use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.
We using lint-staged and husky to execute git hooks.
npx hardhat help
npm run compile
npm run chain
npm run clean
npm run test
npm run test:watch
npm run coverage
npm run contract-size
REPORT_GAS=true npx hardhat test
npx hardhat run scripts/deploy.ts
Tasks to create new wallet --total
is a param to set how munch wallet will be created
npx hardhat createWallet --total 2 --network localhost
Add NatSpec comment into contracts to create Markdown documentation
npm run docs
Add NatSpec comment into contracts to create Markdown documentation
npm run lint
npm run format
static analysis framework and vulnerability detectors for auditing smart contract
npm run slither
npm run slither-print
This plugin helps you verify the source code for your Solidity contracts. At the moment, it supports Etherscan-based explorers, explorers compatible with its API like Blockscout
npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1"