This repo provides a boilerplate for building a new plugin for the Burner Wallet 2.
- 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 start-local
to start the wallet while connected to Ganache, or runyarn start-basic
to start the wallet connected to Mainnet & xDai
To rename the plugin from "MyPlugin" to your own plugin name, you must update the following locations:
- Rename the
my-plugin
directory - Change
my-plugin
inlerna.json
and the rootpackage.json
- Change the name field in
package.json
in your plugin'spackage.json
file - Rename
MyPlugin.ts
- Change
MyPlugin.js
andMyPlugin.d.ts
in the pluginpackage.json
file - Change the class name in the main plugin file
- Change rename
my-plugin
dependency inbasic-wallet/package.json
&local-wallet/package.json
- In
basic-wallet/src/index.tsx
andlocal-wallet/src/index.tsx
, update the importimport MyPlugin from 'my-plugin';
as well as thenew MyPlugin()
constructor. - Finally, run
yarn install
in the root to re-link the packages