Skip to content

Commit 4687574

Browse files
authored
feat: Rebanding binance-chain to bnb-chain (#402)
1 parent 99c09e8 commit 4687574

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ pages.
2222
If you **do not** need Ledger support with Node.js:
2323

2424
```bash
25-
$ npm i @binance-chain/javascript-sdk --no-optional
25+
$ npm i @bnb-chain/javascript-sdk --no-optional
2626
# Or:
27-
$ yarn add @binance-chain/javascript-sdk --no-optional
27+
$ yarn add @bnb-chain/javascript-sdk --no-optional
2828
```
2929

3030
If you **need** Ledger support with Node.js:
3131

3232
```bash
33-
$ npm i @binance-chain/javascript-sdk
33+
$ npm i @bnb-chain/javascript-sdk
3434
# Or:
35-
$ yarn add @binance-chain/javascript-sdk
35+
$ yarn add @bnb-chain/javascript-sdk
3636
```
3737

3838
### Prerequisites

docs/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313
```js
1414
//common
15-
const { BncClient } = require("@binance-chain/javascript-sdk")
15+
const { BncClient } = require("@bnb-chain/javascript-sdk")
1616

1717
//es6
18-
import { BncClient } from "@binance-chain/javascript-sdk"
18+
import { BncClient } from "@bnb-chain/javascript-sdk"
1919

2020
const client = new BncClient("https://xxx.api.com/")
2121
client.initChain()

docs/api-docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# @binance-chain/javascript-sdk
2+
# @bnb-chain/javascript-sdk
33

44
## Index
55

docs/examples.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
### Example of a wallet-to-wallet transfer
66

77
```js
8-
const { BncClient } = require("@binance-chain/javascript-sdk")
8+
const { BncClient } = require("@bnb-chain/javascript-sdk")
99
const axios = require("axios")
1010

1111
const asset = "BNB" // asset string
@@ -55,7 +55,7 @@ httpClient
5555
### Example of token issuance
5656

5757
```js
58-
const { BncClient, crypto, utils } = require("@binance-chain/javascript-sdk")
58+
const { BncClient, crypto, utils } = require("@bnb-chain/javascript-sdk")
5959

6060
// Token params
6161
const tokenName = "Your Token Name"
@@ -91,7 +91,7 @@ main()
9191
### RPC example (getAccount)
9292

9393
```js
94-
const { rpc } = require("@binance-chain/javascript-sdk")
94+
const { rpc } = require("@bnb-chain/javascript-sdk")
9595
new rpc("https://dataseed1.binance.org:443")
9696
.getAccount("bnb1qfmufc2q30cgw82ykjlpfeyauhcf5mad6p5y8t")
9797
.then((x) => console.log("", JSON.stringify(x)))
@@ -149,7 +149,7 @@ amino.marshalBinaryBare(data)
149149
The following code is an example of what you can do with the Ledger support:
150150

151151
```js
152-
const { ledger } = require("@binance-chain/javascript-sdk")
152+
const { ledger } = require("@bnb-chain/javascript-sdk")
153153
ledger(async () => {
154154
// check environment (web, node)
155155
console.log("node?", await ledger.transports.node.isSupported()) // => true if node

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@binance-chain/javascript-sdk",
2+
"name": "@bnb-chain/javascript-sdk",
33
"version": "0.0.0-development",
44
"license": "Apache-2.0",
55
"main": "lib/index.js",

0 commit comments

Comments
 (0)