diff --git a/gatsby-config.js b/gatsby-config.js index 9aacd81..2b22f20 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -25,7 +25,7 @@ const ipfsConfig =[ icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site. }, }, - + // this (optional) plugin enables Progressive Web App + Offline functionality // To learn more, visit: https://gatsby.dev/offline // `gatsby-plugin-offline`, @@ -55,11 +55,12 @@ const normalConfig=[ icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site. }, }, - + // this (optional) plugin enables Progressive Web App + Offline functionality // To learn more, visit: https://gatsby.dev/offline // `gatsby-plugin-offline`, ] + module.exports = { siteMetadata: { title: `Gatsby IPFS Adminlte Starter`, diff --git a/package-lock.json b/package-lock.json index a31b5be..7468d89 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5582,7 +5582,7 @@ "bip39": "^3.0.2", "bip66": "^1.1.5", "bitcoincash-ops": "github:christroutner/bitcoincash-ops", - "bitcoincashjs-lib": "github:christroutner/bitcoincashjs-lib", + "bitcoincashjs-lib": "github:christroutner/bitcoincashjs-lib#master", "bitcoinjs-message": "^2.0.0", "bs58": "^4.0.1", "buffer": "^5.1.0", @@ -5645,27 +5645,6 @@ "util": "^0.12.0" } }, - "bitcoincashjs-lib": { - "version": "github:christroutner/bitcoincashjs-lib#84dbcbce600af727a6f8b3eb23ebf6571651f367", - "from": "github:christroutner/bitcoincashjs-lib", - "requires": { - "bech32": "^1.1.2", - "bigi": "^1.4.0", - "bip66": "^1.1.0", - "bitcoincash-ops": "github:christroutner/bitcoincash-ops", - "bs58check": "^2.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.3", - "ecurve": "^1.0.0", - "merkle-lib": "^2.0.10", - "pushdata-bitcoin": "github:Bitcoin-com/pushdata-bitcoin#1.2.1", - "randombytes": "^2.0.1", - "safe-buffer": "^5.0.1", - "typeforce": "^1.18.0", - "varuint-bitcoin": "^1.0.4", - "wif": "^2.0.1" - } - }, "commander": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/commander/-/commander-3.0.2.tgz", @@ -6864,9 +6843,9 @@ "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" }, "cashaddrjs": { - "version": "0.3.11", - "resolved": "https://registry.npmjs.org/cashaddrjs/-/cashaddrjs-0.3.11.tgz", - "integrity": "sha512-TXbSJVCPa5ER9jRId0S1ZgxvAqLYowciCpgzDC66hYarQKeDRZ5wvjAa8xKPZwLEDI8t5fBL3f8PyPzz7PoMnA==", + "version": "0.3.12", + "resolved": "https://registry.npmjs.org/cashaddrjs/-/cashaddrjs-0.3.12.tgz", + "integrity": "sha512-GdjCYMVwd86HXcFcxyEZQLPLFv8a/u0ccYPsO0PpnUW26LhZzHX9l9QA+DjaeUah7tnebwPs33NWDbbUy8iVYQ==", "requires": { "big-integer": "1.6.36" }, @@ -11731,6 +11710,15 @@ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==" }, + "bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "optional": true, + "requires": { + "file-uri-to-path": "1.0.0" + } + }, "blob": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.4.tgz", @@ -13798,6 +13786,12 @@ "object-assign": "^4.0.1" } }, + "file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "optional": true + }, "filename-regex": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", @@ -13989,6 +13983,16 @@ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, + "fsevents": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", + "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", + "optional": true, + "requires": { + "bindings": "^1.5.0", + "nan": "^2.12.1" + } + }, "fstream": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz", @@ -19753,6 +19757,7 @@ "requires": { "anymatch": "~3.1.1", "braces": "~3.0.2", + "fsevents": "~2.1.2", "glob-parent": "~5.1.0", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", @@ -19769,6 +19774,12 @@ "to-regex-range": "^5.0.1" } }, + "fsevents": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", + "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", + "optional": true + }, "glob-parent": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", @@ -27012,9 +27023,9 @@ "integrity": "sha512-zd6KCAyXgmq6FV1mR10oKXYtvmA9vRoB6xPSTUJTbFApCtkefDnYueVR1gkof3KcdLZo1Y8mjF2DFmQMIxsHNQ==" }, "minimal-slp-wallet": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/minimal-slp-wallet/-/minimal-slp-wallet-1.3.1.tgz", - "integrity": "sha512-M1zl7Xj89wBsAbcpiwO6CvCstjkBeOM8D3v51twqUuZD+lkOHeCyVBRYI+oEzsELTkVA4vi4yCRQO7uv1vrzYg==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/minimal-slp-wallet/-/minimal-slp-wallet-1.3.3.tgz", + "integrity": "sha512-D8B4ialvnpgJlNlYKrvHlvclqKB38qIwgdypHcawLK25Imhc1YCs/pB7YKRQuAVWx8Kfs2R/Cxl0CfUt5GGfYA==", "requires": { "@chris.troutner/bch-js": "3.3.0", "apidoc": "^0.23.0", @@ -29694,13 +29705,7 @@ "version": "github:Bitcoin-com/pushdata-bitcoin#9b75eebe597853c6eeaec3e6c44b6d9c9cd7ee86", "from": "github:Bitcoin-com/pushdata-bitcoin#1.2.1", "requires": { - "bitcoincash-ops": "github:Bitcoin-com/bitcoincash-ops#2.0.0" - }, - "dependencies": { - "bitcoincash-ops": { - "version": "github:Bitcoin-com/bitcoincash-ops#6ab82cc7326c67236f3b2d9d0457258ac2ef48e3", - "from": "github:Bitcoin-com/bitcoincash-ops#2.0.0" - } + "bitcoincash-ops": "github:christroutner/bitcoincash-ops" } }, "q": { diff --git a/package.json b/package.json index 4567033..ba82ab6 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "gatsby-plugin-sharp": "^2.6.9", "gatsby-source-filesystem": "^2.3.8", "gatsby-transformer-sharp": "^2.5.3", - "minimal-slp-wallet": "^1.3.1", + "minimal-slp-wallet": "1.3.3", "prop-types": "^15.7.2", "react": "^16.12.0", "react-dom": "^16.12.0", diff --git a/src/components/admin-lte/wallet/create.js b/src/components/admin-lte/wallet/create.js index b9ffca8..b21f6ec 100644 --- a/src/components/admin-lte/wallet/create.js +++ b/src/components/admin-lte/wallet/create.js @@ -48,6 +48,7 @@ class NewWallet extends React.Component { ) } + async createWallet() { try { const bchWalletLib = new _this.BchWallet()