Giter Club home page Giter Club logo

bnbridge.exchange's Introduction

BNBridge

Image of Harmony BNBridge

Features:

  • Token swap from BEP2 to ERC20 for Harmony.One (ONE).
  • Create a new BNB account.

Repository

./bnbridge

Front end website allowing for BNB to ERC bridge support.

./cli

Binance CLI utility.

./sdk

API used to interact with the CLI utility, Binance javascript SDK and Web3.js to enable BNB to ERC bridge utility.

Installation

sudo apt-get install libudev-dev libusb-dev usbutils
(for unix/linux) npm install --save node-pty-linux

first, install bnbcli binaries following https://docs.binance.org/api-reference/cli.html#cli-installation
and place the binaries (bnbcli/tbnbcli) in cli/node-binary directory.

mkdir -p <root>/cli/node-binary;
git clone https://github.com/binance-chain/node-binary.git
cp */0.5.8.1/linux/*bnbcli <root>/cli/node-binary/.

git clone the repo

cd ./sdk
npm install

for AWS linux, if you see error `/usr/bin/ld: cannot find -lusb-1.0` during npm install in /sdk
run `sudo yum install libusb1-devel`

run ./sdk/(testnet/mainnet)_setup.sh
this will internally ./sql/setup.sql to instantiate the DB.
update ./config/index.js with
    - databse connection details.
    - Binance cli path.
    - Binance connection details for mainnet/testnet.
    - Ethereum connection details for mainnet/testnet.
node ./api.bnbridge.exchange.js
or
pm2 start api.bnbridge.exchange.js

cd ../bnbridge

npm install
vi ./src/config.js
Modify config urls that the bnbridge.excahnge API is running at. (http://localhost:5000 by default)

bnbridge.exchange's People

Contributors

andrecronje avatar antonnell avatar denniswon avatar mikedoan avatar renewwen avatar

Watchers

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