Skip to content

Commit

Permalink
Websockets scaffold.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Cardona committed Aug 14, 2018
1 parent d0018ce commit 9cb6ca2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <name>')
.option('-s, --scaffold <scaffold>', 'The framework to use. Options include react, angular, vuejs, nextjs and node.')
.option('-s, --scaffold <scaffold>', 'The framework to use. Options include react, angular, vuejs, nextjs, node and websockets.')
.option('-r, --restURL <restURL>', 'The rest URL to use. default: https://rest.bitcoin.com/v1/')
.option('-e, --environment <environment>', 'environment of running BITBOX instance. Ex: production, staging. (Default: development)')
.description(`create a new BITBOX application`)
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion lib/Address.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ export declare interface AddressDetailsResult {
}

export declare interface AddressUtxoResult {
address: string;
txid: string;
vout: number;
scriptPubKey: string;
amount: number;
satoshis: number;
height: number;
confirmations: number;
legacyAddress: string;
cashAddress: string;
}

export declare interface AddressUnconfirmedResult {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 9cb6ca2

Please sign in to comment.