This repo provides a boilerplate for building a new plugin for the Burner Wallet 2.
yarn install
. This repo uses Lerna and Yarn Workspaces, so yarn install
will install
all dependencies and link modules in the repo.env
in the basic-wallet
folder and set the contents to REACT_APP_INFURA_KEY=<your key from infura.com>
yarn start-local
to start the wallet while connected to Ganache, or run yarn start-basic
to start the wallet connected to Mainnet & xDaiTo rename the plugin from "MyPlugin" to your own plugin name, you must update the following locations:
my-plugin
directorymy-plugin
in lerna.json
and the root package.json
package.json
in your plugin's package.json
fileMyPlugin.ts
MyPlugin.js
and MyPlugin.d.ts
in the plugin package.json
filemy-plugin
dependency in basic-wallet/package.json
& local-wallet/package.json
basic-wallet/src/index.tsx
and local-wallet/src/index.tsx
, update the import
import MyPlugin from 'my-plugin';
as well as the new MyPlugin()
constructor.yarn install
in the root to re-link the packages