Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions basic-wallet/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,40 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { xdai, dai, eth } from '@burner-wallet/assets';
import { NativeAsset, ERC20Asset } 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 Exchange, { Uniswap, XDaiBridge } from '@burner-wallet/exchange';
import ModernUI from '@burner-wallet/modern-ui';
import MyPlugin from 'my-plugin';

const rinkebyETH = new NativeAsset({
id: 'reth',
name: 'rETH',
network: '4',
});
const rinkebyToken = new ERC20Asset({
id: 'rinkebyToken',
name: 'Rinkeby Token',
network: '4',
address: '0x1212121212121212121212121212121212121212', // Enter your token address here
});

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 exchange = new Exchange({
pairs: [new XDaiBridge(), new Uniswap('dai')],
assets: [rinkebyETH, rinkebyToken],
});

const BurnerWallet = () =>
<ModernUI
title="Basic Wallet"
core={core}
plugins={[exchange, new MyPlugin()]}
plugins={[new MyPlugin()]}
/>


Expand Down