Skip to content

midgerate/smart-contract-cra-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published