Coder Social home page Coder Social logo

neuromancer1729 / rimble-app-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from consensys/rimble-app-demo

0.0 1.0 0.0 8.24 MB

React Ethereum dApp demonstrating onboarding and transaction UX

Home Page: https://rimble-app-demo.netlify.com/

License: MIT License

HTML 1.23% JavaScript 98.77%

rimble-app-demo's Introduction

Rimble Demo App

Rimble Demo App

This is a React dApp that uses the Rimble UI component library and Rimble Web3 Components to walk a new user through connecting, verifying and transacting with a smart contract deployed to the Ethereum Rinkeby testnet.

Live Demo

Overview

  • Implements Rimble UI, a dApp-first design system for faster dApp development
  • Integrates Rimble Web3 Components with web3 provider for better dApp UX
  • Wraps common web3 functions for consumption by React components

Requirements

Quick start

Clone the repo

git clone https://github.com/ConsenSys/rimble-app-demo

Change directories

cd rimble-toast-demo

Install dependencies

yarn install

Start local server

yarn start

Navigate to http://localhost:3000 in your browser

Modifying smart contract

The smart contract address and the application binary interface (ABI) for the contract are both in the SmartContractCard.js file. Update these constants with your own smart contract details.

Calling methods

The RimbleWeb3.js component passes a proper for the web3.eth.contract.send method and only needs the smart contract's method name.

Onboarding Flow

The dApp demonstrates an informative, tested, and effective UI to get user's connected to your app and interacting with minimal frustration. The dApp addresses these scenarios:

  • Not on a web3-capable browser
  • No MetaMask (web3) extension available
  • Connected to wrong Ethereum network
  • EIP 1102 Connection request (with graceful fallback)
  • Personal signature request of specialized nonce to ensure connection with wallet's owner
  • Helper modals for low funds and instructions to acquire ETH
  • Transaction-initiated modals that will connect, verify, and check funds with 1 click
  • Polling for account changes and balance updates

View full onboarding flow

Customize toast message content

You can customize the toast message content. See Rimble's content guidance for writing toast messages. Read content guidance

Lifecycle states

This is meant to enhance the existing web3 states and show relevant transaction detail to the user to monitor the progress of the transaction.

  • Start
  • Pending
  • First confirmation
  • Success
  • Failure

Resources

rimble-app-demo's People

Contributors

gesquinca avatar mikelockz avatar dependabot[bot] avatar ryancreatescopy avatar

Watchers

James Cloos 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.