-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
2,168 additions
and
1,943 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
id: migrate | ||
title: migrate to 1.3 | ||
order: 1 | ||
--- | ||
|
||
1. Remove `zkCryptoUrl` params when `Client` initializing. [PR: simply offchainauth (ED25519)](https://github.com/bnb-chain/greenfield-js-sdk/pull/489) | ||
|
||
2. `bucket.createBucket` and `object.createObject` 's params changes. [PR: remove approval when create bucket / object](https://github.com/bnb-chain/greenfield-js-sdk/pull/498) | ||
|
||
3. `object.uploadObject` 's params changes. [PR: upload object](https://github.com/bnb-chain/greenfield-js-sdk/pull/500) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ title: 'Greenfield Client' | |
sidebar_position: 1 | ||
--- | ||
|
||
# Create Greenfield Client | ||
|
||
| params | description | | ||
| -------------- | ------------------- | | ||
|
@@ -13,23 +12,9 @@ sidebar_position: 1 | |
|
||
```js | ||
import { Client } from '@bnb-chain/greenfield-js-sdk'; | ||
|
||
// Node.js | ||
const client = Client.create(GRPC_URL, GREEN_CHAIN_ID); | ||
|
||
// Browser | ||
const client = Client.create(GRPC_URL, String(GREEN_CHAIN_ID), { | ||
zkCryptoUrl: | ||
'https://unpkg.com/@bnb-chain/[email protected]/dist/node/zk-crypto.wasm', | ||
}); | ||
``` | ||
|
||
:::tip | ||
|
||
The browser needs to load wasm manually. | ||
|
||
::: | ||
|
||
The JS SDK consists of two parts: | ||
|
||
- Chain: https://docs.bnbchain.org/greenfield-docs/docs/api/blockchain-rest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
id: long | ||
title: Long | ||
--- | ||
|
||
[long](https://www.npmjs.com/package/long): Bignumber |
Oops, something went wrong.