diff --git a/.npmignore b/.npmignore index 11b3a8f..44b1252 100644 --- a/.npmignore +++ b/.npmignore @@ -1,2 +1,3 @@ pitch.key .vscode +test.js diff --git a/index.js b/index.js old mode 100644 new mode 100755 index 2d4f580..314be09 --- a/index.js +++ b/index.js @@ -3,8 +3,11 @@ const chalk = require('chalk'); const clear = require('clear'); const figlet = require('figlet'); const util = require('util'); -const _exec = require('child_process').exec; +const _exec = require('child_process').exec; const exec = util.promisify(_exec); +const path = require('path'); + +const restApp = path.dirname(require.resolve('rest.bitcoin.com/package.json')) + '/app.js'; const BITBOXSDK = require('bitbox-sdk/lib/bitbox-sdk'); const BITBOX = new BITBOXSDK.default(); @@ -80,7 +83,7 @@ async function startBitboxApi() { // delete the pandacash console.log('Starting BITBOX API at port 3000'); - await exec('BITCOINCOM_BASEURL=http://localhost:3000/api/ RPC_BASEURL=http://localhost:18332/ RPC_PASSWORD=regtest RPC_USERNAME=regtest ZEROMQ_PORT=0 ZEROMQ_URL=0 NETWORK=local node ./node_modules/rest.bitcoin.com/app.js'); + await exec(`BITCOINCOM_BASEURL=http://localhost:3000/api/ RPC_BASEURL=http://localhost:18332/ RPC_PASSWORD=regtest RPC_USERNAME=regtest ZEROMQ_PORT=0 ZEROMQ_URL=0 NETWORK=local node ${restApp}`); } function printPandaMessage() { diff --git a/package-lock.json b/package-lock.json index 4582f69..50ec62d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { - "name": "panda-cash", - "version": "0.0.1", + "name": "pandacash-cli", + "version": "0.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -8104,7 +8104,6 @@ "bchaddrjs": "^0.2.1", "bigi": "^1.4.2", "bip21": "github:Bitcoin-com/bip21#28f8d03a3a16ed11eb5b963248ed1be8c46c6d6f", - "bip32-utils": "github:Bitcoin-com/bip32-utils#318df796443311f7e12217542f7f45d3b7791f10", "bip38": "^2.0.2", "bip39": "^2.5.0", "bip66": "^1.1.5", @@ -8137,19 +8136,6 @@ "socket.io-client": "^2.1.1", "touch": "^3.1.0", "wif": "^2.0.6" - }, - "dependencies": { - "bip32-utils": { - "version": "github:Bitcoin-com/bip32-utils#318df796443311f7e12217542f7f45d3b7791f10", - "from": "github:Bitcoin-com/bip32-utils#318df796443311f7e12217542f7f45d3b7791f10", - "requires": { - "bitbox-cli": "1.5.*", - "keccak": "^1.3.0", - "nyc": "*", - "standard": "^11.0.1", - "tape": "*" - } - } } }, "bitcoin-ops": { @@ -8218,7 +8204,6 @@ "bip38": "^2.0.2", "bip39": "^2.5.0", "bip66": "^1.1.5", - "bip68": "^1.0.4", "bitcoin-ops": "github:Bitcoin-com/bitcoincash-ops#d62a0a12ce227a63222282b5f4e9a7a23a5a6b38", "bitcoin-txdecoder": "0.0.3", "bitcoincashjs-lib": "github:Bitcoin-com/bitcoincashjs-lib#12fa5fe9b535816b54b9efedd6caf278d3e55b90", diff --git a/package.json b/package.json index 448142b..3eca72e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pandacash-cli", - "version": "0.1.0", - "description": "The vision of Panda Cash is to make Bitcoin Cash easily accessible to every developer.", + "version": "0.1.1", + "description": "pandacash-cli is a one-click blockchain solution for easier Bitcoin Cash development.", "main": "index.js", "scripts": { "start": "node index.js", @@ -13,14 +13,14 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/panda-cash/panda-cash.git" + "url": "git+https://github.com/panda-suite/pandacash-cli.git" }, "author": "", "license": "MIT", "bugs": { - "url": "https://github.com/panda-cash/panda-cash/issues" + "url": "https://github.com/panda-suite/pandacash-cli/issues" }, - "homepage": "https://github.com/panda-cash/panda-cash#readme", + "homepage": "https://github.com/panda-suite/pandacash-cli#readme", "dependencies": { "bitbox-sdk": "^2.1.1", "chalk": "^2.4.1",