Skip to content
JavaScript Shell Other
Branch: dev
Clone or download
Pull request Compare This branch is 9 commits ahead of DOSNetwork:dev.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bnbridge
cli
processing
sdk
.gitignore
README.md
install.sh

README.md

BNBridge

Features:

  • Issue a new token on the Binance network.
  • Swap a token from ERC20 to BEP2.
  • List newly issued token on Binance DEX.
  • 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

git clone https://github.com/DOSNetwork/bnbridge.exchange.git
./install.sh  (Linux Environment)

set (`DBUSER`, `DBNAME`, `DBPASSWORD`, `KEY`, `CLIPASSWORD`, `MNEMONIC`) to environment variables.
run `bash <testnet/mainnet>-setup.sh` to instantiate the DB.
Keep secrets (`MNEMONIC`, `KEY`, `DBPASSWORD`) offline and to yourself.
unset environment variables, specifically secrets, and clear bash history.
update ./config/index.js with
    - databse connection details (the same value as `DBUSER`, `DBNAME`, `DBPASSWORD`).
    - Binance connection details for mainnet/testnet.
    - Ethereum connection details for mainnet/testnet.
Config https keys and certifications for production.

cd ./sdk
node ./api.bnbridge.exchange.js
or
pm2 start api.bnbridge.exchange.js

cd ../bnbridge
vi ./src/config.js
Modify config urls that the bnbridge.excahnge API is running at. (http://localhost:8000 by default)
You can’t perform that action at this time.