116b3c44dc | ||
---|---|---|
.github/workflows | ||
basic-wallet | ||
local-wallet | ||
my-plugin | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.nvmrc | ||
.prettierrc | ||
Dockerfile | ||
LICENSE | ||
README.md | ||
lerna.json | ||
package.json | ||
tsconfig.json | ||
yarn.lock |
README.md
TokenBridge Burner Wallet 2 Plugin
This plugin defines a Bridge trading pair to be used in the Exchange Plugin.
Bridge trading pairs supported:
- ETC - WETC Bridge
Usage
import { Etc, Wetc, EtcGateway, WETCBridge } from 'my-plugin'
const core = new BurnerCore({
...
gateways: [new EtcGateway(), new InfuraGateway(process.env.REACT_APP_INFURA_KEY)],
assets: [Etc, Wetc]
})
const exchange = new Exchange({
pairs: [new WETCBridge()]
})
Setup
- Clone the repo
- Run
yarn install
. This repo uses Lerna and Yarn Workspaces, soyarn install
will install all dependencies and link modules in the repo - Run
yarn build
Run Burner Wallet with the plugin in Mainnet & Classic
- Create
.env
file inbasic-wallet
folder and setREACT_APP_INFURA_KEY=<your key from infura.com>
- Run
yarn start-basic
to start the wallet connected to Mainnet & Classic and interact with the ETH - WETC Bridge.
Run Burner Wallet with the plugin in Sokol & Kovan
- Create
.env
file inlocal-wallet
folder and setREACT_APP_INFURA_KEY=<your key from infura.com>
. Also, a private key can be set to start the wallet with the specified accountREACT_APP_PK=0x...
- Run
yarn start-local
to start the wallet connected to Sokol & Kovan and interact with a test bridge sPoa - sPoa20 that works on top of the AMB bridge.