feat(sweep): Adding token sweeping to wallet

This commit is contained in:
Chris Troutner
2020-09-25 07:01:25 -07:00
parent 5a727221e1
commit e44af92f12
5 changed files with 21 additions and 1 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ module.exports = {
options: { options: {
modules: ['bch-wallet-plugin-postoffice'] modules: ['bch-wallet-plugin-postoffice']
} }
} },
'gatsby-plugin-bch-sweep'
] ]
} }
+8
View File
@@ -22276,6 +22276,14 @@
} }
} }
}, },
"gatsby-plugin-bch-sweep": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/gatsby-plugin-bch-sweep/-/gatsby-plugin-bch-sweep-1.2.2.tgz",
"integrity": "sha512-s4xSKqFuEudYX+FcECMVTd9Soo98eOYbsF0w5HQLrNIJv8Uk/xBfTb8vkOikm03HrcOZIrbVm7+hFZoUb0WN9Q==",
"requires": {
"adminlte-2-react": "^0.1.27"
}
},
"gatsby-plugin-compile-es6-packages": { "gatsby-plugin-compile-es6-packages": {
"version": "2.1.0", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/gatsby-plugin-compile-es6-packages/-/gatsby-plugin-compile-es6-packages-2.1.0.tgz", "resolved": "https://registry.npmjs.org/gatsby-plugin-compile-es6-packages/-/gatsby-plugin-compile-es6-packages-2.1.0.tgz",
+1
View File
@@ -22,6 +22,7 @@
"bch-wallet-plugin-postoffice": "Permissionless-Software-Foundation/bch-wallet-plugin-postoffice#ct-unstable", "bch-wallet-plugin-postoffice": "Permissionless-Software-Foundation/bch-wallet-plugin-postoffice#ct-unstable",
"gatsby": "^2.23.7", "gatsby": "^2.23.7",
"gatsby-ipfs-web-wallet": "^1.9.18", "gatsby-ipfs-web-wallet": "^1.9.18",
"gatsby-plugin-bch-sweep": "^1.2.2",
"gatsby-plugin-compile-es6-packages": "^2.1.0" "gatsby-plugin-compile-es6-packages": "^2.1.0"
}, },
"repository": { "repository": {
@@ -9,10 +9,17 @@
import React from 'react' import React from 'react'
import { Sidebar } from 'adminlte-2-react' import { Sidebar } from 'adminlte-2-react'
import About from '../../about' import About from '../../about'
import Sweep from 'gatsby-plugin-bch-sweep/src/components/sweep'
const { Item } = Sidebar const { Item } = Sidebar
const MenuComponents = [ const MenuComponents = [
{
key: 'Sweep',
// component: <><p>test</p></>,
component: <Sweep key='Sweep' />,
menuItem: <Item icon='fas-cog' key='Sweep' text='Sweep' />
},
{ {
key: 'About', key: 'About',
component: <About />, component: <About />,
+3
View File
@@ -18,6 +18,9 @@ export default function HTML (props) {
{/* minimal-slp-wallet-web */} {/* minimal-slp-wallet-web */}
<script src='https://unpkg.com/minimal-slp-wallet-web' /> <script src='https://unpkg.com/minimal-slp-wallet-web' />
{/* bch-token-sweep */}
<script src='https://unpkg.com/bch-token-sweep' />
{props.headComponents} {props.headComponents}
</head> </head>
<body {...props.bodyAttributes}> <body {...props.bodyAttributes}>