https://github.com/salmandabbakuti/hardhat-boilerplate
hardhat boilerplate for ethereum dapp development
https://github.com/salmandabbakuti/hardhat-boilerplate
blockchain dapps ethereum ethereum-ide hardhat hardhat-boilerplate hardhat-template smartcontracts solidity
Last synced: 6 months ago
JSON representation
hardhat boilerplate for ethereum dapp development
- Host: GitHub
- URL: https://github.com/salmandabbakuti/hardhat-boilerplate
- Owner: Salmandabbakuti
- License: mit
- Created: 2021-09-26T13:00:11.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-08T21:03:51.000Z (over 1 year ago)
- Last Synced: 2025-05-07T11:17:13.757Z (about 1 year ago)
- Topics: blockchain, dapps, ethereum, ethereum-ide, hardhat, hardhat-boilerplate, hardhat-template, smartcontracts, solidity
- Language: TypeScript
- Homepage:
- Size: 30.3 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hardhat Boilerplate
This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, a sample script that deploys that contract, and an example of a task implementation, which simply lists the available accounts with balances.
> Recommended to use Node.js v18+ and npm v8+
> Rename `env.example` to `.env` and add your env specific keys.
Try running some of the following tasks:
```bash
npm install
# starts local node
npx hardhat node
# list accounts with balances
npx hardhat accounts
# show balance eth of specified account
npx hardhat balance --account '0x47a9...'
# compile contracts
npx hardhat compile
# deploy contract defined in tasks on specified network
npx hardhat deploy --network localhost
# deploy contract in scripts/deploy.ts on specified network
npx hardhat run scripts/deploy.ts --network localhost
#check linter issues using solhint plugin
npx hardhat check
# check coverage using solidity-coverage plugin: supports hardhat network only
npx hardhat coverage --network hardhat
# unit tests including gas usage
npx hardhat test
# remove all compiled and deployed artifacts
npx hardhat clean
# verify contract
npx hardhat verify --network "" ""
# show help
npx hardhat help
```