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

Alpha #559

Merged
merged 395 commits into from
Jul 1, 2024
Merged

Alpha #559

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
395 commits
Select commit Hold shift + click to select a range
f98b8dc
fix: XMLParser force array not object (#242)
rrr523 Aug 23, 2023
cbbb4aa
Feat/export req (#243)
rrr523 Aug 23, 2023
e785132
chore: [ci] release (alpha) (#244)
github-actions[bot] Aug 23, 2023
8782a21
feat: Export types (#245)
rrr523 Aug 23, 2023
d388940
Export types (#247)
rrr523 Aug 23, 2023
c1ef739
chore: [ci] release (alpha) (#246)
github-actions[bot] Aug 23, 2023
a3e2210
Feat/up and down (#248)
rrr523 Aug 23, 2023
8665454
chore: [ci] release (alpha) (#249)
github-actions[bot] Aug 23, 2023
2e86b92
Feat/xml null (#250)
rrr523 Aug 24, 2023
d610ef3
chore: [ci] release (alpha) (#251)
github-actions[bot] Aug 24, 2023
dba9871
Fix/gap time (#252)
rrr523 Aug 24, 2023
1ede2ea
Feat/meta (#254)
rrr523 Aug 24, 2023
a0cc253
chore: [ci] release (alpha) (#253)
github-actions[bot] Aug 24, 2023
ce00ce1
Refactor/sp client (#255)
rrr523 Aug 24, 2023
599100e
chore: [ci] release (alpha) (#256)
github-actions[bot] Aug 24, 2023
569445b
feat: Custom HTTP method (#257)
rrr523 Aug 25, 2023
5548c7b
chore: [ci] release (alpha) (#258)
github-actions[bot] Aug 25, 2023
982a1f7
chore(docs): Update README (#259)
rrr523 Aug 25, 2023
e670f70
chore: Add comment (#260)
rrr523 Aug 25, 2023
21c9f6e
fix: Sp types (#261)
rrr523 Aug 25, 2023
352419e
Feat/upload progress (#263)
rrr523 Aug 25, 2023
b2fff6e
chore: [ci] release (alpha) (#262)
github-actions[bot] Aug 25, 2023
7824130
fix: EncodePath (#264)
rrr523 Aug 25, 2023
293b20e
chore: [ci] release (alpha) (#265)
github-actions[bot] Aug 25, 2023
b6efbaa
fix: Download http method (#266)
rrr523 Aug 27, 2023
a485367
fix: Download http method (#267)
rrr523 Aug 27, 2023
97f43f5
chore: [ci] release (alpha) (#268)
github-actions[bot] Aug 27, 2023
a3e6b47
feat: New API getObjectPreviewUrl (#270)
rrr523 Aug 28, 2023
7924c50
chore: [ci] release (alpha) (#271)
github-actions[bot] Aug 28, 2023
b3683b8
fix: XML type align to go struct (#272)
rrr523 Aug 28, 2023
25ccbb6
feat: Optional endpoint param (#273)
rrr523 Aug 28, 2023
8b6b2c6
chore: [ci] release (alpha) (#274)
github-actions[bot] Aug 28, 2023
55f8851
fix: XML parse boolean (#275)
rrr523 Aug 29, 2023
84e1811
chore: [ci] release (alpha) (#276)
github-actions[bot] Aug 29, 2023
ff112b2
fix: Common Prefix parse as array (#277)
rrr523 Aug 29, 2023
f744807
chore: [ci] release (alpha) (#278)
github-actions[bot] Aug 29, 2023
4929b12
test: Parse XML test case (#279)
rrr523 Aug 29, 2023
c92e07e
feat: Migrate bucket (#280)
rrr523 Aug 29, 2023
8f4e206
fix: Create bucket quota params (#282)
rrr523 Aug 29, 2023
d155b2b
chore: [ci] release (alpha) (#281)
github-actions[bot] Aug 29, 2023
1badb9c
feat: Replace xml2js to fast-xml-parse (#283)
rrr523 Aug 29, 2023
c28ab8b
Feat/update bucket info (#284)
rrr523 Aug 29, 2023
6ebcd9d
chore: [ci] release (alpha) (#285)
github-actions[bot] Aug 29, 2023
c7de1fc
fix: EncodePath function (#286)
rrr523 Aug 30, 2023
402da22
fix: Convert enum to number (#287)
rrr523 Aug 30, 2023
6fb245e
chore: [ci] release (alpha) (#288)
github-actions[bot] Aug 30, 2023
ea31d73
feat: Add listReadRecords api
rrr523 Aug 31, 2023
0084053
feat: ListGroups API
rrr523 Aug 31, 2023
9710b5b
feat: ListObjectsByIds API
rrr523 Aug 31, 2023
faf5d47
feat: ListBucketsByIds api
rrr523 Aug 31, 2023
12bd37c
feat: Add verifyPermission api
rrr523 Aug 31, 2023
7d69f2e
feat: ListGroupsMembers
rrr523 Aug 31, 2023
fcf6283
feat: ListUserGroups api
rrr523 Aug 31, 2023
ad1d7d3
feat: Add listUserOwnedGroups api
rrr523 Aug 31, 2023
1769cb3
chore: [ci] release (alpha)
github-actions[bot] Aug 31, 2023
7869b75
feat: Sort query (#292)
rrr523 Aug 31, 2023
00f363d
chore: [ci] release (alpha) (#293)
github-actions[bot] Aug 31, 2023
c3c2d30
chore(exmaple): Group (#294)
rrr523 Aug 31, 2023
d34e2d2
docs: Update API (#295)
rrr523 Aug 31, 2023
c992a07
chore: Pre Exit (#296)
rrr523 Aug 31, 2023
adee033
Pre exit (#297)
rrr523 Aug 31, 2023
3e5d195
chore: [ci] release (#298)
github-actions[bot] Aug 31, 2023
39492f6
chore: Pre Enter (#299)
rrr523 Aug 31, 2023
f41d8c4
Merge branch 'main' into alpha
rrr523 Sep 1, 2023
f0d69c9
Refactor/sp (#302)
rrr523 Sep 4, 2023
bea0466
Refactor/sp (#305)
rrr523 Sep 5, 2023
a2536eb
chore: [ci] release (alpha) (#303)
github-actions[bot] Sep 5, 2023
57837a5
fix: Build (#306)
rrr523 Sep 5, 2023
4acdb91
chore: Update Deps (#308)
rrr523 Sep 5, 2023
4229477
chore: [ci] release (alpha) (#307)
github-actions[bot] Sep 5, 2023
53b8001
docs: Update README (#309)
rrr523 Sep 6, 2023
695379e
Feat/validator (#310)
rrr523 Sep 7, 2023
c502902
chore: [ci] release (alpha) (#311)
github-actions[bot] Sep 7, 2023
c160b34
chore: Nodejs example update
rrr523 Sep 8, 2023
fb97ef1
test: Test case update
rrr523 Sep 8, 2023
52db094
chore: README update
rrr523 Sep 8, 2023
609f4cd
feat: ListBuckets
rrr523 Sep 8, 2023
b13fba4
fix: QueryClient and TxClient is not singleton
rrr523 Sep 8, 2023
b00e640
chore: Upgrade types
rrr523 Sep 8, 2023
780e2ef
fix: PutPolicy
rrr523 Sep 8, 2023
c7f9ef3
feat: ListObjectPolicies api
rrr523 Sep 8, 2023
77b01cb
chore: [ci] release (alpha)
github-actions[bot] Sep 8, 2023
06b933a
fix: IOC (#314)
rrr523 Sep 8, 2023
a51488f
chore: [ci] release (alpha) (#315)
github-actions[bot] Sep 8, 2023
0bcca80
chore: Update exmaple (#316)
rrr523 Sep 8, 2023
910c0cc
feat: Distribution API (#317)
rrr523 Sep 11, 2023
4ef30b7
chore: [ci] release (alpha) (#318)
github-actions[bot] Sep 11, 2023
ec4297d
feat: MsgSettle (#319)
rrr523 Sep 11, 2023
f1e60a2
chore: [ci] release (alpha) (#320)
github-actions[bot] Sep 11, 2023
b384428
chore(example): Update custom tx (#321)
rrr523 Sep 11, 2023
9cc4d1b
chore: [ci] release (alpha) (#322)
github-actions[bot] Sep 11, 2023
837d8f4
chore: Github Action issue close (#323)
rrr523 Sep 12, 2023
f3a7ce8
feat: Bucket headBucketExtra api (#324)
rrr523 Sep 12, 2023
23cd8af
chore: [ci] release (alpha) (#325)
github-actions[bot] Sep 13, 2023
794cf37
chore: Nodejs Example update (#326)
rrr523 Sep 14, 2023
49c53a7
chore: Example Update (#327)
rrr523 Sep 14, 2023
a2d9b55
Chore/example (#328)
rrr523 Sep 14, 2023
4913d2d
chore: Update (#329)
rrr523 Sep 14, 2023
56a263e
feat: Custom Tx (#330)
rrr523 Sep 14, 2023
2f8e36c
chore: [ci] release (alpha) (#331)
github-actions[bot] Sep 14, 2023
88acc61
fix: Delete Policy (#332)
rrr523 Sep 14, 2023
0c138c7
chore: [ci] release (alpha) (#333)
github-actions[bot] Sep 14, 2023
03be217
Feat/create app (#334)
rrr523 Sep 15, 2023
2eb289c
chore: [ci] release (alpha) (#335)
github-actions[bot] Sep 15, 2023
ef99831
feat: Create App Commander (#336)
rrr523 Sep 15, 2023
66e23fc
chore: [ci] release (alpha) (#337)
github-actions[bot] Sep 15, 2023
5fab330
chore: Update README (#338)
rrr523 Sep 15, 2023
6aaf062
feat: Add vite template (#339)
rrr523 Sep 15, 2023
5bd67ef
chore: [ci] release (alpha) (#340)
github-actions[bot] Sep 15, 2023
e5c74ec
release 0.2.5 (#341)
rrr523 Sep 15, 2023
71f2ded
chore: [ci] release (#342)
github-actions[bot] Sep 15, 2023
cb8d60d
chore: Enter pre (#343)
rrr523 Sep 15, 2023
5143456
chore(docs): Update README (#344)
rrr523 Sep 15, 2023
05ba530
Merge branch 'main' into alpha
rrr523 Sep 18, 2023
00a2cdd
Chore/package (#346)
rrr523 Sep 18, 2023
10c5723
Chore/package js sdk (#347)
rrr523 Sep 18, 2023
f9fbcf3
chore: [ci] release (alpha) (#348)
github-actions[bot] Sep 18, 2023
69f9bd7
Chore/update deps (#349)
rrr523 Sep 19, 2023
1ed0d32
Docs site ! (#350)
rrr523 Sep 25, 2023
07aaf8c
chore: Pre exit (#351)
rrr523 Sep 25, 2023
77b564e
chore: [ci] release (#352)
github-actions[bot] Sep 25, 2023
512181d
Merge branch 'main' into alpha
rrr523 Sep 26, 2023
76a18f1
feat: Custom Tx support any type! (#355)
rrr523 Oct 5, 2023
d7585bc
chore: Pre enter (#357)
rrr523 Oct 5, 2023
a4ebf27
chore: [ci] release (alpha) (#356)
github-actions[bot] Oct 5, 2023
c981fff
fix: Offchain auth ei.data undefined (#358)
aiden-cao Oct 10, 2023
b587a14
chore: [ci] release (alpha) (#359)
github-actions[bot] Oct 10, 2023
9f7feb5
fix: Offchain auth ei.data undefined (#360)
aiden-cao Oct 10, 2023
9be81df
chore: [ci] release (alpha) (#361)
github-actions[bot] Oct 10, 2023
57082ea
chore: Release 1.0.0 (#365)
rrr523 Oct 12, 2023
7226e26
chore: [ci] release (alpha) (#366)
github-actions[bot] Oct 12, 2023
5eaf99b
chore: Pre exit (#367)
rrr523 Oct 12, 2023
9b16416
chore: [ci] release (#368)
github-actions[bot] Oct 12, 2023
e5b2a25
Merge branch 'main' into alpha
rrr523 Oct 12, 2023
dde423e
chore: Pre enter
rrr523 Oct 12, 2023
5c2d075
fix(types): Payment listUserPaymentAccounts return response (#370)
rrr523 Oct 16, 2023
9202315
chore: [ci] release (alpha) (#371)
github-actions[bot] Oct 16, 2023
6ad8697
chore: Update doc url (#372)
rrr523 Oct 16, 2023
963bd37
chore: Pre exit (#377)
rrr523 Oct 20, 2023
2347926
chore: [ci] release (#378)
github-actions[bot] Oct 20, 2023
a53deb4
Merge branch 'main' into alpha
rrr523 Oct 20, 2023
c399ff9
fix: Replace legacy method (#381)
aiden-cao Oct 30, 2023
21447a2
chore: Update Deps (#382)
rrr523 Oct 30, 2023
b98cc0c
docs: Update README (#384)
rrr523 Oct 30, 2023
3b89d02
chore: [ci] release (#383)
github-actions[bot] Oct 30, 2023
baa4591
Merge branch 'main' into alpha
rrr523 Oct 30, 2023
e79ef17
Merge branch 'main' into alpha
rrr523 Dec 4, 2023
47d59a1
Feat/new msg tag (#413)
rrr523 Dec 7, 2023
67430c8
chore: [ci] release (alpha) (#414)
github-actions[bot] Dec 7, 2023
9d09047
Chore/update create tags (#415)
rrr523 Dec 7, 2023
a940e06
chore: Remove engines filed (#418)
rrr523 Dec 8, 2023
18891a4
Feat/js reed solomon (#422)
rrr523 Dec 18, 2023
b44c413
chore: [ci] release (alpha) (#419)
github-actions[bot] Dec 18, 2023
6771bed
chore: Update example (#423)
rrr523 Dec 18, 2023
a999960
feat: Add SP Api types (#424)
rrr523 Dec 19, 2023
020b2a5
chore: [ci] release (alpha) (#425)
github-actions[bot] Dec 19, 2023
d9df56c
feat: Add bucket meta type (#426)
rrr523 Dec 19, 2023
d579137
feat: Add bucket meta type (#427)
rrr523 Dec 19, 2023
cfb0941
chore: [ci] release (alpha) (#428)
github-actions[bot] Dec 19, 2023
afb5464
Feat/rs webworker (#429)
rrr523 Dec 19, 2023
dce67c4
chore: [ci] release (alpha) (#430)
github-actions[bot] Dec 19, 2023
2e9fce0
Feat/rs webworker (#431)
rrr523 Dec 19, 2023
fdf3f08
chore: [ci] release (alpha) (#432)
github-actions[bot] Dec 19, 2023
b2bc413
chore: Exit pre
rrr523 Dec 19, 2023
967ad35
Merge branch 'alpha' of github-rr523.com:bnb-chain/greenfield-js-sdk …
rrr523 Dec 19, 2023
1de16ff
chore: [ci] release (#433)
github-actions[bot] Dec 19, 2023
aa4d4bc
Merge branch 'main' into alpha
rrr523 Dec 19, 2023
e9d3def
Merge branch 'alpha' of github-rr523.com:bnb-chain/greenfield-js-sdk …
rrr523 Dec 19, 2023
280c699
Merge branch 'main' into alpha
rrr523 Dec 25, 2023
a70b231
chore: Enter alpha
rrr523 Dec 25, 2023
865be47
Feat/new tag (#461)
rrr523 Dec 25, 2023
7d6ca8b
chore: [ci] release (alpha) (#462)
github-actions[bot] Dec 25, 2023
b41fdf0
chore: Pnpm install --no-frozen-lockfile
rrr523 Dec 25, 2023
8260c60
chore: [ci] release (alpha) (#463)
github-actions[bot] Dec 25, 2023
24ec472
feat: Sp Api types (#464)
rrr523 Dec 26, 2023
5bd5677
chore: [ci] release (alpha) (#465)
github-actions[bot] Dec 26, 2023
fb612b1
chore: Pre Exit (#468)
rrr523 Dec 29, 2023
3a4e8a5
chore: [ci] release (#469)
github-actions[bot] Jan 5, 2024
17b4313
Merge branch 'main' into alpha
rrr523 Jan 5, 2024
71d18f3
chore: Pnpm install --no-frozen-lockfile
rrr523 Jan 5, 2024
97f5279
Merge branch 'main' into alpha
rrr523 Jan 5, 2024
9322418
Merge branch 'main' into alpha
rrr523 Mar 6, 2024
d45791a
simply offchainauth (ED25519) (#489)
rrr523 Mar 11, 2024
47a3c3e
chore/ remove file (#490)
rrr523 Mar 11, 2024
721ab57
chore: Alpha mode
rrr523 Mar 11, 2024
6313c8b
Merge branch 'alpha' of github-rr523.com:bnb-chain/greenfield-js-sdk …
rrr523 Mar 11, 2024
3374b4a
chore: Merge in alpha (#492)
rrr523 Mar 11, 2024
782a9b0
chore: [ci] release (alpha) (#493)
github-actions[bot] Mar 11, 2024
f5d1a20
chore: Pnpm lockfile
rrr523 Mar 11, 2024
b96eabb
Changeset release/alpha (#494)
rrr523 Mar 11, 2024
98ee8e5
docs: Update REAMDE (#495)
rrr523 Mar 11, 2024
007a4ba
Feat/preview api (#496)
rrr523 Mar 12, 2024
7168d2f
chore: [ci] release (alpha) (#497)
github-actions[bot] Mar 13, 2024
70afa12
feat: Upgrade types to 31
rrr523 Mar 15, 2024
25e8a99
feat: Remove Approval when creating bucket
rrr523 Mar 15, 2024
10244a5
feat: Remove Approval when creating object
rrr523 Mar 15, 2024
9e8b153
chore: [ci] release (alpha)
github-actions[bot] Mar 15, 2024
7b938f0
feat: Delegate upload
rrr523 Mar 19, 2024
d7f9851
feat: Add visibility params
rrr523 Mar 19, 2024
1990d9f
feat: Add toggleSpAsDelegatedAgent API
rrr523 Mar 19, 2024
c7cf96f
feat: Resumable Object Upload
rrr523 Mar 21, 2024
b74d640
chore: [ci] release (alpha)
github-actions[bot] Mar 21, 2024
9ba7da4
Merge branch 'main' into alpha
rrr523 Mar 21, 2024
5cb7497
docs: Example all update
rrr523 Mar 26, 2024
7d7ca75
chore: Test case update
rrr523 Mar 26, 2024
cac346d
chore: Update README
rrr523 Mar 26, 2024
fcd7bf3
docs(docusaurus): Update API refs
rrr523 Mar 26, 2024
9d4463b
chore: Remove deprecated packages
rrr523 Mar 26, 2024
83f861d
feat: DelegatedCreateFolder api
rrr523 Apr 3, 2024
ed3e599
chore: [ci] release (alpha)
github-actions[bot] Apr 3, 2024
dff47d6
chore(docs): Update docs
rrr523 Apr 3, 2024
159c01f
feat: Sp response add offchainstatus and SpAsDelegatedAgentDisabled
rrr523 Apr 7, 2024
c9ab316
feat: Bucket.getBucketReadQuota add monthly field
rrr523 Apr 7, 2024
3cebc32
chore: [ci] release (alpha)
github-actions[bot] Apr 7, 2024
acf8644
fix: OffChainStatus type
rrr523 Apr 8, 2024
cb9658e
fix: Delegated create folder response return parse error
rrr523 Apr 9, 2024
c346d6b
chore: [ci] release (alpha) (#514)
github-actions[bot] Apr 9, 2024
caf93ce
Fix/vgf strategy (#520)
rrr523 Apr 18, 2024
2a03ab8
chore: [ci] release (alpha) (#521)
github-actions[bot] Apr 18, 2024
6113b84
fix: Fetch timeout
rrr523 Apr 21, 2024
7c3bb38
fix: Statement's expirationTime compatibility
rrr523 Apr 21, 2024
56d3ba4
Merge branch 'fix/upload_timeout' into alpha
rrr523 Apr 21, 2024
06d58dd
Merge branch 'fix/statment_expiratime' into alpha
rrr523 Apr 21, 2024
d892318
chore: [ci] release (alpha) (#527)
github-actions[bot] Apr 21, 2024
e5751b1
chore: Update Deps
rrr523 Apr 22, 2024
bc1e2f9
Merge branch 'upgrade_docusaurus' into alpha
rrr523 Apr 22, 2024
e789764
Feat/upload progress (#529)
rrr523 Apr 23, 2024
94c4b83
chore: [ci] release (alpha) (#530)
github-actions[bot] Apr 23, 2024
37cda6a
chore: Upgrade wagmi and rainkit (#532)
rrr523 Apr 24, 2024
952deee
chore: Update example (#533)
rrr523 Apr 25, 2024
87df864
feat: MsgSetBucketFlowRateLimit (#531)
rrr523 Apr 29, 2024
d93459f
chore: Upgrade action node version
rrr523 Apr 30, 2024
cdcfd42
Merge branch 'alpha' of github-rr523.com:bnb-chain/greenfield-js-sdk …
rrr523 Apr 30, 2024
6fb38a9
Feat: BSC Cross Chain SDK (#522)
rrr523 Apr 30, 2024
7eeacc3
chore: [ci] release (alpha) (#534)
github-actions[bot] Apr 30, 2024
807cf2f
docs: Update docs (#535)
rrr523 Apr 30, 2024
6114b49
chore: Exit pre
rrr523 Apr 30, 2024
3bb0768
chore: [ci] release (#536)
github-actions[bot] Apr 30, 2024
be6ef67
Merge branch 'main' into alpha
rrr523 May 2, 2024
71dfe90
chore: Enter alpha
rrr523 May 7, 2024
3e7f1ca
feat: Bucket cancelMigrateBucket (#540)
rrr523 May 7, 2024
20da72d
chore: [ci] release (alpha) (#541)
github-actions[bot] May 7, 2024
34aa1c7
fix: EncodePath utf8 (#549)
rrr523 May 21, 2024
9e3e74e
chore: [ci] release (alpha) (#550)
github-actions[bot] May 21, 2024
acdf20f
feat: Export encodePath (#551)
rrr523 May 28, 2024
909b463
Feat/export encode path (#553)
rrr523 May 28, 2024
2511d62
chore: [ci] release (alpha) (#552)
github-actions[bot] May 28, 2024
86bd1a2
chore: Pre exit
rrr523 May 31, 2024
710cdd4
chore: [ci] release (#557)
github-actions[bot] Jul 1, 2024
fd63086
Merge branch 'main' into alpha
rrr523 Jul 1, 2024
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
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@ You can find some package documentation below:
| [@bnb-chain/create-gnfd-app](./packages/create-gnfd-app/README.md) | Create Greenfield App Quickly | [![npm](https://img.shields.io/npm/v/%40bnb-chain%2Fcreate-gnfd-app?color=blue)](https://www.npmjs.com/package/@bnb-chain/create-gnfd-app) |
| [@bnb-chain/bsc-cross-greenfield-sdk](./packages/bsc-cross-sdk/README.md) | Execute tx in BSC | [![npm](https://img.shields.io/npm/v/%40bnb-chain%2Fbsc-cross-greenfield-sdk?color=blue)](https://www.npmjs.com/package/@bnb-chain/bsc-cross-greenfield-sdk) |

<!-- ## Playground

* [Browser](https://codesandbox.io/p/github/rrr523/greenfield-nextjs-template/main?import=true) -->
<!-- TODO: after upgrade SDK version -->
<!-- * [Nodejs](https://codesandbox.io/p/devbox/nodejs-greenfield-js-sdk-demo-wd5zft) -->

## Online Examples / Playground

* [Nextjs](https://stackblitz.com/github/rrr523/greenfield-nextjs-template)
* [Vite](https://stackblitz.com/github/rrr523/greenfield-vite-template)
* [Create React App](https://stackblitz.com/github/rrr523/greenfield-cra-template)

## Quick Start

You can use [`create-gnfd-app`](./packages/create-gnfd-app/README.md) to create a app quickly.
Expand Down
11 changes: 11 additions & 0 deletions doc-site/docs/FAQs/migrate-to-1.3.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
id: migrate
title: migrate to 2
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)
28 changes: 28 additions & 0 deletions examples/browser-file-management/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,34 @@
- Updated dependencies
[[`64a62b1e1d0387148bbd621448a67b2bb2c2aa5b`](https://github.com/bnb-chain/greenfield-js-sdk/commit/64a62b1e1d0387148bbd621448a67b2bb2c2aa5b)]:
- @bnb-chain/[email protected]
[[`909b463c72a0c83bddc1e41b840d5c871325d54a`](https://github.com/bnb-chain/greenfield-js-sdk/commit/909b463c72a0c83bddc1e41b840d5c871325d54a),
[`34aa1c71d9ee1bc3856aa199a3eee9e50827376b`](https://github.com/bnb-chain/greenfield-js-sdk/commit/34aa1c71d9ee1bc3856aa199a3eee9e50827376b),
[`3e7f1cae3ac12215d5d46ef6755fd198ad450190`](https://github.com/bnb-chain/greenfield-js-sdk/commit/3e7f1cae3ac12215d5d46ef6755fd198ad450190)]:
- @bnb-chain/[email protected]

## 0.1.2-alpha.2

### Patch Changes

- Updated dependencies
[[`909b463c72a0c83bddc1e41b840d5c871325d54a`](https://github.com/bnb-chain/greenfield-js-sdk/commit/909b463c72a0c83bddc1e41b840d5c871325d54a)]:
- @bnb-chain/[email protected]

## 0.1.2-alpha.1

### Patch Changes

- Updated dependencies
[[`34aa1c71d9ee1bc3856aa199a3eee9e50827376b`](https://github.com/bnb-chain/greenfield-js-sdk/commit/34aa1c71d9ee1bc3856aa199a3eee9e50827376b)]:
- @bnb-chain/[email protected]

## 0.1.2-alpha.0

### Patch Changes

- Updated dependencies
[[`3e7f1cae3ac12215d5d46ef6755fd198ad450190`](https://github.com/bnb-chain/greenfield-js-sdk/commit/3e7f1cae3ac12215d5d46ef6755fd198ad450190)]:
- @bnb-chain/[email protected]

## 0.1.1

Expand Down
34 changes: 32 additions & 2 deletions examples/nextjs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,38 @@
### Patch Changes

- Updated dependencies
[[`64a62b1e1d0387148bbd621448a67b2bb2c2aa5b`](https://github.com/bnb-chain/greenfield-js-sdk/commit/64a62b1e1d0387148bbd621448a67b2bb2c2aa5b)]:
- @bnb-chain/[email protected]
[[`909b463c72a0c83bddc1e41b840d5c871325d54a`](https://github.com/bnb-chain/greenfield-js-sdk/commit/909b463c72a0c83bddc1e41b840d5c871325d54a),
[`acdf20f879f21140fc355ca38c532d523263076d`](https://github.com/bnb-chain/greenfield-js-sdk/commit/acdf20f879f21140fc355ca38c532d523263076d),
[`34aa1c71d9ee1bc3856aa199a3eee9e50827376b`](https://github.com/bnb-chain/greenfield-js-sdk/commit/34aa1c71d9ee1bc3856aa199a3eee9e50827376b),
[`3e7f1cae3ac12215d5d46ef6755fd198ad450190`](https://github.com/bnb-chain/greenfield-js-sdk/commit/3e7f1cae3ac12215d5d46ef6755fd198ad450190)]:
- @bnb-chain/[email protected]
- @bnb-chain/[email protected]

## 0.0.29-alpha.2

### Patch Changes

- Updated dependencies
[[`909b463c72a0c83bddc1e41b840d5c871325d54a`](https://github.com/bnb-chain/greenfield-js-sdk/commit/909b463c72a0c83bddc1e41b840d5c871325d54a),
[`acdf20f879f21140fc355ca38c532d523263076d`](https://github.com/bnb-chain/greenfield-js-sdk/commit/acdf20f879f21140fc355ca38c532d523263076d)]:
- @bnb-chain/[email protected]
- @bnb-chain/[email protected]

## 0.0.29-alpha.1

### Patch Changes

- Updated dependencies
[[`34aa1c71d9ee1bc3856aa199a3eee9e50827376b`](https://github.com/bnb-chain/greenfield-js-sdk/commit/34aa1c71d9ee1bc3856aa199a3eee9e50827376b)]:
- @bnb-chain/[email protected]

## 0.0.29-alpha.0

### Patch Changes

- Updated dependencies
[[`3e7f1cae3ac12215d5d46ef6755fd198ad450190`](https://github.com/bnb-chain/greenfield-js-sdk/commit/3e7f1cae3ac12215d5d46ef6755fd198ad450190)]:
- @bnb-chain/[email protected]

## 0.0.28

Expand Down
45 changes: 43 additions & 2 deletions examples/nextjs/src/components/bucket/migrate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const MigrateBucket = () => {

return (
<>
<h4>Migrate Bucket</h4>
<h4>Migrate Bucket / Cancel Migrate Bucket</h4>
<div>
bucket name:
<input
Expand Down Expand Up @@ -68,7 +68,48 @@ export const MigrateBucket = () => {
}
}}
>
broadcast with simulate
Migrate Bucket
</button>

<br />
<button
onClick={async () => {
if (!address) return;

const provider = await connector?.getProvider();
const offChainData = await getOffchainAuthKeys(address, provider);
if (!offChainData) {
alert('No offchain, please create offchain pairs first');
return;
}

const cancelMigrateBucketTx = await client.bucket.cancelMigrateBucket({
bucketName,
operator: address,
});

const simulateInfo = await cancelMigrateBucketTx.simulate({
denom: 'BNB',
});

console.log('simulateInfo', simulateInfo);

const res = await cancelMigrateBucketTx.broadcast({
denom: 'BNB',
gasLimit: Number(simulateInfo?.gasLimit),
gasPrice: simulateInfo?.gasPrice || '5000000000',
payer: address,
granter: '',
});

console.log('res', res);

if (res.code === 0) {
alert('success');
}
}}
>
Cancel Migrate Bucket
</button>
</>
);
Expand Down
1 change: 1 addition & 0 deletions examples/nextjs/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,5 @@ export const wagmiConfig = createConfig({
[bscChain.id]: http(),
},
connectors,
ssr: true,
});
30 changes: 28 additions & 2 deletions examples/nodejs-file-management/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,34 @@
### Patch Changes

- Updated dependencies
[[`64a62b1e1d0387148bbd621448a67b2bb2c2aa5b`](https://github.com/bnb-chain/greenfield-js-sdk/commit/64a62b1e1d0387148bbd621448a67b2bb2c2aa5b)]:
- @bnb-chain/[email protected]
[[`909b463c72a0c83bddc1e41b840d5c871325d54a`](https://github.com/bnb-chain/greenfield-js-sdk/commit/909b463c72a0c83bddc1e41b840d5c871325d54a),
[`34aa1c71d9ee1bc3856aa199a3eee9e50827376b`](https://github.com/bnb-chain/greenfield-js-sdk/commit/34aa1c71d9ee1bc3856aa199a3eee9e50827376b),
[`3e7f1cae3ac12215d5d46ef6755fd198ad450190`](https://github.com/bnb-chain/greenfield-js-sdk/commit/3e7f1cae3ac12215d5d46ef6755fd198ad450190)]:
- @bnb-chain/[email protected]

## 0.0.28-alpha.2

### Patch Changes

- Updated dependencies
[[`909b463c72a0c83bddc1e41b840d5c871325d54a`](https://github.com/bnb-chain/greenfield-js-sdk/commit/909b463c72a0c83bddc1e41b840d5c871325d54a)]:
- @bnb-chain/[email protected]

## 0.0.28-alpha.1

### Patch Changes

- Updated dependencies
[[`34aa1c71d9ee1bc3856aa199a3eee9e50827376b`](https://github.com/bnb-chain/greenfield-js-sdk/commit/34aa1c71d9ee1bc3856aa199a3eee9e50827376b)]:
- @bnb-chain/[email protected]

## 0.0.28-alpha.0

### Patch Changes

- Updated dependencies
[[`3e7f1cae3ac12215d5d46ef6755fd198ad450190`](https://github.com/bnb-chain/greenfield-js-sdk/commit/3e7f1cae3ac12215d5d46ef6755fd198ad450190)]:
- @bnb-chain/[email protected]

## 0.0.27

Expand Down
16 changes: 16 additions & 0 deletions packages/bsc-cross-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @bnb-chain/bsc-cross-greenfield-sdk

## 0.0.3

### Patch Changes

- [#551](https://github.com/bnb-chain/greenfield-js-sdk/pull/551)
[`acdf20f879f21140fc355ca38c532d523263076d`](https://github.com/bnb-chain/greenfield-js-sdk/commit/acdf20f879f21140fc355ca38c532d523263076d)
Thanks [@rrr523](https://github.com/rrr523)! - feat: export `encodePath`

## 0.0.3-alpha.0

### Patch Changes

- [#551](https://github.com/bnb-chain/greenfield-js-sdk/pull/551)
[`acdf20f879f21140fc355ca38c532d523263076d`](https://github.com/bnb-chain/greenfield-js-sdk/commit/acdf20f879f21140fc355ca38c532d523263076d)
Thanks [@rrr523](https://github.com/rrr523)! - feat: export `encodePath`

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/bsc-cross-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bnb-chain/bsc-cross-greenfield-sdk",
"version": "0.0.2",
"version": "0.0.3",
"description": "bsc cross greenfield sdk",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
43 changes: 38 additions & 5 deletions packages/js-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,46 @@
# @bnb-chain/greenfield-js-sdk

## 2.0.1
## 2.1.0

### Minor Changes

- [#540](https://github.com/bnb-chain/greenfield-js-sdk/pull/540)
[`3e7f1cae3ac12215d5d46ef6755fd198ad450190`](https://github.com/bnb-chain/greenfield-js-sdk/commit/3e7f1cae3ac12215d5d46ef6755fd198ad450190)
Thanks [@rrr523](https://github.com/rrr523)! - feat: Add `bucket.cancelMigrateBucket` API.

### Patch Changes

- [#553](https://github.com/bnb-chain/greenfield-js-sdk/pull/553)
[`909b463c72a0c83bddc1e41b840d5c871325d54a`](https://github.com/bnb-chain/greenfield-js-sdk/commit/909b463c72a0c83bddc1e41b840d5c871325d54a)
Thanks [@rrr523](https://github.com/rrr523)! - feat: export `encodePath`

- [#549](https://github.com/bnb-chain/greenfield-js-sdk/pull/549)
[`34aa1c71d9ee1bc3856aa199a3eee9e50827376b`](https://github.com/bnb-chain/greenfield-js-sdk/commit/34aa1c71d9ee1bc3856aa199a3eee9e50827376b)
Thanks [@rrr523](https://github.com/rrr523)! - feat: EncodePath UTF-8

## 2.1.0-alpha.2

### Patch Changes

- [#554](https://github.com/bnb-chain/greenfield-js-sdk/pull/554)
[`64a62b1e1d0387148bbd621448a67b2bb2c2aa5b`](https://github.com/bnb-chain/greenfield-js-sdk/commit/64a62b1e1d0387148bbd621448a67b2bb2c2aa5b)
Thanks [@rrr523](https://github.com/rrr523)! - fix: Upload file that `content-type` is
`application/json`, cancel serialize.
- [#553](https://github.com/bnb-chain/greenfield-js-sdk/pull/553)
[`909b463c72a0c83bddc1e41b840d5c871325d54a`](https://github.com/bnb-chain/greenfield-js-sdk/commit/909b463c72a0c83bddc1e41b840d5c871325d54a)
Thanks [@rrr523](https://github.com/rrr523)! - feat: export `encodePath`

## 2.1.0-alpha.1

### Patch Changes

- [#549](https://github.com/bnb-chain/greenfield-js-sdk/pull/549)
[`34aa1c71d9ee1bc3856aa199a3eee9e50827376b`](https://github.com/bnb-chain/greenfield-js-sdk/commit/34aa1c71d9ee1bc3856aa199a3eee9e50827376b)
Thanks [@rrr523](https://github.com/rrr523)! - feat: EncodePath UTF-8

## 2.1.0-alpha.0

### Minor Changes

- [#540](https://github.com/bnb-chain/greenfield-js-sdk/pull/540)
[`3e7f1cae3ac12215d5d46ef6755fd198ad450190`](https://github.com/bnb-chain/greenfield-js-sdk/commit/3e7f1cae3ac12215d5d46ef6755fd198ad450190)
Thanks [@rrr523](https://github.com/rrr523)! - feat: Add `bucket.cancelMigrateBucket` API.

## 2.0.0

Expand Down
2 changes: 1 addition & 1 deletion packages/js-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bnb-chain/greenfield-js-sdk",
"version": "2.0.1",
"version": "2.1.0",
"description": "greenfield js chain and sp sdk",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
15 changes: 15 additions & 0 deletions packages/js-sdk/src/api/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
QueryVerifyPermissionResponse,
} from '@bnb-chain/greenfield-cosmos-types/greenfield/storage/query';
import {
MsgCancelMigrateBucket,
MsgCreateBucket,
MsgDeleteBucket,
MsgDeletePolicy,
Expand All @@ -42,6 +43,7 @@ import { container, delay, inject, injectable } from 'tsyringe';
import {
AuthType,
GRNToString,
MsgCancelMigrateBucketTypeUrl,
MsgCreateBucketTypeUrl,
MsgDeleteBucketTypeUrl,
MsgMigrateBucketTypeUrl,
Expand Down Expand Up @@ -104,6 +106,7 @@ import { decodeObjectFromHexString } from '../utils/encoding';
import { Sp } from './sp';
import { Storage } from './storage';
import { VirtualGroup } from './virtualGroup';
import { MsgCancelMigrateBucketSDKTypeEIP712 } from '@/messages/greenfield/storage/MsgCancelMigrateBucket';

export interface IBucket {
/**
Expand Down Expand Up @@ -182,6 +185,8 @@ export interface IBucket {

migrateBucket(params: MigrateBucketApprovalRequest, authType: AuthType): Promise<TxResponse>;

cancelMigrateBucket(msg: MsgCancelMigrateBucket): Promise<TxResponse>;

putBucketPolicy(bucketName: string, srcMsg: Omit<MsgPutPolicy, 'resource'>): Promise<TxResponse>;

/**
Expand Down Expand Up @@ -568,6 +573,16 @@ export class Bucket implements IBucket {
return await this.migrateBucketTx(msg, signedMsg);
}

public async cancelMigrateBucket(msg: MsgCancelMigrateBucket): Promise<TxResponse> {
return await this.txClient.tx(
MsgCancelMigrateBucketTypeUrl,
msg.operator,
MsgCancelMigrateBucketSDKTypeEIP712,
MsgCancelMigrateBucket.toSDK(msg),
MsgCancelMigrateBucket.encode(msg).finish(),
);
}

private async migrateBucketTx(msg: MsgMigrateBucket, signedMsg: MigrateBucketApprovalResponse) {
return await this.txClient.tx(
MsgMigrateBucketTypeUrl,
Expand Down
17 changes: 8 additions & 9 deletions packages/js-sdk/src/clients/spclient/auth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { AuthType, ReqMeta } from '@/types/auth';
import { hexlify, joinSignature } from '@ethersproject/bytes';
import { SigningKey } from '@ethersproject/signing-key';
import { toUtf8Bytes } from '@ethersproject/strings';
import { ed25519 } from '@noble/curves/ed25519';
import { Headers } from 'cross-fetch';
import { keccak256 } from 'ethereum-cryptography/keccak.js';
Expand Down Expand Up @@ -196,16 +197,14 @@ export const encodePath = (pathName: string) => {
continue;

// others characters need to be encoded
default:
// . ! @ # $ % ^ & * ) ( - + = { } [ ] / " , ' < > ~ \ .` ? : ; | \\
if (/[.!@#\$%\^&\*\)\(\-+=\{\}\[\]\/\",'<>~\·`\?:;|\\]+$/.test(s)) {
// english characters
const hexStr = s.charCodeAt(0).toString(16);
encodedPathName += '%' + hexStr.toUpperCase();
} else {
// others characters
encodedPathName += encodeURI(s);
default: {
const u = toUtf8Bytes(s);

for (let i = 0; i < u.length; i++) {
const hexStr = hexlify(u[i]);
encodedPathName += '%' + hexStr.slice(2).toUpperCase();
}
}
}
}
return encodedPathName;
Expand Down
1 change: 1 addition & 0 deletions packages/js-sdk/src/constants/typeUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const MsgDisableRefundTypeUrl = '/greenfield.payment.MsgDisableRefund';
export const MsgWithdrawTypeUrl = '/greenfield.payment.MsgWithdraw';
export const MsgCancelCreateObjectTypeUrl = '/greenfield.storage.MsgCancelCreateObject';
export const MsgMigrateBucketTypeUrl = '/greenfield.storage.MsgMigrateBucket';
export const MsgCancelMigrateBucketTypeUrl = '/greenfield.storage.MsgCancelMigrateBucket';
export const MsgCreateBucketTypeUrl = '/greenfield.storage.MsgCreateBucket';
export const MsgCreateGroupTypeUrl = '/greenfield.storage.MsgCreateGroup';
export const MsgCreateObjectTypeUrl = '/greenfield.storage.MsgCreateObject';
Expand Down
Loading
Loading