Skip to content

This is a boilerplate for hardhat smart contract projects using typescript

License

Notifications You must be signed in to change notification settings

mehedi-iitdu/hardhat-starter-kit-typescript

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published