Coder Social home page Coder Social logo

bridge-ui's Introduction

Bridge UI app to show cross chain transactions

This UI app provides an ability for a user to watch for events that is happening on both sides of the bridge.

On the left side is HomeBridge contract On the right side is ForeignBridge contract If you want to use this app, please follow the instruction:

  1. Deploy HomeBridge contract
  2. Deploy ForeignBridge contract
  3. Provide addresses into .env file
  4. Specify websockets endpoints for both sides of nodes
  5. Send native coin to HomeBridge smart contract
  6. Make sure you received ERC20 on ForeignBridge
  7. When you want to exchange ERC20 from ForeignBridge Click "Generate Signature to Home" button on the ForeignBridge chain network
  8. Make sure you have CollectedSignatures event with message hash
  9. Provide the message hash into the input box and click "Withdraw from Home" in order to get locked coins from HomeBridge to your address

.env file

(see example in example.env)

REACT_APP_HOME_BRIDGE_ADDRESS=0x8001194b6a8a386a0dc83d63e54842b0cd37e8de
REACT_APP_FOREIGN_BRIDGE_ADDRESS=0x4cfadf1d34f9f85a6b47a6a1b403c52cc6038a70
REACT_APP_FOREGIGN_WEB_SOCKETS_PARITY_URL=ws://localhost:8547
REACT_APP_HOME_WEB_SOCKETS_PARITY_URL=ws://localhost:8111

Running the app

npm install
npm start

To Deploy

npm run build

then you should have ./build folder where you can deploy it anywhere Example:

cd ./build
python -m http.server 8002

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.