Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.02 KB

README.md

File metadata and controls

31 lines (24 loc) · 1.02 KB

CRA Started with Smart Contract development.

Includes a working demo of client and smart contract integrated together. Clean with no additional dependencies other than developer tools.

Client

Smart Contract

  • Hardhat
  • DX - Typechain, Typescript, eslint, prettier
  • Testing - Waffle, Chai, Mocha
  • Scripts - deploy, verification
  • Compilation - Generates the types directly in the client directory.

How to use

  1. Clone the repo
  2. In both sc and client folders install deps (yarn install)
  3. In the sc directory -
    • Create a new file .env and copy the contents of .env.example
    • Run a hardhat node yarn hardhat
    • Deploy to hardhat network yarn deploy
    • Copy the address from console.
  4. In the client folder
    • Start application yarn start
    • In the Home page /components/pages/Home enter the deployed contract address
  5. Now you should be able to connect and see the message in the UI.