Skip to content

This is the boilerplate for Hardhat Solidity Smart Contract & Typescript(TS) Projects for developers.

Notifications You must be signed in to change notification settings

0xapp123/Hardhat-Boilerplate

Repository files navigation

Hardhat-Boilerplate

This is the boilerplate for Hardhat Solidity Smart Contract & Typescript(TS) Projects for developers.

This project is intended to be used with the Hardhat Beginners Tutorial, but you should be able to follow it by yourself by reading the README and exploring its contracts, test, and ignition directories.

Quick start

The first things you need to do are cloning this repository and installing its dependencies:

git clone https://github.com/0xapp123/Hardhat-Boilerplate.git
cd Hardhat-Boilerplate
npm install

Once installed, let's run Hardhat's testing network:

npx hardhat node

Then, on a new terminal, go to the repository's root folder and run this to deploy your contract:

npx hardhat ignition deploy ./ignition/modules/Lock.js --network localhost

User Guide

You can find detailed instructions on using this repository and many tips in its documentation.

For a complete introduction to Hardhat, refer to this guide.

What's Included?

This repository uses our recommended hardhat setup, by using our @nomicfoundation/hardhat-toolbox. When you use this plugin, you'll be able to:

Troubleshooting

  • Invalid nonce errors: if you are seeing this error on the npx hardhat node console, try resetting your Metamask account. This will reset the account's transaction history and also the nonce. Open Metamask, click on your account followed by Settings > Advanced > Clear activity tab data.

Setting up your editor

Hardhat for Visual Studio Code is the official Hardhat extension that adds advanced support for Solidity to VSCode. If you use Visual Studio Code, give it a try!

Getting help and updates

If you need help with this project, or with Hardhat in general, please read this guide to learn where and how to get it.

For the latest news about Hardhat, follow us on Twitter, and don't forget to star our GitHub repository!

Happy building!

About

This is the boilerplate for Hardhat Solidity Smart Contract & Typescript(TS) Projects for developers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages