8000 GitHub - harmony-one/native-bridge: Native ONE token bridge with BEP2/ERC20 ONE
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 1, 2021. It is now read-only.
/ native-bridge Public archive

Native ONE token bridge with BEP2/ERC20 ONE

Notifications You must be signed in to change notification settings

harmony-one/native-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Native ONE token bridge with BEP2/ERC20 ONE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages

0