/hardhat-react-template

Template for using Hardhat+Waffle+Ethers template to compile and test a Solidity Smart Contracts. UI with ReactJS

Primary LanguageTypeScriptMIT LicenseMIT

hardhat-waffle-ethers-ts-template

Hardhat+Waffle+Ethers+Typescript template to compile and test a Solidity Smart Contract

Prerequisites

Installation

Update env variables:

vi .env.example
mv .env.example .env

Install:

yarn install

Commands

Compile:

yarn compile

Run Hardhat Network:

yarn hnode

Open a hardhat console:

yarn console

Test:

yarn test

Test on Rinkeby test network:

yarn test:rinkeby

Test including gas-report:

yarn test:gas

Deploy:

yarn deploy

Deploy to Rinkeby test network:

yarn deploy:rinkeby

Run the ReactJS app in the development mode (open http://localhost:3000 to view it in the browser):

yarn start

Build the ReactJS app for production to the build folder:

yarn build