Giter Site home page Giter Site logo

priest671 / web3-typescript-fullstack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from memoriaxii/create-web3-turbo

0.0 1.0 0.0 277 KB

web3-typescript-fullstack

Shell 0.02% JavaScript 44.74% Solidity 1.11% HTML 0.84% TypeScript 46.28% SCSS 7.01%

web3-typescript-fullstack's Introduction

Batch Transaction Fullstack ( Localhost:8545 )

Screen Shot 2022-04-04 at 11 03 51 AM

This project demonstrates single transaction and batch transaction use case. It comes with a transaction and batch transaction solidity contract, a reactjs front-end to interact with transaction contract, a backend server to subscribe event and continue listen using ether.js websocket api

Try running some of the following tasks:

Note :

Please run client and backend server first to launch the app

yarn start : front-end

node backend/server.js : back-end

npx hardhat node : solidity
npx hardhat run --network localhost contract-scripts/deploy.js : solidity

Native Token to sent : ETH

.env

REACT_APP_INFURA_KEY=""
REACT_APP_ENV="MAINNET"

Init Package Setup

yarn

Typechain

npx typechain --target ethers-v5 --out-dir typechain {YOUR_PATH}/abi.json

Smart Contract ( Solidity, Hardhat )

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node contract-scripts/deploy.js
npx hardhat help
npx hardhat run --network localhost contract-scripts/deploy.js

Backend (Proxy with front end)

api 1: lastEvent API
api 2: allEvent API
api 3: blockEvent API
node backend/server.js

After event listener init, will receive any transaction that related to the events, including batch transaction and single transaction event.

Subscribe event listener screenshot ( terminal )

Screen Shot 2022-03-23 at 12 56 47 AM

Frontend

yarn start

Skillsets

Front-end : React.js, Typescript, Redux, Redux-thunk, custom webpack, ether.js, web3.js, scss
Back-end : Express, Node.js
Smart-contract: Solidity, ethers, hardhat

Todo

  1. Custom token transcation
  2. Solidity test coverage
  3. Typescript version of Express

Reference

  1. Web3React: https://hackmd.io/Ykpp1MWLTjixIZG2ZJEShA

web3-typescript-fullstack's People

Contributors

memoriaxii avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.