Skip to content

👷 Hardhat-based solidity 0.8.0 smart contract development repository template

Notifications You must be signed in to change notification settings

sdlyy/hardhat-template

Repository files navigation

Hardhat template

Solidity version: 0.8.0

Packages:

  • Hardhat OZ DeployProxy Scripts

  • Prettier - Solidity

  • Prettier - TypeScript

  • Lint - Solidity

  • Lint - TypeScript

  • Chai assertion

  • Mocha test runner

  • CI/CD ready - automated linters and test pipelines

  • Security - symbolic execution (CI/CD python pipeline)

  • Test coverage - cobertura xml (CI/CD)

  • Test coverage - HTML raport (CI/CD, local)

  • OZ Upgradeable 4.x - not installed

Try running some of the following tasks:

npx hardhat compile

npx hardhat clean

npx hardhat test

npx hardhat node

npx hardhat help

REPORT_GAS=true npx hardhat test

npx hardhat coverage

npx hardhat run scripts/deploy.ts

TS_NODE_FILES=true npx ts-node scripts/deploy.ts

npx eslint '**/*.{js,ts}'

npx eslint '**/*.{js,ts}' --fix

npx prettier '**/*.{json,sol,md}' --check

npx prettier '**/*.{json,sol,md}' --write

npx solhint 'contracts/**/*.sol'

npx solhint 'contracts/**/*.sol' --fix

Performance optimizations

For faster runs of your tests and scripts, consider skipping ts-node's type checking by setting the environment variable TS_NODE_TRANSPILE_ONLY to 1 in hardhat's environment. For more details see the documentation.