Template for using Hardhat+Waffle+Ethers+Typescript template to compile and test a Solidity Smart Contract
Hardhat+Waffle+Ethers+Typescript template to compile and test a Solidity Smart Contract
npm install --global yarn
Update env variables:
vi .env.example
mv .env.example .env
Install:
yarn install
cd frontend && yarn install
Compile:
yarn compile
Run Hardhat Network:
yarn node
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 prettier on smart contracts:
yarn prettier
Run the ReactJS app in the development mode (open http://localhost:3000 to view it in the browser):
yarn start
Launch the ReactJS test runner in the interactive watch mode:
yarn test:react
Build the ReactJS app for production to the build
folder:
yarn build