Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 4 days ago
JSON representation

hardhat boilerplate for ethereum dapp development

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
```