From 9cb6ca2c037a07c02bb3ec9b61c642265af01fb6 Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Tue, 14 Aug 2018 15:10:28 -0700 Subject: [PATCH] Websockets scaffold. --- index.js | 6 ++++-- lib/Address.d.ts | 3 ++- package.json | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index aab8fcdc..131a9767 100755 --- a/index.js +++ b/index.js @@ -19,11 +19,11 @@ let corsproxy = require('corsproxy'); let cmd = require('node-cmd'); program - .version('1.4.9'); + .version('1.5.0'); program .command('new ') - .option('-s, --scaffold ', 'The framework to use. Options include react, angular, vuejs, nextjs and node.') + .option('-s, --scaffold ', 'The framework to use. Options include react, angular, vuejs, nextjs, node and websockets.') .option('-r, --restURL ', 'The rest URL to use. default: https://rest.bitcoin.com/v1/') .option('-e, --environment ', 'environment of running BITBOX instance. Ex: production, staging. (Default: development)') .description(`create a new BITBOX application`) @@ -51,6 +51,8 @@ program repo = 'https://github.com/Bitcoin-com/bitbox-scaffold-react.git'; } else if(scaffold === 'vue') { repo = 'https://github.com/Bitcoin-com/bitbox-scaffold-vue.git'; + } else if(scaffold === 'websockets') { + repo = 'https://github.com/Bitcoin-com/bitbox-scaffold-websockets.git'; } else { console.log(chalk.red(`Scaffold ${scaffold} not supported`)); process.exit(1) diff --git a/lib/Address.d.ts b/lib/Address.d.ts index e57802ca..32949c96 100644 --- a/lib/Address.d.ts +++ b/lib/Address.d.ts @@ -35,7 +35,6 @@ export declare interface AddressDetailsResult { } export declare interface AddressUtxoResult { - address: string; txid: string; vout: number; scriptPubKey: string; @@ -43,6 +42,8 @@ export declare interface AddressUtxoResult { satoshis: number; height: number; confirmations: number; + legacyAddress: string; + cashAddress: string; } export declare interface AddressUnconfirmedResult { diff --git a/package.json b/package.json index 9346764a..1633aa56 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitbox-cli", - "version": "1.4.9", + "version": "1.5.0", "description": "BITBOX javascript sdk for Bitcoin Cash", "author": "Gabriel Cardona @ Bitcoin.com", "main": "index.js",