-
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.
* feat: Register pub key * feat: Replace zk crypto with ed25519 * chore: Remove file * chore: Remove console * chore: Changeset file * feat: Remove Client wasm url param * chore: Update Example * chore: Remove file
- Loading branch information
Showing
2 changed files
with
1 addition
and
4 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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { GREEN_CHAIN_ID, GRPC_URL } from '@/config/env'; | ||
import { Client } from '@bnb-chain/greenfield-js-sdk'; | ||
|
||
export const client = Client.create(GRPC_URL, String(GREEN_CHAIN_ID), { | ||
zkCryptoUrl: 'https://unpkg.com/@bnb-chain/[email protected]/dist/node/zk-crypto.wasm', | ||
}); | ||
export const client = Client.create(GRPC_URL, String(GREEN_CHAIN_ID)); | ||
|
||
export const getSps = async () => { | ||
const sps = await client.sp.getStorageProviders(); | ||
|
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from '../clients/spclient/sign'; | ||
export * from './utils'; |