mehedi-iitdu / hardhat-starter-kit-typescript

This is a boilerplate for hardhat smart contract projects using typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hardhat-starter-kit-typescript

Clone and install dependencies

git clone https://github.com/mehedi-iitdu/hardhat-starter-kit-typescript
cd hardhat-starter-kit-typescript

Then:

npm install

Usage

If you run npx hardhat --help you'll get an output of all the tasks you can run.

Deploying Contracts

npx hardhat deploy

Run a Local Network

One of the best ways to test and interact with smart contracts is with a local network. To run a local network with all your contracts in it, run the following:

npx hardhat node

Test

Tests are located in the test directory, and are split between unit tests and staging/testnet tests. Unit tests should only be run on local environments, and staging tests should only run on live environments.

To run unit tests:

npx test

or

npx hardhat test

To run staging tests on Rinkeby network:

npx test-staging

or

npx hardhat test --network rinkeby

Contributing

Contributions are always welcome! Open a PR or an issue!

Thank You!

About

This is a boilerplate for hardhat smart contract projects using typescript

License:MIT License


Languages

Language:TypeScript 91.6%Language:Solidity 5.4%Language:Shell 2.9%