Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Rebanding binance-chain to bnb-chain #402

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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