From 02cb24c1e40af66289742afbb612005c9cd02c1c Mon Sep 17 00:00:00 2001 From: rrr523 Date: Thu, 21 Dec 2023 18:15:27 +0800 Subject: [PATCH] fix: Tag compatibility --- .changeset/rare-steaks-happen.md | 5 ++ .../src/components/bucket/create/index.tsx | 14 ----- .../src/components/group/create/index.tsx | 47 +------------- .../src/components/group/update/index.tsx | 39 ------------ .../src/components/object/create/index.tsx | 24 -------- packages/js-sdk/package.json | 2 +- packages/js-sdk/src/api/bucket.ts | 10 +-- packages/js-sdk/src/api/group.ts | 6 +- packages/js-sdk/src/api/objects.ts | 11 +--- packages/js-sdk/src/api/storage.ts | 26 +------- packages/js-sdk/src/constants/typeUrl.ts | 1 - .../greenfield/storage/MsgCreateBucket.ts | 47 +------------- .../greenfield/storage/MsgCreateGroup.ts | 47 +------------- .../greenfield/storage/MsgCreateObject.ts | 47 +------------- .../messages/greenfield/storage/MsgSetTag.ts | 61 ------------------- .../js-sdk/src/types/sp/BucketApproval.ts | 3 - packages/js-sdk/src/types/sp/Common.ts | 7 --- .../js-sdk/src/types/sp/ObjectApproval.ts | 3 - pnpm-lock.yaml | 16 +++-- 19 files changed, 26 insertions(+), 390 deletions(-) create mode 100644 .changeset/rare-steaks-happen.md delete mode 100644 packages/js-sdk/src/messages/greenfield/storage/MsgSetTag.ts diff --git a/.changeset/rare-steaks-happen.md b/.changeset/rare-steaks-happen.md new file mode 100644 index 00000000..78f79386 --- /dev/null +++ b/.changeset/rare-steaks-happen.md @@ -0,0 +1,5 @@ +--- +'@bnb-chain/greenfield-js-sdk': patch +--- + +fix: Tag Compatibility diff --git a/examples/nextjs/src/components/bucket/create/index.tsx b/examples/nextjs/src/components/bucket/create/index.tsx index 5209776a..62d31c84 100644 --- a/examples/nextjs/src/components/bucket/create/index.tsx +++ b/examples/nextjs/src/components/bucket/create/index.tsx @@ -47,20 +47,6 @@ export const CreateBucket = () => { primarySpAddress: spInfo.primarySpAddress, }, paymentAddress: address, - // empty tags - tags: { - tags: [], - }, - - // with tags: - // tags: { - // tags: [ - // { - // key: 'test', - // value: 'test', - // }, - // ], - // }, }, { // type: 'ECDSA', diff --git a/examples/nextjs/src/components/group/create/index.tsx b/examples/nextjs/src/components/group/create/index.tsx index 924ab087..b9f7855e 100644 --- a/examples/nextjs/src/components/group/create/index.tsx +++ b/examples/nextjs/src/components/group/create/index.tsx @@ -28,9 +28,6 @@ export const CreateGroup = () => { creator: address, groupName: createGroupInfo.groupName, extra: 'extra info', - tags: { - tags: [], - }, }); const simulateInfo = await createGroupTx.simulate({ @@ -61,49 +58,7 @@ export const CreateGroup = () => { console.log(res); }} > - create group with empty tags - - - ); diff --git a/examples/nextjs/src/components/group/update/index.tsx b/examples/nextjs/src/components/group/update/index.tsx index 202e8af5..bd797bdf 100644 --- a/examples/nextjs/src/components/group/update/index.tsx +++ b/examples/nextjs/src/components/group/update/index.tsx @@ -120,45 +120,6 @@ export const GroupUpdate = () => { > updateGroupExtra -
- ); }; diff --git a/examples/nextjs/src/components/object/create/index.tsx b/examples/nextjs/src/components/object/create/index.tsx index cb9ef2a0..ee990a1c 100644 --- a/examples/nextjs/src/components/object/create/index.tsx +++ b/examples/nextjs/src/components/object/create/index.tsx @@ -79,18 +79,6 @@ export const CreateObject = () => { redundancyType: 'REDUNDANCY_EC_TYPE', contentLength: fileBytes.byteLength, expectCheckSums: expectCheckSums, - // empty tags - // tags: { - // tags: [], - // }, - tags: { - tags: [ - { - key: 'test', - value: 'test', - }, - ], - }, }, { type: 'EDDSA', @@ -180,18 +168,6 @@ export const CreateObject = () => { bucketName: createObjectInfo.bucketName, objectName: createObjectInfo.objectName + '/', creator: address, - // empty tags - // tags: { - // tags: [], - // }, - tags: { - tags: [ - { - key: 'test', - value: 'test', - }, - ], - }, }, { type: 'EDDSA', diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.json index 2107c91c..7a0930d9 100644 --- a/packages/js-sdk/package.json +++ b/packages/js-sdk/package.json @@ -59,7 +59,7 @@ ] }, "dependencies": { - "@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.25", + "@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.23", "@bnb-chain/greenfield-zk-crypto": "workspace:*", "@cosmjs/proto-signing": "^0.32.0", "@cosmjs/stargate": "^0.32.0", diff --git a/packages/js-sdk/src/api/bucket.ts b/packages/js-sdk/src/api/bucket.ts index ec5b8ec8..1ddd2d44 100644 --- a/packages/js-sdk/src/api/bucket.ts +++ b/packages/js-sdk/src/api/bucket.ts @@ -23,7 +23,6 @@ import { MsgPutPolicy, MsgUpdateBucketInfo, } from '@bnb-chain/greenfield-cosmos-types/greenfield/storage/tx'; -import { ResourceTags } from '@bnb-chain/greenfield-cosmos-types/greenfield/storage/types'; import { bytesFromBase64 } from '@bnb-chain/greenfield-cosmos-types/helpers'; import { Headers } from 'cross-fetch'; import { bytesToUtf8, hexToBytes } from 'ethereum-cryptography/utils'; @@ -69,7 +68,7 @@ import { import { AuthType, SpClient } from '../clients/spclient/spClient'; import { TxClient } from '../clients/txClient'; import { METHOD_GET, NORMAL_ERROR_CODE } from '../constants/http'; -import { getMsgCreateBucketSDKTypeEIP712 } from '../messages/greenfield/storage/MsgCreateBucket'; +import { MsgCreateBucketSDKTypeEIP712 } from '../messages/greenfield/storage/MsgCreateBucket'; import { MsgDeleteBucketSDKTypeEIP712 } from '../messages/greenfield/storage/MsgDeleteBucket'; import { MsgMigrateBucketSDKTypeEIP712 } from '../messages/greenfield/storage/MsgMigrateBucket'; import { MsgUpdateBucketInfoSDKTypeEIP712 } from '../messages/greenfield/storage/MsgUpdateBucketInfo'; @@ -213,7 +212,6 @@ export class Bucket implements IBucket { spInfo, duration, paymentAddress, - tags, } = params; try { @@ -242,7 +240,6 @@ export class Bucket implements IBucket { }, charged_read_quota: chargedReadQuota, payment_address: paymentAddress, - tags: tags, }); const signHeaders = await this.spClient.signHeaders(reqMeta, authType); @@ -274,10 +271,6 @@ export class Bucket implements IBucket { } private async createBucketTx(msg: MsgCreateBucket, signedMsg: CreateBucketApprovalResponse) { - const isTagsEmpty = msg?.tags?.tags?.length === 0; - - const MsgCreateBucketSDKTypeEIP712 = getMsgCreateBucketSDKTypeEIP712(isTagsEmpty); - return await this.txClient.tx( MsgCreateBucketTypeUrl, msg.creator, @@ -314,7 +307,6 @@ export class Bucket implements IBucket { }, chargedReadQuota: Long.fromString(signedMsg.charged_read_quota), paymentAddress: signedMsg.payment_address, - tags: ResourceTags.fromJSON(signedMsg.tags), }; return await this.createBucketTx(msg, signedMsg); diff --git a/packages/js-sdk/src/api/group.ts b/packages/js-sdk/src/api/group.ts index 4404d0f7..a90c3d77 100644 --- a/packages/js-sdk/src/api/group.ts +++ b/packages/js-sdk/src/api/group.ts @@ -28,7 +28,7 @@ import { } from '..'; import { RpcQueryClient } from '../clients/queryclient'; import { TxClient } from '../clients/txClient'; -import { getMsgCreateGroupSDKTypeWithTagEIP712 } from '../messages/greenfield/storage/MsgCreateGroup'; +import { MsgCreateGroupSDKTypeEIP712 } from '../messages/greenfield/storage/MsgCreateGroup'; import { MsgDeleteGroupSDKTypeEIP712 } from '../messages/greenfield/storage/MsgDeleteGroup'; import { MsgLeaveGroupSDKTypeEIP712 } from '../messages/greenfield/storage/MsgLeaveGroup'; import { MsgUpdateGroupExtraSDKTypeEIP712 } from '../messages/greenfield/storage/MsgUpdateGroupExtra'; @@ -111,10 +111,6 @@ export class Group implements IGroup { private queryClient: RpcQueryClient = container.resolve(RpcQueryClient); public async createGroup(msg: MsgCreateGroup) { - const isTagsEmpty = msg?.tags?.tags?.length === 0; - - const MsgCreateGroupSDKTypeEIP712 = getMsgCreateGroupSDKTypeWithTagEIP712(isTagsEmpty); - return await this.txClient.tx( MsgCreateGroupTypeUrl, msg.creator, diff --git a/packages/js-sdk/src/api/objects.ts b/packages/js-sdk/src/api/objects.ts index 1d1969b5..53641df1 100644 --- a/packages/js-sdk/src/api/objects.ts +++ b/packages/js-sdk/src/api/objects.ts @@ -19,7 +19,7 @@ import { getPutObjectMetaInfo } from '../clients/spclient/spApis/putObject'; import { TxClient } from '../clients/txClient'; import { METHOD_GET, NORMAL_ERROR_CODE } from '../constants/http'; import { MsgCancelCreateObjectSDKTypeEIP712 } from '../messages/greenfield/storage/MsgCancelCreateObject'; -import { getMsgCreateObjectSDKTypeEIP712 } from '../messages/greenfield/storage/MsgCreateObject'; +import { MsgCreateObjectSDKTypeEIP712 } from '../messages/greenfield/storage/MsgCreateObject'; import { MsgDeleteObjectSDKTypeEIP712 } from '../messages/greenfield/storage/MsgDeleteObject'; import { MsgUpdateObjectInfoSDKTypeEIP712 } from '../messages/greenfield/storage/MsgUpdateObjectInfo'; import { signSignatureByEddsa } from '../offchainauth'; @@ -88,7 +88,6 @@ import { } from '../utils/s3'; import { Sp } from './sp'; import { Storage } from './storage'; -import { ResourceTags } from '@bnb-chain/greenfield-cosmos-types/greenfield/storage/types'; export interface IObject { getCreateObjectApproval( @@ -198,7 +197,6 @@ export class Objects implements IObject { redundancyType = 'REDUNDANCY_EC_TYPE', contentLength, expectCheckSums, - tags, } = params; try { @@ -231,7 +229,6 @@ export class Objects implements IObject { }, redundancy_type: redundancyType, visibility, - tags, }); const signHeaders = await this.spClient.signHeaders(reqMeta, authType); @@ -271,10 +268,6 @@ export class Objects implements IObject { } private async createObjectTx(msg: MsgCreateObject, signedMsg: CreateObjectApprovalResponse) { - const isTagsEmpty = msg?.tags?.tags?.length === 0; - - const MsgCreateObjectSDKTypeEIP712 = getMsgCreateObjectSDKTypeEIP712(isTagsEmpty); - return await this.txClient.tx( MsgCreateObjectTypeUrl, msg.creator, @@ -313,7 +306,6 @@ export class Objects implements IObject { sig: bytesFromBase64(signedMsg.primary_sp_approval.sig || ''), globalVirtualGroupFamilyId: signedMsg.primary_sp_approval.global_virtual_group_family_id, }, - tags: ResourceTags.fromJSON(signedMsg.tags), }; return await this.createObjectTx(msg, signedMsg); @@ -629,7 +621,6 @@ export class Objects implements IObject { '47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=', ], creator: getApprovalParams.creator, - tags: getApprovalParams.tags, }; return this.createObject(params, authType); diff --git a/packages/js-sdk/src/api/storage.ts b/packages/js-sdk/src/api/storage.ts index 97c849b9..8dbc518c 100644 --- a/packages/js-sdk/src/api/storage.ts +++ b/packages/js-sdk/src/api/storage.ts @@ -20,18 +20,10 @@ import { import { MsgDeletePolicy, MsgPutPolicy, - MsgSetTag, } from '@bnb-chain/greenfield-cosmos-types/greenfield/storage/tx'; import { container, delay, inject, injectable } from 'tsyringe'; -import { - fromTimestamp, - MsgDeletePolicyTypeUrl, - MsgPutPolicyTypeUrl, - MsgSetTagTypeUrl, - TxResponse, -} from '..'; +import { fromTimestamp, MsgDeletePolicyTypeUrl, MsgPutPolicyTypeUrl, TxResponse } from '..'; import { RpcQueryClient } from '../clients/queryclient'; -import { getMsgSetTagSDKTypeEIP712 } from '@/messages/greenfield/storage/MsgSetTag'; export interface IStorage { params(): Promise; @@ -40,8 +32,6 @@ export interface IStorage { deletePolicy(msg: MsgDeletePolicy): Promise; - setTag(msg: MsgSetTag): Promise; - getPolicyForGroup(request: QueryPolicyForGroupRequest): Promise; getQueryPolicyForAccount( @@ -107,20 +97,6 @@ export class Storage implements IStorage { ); } - public async setTag(msg: MsgSetTag) { - const isTagsEmpty = msg?.tags?.tags?.length === 0; - - const MsgSetTagSDKTypeEIP712 = getMsgSetTagSDKTypeEIP712(isTagsEmpty); - - return await this.txClient.tx( - MsgSetTagTypeUrl, - msg.operator, - MsgSetTagSDKTypeEIP712, - MsgSetTag.toSDK(msg), - MsgSetTag.encode(msg).finish(), - ); - } - public async getPolicyForGroup(request: QueryPolicyForGroupRequest) { const rpc = await this.queryClient.getStorageQueryClient(); return await rpc.QueryPolicyForGroup(request); diff --git a/packages/js-sdk/src/constants/typeUrl.ts b/packages/js-sdk/src/constants/typeUrl.ts index e76e990b..690027a3 100644 --- a/packages/js-sdk/src/constants/typeUrl.ts +++ b/packages/js-sdk/src/constants/typeUrl.ts @@ -19,7 +19,6 @@ export const MsgDeleteBucketTypeUrl = '/greenfield.storage.MsgDeleteBucket'; export const MsgDeleteGroupTypeUrl = '/greenfield.storage.MsgDeleteGroup'; export const MsgDeleteObjectTypeUrl = '/greenfield.storage.MsgDeleteObject'; export const MsgDeletePolicyTypeUrl = '/greenfield.storage.MsgDeletePolicy'; -export const MsgSetTagTypeUrl = '/greenfield.storage.MsgSetTag'; export const MsgLeaveGroupTypeUrl = '/greenfield.storage.MsgLeaveGroup'; export const MsgMirrorBucketTypeUrl = '/greenfield.storage.MsgMirrorBucket'; export const MsgMirrorGroupTypeUrl = '/greenfield.storage.MsgMirrorGroup'; diff --git a/packages/js-sdk/src/messages/greenfield/storage/MsgCreateBucket.ts b/packages/js-sdk/src/messages/greenfield/storage/MsgCreateBucket.ts index c669f51b..c56a2136 100644 --- a/packages/js-sdk/src/messages/greenfield/storage/MsgCreateBucket.ts +++ b/packages/js-sdk/src/messages/greenfield/storage/MsgCreateBucket.ts @@ -1,49 +1,4 @@ -import type { EIP712Msg } from '@/messages/utils'; -import cloneDeep from 'lodash.clonedeep'; - -export const getMsgCreateBucketSDKTypeEIP712 = (isTagsEmpty: boolean) => { - const res: EIP712Msg = cloneDeep(MsgCreateBucketSDKTypeEIP712); - - if (!isTagsEmpty) { - res.Msg1.push({ - name: 'tags', - type: 'TypeMsg1Tags', - }); - - res.TypeMsg1Tags = [ - { - name: 'tags', - type: 'TypeMsg1TagsTags[]', - }, - ]; - res.TypeMsg1TagsTags = [ - { - name: 'key', - type: 'string', - }, - { - name: 'value', - type: 'string', - }, - ]; - } else { - res.Msg1.push({ - name: 'tags', - type: 'TypeMsg1Tags', - }); - - res.TypeMsg1Tags = [ - { - name: 'tags', - type: 'string[]', - }, - ]; - } - - return res; -}; - -const MsgCreateBucketSDKTypeEIP712 = { +export const MsgCreateBucketSDKTypeEIP712 = { Msg1: [ { name: 'bucket_name', diff --git a/packages/js-sdk/src/messages/greenfield/storage/MsgCreateGroup.ts b/packages/js-sdk/src/messages/greenfield/storage/MsgCreateGroup.ts index 212bf1d7..6badab86 100644 --- a/packages/js-sdk/src/messages/greenfield/storage/MsgCreateGroup.ts +++ b/packages/js-sdk/src/messages/greenfield/storage/MsgCreateGroup.ts @@ -1,7 +1,4 @@ -import type { EIP712Msg } from '@/messages/utils'; -import cloneDeep from 'lodash.clonedeep'; - -const MsgCreateGroupSDKTypeEIP712 = { +export const MsgCreateGroupSDKTypeEIP712 = { Msg1: [ { name: 'creator', @@ -21,45 +18,3 @@ const MsgCreateGroupSDKTypeEIP712 = { }, ], }; - -export const getMsgCreateGroupSDKTypeWithTagEIP712 = (isTagsEmpty: boolean) => { - const res: EIP712Msg = cloneDeep(MsgCreateGroupSDKTypeEIP712); - - if (!isTagsEmpty) { - res.Msg1.push({ - name: 'tags', - type: 'TypeMsg1Tags', - }); - - res.TypeMsg1Tags = [ - { - name: 'tags', - type: 'TypeMsg1TagsTags[]', - }, - ]; - res.TypeMsg1TagsTags = [ - { - name: 'key', - type: 'string', - }, - { - name: 'value', - type: 'string', - }, - ]; - } else { - res.Msg1.push({ - name: 'tags', - type: 'TypeMsg1Tags', - }); - - res.TypeMsg1Tags = [ - { - name: 'tags', - type: 'string[]', - }, - ]; - } - - return res; -}; diff --git a/packages/js-sdk/src/messages/greenfield/storage/MsgCreateObject.ts b/packages/js-sdk/src/messages/greenfield/storage/MsgCreateObject.ts index 489ec21a..b1b92a4e 100644 --- a/packages/js-sdk/src/messages/greenfield/storage/MsgCreateObject.ts +++ b/packages/js-sdk/src/messages/greenfield/storage/MsgCreateObject.ts @@ -1,49 +1,4 @@ -import type { EIP712Msg } from '@/messages/utils'; -import cloneDeep from 'lodash.clonedeep'; - -export const getMsgCreateObjectSDKTypeEIP712 = (isTagsEmpty: boolean) => { - const res: EIP712Msg = cloneDeep(MsgCreateObjectSDKTypeEIP712); - - if (!isTagsEmpty) { - res.Msg1.push({ - name: 'tags', - type: 'TypeMsg1Tags', - }); - - res.TypeMsg1Tags = [ - { - name: 'tags', - type: 'TypeMsg1TagsTags[]', - }, - ]; - res.TypeMsg1TagsTags = [ - { - name: 'key', - type: 'string', - }, - { - name: 'value', - type: 'string', - }, - ]; - } else { - res.Msg1.push({ - name: 'tags', - type: 'TypeMsg1Tags', - }); - - res.TypeMsg1Tags = [ - { - name: 'tags', - type: 'string[]', - }, - ]; - } - - return res; -}; - -const MsgCreateObjectSDKTypeEIP712 = { +export const MsgCreateObjectSDKTypeEIP712 = { Msg1: [ { name: 'bucket_name', diff --git a/packages/js-sdk/src/messages/greenfield/storage/MsgSetTag.ts b/packages/js-sdk/src/messages/greenfield/storage/MsgSetTag.ts deleted file mode 100644 index c29b64ff..00000000 --- a/packages/js-sdk/src/messages/greenfield/storage/MsgSetTag.ts +++ /dev/null @@ -1,61 +0,0 @@ -import type { EIP712Msg } from '@/messages/utils'; -import cloneDeep from 'lodash.clonedeep'; - -export const getMsgSetTagSDKTypeEIP712 = (isTagsEmpty: boolean) => { - const res: EIP712Msg = cloneDeep(MsgSetTagSDKTypeEIP712); - - if (!isTagsEmpty) { - res.Msg1.push({ - name: 'tags', - type: 'TypeMsg1Tags', - }); - - res.TypeMsg1Tags = [ - { - name: 'tags', - type: 'TypeMsg1TagsTags[]', - }, - ]; - res.TypeMsg1TagsTags = [ - { - name: 'key', - type: 'string', - }, - { - name: 'value', - type: 'string', - }, - ]; - } else { - res.Msg1.push({ - name: 'tags', - type: 'TypeMsg1Tags', - }); - - res.TypeMsg1Tags = [ - { - name: 'tags', - type: 'string[]', - }, - ]; - } - - return res; -}; - -const MsgSetTagSDKTypeEIP712 = { - Msg1: [ - { - name: 'operator', - type: 'string', - }, - { - name: 'resource', - type: 'string', - }, - { - name: 'type', - type: 'string', - }, - ], -}; diff --git a/packages/js-sdk/src/types/sp/BucketApproval.ts b/packages/js-sdk/src/types/sp/BucketApproval.ts index eb8304c0..1ca043ba 100644 --- a/packages/js-sdk/src/types/sp/BucketApproval.ts +++ b/packages/js-sdk/src/types/sp/BucketApproval.ts @@ -1,5 +1,4 @@ import { VisibilityType } from '@bnb-chain/greenfield-cosmos-types/greenfield/storage/common'; -import { TagsInCreateTxApproval } from './Common'; export type CreateBucketApprovalRequest = { bucketName: string; @@ -11,7 +10,6 @@ export type CreateBucketApprovalRequest = { }; duration?: number; paymentAddress: string; - tags: TagsInCreateTxApproval; }; export interface CreateBucketApprovalResponse { @@ -26,5 +24,4 @@ export interface CreateBucketApprovalResponse { global_virtual_group_family_id: number; }; charged_read_quota: string; - tags: TagsInCreateTxApproval; } diff --git a/packages/js-sdk/src/types/sp/Common.ts b/packages/js-sdk/src/types/sp/Common.ts index d669aaf6..a8d083c3 100644 --- a/packages/js-sdk/src/types/sp/Common.ts +++ b/packages/js-sdk/src/types/sp/Common.ts @@ -222,10 +222,3 @@ export interface PolicyMeta { */ ExpirationTime: number; } - -/** - * create bucket / object approval's tags - */ -export type TagsInCreateTxApproval = { - tags: string[] | { key: string; value: string }[]; -}; diff --git a/packages/js-sdk/src/types/sp/ObjectApproval.ts b/packages/js-sdk/src/types/sp/ObjectApproval.ts index f3c2ba91..da504c2c 100644 --- a/packages/js-sdk/src/types/sp/ObjectApproval.ts +++ b/packages/js-sdk/src/types/sp/ObjectApproval.ts @@ -2,7 +2,6 @@ import { RedundancyType, VisibilityType, } from '@bnb-chain/greenfield-cosmos-types/greenfield/storage/common'; -import { TagsInCreateTxApproval } from './Common'; export type CreateObjectApprovalRequest = { bucketName: string; @@ -14,7 +13,6 @@ export type CreateObjectApprovalRequest = { duration?: number; contentLength: number; expectCheckSums: string[]; - tags: TagsInCreateTxApproval; endpoint?: string; }; @@ -34,5 +32,4 @@ export type CreateObjectApprovalResponse = { // expect_secondary_sp_addresses: string[]; redundancy_type: keyof typeof RedundancyType; // charged_read_quota: string; - tags: TagsInCreateTxApproval; }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5f558304..bf6b7381 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -322,8 +322,8 @@ importers: packages/js-sdk: dependencies: '@bnb-chain/greenfield-cosmos-types': - specifier: 0.4.0-alpha.25 - version: 0.4.0-alpha.25 + specifier: 0.4.0-alpha.23 + version: 0.4.0-alpha.23 '@bnb-chain/greenfield-zk-crypto': specifier: workspace:* version: link:../zk-crypto @@ -454,7 +454,7 @@ importers: devDependencies: '@rollup/plugin-terser': specifier: ^0.4.4 - version: 0.4.4 + version: 0.4.4(rollup@2.79.1) packages/zk-crypto: devDependencies: @@ -3388,6 +3388,13 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true + /@bnb-chain/greenfield-cosmos-types@0.4.0-alpha.23: + resolution: {integrity: sha512-VAuk5CxTSbiOa8HvlEY/uf8zoTvgyRvQMwQs0S/7wjoloE0I7hSZXWPUEeFmypB1xZuggDtyCfizS2faL/NKeg==} + dependencies: + long: 4.0.0 + protobufjs: 6.11.4 + dev: false + /@bnb-chain/greenfield-cosmos-types@0.4.0-alpha.25: resolution: {integrity: sha512-A/v0X/rhwmWN8cNmkFCRIzT0sHQn2sb/mPrdwdIgUbjEV49s9KncSAKxRMIz3+ph0KeROmxjUWaDsJ9/KGU2tQ==} dependencies: @@ -6368,7 +6375,7 @@ packages: rollup: 2.79.1 dev: true - /@rollup/plugin-terser@0.4.4: + /@rollup/plugin-terser@0.4.4(rollup@2.79.1): resolution: {integrity: sha512-XHeJC5Bgvs8LfukDwWZp7yeqin6ns8RTl2B9avbejt6tZqsqvVoWI7ZTQrcNsfKEDWBTnTxM8nMDkO2IFFbd0A==} engines: {node: '>=14.0.0'} peerDependencies: @@ -6377,6 +6384,7 @@ packages: rollup: optional: true dependencies: + rollup: 2.79.1 serialize-javascript: 6.0.1 smob: 1.4.1 terser: 5.24.0