Skip to content

Commit

Permalink
feat: Rebanding binance-chain to bnb-chain (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
robot-ux committed Dec 1, 2023
1 parent 99c09e8 commit 4687574
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ pages.
If you **do not** need Ledger support with Node.js:

```bash
$ npm i @binance-chain/javascript-sdk --no-optional
$ npm i @bnb-chain/javascript-sdk --no-optional
# Or:
$ yarn add @binance-chain/javascript-sdk --no-optional
$ yarn add @bnb-chain/javascript-sdk --no-optional
```

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

```bash
$ npm i @binance-chain/javascript-sdk
$ npm i @bnb-chain/javascript-sdk
# Or:
$ yarn add @binance-chain/javascript-sdk
$ yarn add @bnb-chain/javascript-sdk
```

### Prerequisites
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

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

//es6
import { BncClient } from "@binance-chain/javascript-sdk"
import { BncClient } from "@bnb-chain/javascript-sdk"

const client = new BncClient("https://xxx.api.com/")
client.initChain()
Expand Down
2 changes: 1 addition & 1 deletion docs/api-docs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# @binance-chain/javascript-sdk
# @bnb-chain/javascript-sdk

## Index

Expand Down
8 changes: 4 additions & 4 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
### Example of a wallet-to-wallet transfer

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

const asset = "BNB" // asset string
Expand Down Expand Up @@ -55,7 +55,7 @@ httpClient
### Example of token issuance

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

// Token params
const tokenName = "Your Token Name"
Expand Down Expand Up @@ -91,7 +91,7 @@ main()
### RPC example (getAccount)

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

```js
const { ledger } = require("@binance-chain/javascript-sdk")
const { ledger } = require("@bnb-chain/javascript-sdk")
ledger(async () => {
// check environment (web, node)
console.log("node?", await ledger.transports.node.isSupported()) // => true if node
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@binance-chain/javascript-sdk",
"name": "@bnb-chain/javascript-sdk",
"version": "0.0.0-development",
"license": "Apache-2.0",
"main": "lib/index.js",
Expand Down

0 comments on commit 4687574

Please sign in to comment.