项目作者: miquelcabot

项目描述 :
Template for using Hardhat+Waffle+Ethers+Typescript template to compile and test a Solidity Smart Contract
高级语言: TypeScript
项目地址: git://github.com/miquelcabot/hardhat-waffle-ethers-ts-template.git
创建时间: 2021-04-07T10:50:31Z
项目社区:https://github.com/miquelcabot/hardhat-waffle-ethers-ts-template

开源协议:MIT License

下载


hardhat-waffle-ethers-ts-template

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

Prerequisites

Installation

Update env variables:

  1. vi .env.example
  2. mv .env.example .env

Install:

  1. yarn install
  2. cd frontend && yarn install

Commands

Compile:

  1. yarn compile

Run Hardhat Network:

  1. yarn node

Open a hardhat console:

  1. yarn console

Test:

  1. yarn test

Test on Rinkeby test network:

  1. yarn test:rinkeby

Test including gas-report:

  1. yarn test:gas

Deploy:

  1. yarn deploy

Deploy to Rinkeby test network:

  1. yarn deploy:rinkeby

Run prettier on smart contracts:

  1. yarn prettier

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

  1. yarn start

Launch the ReactJS test runner in the interactive watch mode:

  1. yarn test:react

Build the ReactJS app for production to the build folder:

  1. yarn build