diff --git a/packages/stargate/src/queries/ibc.spec.ts b/packages/stargate/src/queries/ibc.spec.ts index 7c735ea6..73d7131a 100644 --- a/packages/stargate/src/queries/ibc.spec.ts +++ b/packages/stargate/src/queries/ibc.spec.ts @@ -101,13 +101,13 @@ describe("IbcExtension", () => { }); }); - describe("unrelayedAcks", () => { + describe("unreceivedAcks", () => { it("can be called", async () => { pending("Fails with 'Query failed with (1): internal'. Make it work."); pendingWithoutSimapp(); const [client, tmClient] = await makeClientWithIbc(simapp.tendermintUrl); - const response = await client.ibc.unverified.unrelayedAcks("foo", "bar", [0, 1]); + const response = await client.ibc.unverified.unreceivedAcks("foo", "bar", [0, 1]); expect(response).toBeTruthy(); // TODO: implement checks tmClient.disconnect(); diff --git a/packages/stargate/src/queries/ibc.ts b/packages/stargate/src/queries/ibc.ts index ccd9c11a..ae993bb4 100644 --- a/packages/stargate/src/queries/ibc.ts +++ b/packages/stargate/src/queries/ibc.ts @@ -49,11 +49,11 @@ export interface IbcExtension { channelId: string, packetCommitmentSequences: readonly number[], ) => Promise; - readonly unrelayedAcks: ( + readonly unreceivedAcks: ( portId: string, channelId: string, packetCommitmentSequences: readonly number[], - ) => Promise; + ) => Promise; readonly nextSequenceReceive: ( portId: string, channelId: string, @@ -174,15 +174,11 @@ export function setupIbcExtension(base: QueryClient): IbcExtension { }); return toObject(response); }, - unrelayedAcks: async ( - portId: string, - channelId: string, - packetCommitmentSequences: readonly number[], - ) => { - const response = await channelQuerySerice.unrelayedAcks({ + unreceivedAcks: async (portId: string, channelId: string, packetAckSequences: readonly number[]) => { + const response = await channelQuerySerice.unreceivedAcks({ portId: portId, channelId: channelId, - packetCommitmentSequences: packetCommitmentSequences.map((s) => Long.fromNumber(s)), + packetAckSequences: packetAckSequences.map((s) => Long.fromNumber(s)), }); return toObject(response); }, diff --git a/packages/stargate/types/queries/ibc.d.ts b/packages/stargate/types/queries/ibc.d.ts index 7ab22494..71033e4f 100644 --- a/packages/stargate/types/queries/ibc.d.ts +++ b/packages/stargate/types/queries/ibc.d.ts @@ -38,11 +38,11 @@ export interface IbcExtension { channelId: string, packetCommitmentSequences: readonly number[], ) => Promise; - readonly unrelayedAcks: ( + readonly unreceivedAcks: ( portId: string, channelId: string, packetCommitmentSequences: readonly number[], - ) => Promise; + ) => Promise; readonly nextSequenceReceive: ( portId: string, channelId: string,