Go to file
Gerardo Nardelli fa10f687a6 Update project 2020-04-23 14:35:16 -03:00
my-plugin Update project 2020-04-23 14:35:16 -03:00
wallet Update project 2020-04-23 14:35:16 -03:00
.editorconfig update repo information 2020-03-20 16:25:12 -03:00
.eslintignore add linter 2020-03-20 16:14:46 -03:00
.eslintrc.js add linter 2020-03-20 16:14:46 -03:00
.gitignore fix dependencies versions 2020-03-20 15:15:08 -03:00
.nvmrc add .nvmrc 2020-03-20 17:15:32 -03:00
.prettierrc add linter 2020-03-20 16:14:46 -03:00
Dockerfile Update project 2020-04-23 14:35:16 -03:00
LICENSE update repo information 2020-03-20 16:25:12 -03:00
README.md Update project 2020-04-23 14:35:16 -03:00
lerna.json Update project 2020-04-23 14:35:16 -03:00
package.json Update project 2020-04-23 14:35:16 -03:00
tsconfig.json Update to 1.0 packages 2019-11-25 23:58:29 -05:00
yarn.lock Update project 2020-04-23 14:35:16 -03:00

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

  1. Clone the repo
  2. Run yarn install. This repo uses Lerna and Yarn Workspaces, so yarn install will install all dependencies and link modules in the repo
  3. Run yarn build

Run Burner Wallet with the plugin in Sokol & Kovan

  1. Create .env file in wallet folder and set REACT_APP_INFURA_KEY=<your key from infura.com>. Also, a private key can be set to start the wallet with the specified account REACT_APP_PK=0x...
  2. Run yarn start-wallet to start the wallet connected to Sokol & Kovan and interact with a test bridge sPoa - sPoa20 that works on top of the AMB bridge.