Skip to content

Commit

Permalink
Release 0.2.4 (#300)
Browse files Browse the repository at this point in the history
* feat: Update Types

* chore: [ci] release (alpha)

* Feat/query status (#42)

* fix: Return types

* feat: Feegrant

* fix: Pubkey typeUrl

* feat: Upgrade Cosmos SDK

* refactor: Simply broadcast and simulate tx

* feat: Support Tx by PrivateKey

* feat: Replace local message with types npm

* test: Test Framework

* chore: Upgrade Example wagmi version, Replace ethersjs with viem

* feat: Support EIP712 callback use external provider

* feat: Support dynamic provider

* test: Support jest test

* test: Account Query

* feat: Change Tx API

* feat: Type Complete

* chore: Complate Example in New API

* fix: Rollup bundle Support Nodejs

* feat: Resolute Module (IoC)

* docs: Update README

* chore: [ci] release (alpha) (#43)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/multi msg (#49)

* feat: Multi Send

* feat: Compatibility multi tx message

* Revert "Feat/multi msg (#49)" (#53)

This reverts commit fc3dd98.

* Update WASM (#55)

* feat: Update WASM

* feat: Update create object tx

* docs: Update doc (#56)

* feat: Pre alpha (#57)

* chore: [ci] release (alpha) (#58)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Update README.md

* multi msg (#59)

* feat: Multi Send

* feat: Compatibility multi tx message

* chore: [ci] release (alpha) (#62)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: CreateObject Msg (#65)

* feat: add offchainauth method (#64)

* feat: Add offchainauth method

* feat: Compatiable old get approval method

* Create ten-suits-crash.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#66)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Add Sp params (#67)

* feat: Optimize get approval types and add throw error (#70)

* feat: Optimize get approval types and add throw error

* Create fluffy-snails-explain.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#68)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: Update example without greenfield-cosmos-types (#71)

* fix: Return Promise (#72)

* fix: Return Promise

* Create strong-snails-count.md

* chore: [ci] release (alpha) (#73)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Create Group message (#74)

* fix: Create Group message

* Create young-bears-scream.md

* feat: Add Storage Params API (#76)

* chore: [ci] release (alpha) (#75)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Chore/group example (#77)

* feat: Group API

* chore: Group and Mirror example

* chore: [ci] release (alpha) (#78)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: Update example (#79)

* feat: Add query param to ListObjects API for display folder. (#80)

* feat: Add query params to ListObjects API for folder

* Create clean-dogs-joke.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* Feat/group (#82)

* chore: Update Example

* feat: Add some group API

* Create sweet-feet-hide.md

* chore: [ci] release (alpha) (#81)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Update objectt.ts (#83)

* Update objectt.ts

add missing resp params

* Create cold-suns-accept.md

---------

Co-authored-by: rrr523 <[email protected]>

* Feat/policy (#86)

* feat: Policy API

* fix: Object API name

* Create pretty-bulldogs-notice.md

* feat: Migrate out zkbas-js-sdk and upate the sign msg format (#85)

* feat: Migrate out zkbas-js-sdk and upate the sign msg format

* Create fluffy-pumas-yawn.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#84)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Head Group (#96)

* fix: Head Group

* Create cyan-ties-cross.md

* feat: Multi Send Txs (#97)

* feat: Multi Send Txs

* Create lovely-knives-smile.md

* chore: [ci] release (alpha) (#98)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Allow to have sp auth fail (#101)

* feat: Allow to have sp auth fail

* fix: Replace endpoint with address when auth failed

* Create tidy-dodos-care.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: TS lib (#104)

* feat: Sync cosmos types (#106)

* chore: [ci] release (alpha) (#102)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: Use rainbowkit simply wallet of example (#107)

* Feat/update group  (#108)

* feat: Update group extra api

* chore: Test group api

* Create quiet-planets-shop.md

* chore: [ci] release (alpha) (#109)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/sp listgroup (#110)

* feat: Add sp.listGroup API

* chore: Update Example

* chore: [ci] release (alpha) (#111)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: Update Example (#112)

* chore: Update Examples (#114)

* chore(dep): Add cross-env

* chore(dep): Npm script

* chore: Pnpm engines

* chore: Codesandbox Example (#115)

* chore(docs): Update stackblitz url (#116)

* refactor: CreateFoler API params (#119)

* chore: [ci] release (alpha) (#120)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: TimeStamp format

* chore: [ci] release (alpha) (#121)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Refactor/policy (#122)

* refactor: Bucket policy

* refactor: Bucket policy

* chore: [ci] release (alpha) (#123)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore(example): BucketPolicy (#127)

* Chore/update policy example (#128)

* chore(example): BucketPolicy

* chore(example): BucketPolicy

* Feat/gashub (#129)

* feat: Add gas hub API

* refactor: TypeUrl as constants

* chore: [ci] release (alpha) (#130)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Export queryClient (#131)

* feat: Export queryClient

* Create calm-birds-sleep.md

* Update README.md

* fix: Compatiable net error (#133)

* fix: Compatiable net error

* Create old-roses-play.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#132)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Test/test case (#134)

* feat: Isomorphic fetch

* test: Uint test and e2e test

* feat: Sync Types (#136)

* feat: Sync Types

* Create weak-hounds-sell.md

* chore: [ci] release (alpha) (#135)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix/sort types (#137)

* feat: Sort EIP712 message field

* feat: Extra field

* Create happy-humans-thank.md

* chore: [ci] release (alpha) (#138)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Bump version (#139)

* chore: [ci] release (alpha) (#140)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Split approval and simulate (#141)

* chore: [ci] release (alpha) (#142)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Revert "feat: Split approval and simulate" (#143)

* Revert "feat: Split approval and simulate"

This reverts commit 76defa7.

* Create dirty-parrots-hear.md

* chore: [ci] release (alpha) (#144)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Chore/test case (#145)

* chore(test): Remove private key from config

* chore: Test CI

* chore: Update rainkit version (#146)

* feat: Query Lock Fee API (#147)

* feat: Query Lock Fee API

* Create green-avocados-jump.md

* chore: [ci] release (alpha) (#148)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Update bucket.ts (#149)

* Update bucket.ts

throw error

* Create hot-countries-begin.md

---------

Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#150)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Return real statuscode when call metaservice (#164)

* fix: Return real statuscode when call metaservice

* Create kind-eyes-brake.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#166)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Upgrade types version (#167)

* chore: [ci] release (alpha) (#168)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/sp exit (#169)

* feat: Add Virtual Group API

* feat: Compatibility createBukcet and createObject API

* feat: Add Migrate bucket API

* Feat/batch upload (#171)

* feat: Feegrant

* feat: Feegrant

* Create angry-horses-enjoy.md

* Feat/batch upload (#174)

* feat: Feegrant

* feat: Feegrant

* feat: Feegrant grantAllowance API

* feat: CreateObject example

* feat: CreateBucket example

* feat: Transfer example

* feat: AuthInfoBytes add feePayer and feeGranter

* feat: Add Two Apis (#179)

* feat: Add Two Apis

* Create mean-wombats-remain.md

* chore: [ci] release (alpha) (#170)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat AuthV1 (#182)

* chore: Update example

* chore: Update Example

* feat: V1Auth

* feat: V1Auth generate

* feat: V1Auth createObject Approval

* Create shaggy-experts-approve.md

* Feat/com new (#186)

* feat: Remove GetUserBuckets API Auth

* feat: Update BucketProps type

* feat: Remove listObjects api auth and update response type

* feat: Remove listGroup api auth

* feat: Update Types

* chore: [ci] release (alpha) (#183)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Offchainauth timeout reduced to 2s (#187)

* feat: Offchainauth timeout reduced to 2s

* Create warm-planets-exercise.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#188)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/auth v1 (#189)

* feat: Upgrade types

* chore: Update Example Account config

* feat: Object create update

* Create empty-pens-sing.md

* chore: [ci] release (alpha) (#190)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/auth v1 (#191)

* feat: Upgrade types

* chore: Update Example Account config

* feat: Object create update

* feat: API getStorageProviderInfo params update

* chore: Upgrade types

* feat: GetSpURLfrom bucket

* feat: Remove Sp param when create object and bucket

* chore: [ci] release (alpha) (#192)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Change Allwance value type (#193)

* chore: Test config update

* feat: Change Allowance Type

* chore: [ci] release (alpha) (#194)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: MultiTx support private key (#195)

* fix: Throw sp error code and message (#197)

* fix: Throw sp error code and message

* Create good-bobcats-hang.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#196)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: No sp available error (#200)

* fix: No sp available error

* Create khaki-ducks-brake.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* Opt (#198)

* chore: Update Example

* refactor: Replace @ethereumjs/util with @ethersproject/bytes

* feat: Upload Object V1 auth

* fix: CreateObjectTx content-type msg

* chore: [ci] release (alpha) (#201)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Extend response time to 3s (#202)

* feat: Extend response time to 3s

* Create orange-spiders-add.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#203)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Chore/conflict (#209)

* release 0.2.2 (#204)

* feat: Update Types

* chore: [ci] release (alpha)

* Feat/query status (#42)

* fix: Return types

* feat: Feegrant

* fix: Pubkey typeUrl

* feat: Upgrade Cosmos SDK

* refactor: Simply broadcast and simulate tx

* feat: Support Tx by PrivateKey

* feat: Replace local message with types npm

* test: Test Framework

* chore: Upgrade Example wagmi version, Replace ethersjs with viem

* feat: Support EIP712 callback use external provider

* feat: Support dynamic provider

* test: Support jest test

* test: Account Query

* feat: Change Tx API

* feat: Type Complete

* chore: Complate Example in New API

* fix: Rollup bundle Support Nodejs

* feat: Resolute Module (IoC)

* docs: Update README

* chore: [ci] release (alpha) (#43)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/multi msg (#49)

* feat: Multi Send

* feat: Compatibility multi tx message

* Revert "Feat/multi msg (#49)" (#53)

This reverts commit fc3dd98.

* Update WASM (#55)

* feat: Update WASM

* feat: Update create object tx

* docs: Update doc (#56)

* feat: Pre alpha (#57)

* chore: [ci] release (alpha) (#58)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Update README.md

* multi msg (#59)

* feat: Multi Send

* feat: Compatibility multi tx message

* chore: [ci] release (alpha) (#62)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: CreateObject Msg (#65)

* feat: add offchainauth method (#64)

* feat: Add offchainauth method

* feat: Compatiable old get approval method

* Create ten-suits-crash.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#66)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Add Sp params (#67)

* feat: Optimize get approval types and add throw error (#70)

* feat: Optimize get approval types and add throw error

* Create fluffy-snails-explain.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#68)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: Update example without greenfield-cosmos-types (#71)

* fix: Return Promise (#72)

* fix: Return Promise

* Create strong-snails-count.md

* chore: [ci] release (alpha) (#73)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Create Group message (#74)

* fix: Create Group message

* Create young-bears-scream.md

* feat: Add Storage Params API (#76)

* chore: [ci] release (alpha) (#75)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Chore/group example (#77)

* feat: Group API

* chore: Group and Mirror example

* chore: [ci] release (alpha) (#78)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: Update example (#79)

* feat: Add query param to ListObjects API for display folder. (#80)

* feat: Add query params to ListObjects API for folder

* Create clean-dogs-joke.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* Feat/group (#82)

* chore: Update Example

* feat: Add some group API

* Create sweet-feet-hide.md

* chore: [ci] release (alpha) (#81)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Update objectt.ts (#83)

* Update objectt.ts

add missing resp params

* Create cold-suns-accept.md

---------

Co-authored-by: rrr523 <[email protected]>

* Feat/policy (#86)

* feat: Policy API

* fix: Object API name

* Create pretty-bulldogs-notice.md

* feat: Migrate out zkbas-js-sdk and upate the sign msg format (#85)

* feat: Migrate out zkbas-js-sdk and upate the sign msg format

* Create fluffy-pumas-yawn.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#84)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Head Group (#96)

* fix: Head Group

* Create cyan-ties-cross.md

* feat: Multi Send Txs (#97)

* feat: Multi Send Txs

* Create lovely-knives-smile.md

* chore: [ci] release (alpha) (#98)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Allow to have sp auth fail (#101)

* feat: Allow to have sp auth fail

* fix: Replace endpoint with address when auth failed

* Create tidy-dodos-care.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: TS lib (#104)

* feat: Sync cosmos types (#106)

* chore: [ci] release (alpha) (#102)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: Use rainbowkit simply wallet of example (#107)

* Feat/update group  (#108)

* feat: Update group extra api

* chore: Test group api

* Create quiet-planets-shop.md

* chore: [ci] release (alpha) (#109)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/sp listgroup (#110)

* feat: Add sp.listGroup API

* chore: Update Example

* chore: [ci] release (alpha) (#111)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: Update Example (#112)

* chore: Update Examples (#114)

* chore(dep): Add cross-env

* chore(dep): Npm script

* chore: Pnpm engines

* chore: Codesandbox Example (#115)

* chore(docs): Update stackblitz url (#116)

* refactor: CreateFoler API params (#119)

* chore: [ci] release (alpha) (#120)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: TimeStamp format

* chore: [ci] release (alpha) (#121)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Refactor/policy (#122)

* refactor: Bucket policy

* refactor: Bucket policy

* chore: [ci] release (alpha) (#123)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore(example): BucketPolicy (#127)

* Chore/update policy example (#128)

* chore(example): BucketPolicy

* chore(example): BucketPolicy

* Feat/gashub (#129)

* feat: Add gas hub API

* refactor: TypeUrl as constants

* chore: [ci] release (alpha) (#130)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Export queryClient (#131)

* feat: Export queryClient

* Create calm-birds-sleep.md

* Update README.md

* fix: Compatiable net error (#133)

* fix: Compatiable net error

* Create old-roses-play.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#132)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Test/test case (#134)

* feat: Isomorphic fetch

* test: Uint test and e2e test

* feat: Sync Types (#136)

* feat: Sync Types

* Create weak-hounds-sell.md

* chore: [ci] release (alpha) (#135)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix/sort types (#137)

* feat: Sort EIP712 message field

* feat: Extra field

* Create happy-humans-thank.md

* chore: [ci] release (alpha) (#138)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Bump version (#139)

* chore: [ci] release (alpha) (#140)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Split approval and simulate (#141)

* chore: [ci] release (alpha) (#142)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Revert "feat: Split approval and simulate" (#143)

* Revert "feat: Split approval and simulate"

This reverts commit 76defa7.

* Create dirty-parrots-hear.md

* chore: [ci] release (alpha) (#144)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Chore/test case (#145)

* chore(test): Remove private key from config

* chore: Test CI

* chore: Update rainkit version (#146)

* feat: Query Lock Fee API (#147)

* feat: Query Lock Fee API

* Create green-avocados-jump.md

* chore: [ci] release (alpha) (#148)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Update bucket.ts (#149)

* Update bucket.ts

throw error

* Create hot-countries-begin.md

---------

Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#150)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Return real statuscode when call metaservice (#164)

* fix: Return real statuscode when call metaservice

* Create kind-eyes-brake.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#166)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Upgrade types version (#167)

* chore: [ci] release (alpha) (#168)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/sp exit (#169)

* feat: Add Virtual Group API

* feat: Compatibility createBukcet and createObject API

* feat: Add Migrate bucket API

* Feat/batch upload (#171)

* feat: Feegrant

* feat: Feegrant

* Create angry-horses-enjoy.md

* Feat/batch upload (#174)

* feat: Feegrant

* feat: Feegrant

* feat: Feegrant grantAllowance API

* feat: CreateObject example

* feat: CreateBucket example

* feat: Transfer example

* feat: AuthInfoBytes add feePayer and feeGranter

* feat: Add Two Apis (#179)

* feat: Add Two Apis

* Create mean-wombats-remain.md

* chore: [ci] release (alpha) (#170)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat AuthV1 (#182)

* chore: Update example

* chore: Update Example

* feat: V1Auth

* feat: V1Auth generate

* feat: V1Auth createObject Approval

* Create shaggy-experts-approve.md

* Feat/com new (#186)

* feat: Remove GetUserBuckets API Auth

* feat: Update BucketProps type

* feat: Remove listObjects api auth and update response type

* feat: Remove listGroup api auth

* feat: Update Types

* chore: [ci] release (alpha) (#183)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Offchainauth timeout reduced to 2s (#187)

* feat: Offchainauth timeout reduced to 2s

* Create warm-planets-exercise.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#188)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/auth v1 (#189)

* feat: Upgrade types

* chore: Update Example Account config

* feat: Object create update

* Create empty-pens-sing.md

* chore: [ci] release (alpha) (#190)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/auth v1 (#191)

* feat: Upgrade types

* chore: Update Example Account config

* feat: Object create update

* feat: API getStorageProviderInfo params update

* chore: Upgrade types

* feat: GetSpURLfrom bucket

* feat: Remove Sp param when create object and bucket

* chore: [ci] release (alpha) (#192)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Change Allwance value type (#193)

* chore: Test config update

* feat: Change Allowance Type

* chore: [ci] release (alpha) (#194)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: MultiTx support private key (#195)

* fix: Throw sp error code and message (#197)

* fix: Throw sp error code and message

* Create good-bobcats-hang.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#196)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: No sp available error (#200)

* fix: No sp available error

* Create khaki-ducks-brake.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* Opt (#198)

* chore: Update Example

* refactor: Replace @ethereumjs/util with @ethersproject/bytes

* feat: Upload Object V1 auth

* fix: CreateObjectTx content-type msg

* chore: [ci] release (alpha) (#201)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Extend response time to 3s (#202)

* feat: Extend response time to 3s

* Create orange-spiders-add.md

---------

Co-authored-by: devinxl <[email protected]>
Co-authored-by: rrr523 <[email protected]>

* chore: [ci] release (alpha) (#203)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: randomx999 <[email protected]>
Co-authored-by: devinxl <[email protected]>
Co-authored-by: aiden-cao <[email protected]>

* chore: Pre exit (#205)

* chore: [ci] release (#206)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: Rename package (#207)

* chore: [ci] release (#208)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: randomx999 <[email protected]>
Co-authored-by: devinxl <[email protected]>
Co-authored-by: aiden-cao <[email protected]>

* Feat/payment (#210)

* feat: Add Payment query API

* fix: Create Payment Account

* fix: Payment disableRefund

* chore: Update Example

* chore: [ci] release (alpha) (#211)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: Update README link (#214)

* fix: Return Types (#213)

* chore: Update withdraw example params (#212)

* chore: Update withdraw example params

* feat: Zk crypto wasm package

* chore: Nodejs example update package

* chore: Add comment

* chore: Update UMD name

* feat: Upgrade file handle package

* chore: Update OffchainAuth example

* feat: New Zk package

* chore: Changeset (#215)

* chore: [ci] release (alpha) (#216)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/group api (#217)

* fix: Dynamic add and delete members string array

* chore: Release zk crypto

* chore: [ci] release (alpha) (#218)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: Release zk crypto (#219)

* chore: [ci] release (alpha) (#220)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Zk version bump (#221)

* chore: [ci] release (alpha) (#222)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: DeepClone EIP712 (#223)

* chore: [ci] release (alpha) (#224)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Error try catch (#230)

* chore: [ci] release (alpha) (#231)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/auth (#232)

* feat: Compatibility new payment api

* feat: Compatibility updateGroupMember api

* chore: Update example

* feat: Feegrant api add timestamp

* feat: EDDSA Sign

* feat: Remove log (#234)

* chore: [ci] release (alpha) (#233)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Feegrant add expiration time (#235)

* fix: Feegrant add expiration time

* chore(example): GetAllowence support pagination

* refactor (#236)

* refactor: Tx

* fix: Type

* feat: Add Group API

* feat: Update Sp API

* feat: Bucket add authType

* feat:  and  add  params

* fix: Types

* feat: Change type

* chore: [ci] release (alpha) (#237)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix/read quota (#238)

* fix: CreateBucketApproval

* feat: ReadQuota

* chore(example): Update Example

* chore: [ci] release (alpha) (#239)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* XML response (#240)

* feat: Return XML type

* feat: CreateBucket Add payment address

* chore: [ci] release (alpha) (#241)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: XMLParser force array not object (#242)

* Feat/export req (#243)

* fix: XMLParser force array not object

* fix: XMLParser force array not object

* chore: [ci] release (alpha) (#244)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Export types (#245)

* Export types (#247)

* feat: Export types

* fix: Hex number convert to string not big number

* chore: [ci] release (alpha) (#246)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/up and down (#248)

* feat: Upload Object add AuthType

* feat: Download s3 object

* feat: Migrate Bucket add authType

* feat: SpClient expose makeHeaders method

* chore: Update constant pathj

* chore: [ci] release (alpha) (#249)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Feat/xml null (#250)

* feat: Add default XML value

* feat: Add default XML value

* chore: [ci] release (alpha) (#251)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix/gap time (#252)

* fix: Gap time

* fix: Gap time

* Feat/meta (#254)

* feat: GetBucketMeta

* feat: Object Meta

* Create curly-fishes-bow.md

* chore: [ci] release (alpha) (#253)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Refactor/sp client (#255)

* chore: Exact parseError

* feat: Remove deps

* chore: Structor

* feat: Refeactor Sp Client

* chore: [ci] release (alpha) (#256)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Custom HTTP method (#257)

* feat: Custom HTTP method

* chore(example): Update

* chore: [ci] release (alpha) (#258)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore(docs): Update README (#259)

* chore: Add comment (#260)

* fix: Sp types (#261)

* Feat/upload progress (#263)

* fix: GfSpGetUserBucketsResponse Bucket types

* feat: Cross fetch

* chore: [ci] release (alpha) (#262)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: EncodePath (#264)

* chore: [ci] release (alpha) (#265)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Download http method (#266)

* fix: Download http method (#267)

* chore: [ci] release (alpha) (#268)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: New API getObjectPreviewUrl (#270)

* chore: [ci] release (alpha) (#271)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: XML type align to go struct (#272)

* feat: Optional endpoint param (#273)

* chore: [ci] release (alpha) (#274)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: XML parse boolean (#275)

* chore: [ci] release (alpha) (#276)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Common Prefix parse as array (#277)

* chore: [ci] release (alpha) (#278)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* test: Parse XML test case (#279)

* feat: Migrate bucket (#280)

* fix: Create bucket quota params (#282)

* chore: [ci] release (alpha) (#281)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Replace xml2js to fast-xml-parse (#283)

* Feat/update bucket info (#284)

* feat: Update Bucket Info API

* chore(example): Update

* chore: [ci] release (alpha) (#285)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: EncodePath function (#286)

* fix: Convert enum to number (#287)

* chore: [ci] release (alpha) (#288)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: Add listReadRecords api

* feat: ListGroups API

* feat: ListObjectsByIds API

* feat: ListBucketsByIds api

* feat: Add verifyPermission api

* feat: ListGroupsMembers

* feat: ListUserGroups api

* feat: Add listUserOwnedGroups api

* chore: [ci] release (alpha)

* feat: Sort query (#292)

* feat: Sort query

* Create healthy-chicken-beam.md

* chore: [ci] release (alpha) (#293)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore(exmaple): Group (#294)

* docs: Update API (#295)

* chore: Pre Exit (#296)

* Pre exit (#297)

* chore: Pre Exit

* chore: Pre Exit

* chore: [ci] release (#298)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: Pre Enter (#299)

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: randomx999 <[email protected]>
Co-authored-by: devinxl <[email protected]>
Co-authored-by: aiden-cao <[email protected]>
  • Loading branch information
6 people authored Sep 1, 2023
1 parent b2b98b4 commit 978a671
Show file tree
Hide file tree
Showing 164 changed files with 9,937 additions and 2,710 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

12 changes: 12 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"mode": "pre",
"tag": "alpha",
"initialVersions": {
"@demo/wallet": "0.0.5",
"@demo/nodejs": "0.0.8",
"@bnb-chain/greenfield-js-sdk": "0.2.4",
"@bnb-chain/greenfiled-file-handle": "0.2.1",
"@bnb-chain/greenfield-zk-crypto": "0.0.2"
},
"changesets": []
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ You can find some package documentation below:
| --- | --- |
| [@bnb-chain/greenfield-js-sdk](./packages/chain-sdk/README.md) | A client library for Greenfield Chain |
| [@bnb-chain/greenfiled-file-handle](./packages/file-handle/README.md) | WASM module that handle file, such as `checksums` |
| [@bnb-chain/greenfield-zk-crypto](./packages/zk-crypto/README.md) | WASM module about sign crypto |

## Document
[Document](./packages/chain-sdk/README.md)
Expand Down
346 changes: 346 additions & 0 deletions examples/nextjs/CHANGELOG.md

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions examples/nextjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Use [React](https://react.dev/) and [Next.js](https://nextjs.org/)
## Usage case

* tx
* [transfer](./examples/wallet/src/components/transfer/index.tsx)
* [withdraw](./examples/wallet/src/components/withdraw/index.tsx)
* [bucket](./examples/wallet/src/components/bucket/index.tsx)
* [object](./examples/wallet/src/components/object/index.tsx)
* [query](./examples/wallet/src/components/withdraw/query.tsx)
* [transfer](./src/components/transfer/index.tsx)
* [withdraw](./src/components/withdraw/index.tsx)
* [bucket](./src/components/bucket/index.tsx)
* [object](./src/components/object/index.tsx)
* [query](./src/components/withdraw/query.tsx)
4 changes: 2 additions & 2 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@demo/wallet",
"version": "0.0.4",
"version": "0.0.5",
"private": true,
"scripts": {
"dev": "cross-env NODE_ENV=development next dev",
Expand All @@ -24,7 +24,7 @@
"@types/node": "^18.7.1",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"axios": "^1.3.2",
"axios": "^1.3.4",
"cors": "^2.8.5",
"eslint": "^8.21.0",
"eslint-config-next": "13.1.6",
Expand Down
20 changes: 18 additions & 2 deletions examples/nextjs/src/client/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
import { GREEN_CHAIN_ID, GRPC_URL } from '@/config';
import { Client } from '@bnb-chain/greenfield-js-sdk';

export const client = Client.create(GRPC_URL, String(GREEN_CHAIN_ID));
export const client = Client.create(GRPC_URL, String(GREEN_CHAIN_ID), {
// zkCryptoUrl: 'https://dcellar.io/static/dcellar-web-ui/wasm/zk.wasm',
zkCryptoUrl:
'https://unpkg.com/@bnb-chain/[email protected]/dist/node/zk-crypto.wasm',
});

export const getSps = async () => {
const sps = await client.sp.getStorageProviders();
const finalSps = (sps ?? []).filter((v: any) => v?.description?.moniker !== 'QATest');
const finalSps = (sps ?? []).filter((v: any) => v.endpoint.includes('nodereal'));

return finalSps;
};

export const getAllSps = async () => {
const sps = await getSps();

return sps.map((sp) => {
return {
address: sp.operatorAddress,
endpoint: sp.endpoint,
name: sp.description?.moniker,
};
});
};

export const selectSp = async () => {
const finalSps = await getSps();

Expand Down
84 changes: 30 additions & 54 deletions examples/nextjs/src/components/bucket/create/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { client, selectSp } from '@/client';
import { ACCOUNT_PRIVATEKEY } from '@/config/env';
import { getOffchainAuthKeys } from '@/utils/offchainAuth';
import { useState } from 'react';
import { useAccount, useNetwork } from 'wagmi';
import { useAccount } from 'wagmi';

export const CreateBucket = () => {
const { address } = useAccount();
const { chain } = useNetwork();
const { address, connector } = useAccount();
const [createBucketInfo, setCreateBucketInfo] = useState<{
bucketName: string;
}>({
Expand All @@ -31,57 +31,33 @@ export const CreateBucket = () => {
const spInfo = await selectSp();
console.log('spInfo', spInfo);

const createBucketTx = await client.bucket.createBucket({
bucketName: createBucketInfo.bucketName,
creator: address,
visibility: 'VISIBILITY_TYPE_PUBLIC_READ',
chargedReadQuota: '0',
spInfo: {
primarySpAddress: spInfo.primarySpAddress,
},
signType: 'authTypeV1',
privateKey: ACCOUNT_PRIVATEKEY,
});

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

console.log('simulateInfo', simulateInfo);

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

if (res.code === 0) {
alert('success');
const provider = await connector?.getProvider();
const offChainData = await getOffchainAuthKeys(address, provider);
if (!offChainData) {
alert('No offchain, please create offchain pairs first');
return;
}
}}
>
broadcast with simulate with authTypeV1
</button>
<br />
<button
onClick={async () => {
if (!address) return;
const domain = window.location.origin;
const key = `${address}-${chain?.id}`;
const spInfo = await selectSp();
const { seedString } = JSON.parse(localStorage.getItem(key) || '{}');
const createBucketTx = await client.bucket.createBucket({
bucketName: createBucketInfo.bucketName,
creator: address,
visibility: 'VISIBILITY_TYPE_PUBLIC_READ',
chargedReadQuota: '0',
spInfo,
signType: 'offChainAuth',
domain,
seedString,
});

const createBucketTx = await client.bucket.createBucket(
{
bucketName: createBucketInfo.bucketName,
creator: address,
visibility: 'VISIBILITY_TYPE_PUBLIC_READ',
chargedReadQuota: '0',
spInfo: {
primarySpAddress: spInfo.primarySpAddress,
},
paymentAddress: address,
},
{
// type: 'ECDSA',
// privateKey: ACCOUNT_PRIVATEKEY,
type: 'EDDSA',
domain: window.location.origin,
seed: offChainData.seedString,
address,
},
);

const simulateInfo = await createBucketTx.simulate({
denom: 'BNB',
Expand All @@ -102,7 +78,7 @@ export const CreateBucket = () => {
}
}}
>
broadcast with simulate with offChainAuth
broadcast with simulate
</button>
</>
);
Expand Down
10 changes: 10 additions & 0 deletions examples/nextjs/src/components/bucket/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { CreateBucket } from './create';
import { DeleteBucket } from './delete';
import { BucketInfo } from './info';
import { MigrateBucket } from './migrate';
import { BucketQuota } from './quota';
import { UpdateBucket } from './update';

export const Bucket = () => {
return (
Expand All @@ -12,10 +14,18 @@ export const Bucket = () => {

<div style={{ marginTop: 10 }} />

<UpdateBucket />

<div style={{ marginTop: 10 }} />

<DeleteBucket />

<div style={{ marginTop: 10 }} />

<BucketQuota />

<div style={{ marginTop: 10 }} />

<MigrateBucket />

<div style={{ marginTop: 10 }} />
Expand Down
50 changes: 49 additions & 1 deletion examples/nextjs/src/components/bucket/info/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { client, selectSp } from '@/client';
import { getOffchainAuthKeys } from '@/utils/offchainAuth';
import { useState } from 'react';
import { useAccount } from 'wagmi';

export const BucketInfo = () => {
const { address } = useAccount();
const { address, connector } = useAccount();
const [bucketName, setBucketName] = useState('');
const [bucketId, setBucketId] = useState('');

Expand All @@ -22,6 +23,53 @@ export const BucketInfo = () => {
>
get bucket info by name
</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 startTimeStamp = Math.round(Date.now() / 1000) - 3600 * 24 * 2;
const endTimeStamp = Math.round(Date.now() / 1000);

const bucketInfo = await client.bucket.listBucketReadRecords(
{
bucketName,
startTimeStamp,
endTimeStamp,
maxRecords: 1000,
},
{
type: 'EDDSA',
domain: window.location.origin,
seed: offChainData.seedString,
address,
},
);
console.log(bucketInfo);
}}
>
get bucket read records
</button>
<br />
<button
onClick={async () => {
const sp = await selectSp();
const bucketInfo = await client.bucket.getBucketMeta({
bucketName,
endpoint: sp.endpoint,
});
console.log(bucketInfo);
}}
>
get bucket meta info by name
</button>
</div>

<div>
Expand Down
30 changes: 21 additions & 9 deletions examples/nextjs/src/components/bucket/migrate/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { client, selectSp } from '@/client';
import { getOffchainAuthKeys } from '@/utils/offchainAuth';
import { useState } from 'react';
import { useAccount } from 'wagmi';

export const MigrateBucket = () => {
const { address } = useAccount();
const { address, connector } = useAccount();
const [bucketName, setBucketName] = useState('');

return (
Expand All @@ -16,24 +17,35 @@ export const MigrateBucket = () => {
setBucketName(e.target.value);
}}
/>
<br />
</div>
<br />
<button
onClick={async () => {
if (!address) return;

const spInfo = await selectSp();
const destinationSpInfo = await selectSp();
console.log('dstPrimarySpId', destinationSpInfo.id);

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

const migrateBucketTx = await client.bucket.migrateBucket(
{
bucketName,
operator: address,
dstPrimarySpId: spInfo.id,
dstPrimarySpId: destinationSpInfo.id,
},
spInfo,
signType: 'authTypeV2',
});
{
type: 'EDDSA',
address,
domain: window.location.origin,
seed: offChainData.seedString,
},
);

const simulateInfo = await migrateBucketTx.simulate({
denom: 'BNB',
Expand Down
Loading

0 comments on commit 978a671

Please sign in to comment.