Go to file
Gerardo Nardelli 116b3c44dc Rename plugin 2020-04-23 13:46:08 -03:00
.github/workflows Create main.yml 2020-03-20 17:12:53 -03:00
basic-wallet Rename plugin 2020-04-23 13:46:08 -03:00
local-wallet Rename plugin 2020-04-23 13:46:08 -03:00
my-plugin Rename plugin 2020-04-23 13:46:08 -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 Rename plugin 2020-04-23 13:46:08 -03:00
LICENSE update repo information 2020-03-20 16:25:12 -03:00
README.md Rename plugin 2020-04-23 13:46:08 -03:00
lerna.json Rename plugin 2020-04-23 13:46:08 -03:00
package.json Rename plugin 2020-04-23 13:46:08 -03:00
tsconfig.json Update to 1.0 packages 2019-11-25 23:58:29 -05:00
yarn.lock Setup testnet wallet 2020-03-26 15:36:28 -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 Mainnet & Classic

  1. Create .env file in basic-wallet folder and set REACT_APP_INFURA_KEY=<your key from infura.com>
  2. 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

  1. Create .env file in local-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-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.