From f7f9467d4ad0d9f54efda9b78f5a300d1de32bf0 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Fri, 14 Nov 2025 16:32:42 +0100 Subject: [PATCH 1/3] Bump cosmjs-types to 0.11 --- .pnp.cjs | 14 +++++++------- ...smjs-types-npm-0.10.1-89e1d3ec63-f114cd1a06.zip | 3 --- ...types-npm-0.11.0-rc.0-ec0cd6b817-5d9cc92a40.zip | 3 +++ packages/cosmwasm/package.json | 2 +- packages/proto-signing/package.json | 2 +- packages/stargate/package.json | 2 +- yarn.lock | 14 +++++++------- 7 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 .yarn/cache/cosmjs-types-npm-0.10.1-89e1d3ec63-f114cd1a06.zip create mode 100644 .yarn/cache/cosmjs-types-npm-0.11.0-rc.0-ec0cd6b817-5d9cc92a40.zip diff --git a/.pnp.cjs b/.pnp.cjs index 90a83ca772..a9b5019174 100644 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -1148,7 +1148,7 @@ const RAW_RUNTIME_STATE = ],\ [\ "cosmjs-types",\ - "npm:0.10.1"\ + "npm:0.11.0-rc.0"\ ],\ [\ "cross-spawn",\ @@ -3314,7 +3314,7 @@ const RAW_RUNTIME_STATE = ["@types/karma-jasmine", "npm:4.0.2"],\ ["@types/karma-jasmine-html-reporter", "npm:1.5.1"],\ ["@types/node", "npm:22.10.6"],\ - ["cosmjs-types", "npm:0.10.1"],\ + ["cosmjs-types", "npm:0.11.0-rc.0"],\ ["glob", "npm:11.0.3"],\ ["jasmine", "npm:4.6.0"],\ ["jasmine-spec-reporter", "npm:6.0.0"],\ @@ -3599,7 +3599,7 @@ const RAW_RUNTIME_STATE = ["@types/karma-jasmine", "npm:4.0.2"],\ ["@types/karma-jasmine-html-reporter", "npm:1.5.1"],\ ["@types/node", "npm:22.10.6"],\ - ["cosmjs-types", "npm:0.10.1"],\ + ["cosmjs-types", "npm:0.11.0-rc.0"],\ ["glob", "npm:11.0.3"],\ ["jasmine", "npm:4.6.0"],\ ["jasmine-spec-reporter", "npm:6.0.0"],\ @@ -3675,7 +3675,7 @@ const RAW_RUNTIME_STATE = ["@types/karma-jasmine", "npm:4.0.2"],\ ["@types/karma-jasmine-html-reporter", "npm:1.5.1"],\ ["@types/node", "npm:22.10.6"],\ - ["cosmjs-types", "npm:0.10.1"],\ + ["cosmjs-types", "npm:0.11.0-rc.0"],\ ["glob", "npm:11.0.3"],\ ["jasmine", "npm:4.6.0"],\ ["jasmine-spec-reporter", "npm:6.0.0"],\ @@ -7301,10 +7301,10 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["cosmjs-types", [\ - ["npm:0.10.1", {\ - "packageLocation": "./.yarn/cache/cosmjs-types-npm-0.10.1-89e1d3ec63-f114cd1a06.zip/node_modules/cosmjs-types/",\ + ["npm:0.11.0-rc.0", {\ + "packageLocation": "./.yarn/cache/cosmjs-types-npm-0.11.0-rc.0-ec0cd6b817-5d9cc92a40.zip/node_modules/cosmjs-types/",\ "packageDependencies": [\ - ["cosmjs-types", "npm:0.10.1"]\ + ["cosmjs-types", "npm:0.11.0-rc.0"]\ ],\ "linkType": "HARD"\ }]\ diff --git a/.yarn/cache/cosmjs-types-npm-0.10.1-89e1d3ec63-f114cd1a06.zip b/.yarn/cache/cosmjs-types-npm-0.10.1-89e1d3ec63-f114cd1a06.zip deleted file mode 100644 index ffd5d8390a..0000000000 --- a/.yarn/cache/cosmjs-types-npm-0.10.1-89e1d3ec63-f114cd1a06.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:116e0d16cb43e6b5e4c477dbf327a510cff291c8c7a142a9db95ed87cd3e81c8 -size 15929554 diff --git a/.yarn/cache/cosmjs-types-npm-0.11.0-rc.0-ec0cd6b817-5d9cc92a40.zip b/.yarn/cache/cosmjs-types-npm-0.11.0-rc.0-ec0cd6b817-5d9cc92a40.zip new file mode 100644 index 0000000000..47ecf38900 --- /dev/null +++ b/.yarn/cache/cosmjs-types-npm-0.11.0-rc.0-ec0cd6b817-5d9cc92a40.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5da299cae149c694fb4e8add9876e95fd563396f2cc5149075fafde75b16a9e9 +size 8216563 diff --git a/packages/cosmwasm/package.json b/packages/cosmwasm/package.json index 9c26ed0ef8..b6be133511 100644 --- a/packages/cosmwasm/package.json +++ b/packages/cosmwasm/package.json @@ -49,7 +49,7 @@ "@cosmjs/stargate": "workspace:^", "@cosmjs/tendermint-rpc": "workspace:^", "@cosmjs/utils": "workspace:^", - "cosmjs-types": "^0.10.1" + "cosmjs-types": "^0.11.0-rc.0" }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", diff --git a/packages/proto-signing/package.json b/packages/proto-signing/package.json index 243ac45a85..9ce643497b 100644 --- a/packages/proto-signing/package.json +++ b/packages/proto-signing/package.json @@ -46,7 +46,7 @@ "@cosmjs/encoding": "workspace:^", "@cosmjs/math": "workspace:^", "@cosmjs/utils": "workspace:^", - "cosmjs-types": "^0.10.1" + "cosmjs-types": "^0.11.0-rc.0" }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", diff --git a/packages/stargate/package.json b/packages/stargate/package.json index a8db172586..9144ec9f3c 100644 --- a/packages/stargate/package.json +++ b/packages/stargate/package.json @@ -47,7 +47,7 @@ "@cosmjs/stream": "workspace:^", "@cosmjs/tendermint-rpc": "workspace:^", "@cosmjs/utils": "workspace:^", - "cosmjs-types": "^0.10.1" + "cosmjs-types": "^0.11.0-rc.0" }, "devDependencies": { "@cosmjs/crypto": "workspace:^", diff --git a/yarn.lock b/yarn.lock index e0c94702b9..cf9a3ddea2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -243,7 +243,7 @@ __metadata: "@types/karma-jasmine": "npm:^4" "@types/karma-jasmine-html-reporter": "npm:^1" "@types/node": "npm:*" - cosmjs-types: "npm:^0.10.1" + cosmjs-types: "npm:^0.11.0-rc.0" glob: "npm:^11" jasmine: "npm:^4" jasmine-spec-reporter: "npm:^6" @@ -499,7 +499,7 @@ __metadata: "@types/karma-jasmine": "npm:^4" "@types/karma-jasmine-html-reporter": "npm:^1" "@types/node": "npm:*" - cosmjs-types: "npm:^0.10.1" + cosmjs-types: "npm:^0.11.0-rc.0" glob: "npm:^11" jasmine: "npm:^4" jasmine-spec-reporter: "npm:^6" @@ -571,7 +571,7 @@ __metadata: "@types/karma-jasmine": "npm:^4" "@types/karma-jasmine-html-reporter": "npm:^1" "@types/node": "npm:*" - cosmjs-types: "npm:^0.10.1" + cosmjs-types: "npm:^0.11.0-rc.0" glob: "npm:^11" jasmine: "npm:^4" jasmine-spec-reporter: "npm:^6" @@ -2975,10 +2975,10 @@ __metadata: languageName: unknown linkType: soft -"cosmjs-types@npm:^0.10.1": - version: 0.10.1 - resolution: "cosmjs-types@npm:0.10.1" - checksum: 10c0/f114cd1a0636034d93b97f61b049c5dc4929c81ff63855c6e56b0335be2b2d35475eee862ea5bd504288b33d3a918952dab11d4b6bed6bc2829f401cb5e6c797 +"cosmjs-types@npm:^0.11.0-rc.0": + version: 0.11.0-rc.0 + resolution: "cosmjs-types@npm:0.11.0-rc.0" + checksum: 10c0/5d9cc92a40da4a4254b9e58d8b5f5cb8bdd9ff0caeb8fdf5e83d5bd3b6776ccda87e57f91f13b39c9949cb30cb1e583682c88123731f703944f48b2d0c76b6c8 languageName: node linkType: hard From fd07f7bab801f4bf5449492007875caf11abba1e Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Fri, 14 Nov 2025 16:50:43 +0100 Subject: [PATCH 2/3] Adapt codebase to cosmjs-types 0.11 --- packages/proto-signing/src/decode.spec.ts | 2 ++ .../src/modules/ibc/aminomessages.spec.ts | 11 +++++---- packages/stargate/src/modules/ibc/queries.ts | 24 +++++++++---------- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/packages/proto-signing/src/decode.spec.ts b/packages/proto-signing/src/decode.spec.ts index c0ceffc067..7a1376e1aa 100644 --- a/packages/proto-signing/src/decode.spec.ts +++ b/packages/proto-signing/src/decode.spec.ts @@ -58,6 +58,8 @@ describe("decode", () => { body: { memo: "", timeoutHeight: BigInt(0), + timeoutTimestamp: undefined, + unordered: false, messages: [expectedMsg], extensionOptions: [], nonCriticalExtensionOptions: [], diff --git a/packages/stargate/src/modules/ibc/aminomessages.spec.ts b/packages/stargate/src/modules/ibc/aminomessages.spec.ts index c065b4028e..099f9786c7 100644 --- a/packages/stargate/src/modules/ibc/aminomessages.spec.ts +++ b/packages/stargate/src/modules/ibc/aminomessages.spec.ts @@ -7,7 +7,7 @@ import { AminoMsgTransfer, createIbcAminoConverters } from "./aminomessages"; describe("AminoTypes", () => { describe("toAmino", () => { it("works for MsgTransfer", () => { - const msg: MsgTransfer = { + const msg = MsgTransfer.fromPartial({ sourcePort: "testport", sourceChannel: "testchannel", token: coin(1234, "utest"), @@ -19,7 +19,7 @@ describe("AminoTypes", () => { }, timeoutTimestamp: BigInt("789"), memo: "something something", - }; + }); const aminoTypes = new AminoTypes(createIbcAminoConverters()); const aminoMsg = aminoTypes.toAmino({ typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", @@ -45,7 +45,7 @@ describe("AminoTypes", () => { }); it("works for MsgTransfer with empty values", () => { - const msg: MsgTransfer = { + const msg = MsgTransfer.fromPartial({ sourcePort: "testport", sourceChannel: "testchannel", token: coin(1234, "utest"), @@ -57,7 +57,7 @@ describe("AminoTypes", () => { }, timeoutTimestamp: BigInt(0), memo: "", - }; + }); const aminoTypes = new AminoTypes(createIbcAminoConverters()); const aminoMsg = aminoTypes.toAmino({ typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", @@ -147,6 +147,7 @@ describe("AminoTypes", () => { }, timeoutTimestamp: BigInt("789"), memo: "", + encoding: "", }; expect(msg).toEqual({ typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", @@ -184,6 +185,7 @@ describe("AminoTypes", () => { }, timeoutTimestamp: BigInt("789"), memo: "Hack me", + encoding: "", }; expect(msg).toEqual({ typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", @@ -221,6 +223,7 @@ describe("AminoTypes", () => { }, timeoutTimestamp: BigInt(0), memo: "", + encoding: "", }; expect(msg).toEqual({ typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", diff --git a/packages/stargate/src/modules/ibc/queries.ts b/packages/stargate/src/modules/ibc/queries.ts index 9ff7b4aaf2..6787a7cafc 100644 --- a/packages/stargate/src/modules/ibc/queries.ts +++ b/packages/stargate/src/modules/ibc/queries.ts @@ -1,8 +1,8 @@ import { Any } from "cosmjs-types/google/protobuf/any"; import { QueryClientImpl as TransferQuery, - QueryDenomTraceResponse, - QueryDenomTracesResponse, + QueryDenomResponse, + QueryDenomsResponse, QueryParamsResponse as QueryTransferParamsResponse, } from "cosmjs-types/ibc/applications/transfer/v1/query"; import { @@ -157,9 +157,9 @@ export interface IbcExtension { ) => Promise; }; readonly transfer: { - readonly denomTrace: (hash: string) => Promise; - readonly denomTraces: (paginationKey?: Uint8Array) => Promise; - readonly allDenomTraces: () => Promise; + readonly denomTrace: (hash: string) => Promise; + readonly denomTraces: (paginationKey?: Uint8Array) => Promise; + readonly allDenomTraces: () => Promise; readonly params: () => Promise; }; }; @@ -460,24 +460,24 @@ export function setupIbcExtension(base: QueryClient): IbcExtension { ), }, transfer: { - denomTrace: async (hash: string) => transferQueryService.DenomTrace({ hash: hash }), + denomTrace: async (hash: string) => transferQueryService.Denom({ hash: hash }), denomTraces: async (paginationKey?: Uint8Array) => - transferQueryService.DenomTraces({ + transferQueryService.Denoms({ pagination: createPagination(paginationKey), }), allDenomTraces: async () => { const denomTraces = []; - let response: QueryDenomTracesResponse; + let response: QueryDenomsResponse; let key: Uint8Array | undefined; do { - response = await transferQueryService.DenomTraces({ + response = await transferQueryService.Denoms({ pagination: createPagination(key), }); - denomTraces.push(...response.denomTraces); + denomTraces.push(...response.denoms); key = response.pagination?.nextKey; } while (key && key.length); - return QueryDenomTracesResponse.fromPartial({ - denomTraces: denomTraces, + return QueryDenomsResponse.fromPartial({ + denoms: denomTraces, }); }, params: async () => transferQueryService.Params({}), From 11c7afffb48f02837c5731c09352572fee5c3ac9 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Sat, 22 Nov 2025 18:52:00 +0100 Subject: [PATCH 3/3] Bump cosmjs-types to ^0.11.0 --- .pnp.cjs | 14 +++++++------- ...smjs-types-npm-0.11.0-e3115054e8-35b792ec77.zip | 3 +++ ...types-npm-0.11.0-rc.0-ec0cd6b817-5d9cc92a40.zip | 3 --- packages/cosmwasm/package.json | 2 +- packages/proto-signing/package.json | 2 +- packages/stargate/package.json | 2 +- yarn.lock | 14 +++++++------- 7 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 .yarn/cache/cosmjs-types-npm-0.11.0-e3115054e8-35b792ec77.zip delete mode 100644 .yarn/cache/cosmjs-types-npm-0.11.0-rc.0-ec0cd6b817-5d9cc92a40.zip diff --git a/.pnp.cjs b/.pnp.cjs index a9b5019174..b46ab9d565 100644 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -1148,7 +1148,7 @@ const RAW_RUNTIME_STATE = ],\ [\ "cosmjs-types",\ - "npm:0.11.0-rc.0"\ + "npm:0.11.0"\ ],\ [\ "cross-spawn",\ @@ -3314,7 +3314,7 @@ const RAW_RUNTIME_STATE = ["@types/karma-jasmine", "npm:4.0.2"],\ ["@types/karma-jasmine-html-reporter", "npm:1.5.1"],\ ["@types/node", "npm:22.10.6"],\ - ["cosmjs-types", "npm:0.11.0-rc.0"],\ + ["cosmjs-types", "npm:0.11.0"],\ ["glob", "npm:11.0.3"],\ ["jasmine", "npm:4.6.0"],\ ["jasmine-spec-reporter", "npm:6.0.0"],\ @@ -3599,7 +3599,7 @@ const RAW_RUNTIME_STATE = ["@types/karma-jasmine", "npm:4.0.2"],\ ["@types/karma-jasmine-html-reporter", "npm:1.5.1"],\ ["@types/node", "npm:22.10.6"],\ - ["cosmjs-types", "npm:0.11.0-rc.0"],\ + ["cosmjs-types", "npm:0.11.0"],\ ["glob", "npm:11.0.3"],\ ["jasmine", "npm:4.6.0"],\ ["jasmine-spec-reporter", "npm:6.0.0"],\ @@ -3675,7 +3675,7 @@ const RAW_RUNTIME_STATE = ["@types/karma-jasmine", "npm:4.0.2"],\ ["@types/karma-jasmine-html-reporter", "npm:1.5.1"],\ ["@types/node", "npm:22.10.6"],\ - ["cosmjs-types", "npm:0.11.0-rc.0"],\ + ["cosmjs-types", "npm:0.11.0"],\ ["glob", "npm:11.0.3"],\ ["jasmine", "npm:4.6.0"],\ ["jasmine-spec-reporter", "npm:6.0.0"],\ @@ -7301,10 +7301,10 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["cosmjs-types", [\ - ["npm:0.11.0-rc.0", {\ - "packageLocation": "./.yarn/cache/cosmjs-types-npm-0.11.0-rc.0-ec0cd6b817-5d9cc92a40.zip/node_modules/cosmjs-types/",\ + ["npm:0.11.0", {\ + "packageLocation": "./.yarn/cache/cosmjs-types-npm-0.11.0-e3115054e8-35b792ec77.zip/node_modules/cosmjs-types/",\ "packageDependencies": [\ - ["cosmjs-types", "npm:0.11.0-rc.0"]\ + ["cosmjs-types", "npm:0.11.0"]\ ],\ "linkType": "HARD"\ }]\ diff --git a/.yarn/cache/cosmjs-types-npm-0.11.0-e3115054e8-35b792ec77.zip b/.yarn/cache/cosmjs-types-npm-0.11.0-e3115054e8-35b792ec77.zip new file mode 100644 index 0000000000..46954da61e --- /dev/null +++ b/.yarn/cache/cosmjs-types-npm-0.11.0-e3115054e8-35b792ec77.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:961a3c388e57aae2fed0924c03413156df24c2f89b2478e0fe85957245a9f9c8 +size 8216721 diff --git a/.yarn/cache/cosmjs-types-npm-0.11.0-rc.0-ec0cd6b817-5d9cc92a40.zip b/.yarn/cache/cosmjs-types-npm-0.11.0-rc.0-ec0cd6b817-5d9cc92a40.zip deleted file mode 100644 index 47ecf38900..0000000000 --- a/.yarn/cache/cosmjs-types-npm-0.11.0-rc.0-ec0cd6b817-5d9cc92a40.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5da299cae149c694fb4e8add9876e95fd563396f2cc5149075fafde75b16a9e9 -size 8216563 diff --git a/packages/cosmwasm/package.json b/packages/cosmwasm/package.json index b6be133511..748ea79329 100644 --- a/packages/cosmwasm/package.json +++ b/packages/cosmwasm/package.json @@ -49,7 +49,7 @@ "@cosmjs/stargate": "workspace:^", "@cosmjs/tendermint-rpc": "workspace:^", "@cosmjs/utils": "workspace:^", - "cosmjs-types": "^0.11.0-rc.0" + "cosmjs-types": "^0.11.0" }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", diff --git a/packages/proto-signing/package.json b/packages/proto-signing/package.json index 9ce643497b..9fbb53f9bb 100644 --- a/packages/proto-signing/package.json +++ b/packages/proto-signing/package.json @@ -46,7 +46,7 @@ "@cosmjs/encoding": "workspace:^", "@cosmjs/math": "workspace:^", "@cosmjs/utils": "workspace:^", - "cosmjs-types": "^0.11.0-rc.0" + "cosmjs-types": "^0.11.0" }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", diff --git a/packages/stargate/package.json b/packages/stargate/package.json index 9144ec9f3c..05ea6205c9 100644 --- a/packages/stargate/package.json +++ b/packages/stargate/package.json @@ -47,7 +47,7 @@ "@cosmjs/stream": "workspace:^", "@cosmjs/tendermint-rpc": "workspace:^", "@cosmjs/utils": "workspace:^", - "cosmjs-types": "^0.11.0-rc.0" + "cosmjs-types": "^0.11.0" }, "devDependencies": { "@cosmjs/crypto": "workspace:^", diff --git a/yarn.lock b/yarn.lock index cf9a3ddea2..2df970582e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -243,7 +243,7 @@ __metadata: "@types/karma-jasmine": "npm:^4" "@types/karma-jasmine-html-reporter": "npm:^1" "@types/node": "npm:*" - cosmjs-types: "npm:^0.11.0-rc.0" + cosmjs-types: "npm:^0.11.0" glob: "npm:^11" jasmine: "npm:^4" jasmine-spec-reporter: "npm:^6" @@ -499,7 +499,7 @@ __metadata: "@types/karma-jasmine": "npm:^4" "@types/karma-jasmine-html-reporter": "npm:^1" "@types/node": "npm:*" - cosmjs-types: "npm:^0.11.0-rc.0" + cosmjs-types: "npm:^0.11.0" glob: "npm:^11" jasmine: "npm:^4" jasmine-spec-reporter: "npm:^6" @@ -571,7 +571,7 @@ __metadata: "@types/karma-jasmine": "npm:^4" "@types/karma-jasmine-html-reporter": "npm:^1" "@types/node": "npm:*" - cosmjs-types: "npm:^0.11.0-rc.0" + cosmjs-types: "npm:^0.11.0" glob: "npm:^11" jasmine: "npm:^4" jasmine-spec-reporter: "npm:^6" @@ -2975,10 +2975,10 @@ __metadata: languageName: unknown linkType: soft -"cosmjs-types@npm:^0.11.0-rc.0": - version: 0.11.0-rc.0 - resolution: "cosmjs-types@npm:0.11.0-rc.0" - checksum: 10c0/5d9cc92a40da4a4254b9e58d8b5f5cb8bdd9ff0caeb8fdf5e83d5bd3b6776ccda87e57f91f13b39c9949cb30cb1e583682c88123731f703944f48b2d0c76b6c8 +"cosmjs-types@npm:^0.11.0": + version: 0.11.0 + resolution: "cosmjs-types@npm:0.11.0" + checksum: 10c0/35b792ec7758c51efff7b2df9bd5d2c749eae82910349d711704582276c3262a1a9112a45f42070ba96b7e4c4d0869ee0bbd74a7c7f656cf3bf535107280c74f languageName: node linkType: hard