-
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.
* chore: Update package.json * feat: Add export types * feat: Support cjs * chore: Update pnpm lock file * chore: Example types fix * feat: Query support nodejs and browser * fix: Update type --------- Co-authored-by: rrr523 <gaoyibobo@foxmail.com>
- Loading branch information
Showing
63 changed files
with
161 additions
and
501 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,6 @@ | ||
--- | ||
'@bnb-chain/greenfiled-file-handle': patch | ||
'@bnb-chain/greenfield-chain-sdk': patch | ||
--- | ||
|
||
support commonjs export |
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,8 @@ | ||
--- | ||
'@bnb-chain/greenfiled-file-handle': patch | ||
'@bnb-chain/greenfield-chain-sdk': patch | ||
'@demo/wallet': patch | ||
'@demo/nodejs': patch | ||
--- | ||
|
||
Query support nodejs and browser |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,10 @@ | ||
const { Client } = require('@bnb-chain/greenfield-chain-sdk'); | ||
// import {Client} from '@bnb-chain/greenfield-chain-sdk' | ||
|
||
const client = Client.create('https://gnfd.qa.bnbchain.world', '9000'); | ||
|
||
(async () => { | ||
const account = await client.account.getAccount('0x7239B73CA99b095d4FEe1495cB62e36be8CfeeD1'); | ||
|
||
console.log(account); | ||
})(); |
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,17 @@ | ||
{ | ||
"name": "@demo/nodejs", | ||
"version": "0.0.1", | ||
"type": "commonjs", | ||
"private": true, | ||
"scripts": { | ||
"dev": "cross-env NODE_ENV=development next dev", | ||
"dev:qa": "cross-env NODE_ENV=test next dev", | ||
"build": "cross-env NODE_ENV=development next build", | ||
"build:qa": "cross-env NODE_ENV=test next build", | ||
"start": "next start", | ||
"lint": "next lint" | ||
}, | ||
"dependencies": { | ||
"@bnb-chain/greenfield-chain-sdk": "workspace:*" | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.