https://github.com/sdlyy/hardhat-template
👷 Hardhat-based solidity 0.8.0 smart contract development repository template
https://github.com/sdlyy/hardhat-template
hardhat openzeppelin-solidity openzeppelin-upgrades solidity template typescript
Last synced: 3 months ago
JSON representation
👷 Hardhat-based solidity 0.8.0 smart contract development repository template
- Host: GitHub
- URL: https://github.com/sdlyy/hardhat-template
- Owner: sdlyy
- Created: 2021-12-18T21:54:15.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2021-12-18T21:59:55.000Z (over 4 years ago)
- Last Synced: 2025-01-28T02:34:44.495Z (over 1 year ago)
- Topics: hardhat, openzeppelin-solidity, openzeppelin-upgrades, solidity, template, typescript
- Language: TypeScript
- Homepage:
- Size: 178 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hardhat template
Solidity version: **0.8.0**
Packages:
- [x] Hardhat OZ DeployProxy Scripts
- [x] Prettier - Solidity
- [x] Prettier - TypeScript
- [x] Lint - Solidity
- [x] Lint - TypeScript
- [x] Chai assertion
- [x] Mocha test runner
- [x] CI/CD ready - automated linters and test pipelines
- [x] Security - symbolic execution (CI/CD python pipeline)
- [x] Test coverage - cobertura xml (CI/CD)
- [x] Test coverage - HTML raport (CI/CD, local)
- [ ] OZ Upgradeable 4.x - not installed
Try running some of the following tasks:
```shell
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](https://hardhat.org/guides/typescript.html#performance-optimizations).