Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 8091817

Browse files
authored
Merge pull request #213 from Bitcoin-com/stage
v4.0.0
2 parents 0ce5fde + c2e1ff4 commit 8091817

10 files changed

Lines changed: 13 additions & 45 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "developer.bitcoin.com",
33
"description": "Bitcoin.com developer resources and documentation",
4-
"version": "3.7.1",
4+
"version": "4.0.0",
55
"author": "Peter <peter@bitcoin.com> and Gabriel Cardona <gabriel@bitcoin.com>",
66
"dependencies": {
77
"badger-components-react": "^0.3.0",

src/data/docs/bitbox/generating.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/data/docs/bitbox/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ To use inside a command line script or client/server app:
2626

2727
Use the [scaffold generator](./new), or manually import BITBOX into your code:
2828

29-
let BITBOXSDK = require('bitbox-sdk/lib/bitbox-sdk').default;
29+
let BITBOXSDK = require('bitbox-sdk');
3030
let BITBOX = new BITBOXSDK();

src/data/docs/bitbox/hdnode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: HDNode
33
icon: code-branch
4-
ordinal: 12
4+
ordinal: 10
55
---
66

77
### `fromSeed`

src/data/docs/bitbox/mining.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Mining
33
icon: hdd
4-
ordinal: 12
4+
ordinal: 11
55
---
66

77
### `getMiningInfo`

src/data/docs/bitbox/mnemonic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Mnemonic
33
icon: elipses
4-
ordinal: 4
4+
ordinal: 12
55
---
66

77
### `generate`

src/data/docs/slp/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ To use inside a command line script or client/server app:
2626

2727
Use the [scaffold generator](./new), or manually import SLP SDK into your code:
2828

29-
let SLPSDK = require('slp-sdk/lib/SLP').default;
29+
let SLPSDK = require('slp-sdk');
3030
let SLP = new SLPSDK();

src/data/docs/slp/slp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SLP `SLP`: instance of SLP SDK
2424

2525
##### Create instance of SLP SDK
2626

27-
let SLPSDK = require("slp-sdk/lib/SLP").default;
27+
let SLPSDK = require("slp-sdk");
2828
let SLP = new SLPSDK({
2929
restURL: "https://trest.bitcoin.com/v2/"
3030
});

src/data/tutorials/address-utxo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ BITBOX.RawTransactions.sendRawTransaction(hex).then(
232232

233233
```javascript
234234
// include BITBOX
235-
let BITBOXSDK = require('bitbox-sdk/lib/bitbox-sdk').default
235+
let BITBOXSDK = require('bitbox-sdk')
236236

237237
// Instantiate BITBOX and pass in creds for a full node.
238238
let BITBOX = new BITBOXSDK()

src/data/tutorials/bitbox-cli.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ publishedAt: 2018-07-06
55
updatedAt: 2018-07-06
66
---
77

8-
BITBOX aims to be the go-to toolset for $BCH developers. We want you to be able to run your code and tests against your BITBOX before deploying to live environments and aim for 100% Bitcoin Cash JSON RPC API coverage.
8+
BITBOX aims to be the go-to toolset for \$BCH developers. We want you to be able to run your code and tests against your BITBOX before deploying to live environments and aim for 100% Bitcoin Cash JSON RPC API coverage.
99

1010
Today we’re happy to announce that `bitbox-sdk` has 100% of the Bitcoin ABC JSON RPC. You can now use `bitbox-sdk` to have your code interface directly w/ your live running Bitcoin ABC node. Here’s how that would look.
1111

@@ -27,7 +27,7 @@ You can now have `bitbox` stub out an app scaffold and configuration. Here we’
2727
bitbox new myApp
2828
```
2929

30-
This will create a scaffold directory structure for a new $BCH app along w/ a configuration file which looks like:
30+
This will create a scaffold directory structure for a new \$BCH app along w/ a configuration file which looks like:
3131

3232
```json
3333
networks: {
@@ -39,13 +39,13 @@ networks: {
3939

4040
### Console
4141

42-
Now you can fire up `bitbox`’s console to send some commands to your running $BCH node.
42+
Now you can fire up `bitbox`’s console to send some commands to your running \$BCH node.
4343

4444
```bash
4545
bitbox console
4646
```
4747

48-
This will load the console and create a `BITBOX` object w/ the entire $BCH JSON RPC available. That `BITBOX` object can send commands to the running Bitcoin ABC node that you configured in the previous step.
48+
This will load the console and create a `BITBOX` object w/ the entire \$BCH JSON RPC available. That `BITBOX` object can send commands to the running Bitcoin ABC node that you configured in the previous step.
4949

5050
```bash
5151
> BITBOX.Network.getNetworkInfo().then((result) => { console.log(result); }, (err) => { console.log(err); });
@@ -101,7 +101,7 @@ npm install bitbox-sdk --save
101101
Next you need to `require` or `import` `BITBOXSDK` into your app depending on if you are transpiling ES6 or not. Once you `require` `BITBOXSDK` into your app you then create an instance of `BITBOX` and pass in a config object w/ the same values you used at the command line in the previous steps.
102102
103103
```javascript
104-
let BITBOXSDK = require('bitbox-sdk/lib/bitbox-sdk').default
104+
let BITBOXSDK = require('bitbox-sdk').default
105105
let BITBOX = new BITBOXSDK()
106106
107107
BITBOX.getnetworkinfo().then(

0 commit comments

Comments
 (0)