Includes a working demo of client and smart contract integrated together. Clean with no additional dependencies other than developer tools.
- Create React App
- Web3 - Quiver (https://www.npmjs.com/package/@raidguild/quiver)
- DX - Typescript, eslint, prettier
- Hardhat
- DX - Typechain, Typescript, eslint, prettier
- Testing - Waffle, Chai, Mocha
- Scripts - deploy, verification
- Compilation - Generates the types directly in the client directory.
- Clone the repo
- In both sc and client folders install deps (yarn install)
- 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.
- In the client folder
- Start application
yarn start
- In the Home page /components/pages/Home enter the deployed contract address
- Start application
- Now you should be able to connect and see the message in the UI.