Skip to content

Commit

Permalink
Merge branch 'upgrade_docusaurus' into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
rrr523 committed Apr 22, 2024
2 parents d892318 + e5751b1 commit bc1e2f9
Show file tree
Hide file tree
Showing 4 changed files with 13,511 additions and 11,280 deletions.
18 changes: 18 additions & 0 deletions doc-site/docs/client/greenfield.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,35 @@ title: 'Greenfield Client'
sidebar_position: 1
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Create Greenfield Client

| params | description |
| -------------- | ------------------- |
| GRPC_URL | Greenfield grpc url |
| GREEN_CHAIN_ID | Greenfield chain id |

<Tabs groupId="example">
<TabItem value="Browser" label="Browser">

```js
import { Client } from '@bnb-chain/greenfield-js-sdk';
const client = Client.create(GRPC_URL, GREEN_CHAIN_ID);
```

</TabItem>
<TabItem value="Nodejs" label="Nodejs">

```js
const { Client } = require('@bnb-chain/greenfield-js-sdk');
const client = Client.create(GRPC_URL, GREEN_CHAIN_ID);
```

</TabItem>
</Tabs>

The JS SDK consists of two parts:

- Chain: https://docs.bnbchain.org/greenfield-docs/docs/api/blockchain-rest
Expand Down
10 changes: 5 additions & 5 deletions doc-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "3.1.1",
"@docusaurus/plugin-ideal-image": "^3.1.1",
"@docusaurus/preset-classic": "3.1.1",
"@mdx-js/react": "^3.0.0",
"@docusaurus/core": "3.2.1",
"@docusaurus/plugin-ideal-image": "^3.2.1",
"@docusaurus/preset-classic": "3.2.1",
"@mdx-js/react": "^3.0.1",
"clsx": "^1.2.1",
"prism-react-renderer": "^2.2.0",
"prism-react-renderer": "^2.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
12 changes: 12 additions & 0 deletions packages/js-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,18 @@
[`d45791`](https://github.com/bnb-chain/greenfield-js-sdk/commit/d45791aa715a5bcef2777c3f2a2213fd8124150e)
Thanks [@rrr523](https://github.com/rrr523)! - feat: Replace zk crypto with ed25519.

## 1.2.4

### Patch Changes

- [#523](https://github.com/bnb-chain/greenfield-js-sdk/pull/523)
[`6113b84`](https://github.com/bnb-chain/greenfield-js-sdk/commit/6113b8446396c5ffecefd548523300af9869c7ea)
Thanks [@rrr523](https://github.com/rrr523)! - fix: Fetch timeout

- [#524](https://github.com/bnb-chain/greenfield-js-sdk/pull/524)
[`7c3bb38`](https://github.com/bnb-chain/greenfield-js-sdk/commit/7c3bb38f6ab9066096aed218cebdf85f37db3c06)
Thanks [@rrr523](https://github.com/rrr523)! - fix: Statment's expiratime compatibility

## 1.2.3

### Patch Changes
Expand Down
Loading

0 comments on commit bc1e2f9

Please sign in to comment.