mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Merge pull request #1168 from fantasticist/update-ibc-queries
Update ibc queries
This commit is contained in:
commit
c6dce4f752
@ -6,6 +6,9 @@ and this project adheres to
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- @cosmjs/stargate: change `packetCommitment` parameter `sequence` type from `Long` to `number`
|
||||||
|
|
||||||
## [0.28.6] - 2022-06-08
|
## [0.28.6] - 2022-06-08
|
||||||
|
|
||||||
## [0.28.5] - 2022-06-08
|
## [0.28.5] - 2022-06-08
|
||||||
|
@ -127,7 +127,7 @@ describe("IbcExtension", () => {
|
|||||||
const response = await client.ibc.channel.packetCommitment(
|
const response = await client.ibc.channel.packetCommitment(
|
||||||
ibcTest.portId,
|
ibcTest.portId,
|
||||||
ibcTest.channelId,
|
ibcTest.channelId,
|
||||||
Long.fromInt(ibcTest.commitment.sequence, true),
|
ibcTest.commitment.sequence,
|
||||||
);
|
);
|
||||||
expect(response.commitment).toEqual(ibcTest.commitment.data);
|
expect(response.commitment).toEqual(ibcTest.commitment.data);
|
||||||
expect(response.proofHeight).toBeDefined();
|
expect(response.proofHeight).toBeDefined();
|
||||||
|
@ -87,7 +87,7 @@ export interface IbcExtension {
|
|||||||
readonly packetCommitment: (
|
readonly packetCommitment: (
|
||||||
portId: string,
|
portId: string,
|
||||||
channelId: string,
|
channelId: string,
|
||||||
sequence: Long,
|
sequence: number,
|
||||||
) => Promise<QueryPacketCommitmentResponse>;
|
) => Promise<QueryPacketCommitmentResponse>;
|
||||||
readonly packetCommitments: (
|
readonly packetCommitments: (
|
||||||
portId: string,
|
portId: string,
|
||||||
@ -261,11 +261,11 @@ export function setupIbcExtension(base: QueryClient): IbcExtension {
|
|||||||
revisionNumber: Long.fromNumber(revisionNumber, true),
|
revisionNumber: Long.fromNumber(revisionNumber, true),
|
||||||
revisionHeight: Long.fromNumber(revisionHeight, true),
|
revisionHeight: Long.fromNumber(revisionHeight, true),
|
||||||
}),
|
}),
|
||||||
packetCommitment: async (portId: string, channelId: string, sequence: Long) =>
|
packetCommitment: async (portId: string, channelId: string, sequence: number) =>
|
||||||
channelQueryService.PacketCommitment({
|
channelQueryService.PacketCommitment({
|
||||||
portId: portId,
|
portId: portId,
|
||||||
channelId: channelId,
|
channelId: channelId,
|
||||||
sequence: sequence,
|
sequence: Long.fromNumber(sequence, true),
|
||||||
}),
|
}),
|
||||||
packetCommitments: async (portId: string, channelId: string, paginationKey?: Uint8Array) =>
|
packetCommitments: async (portId: string, channelId: string, paginationKey?: Uint8Array) =>
|
||||||
channelQueryService.PacketCommitments({
|
channelQueryService.PacketCommitments({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user