Git Product home page Git Product logo

symfoni-monorepo's Introduction

๐Ÿ‘ทโ€ Join our team to contribute full-time to tools like Hardhat React! ๐Ÿ‘ท

We're hiring. If you're a full-stack dApp developer, we want you! ๐Ÿ‘ˆ This is an excellent opportunity to contribute full-time to the Ethereum ecosystem.

Check out our job listing

Hardhat Autogeneration All-in-one Suite

  • Autogenerate fully typed React hooks integrated into your Hardhat smart contract watch pipeline.
  • No need to manually write your own react hooks on top of new Contract(ABI, ...) instances (which aren't function typed anyways)

Suppose you change something in your smart contract. In that case, hardhat will recompile the ABIs hardhat-react (using Typechain) will scan those and generate React context hooks for you! Plus provider, signer, and currentAdd.

This saves you a lot of time ๐Ÿ•‘

Suite includes

  • Typechain
  • Ethers.js
  • React.js
  • Hardhat
  • Autogeneration plugin

Getting started

Contribute

Packages in this repo

Here is the code for the hardhat react plugin. Lerna will symlink this package to @symfoni/hardhat-demo so we can use it there.

Test project. It's the boilerplate "SimpleStorage code" using hardhat-react for the frontend.

Developing

  1. Install lerna globally npm i -g lerna
  2. Run yarn
  3. Run yarn run bootstrap // This will install all packages and build

You need three processes running for the full development environment

  1. yarn run watch watches changes in hardhat-react plugin. Lerna will then symlink this package to be used in hardhat-demo.
  2. yarn run node runs up a blockchain node, generate typechain interfaces, compile and deploy smart-contracts then watch for changes in smart contracts and deploy them.
  3. yarn run frontend runs a dev-server for a create-react-application from packages/hardhat-demo/frontend that is served on http://localhost:3000/ with hot-reloading. This will also reload when you change smart contracts

Publish a new NPM package

  1. yarn run pubish builds all packages and published them to npm with version bump.

Use a browser wallet to interact with Ethereum

  1. Use Metamask or some other wallet provider (https://metamask.io/).
  2. Use Mnemonic "shrug antique orange tragic direct drop abstract ring carry price anchor train".
  3. Set the Network to custom rpc at "http://127.0.0.1:8545/".

The demo should be working!

symfoni-monorepo's People

Contributors

robertosnap avatar ramvi avatar elektronaut0815 avatar ryanrossiter avatar turupawn avatar alcuadrado 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.