Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions .yarn/cache/cosmjs-types-npm-0.10.1-89e1d3ec63-f114cd1a06.zip

This file was deleted.

Git LFS file not shown
2 changes: 1 addition & 1 deletion packages/cosmwasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/proto-signing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/proto-signing/src/decode.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ describe("decode", () => {
body: {
memo: "",
timeoutHeight: BigInt(0),
timeoutTimestamp: undefined,
unordered: false,
messages: [expectedMsg],
extensionOptions: [],
nonCriticalExtensionOptions: [],
Expand Down
2 changes: 1 addition & 1 deletion packages/stargate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:^",
Expand Down
11 changes: 7 additions & 4 deletions packages/stargate/src/modules/ibc/aminomessages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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",
Expand All @@ -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"),
Expand All @@ -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",
Expand Down Expand Up @@ -147,6 +147,7 @@ describe("AminoTypes", () => {
},
timeoutTimestamp: BigInt("789"),
memo: "",
encoding: "",
};
expect(msg).toEqual({
typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
Expand Down Expand Up @@ -184,6 +185,7 @@ describe("AminoTypes", () => {
},
timeoutTimestamp: BigInt("789"),
memo: "Hack me",
encoding: "",
};
expect(msg).toEqual({
typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
Expand Down Expand Up @@ -221,6 +223,7 @@ describe("AminoTypes", () => {
},
timeoutTimestamp: BigInt(0),
memo: "",
encoding: "",
};
expect(msg).toEqual({
typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
Expand Down
24 changes: 12 additions & 12 deletions packages/stargate/src/modules/ibc/queries.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -157,9 +157,9 @@ export interface IbcExtension {
) => Promise<QueryConnectionConsensusStateResponse>;
};
readonly transfer: {
readonly denomTrace: (hash: string) => Promise<QueryDenomTraceResponse>;
readonly denomTraces: (paginationKey?: Uint8Array) => Promise<QueryDenomTracesResponse>;
readonly allDenomTraces: () => Promise<QueryDenomTracesResponse>;
readonly denomTrace: (hash: string) => Promise<QueryDenomResponse>;
readonly denomTraces: (paginationKey?: Uint8Array) => Promise<QueryDenomsResponse>;
readonly allDenomTraces: () => Promise<QueryDenomsResponse>;
readonly params: () => Promise<QueryTransferParamsResponse>;
};
};
Expand Down Expand Up @@ -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({}),
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down
Loading