Skip to content

Commit

Permalink
Alpha (#369)
Browse files Browse the repository at this point in the history
* 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)

* Refactor/sp (#302)

* feat: Auth expiry timestamp add default value

* refactor: Sp types

* fix: Expire time

* feat: Upgrade TinyGo version

* Refactor/sp (#305)

* feat: Auth expiry timestamp add default value

* refactor: Sp types

* fix: Expire time

* feat: Upgrade TinyGo version

* refactor: Sp metainfo

* chore: Update Example

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

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

* fix: Build (#306)

* chore: Update Deps (#308)

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

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

* docs: Update README (#309)

* Feat/validator (#310)

* feat: EditValidator

* feat: Add proposal api

* refactor: TxClient

* feat: Bucket listBucketsByPaymentAccount api

* fix: Proposal and Validator API

* feat: ListUserPaymentAccount api

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

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

* chore: Nodejs example update

* test: Test case update

* chore: README update

* feat: ListBuckets

* fix: QueryClient and TxClient is not singleton

* chore: Upgrade types

* fix: PutPolicy

* feat: ListObjectPolicies api

* chore: [ci] release (alpha)

* fix: IOC (#314)

fix: All class use injectable

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

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

* chore: Update exmaple (#316)

* feat: Distribution API (#317)

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

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

* feat: MsgSettle (#319)

* feat: MsgSettle

* Create fast-houses-do.md

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

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

* chore(example): Update custom tx (#321)

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

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

* chore: Github Action issue close (#323)

* feat: Bucket headBucketExtra api (#324)

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

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

* chore: Nodejs Example update (#326)

* chore: Example Update (#327)

* Chore/example (#328)

* chore: Example Update

* chore: Example Update

* chore: Update (#329)

* feat: Custom Tx (#330)

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

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

* fix: Delete Policy (#332)

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

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

* Feat/create app (#334)

* feat: Template Init

* feat: Template Init

* feat: Create App Commander

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

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

* feat: Create App Commander (#336)

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

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

* chore: Update README (#338)

* feat: Add vite template (#339)

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

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

* release 0.2.5 (#341)

chore: Pre Exit

* chore: [ci] release (#342)

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

* chore: Enter pre (#343)

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

* Chore/package (#346)

* chore: Update package.json

* chore: Update package.json

* Chore/package js sdk (#347)

* chore: Update deps

* chore: Update deps

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

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

* Chore/update deps (#349)

* chore: Update deps

* chore: Update deps

* Docs site ! (#350)

* feat: Docs init

* feat: Docs init

* chore: Update README

* docs: Update Docs

* chore: Update deps

* chore: Update docs

* chore: Update docs

* chore: Update

* docs: Update

* docs: Update

* docs: Update

* docs: Update Crosschain doc

* chore: Update docs

* chore: Pre exit (#351)

* chore: [ci] release (#352)

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

* feat: Custom Tx support any type! (#355)

* chore: Pre enter (#357)

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

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

* fix: Offchain auth ei.data undefined (#358)

* fix: Offchain auth ei.data undefined

* Create witty-bikes-flash.md

---------

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

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

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

* fix: Offchain auth ei.data undefined (#360)

* fix: Offchain auth ei.data undefined

* Create ten-maps-travel.md

---------

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

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

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

* chore: Release 1.0.0 (#365)

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

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

* chore: Pre exit (#367)

* chore: [ci] release (#368)

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: github-actions[bot] <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 Oct 12, 2023
1 parent f21d7e5 commit 3475a74
Show file tree
Hide file tree
Showing 24 changed files with 886 additions and 81 deletions.
45 changes: 45 additions & 0 deletions examples/nextjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# @demo/wallet

## 0.0.8

### Patch Changes

- Updated dependencies
[[`57082ea`](https://github.com/bnb-chain/greenfield-js-sdk/commit/57082eace1beff17c2ab9b21d099ba6563fe94bf),
[`9f7feb5`](https://github.com/bnb-chain/greenfield-js-sdk/commit/9f7feb58a264b303a40a93cfb471e61df4170e6b),
[`76a18f1`](https://github.com/bnb-chain/greenfield-js-sdk/commit/76a18f1ea3dc44ea56c964003de4d9e323532405),
[`c981fff`](https://github.com/bnb-chain/greenfield-js-sdk/commit/c981fff3943fb5f351df7986a498021cf7cbff9d)]:
- @bnb-chain/greenfiled-file-handle@1.0.0
- @bnb-chain/greenfield-js-sdk@1.0.0

## 0.0.8-alpha.3

### Patch Changes

- Updated dependencies
[[`57082ea`](https://github.com/bnb-chain/greenfield-js-sdk/commit/57082eace1beff17c2ab9b21d099ba6563fe94bf)]:
- @bnb-chain/greenfiled-file-handle@1.0.0-alpha.0
- @bnb-chain/greenfield-js-sdk@1.0.0-alpha.3

## 0.0.8-alpha.2

### Patch Changes

- Updated dependencies
[[`9f7feb5`](https://github.com/bnb-chain/greenfield-js-sdk/commit/9f7feb58a264b303a40a93cfb471e61df4170e6b)]:
- @bnb-chain/greenfield-js-sdk@0.2.7-alpha.2

## 0.0.8-alpha.1

### Patch Changes

- Updated dependencies
[[`c981fff`](https://github.com/bnb-chain/greenfield-js-sdk/commit/c981fff3943fb5f351df7986a498021cf7cbff9d)]:
- @bnb-chain/greenfield-js-sdk@0.2.7-alpha.1

## 0.0.8-alpha.0

### Patch Changes

- Updated dependencies
[[`76a18f1`](https://github.com/bnb-chain/greenfield-js-sdk/commit/76a18f1ea3dc44ea56c964003de4d9e323532405)]:
- @bnb-chain/greenfield-js-sdk@0.2.7-alpha.0

## 0.0.7

### Patch Changes
Expand Down
8 changes: 6 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.7",
"version": "0.0.8",
"private": true,
"scripts": {
"dev": "cross-env NODE_ENV=development next dev",
Expand All @@ -11,11 +11,13 @@
"lint": "next lint"
},
"dependencies": {
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.23",
"@bnb-chain/greenfield-js-sdk": "workspace:*",
"@bnb-chain/greenfiled-file-handle": "workspace:*",
"@cosmjs/encoding": "^0.29.5",
"@cosmjs/proto-signing": "^0.29.5",
"@cosmjs/stargate": "^0.29.5",
"@ethersproject/bytes": "5.7.0",
"@ethersproject/signing-key": "^5.7.0",
"@ethersproject/wallet": "^5.7.0",
"@metamask/eth-sig-util": "^5.0.2",
Expand All @@ -29,6 +31,7 @@
"eslint": "^8.21.0",
"eslint-config-next": "13.1.6",
"evmosjs": "^0.2.17",
"lodash": "^4.17.21",
"long": "^5.2.1",
"next": "13.1.6",
"react": "18.2.0",
Expand All @@ -38,7 +41,8 @@
"wagmi": "^1.2.0"
},
"devDependencies": {
"@types/lodash": "^4.14.199",
"cross-env": "^7.0.3",
"dotenv": "^16.0.3"
}
}
}
183 changes: 183 additions & 0 deletions examples/nextjs/src/components/customtx/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,189 @@ export const CustomTx = () => {
>
broadcast with simulate
</button>

<br />

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

const tx = await client.txClient.txRaw({
address,
eip712MsgType: {
Msg1: [
{
name: 'grant',
type: 'TypeMsg1Grant',
},
{
name: 'grantee',
type: 'string',
},
{
name: 'granter',
type: 'string',
},
{
name: 'type',
type: 'string',
},
],
Msg2: [
{
name: 'initial_deposit',
type: 'TypeMsg2InitialDeposit[]',
},
{
name: 'messages',
type: 'TypeAny[]',
},
{
name: 'metadata',
type: 'string',
},
{
name: 'proposer',
type: 'string',
},
{
name: 'summary',
type: 'string',
},
{
name: 'title',
type: 'string',
},
{
name: 'type',
type: 'string',
},
],
TypeAny: [
{
name: 'type',
type: 'string',
},
{
name: 'value',
type: 'bytes',
},
],
TypeMsg1Grant: [
{
name: 'authorization',
type: 'TypeAny',
},
{
name: 'expiration',
type: 'string',
},
],
TypeMsg2InitialDeposit: [
{
name: 'amount',
type: 'string',
},
{
name: 'denom',
type: 'string',
},
],
Tx: [
{
name: 'account_number',
type: 'uint256',
},
{
name: 'chain_id',
type: 'uint256',
},
{
name: 'fee',
type: 'Fee',
},
{
name: 'memo',
type: 'string',
},
{
name: 'msg1',
type: 'Msg1',
},
{
name: 'msg2',
type: 'Msg2',
},
{
name: 'sequence',
type: 'uint256',
},
{
name: 'timeout_height',
type: 'uint256',
},
],
},
msgData: {
msg1: {
grant: {
authorization: {
type: '/cosmos.staking.v1beta1.StakeAuthorization',
value:
'ZXlKQWRIbHdaU0k2SWk5amIzTnRiM011YzNSaGEybHVaeTUyTVdKbGRHRXhMbE4wWVd0bFFYVjBhRzl5YVhwaGRHbHZiaUlzSW1Gc2JHOTNYMnhwYzNRaU9uc2lZV1JrY21WemN5STZXeUl3ZURCaFFUVXhOekJET0RVMFFVRXdPVE5sTVdNek1rWXhOVEk0TldSRk5FSm1OMlkyT0RBeVEyVWlYWDBzSW1GMWRHaHZjbWw2WVhScGIyNWZkSGx3WlNJNklrRlZWRWhQVWtsYVFWUkpUMDVmVkZsUVJWOUVSVXhGUjBGVVJTSXNJbTFoZUY5MGIydGxibk1pT25zaVlXMXZkVzUwSWpvaU1UQXdNREF3TURBd01EQXdNREF3TURBd01EQXdNQ0lzSW1SbGJtOXRJam9pUWs1Q0luMTk=',
},
expiration: '',
},
grantee: '0x7b5Fe22B5446f7C62Ea27B8BD71CeF94e03f3dF2',
granter: '0x1C893441AB6c1A75E01887087ea508bE8e07AAae',
type: '/cosmos.authz.v1beta1.MsgGrant',
},
msg2: {
initial_deposit: [
{
amount: '1000000000000000000',
denom: 'BNB',
},
],
messages: [
{
type: '/cosmos.staking.v1beta1.MsgCreateValidator',
value:
'eyJAdHlwZSI6Ii9jb3Ntb3Muc3Rha2luZy52MWJldGExLk1zZ0NyZWF0ZVZhbGlkYXRvciIsImJsc19rZXkiOiI4NmJmMWZlZTZjYjkwOGNmMjgzNjM2ZjVhMDk2NjBlNDlhMzk0ZjNiYzU4NTJjMWI4MjM4MTVhNjYzMzI3MGQzNTdhMzcwYjlkZmEwMGFlNGQ5MmFjYzNlNTAxM2ZlZDciLCJibHNfcHJvb2YiOiI4Y2YwYzQzZjEyNWJlNzc3MDI2NGFkMDMwYjhmMDg1NGY0MWYzNDVhMDg3ZjNjMWI4NjYwOWNiYmZmNzFkOTFjOTg4MzhiZWJhYzRkMGZhODA3YTZhZjYyNzU2NzQzNzIxNDRmZDZiYzcxYmRkMGY0MTQ4YWMwZTRmOWM3Y2Q3NDdhMDc4NzUzNTEzMWUxYTIwZGY3YmVlOGUyMmQ0NzE5ZmI4ZThlODVlYjBiMjRkNzkzODhjODA3NzZlNjQ2MWEiLCJjaGFsbGVuZ2VyX2FkZHJlc3MiOiIweDIxMjNCNjA3ZTFiOUU4QWU2NUZiRTEyNTg1QzFiRTY4MzhCYjMyQzciLCJjb21taXNzaW9uIjp7Im1heF9jaGFuZ2VfcmF0ZSI6IjAuMDEwMDAwMDAwMDAwMDAwMDAwIiwibWF4X3JhdGUiOiIxLjAwMDAwMDAwMDAwMDAwMDAwMCIsInJhdGUiOiIwLjA3MDAwMDAwMDAwMDAwMDAwMCJ9LCJkZWxlZ2F0b3JfYWRkcmVzcyI6IjB4MUM4OTM0NDFBQjZjMUE3NUUwMTg4NzA4N2VhNTA4YkU4ZTA3QUFhZSIsImRlc2NyaXB0aW9uIjp7ImRldGFpbHMiOiIiLCJpZGVudGl0eSI6IiIsIm1vbmlrZXIiOiJuYXNoIiwic2VjdXJpdHlfY29udGFjdCI6IiIsIndlYnNpdGUiOiIifSwiZnJvbSI6IjB4N2I1RmUyMkI1NDQ2ZjdDNjJFYTI3QjhCRDcxQ2VGOTRlMDNmM2RGMiIsIm1pbl9zZWxmX2RlbGVnYXRpb24iOiIxMDAwMDAwMDAwMDAwMDAwMDAwMDAwIiwicHVia2V5Ijp7IkB0eXBlIjoiL2Nvc21vcy5jcnlwdG8uZWQyNTUxOS5QdWJLZXkiLCJrZXkiOiIwY3NmL01zc2ZHT1FCcW1qazY5a0lURzBTT052OVgwSXdWWHQ1R3pzUEF3PSJ9LCJyZWxheWVyX2FkZHJlc3MiOiIweDIxMjNCNjA3ZTFiOUU4QWU2NUZiRTEyNTg1QzFiRTY4MzhCYjMyQzciLCJ2YWxpZGF0b3JfYWRkcmVzcyI6IjB4MGFBNTE3MEM4NTRBQTA5M2UxYzMyRjE1Mjg1ZEU0QmY3ZjY4MDJDZSIsInZhbHVlIjp7ImFtb3VudCI6IjEwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJkZW5vbSI6IkJOQiJ9fQ==',
},
],
metadata: '',
proposer: '0x1C893441AB6c1A75E01887087ea508bE8e07AAae',
summary: 'create nash validator',
title: 'Create nash Validator',
type: '/cosmos.gov.v1.MsgSubmitProposal',
},
},
txRawHex:
'0x0a91090afc010a1e2f636f736d6f732e617574687a2e763162657461312e4d73674772616e7412d9010a2a307831433839333434314142366331413735453031383837303837656135303862453865303741416165122a3078376235466532324235343436663743363245613237423842443731436546393465303366336446321a7f0a7d0a2a2f636f736d6f732e7374616b696e672e763162657461312e5374616b65417574686f72697a6174696f6e124f0a1d0a03424e42121631303030303030303030303030303030303030303030122c0a2a30783061413531373043383534414130393365316333324631353238356445344266376636383032436520010a8f070a202f636f736d6f732e676f762e76312e4d73675375626d697450726f706f73616c12ea060af1050a2a2f636f736d6f732e7374616b696e672e763162657461312e4d736743726561746556616c696461746f7212c2050a060a046e617368123b0a1137303030303030303030303030303030301213313030303030303030303030303030303030301a1131303030303030303030303030303030301a1631303030303030303030303030303030303030303030222a3078314338393334343141423663314137354530313838373038376561353038624538653037414161652a2a30783061413531373043383534414130393365316333324631353238356445344266376636383032436532430a1d2f636f736d6f732e63727970746f2e656432353531392e5075624b657912220a20d1cb1ffccb2c7c639006a9a393af642131b448e36ff57d08c155ede46cec3c0c3a1d0a03424e42121631303030303030303030303030303030303030303030422a3078376235466532324235343436663743363245613237423842443731436546393465303366336446324a2a307832313233423630376531623945384165363546624531323538354331624536383338426233324337522a3078323132334236303765316239453841653635466245313235383543316245363833384262333243375a6038366266316665653663623930386366323833363336663561303936363065343961333934663362633538353263316238323338313561363633333237306433353761333730623964666130306165346439326163633365353031336665643762c001386366306334336631323562653737373032363461643033306238663038353466343166333435613038376633633162383636303963626266663731643931633938383338626562616334643066613830376136616636323735363734333732313434666436626337316264643066343134386163306534663963376364373437613037383735333531333165316132306466376265653865323264343731396662386538653835656230623234643739333838633830373736653634363161121a0a03424e421213313030303030303030303030303030303030301a2a3078314338393334343141423663314137354530313838373038376561353038624538653037414161652a15437265617465206e6173682056616c696461746f723215637265617465206e6173682076616c696461746f7212021200',
});

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

console.log(simulateInfo);

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

if (res.code === 0) {
alert('success');
}
}}
>
broadcast with simulate
</button>
</>
);
};
10 changes: 8 additions & 2 deletions examples/nextjs/src/components/feegrant/delObj.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
newObjectGRN,
PermissionTypes,
toTimestamp,
fromJsonTimestamp,
} from '@bnb-chain/greenfield-js-sdk';
import { Wallet } from '@ethersproject/wallet';
import { useState } from 'react';
Expand Down Expand Up @@ -49,16 +50,21 @@ export const DelObj = () => {
console.log('wallet', wallet.address, wallet.privateKey);
setWallet(wallet);

const tempAddr = wallet.address;

// 2. allow temporary account to submit specified tx and amount
const date = new Date();
date.setDate(date.getDate() + 1);
const grantAllowanceTx = await client.feegrant.grantAllowance({
granter: address,
grantee: wallet.address,
grantee: tempAddr,
allowedMessages: [MsgDeleteObjectTypeUrl],
amount: parseEther('0.09').toString(),
denom: 'BNB',
expirationTime: toTimestamp(date),
// expirationTime: fromJsonTimestamp({
// seconds: 1796428611,
// }),
});

// 3. Put bucket policy so that the temporary account can create objects within this bucket
Expand All @@ -72,7 +78,7 @@ export const DelObj = () => {
statements: [statement],
principal: {
type: PermissionTypes.PrincipalType.PRINCIPAL_TYPE_GNFD_ACCOUNT,
value: wallet.address,
value: tempAddr,
},
});

Expand Down
Loading

0 comments on commit 3475a74

Please sign in to comment.