34 lines
1000 B
TypeScript
34 lines
1000 B
TypeScript
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 Exchange, { Uniswap, XDaiBridge } from '@burner-wallet/exchange';
|
|
import ModernUI from '@burner-wallet/modern-ui';
|
|
// import MyPlugin from 'my-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 exchange = new Exchange({
|
|
pairs: [new XDaiBridge(), new Uniswap('dai')],
|
|
});
|
|
|
|
const BurnerWallet = () =>
|
|
<ModernUI
|
|
title="Basic Wallet"
|
|
core={core}
|
|
plugins={[exchange]}
|
|
/>
|
|
|
|
|
|
ReactDOM.render(<BurnerWallet />, document.getElementById('root'));
|