Code Monkey home page Code Monkey logo

crosschain's Introduction

Crosschain Deposit React App

Contracts Dev

Features

Supplied Chain

  • Polygon -> BSC Mainnet
  • Mumbai -> BSC Testnet
  • Fuji -> BSC Testnet

Supplied Token

  • Polygon : USDT, USDC
  • Mumbai : USDC
  • Fuji : USDC
  • BSC Mainnet : USDT, BUSD
  • BSC Testnet : USDT

Configuration

create .env file

  • REACT_APP_PRIVATE_KEY - Private key of account that is using for connect to chain
  • REACT_APP_CROSSCHAIN_DEPOSITOR_MUMBAI - CrosschainDepositor on Mumbai
  • REACT_APP_CROSSCHAIN_DEPOSITOR_POLYGON - CrosschainDepositor on Polygon
  • REACT_APP_ACCUMULATED_DEPOSITOR_BSC - AccumulatedDepositor on BSC Mainnet
  • REACT_APP_ACCUMULATED_DEPOSITOR_BSC_TESTNET - AccumulatedDepositor on BSC Testnet

Destination Chain Gas Limit

You can set the destination gas limit from source chain on /src/data/stargate.json

ex : Polygon to BSC Mainnet : "dstGasForCall" : 150000 Total gas is 1.65 MATIC

  "polygon": {
    "name": "Polygon",
    "chainId": 109,
    "feeLibrary": "0xd46ccf40d6dd371ade5c9d0e8f83354cf62285ed",
    "symbol": "MATIC",
    "dstGasForCall": 150000,
    "token": [

For Ethereum Mainnet, multiple test is required for this value

Install

npm install

Compile

npm compile

Run

npm start

crosschain's People

Contributors

redbird96 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.