Skip to content

Personal Typescript + Hardhat starting template

Notifications You must be signed in to change notification settings

C-Mierez/Hardhat-TS-Template

Repository files navigation

Hardhat Typescript Template

A quick template made for personal use to ease the headache of setting up config parameters when starting a new project.

It is particularly tuned to my preferences and project structure, but feel free to use it as well 😄

I intend to keep updating as I learn more and identify recurring project features.

Features

Some of the main features and plugins being used are:

Additionally, I have also added some commonly used smart contract dependencies:

And finally, I also make use of some scripts and config in the Utils folder. Some of the hardhat files use these scripts to improve readability/maintainability.


Setup

Install all dependencies:

$ yarn install

Compile the smart contracts with Hardhat:

$ yarn hardhat compile

Don't forget to set up the .env file.

Test

Run the Mocha tests:

$ yarn test

Deploy contract to network

$ yarn hardhat deploy --network rinkeby

Cheers 😄