@burner-wallet/erc681-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

ERC-681 Plugin for Burner Wallet

Allows scanning QR codes containing ERC-681 transaction request transactions

Usage

Install package:

yarn add @burner-wallet/erc681-plugin

Add plugin to Burner Wallet

import React from 'react';
import ReactDOM from 'react-dom';
import { xdai, dai, eth } from '@burner-wallet/assets';
import BurnerCore from '@burner-wallet/core';
import { InjectedSigner, LocalSigner } from '@burner-wallet/core/signers';
import { InfuraGateway, InjectedGateway, XDaiGateway } from '@burner-wallet/core/gateways';
import ModernUI from '@burner-wallet/modern-ui';
import ERC681Plugin from '@burner-wallet/erc681-plugin';

const core = new BurnerCore({
  signers: [new InjectedSigner(), new LocalSigner()],
  gateways: [
    new InjectedGateway(),
    new InfuraGateway(process.env.REACT_APP_INFURA_KEY),
    new XDaiGateway(),
  ],
  assets: [xdai, dai, eth],
});


const BurnerWallet = () =>
  <ModernUI
    core={core}
    plugins={[new ERC681Plugin()]}
  />

ReactDOM.render(<BurnerWallet />, document.getElementById('root'));

Readme

Keywords

none

Package Sidebar

Install

npm i @burner-wallet/erc681-plugin

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

11.7 kB

Total Files

10

Last publish

Collaborators

  • dmihal