miquelcabot / hardhat-react-template

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:TypeScript 74.4%Language:JavaScript 14.0%Language:HTML 8.5%Language:Solidity 2.7%Language:Shell 0.4%