stargate: Add more IBC query tests and stubs
This commit is contained in:
parent
99491c11b2
commit
000c2a04f4
@ -44,6 +44,22 @@ describe("IbcExtension", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("allChannels", () => {
|
||||
it("works", async () => {
|
||||
pendingWithoutSimapp();
|
||||
const [client, tmClient] = await makeClientWithIbc(simapp.tendermintUrl);
|
||||
|
||||
const response = await client.ibc.unverified.channel.channels();
|
||||
expect(response.channels).toEqual([ibcTest.identifiedChannel]);
|
||||
expect(response.pagination).toBeDefined();
|
||||
expect(response.pagination).not.toBeNull();
|
||||
expect(response.height).toBeDefined();
|
||||
expect(response.height).not.toBeNull();
|
||||
|
||||
tmClient.disconnect();
|
||||
});
|
||||
});
|
||||
|
||||
describe("connectionChannels", () => {
|
||||
it("works", async () => {
|
||||
pendingWithoutSimapp();
|
||||
@ -60,6 +76,30 @@ describe("IbcExtension", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("allConnectionChannels", () => {
|
||||
it("works", async () => {
|
||||
pendingWithoutSimapp();
|
||||
const [client, tmClient] = await makeClientWithIbc(simapp.tendermintUrl);
|
||||
|
||||
const response = await client.ibc.unverified.channel.connectionChannels(ibcTest.connectionId);
|
||||
expect(response.channels).toEqual([ibcTest.identifiedChannel]);
|
||||
expect(response.pagination).toBeDefined();
|
||||
expect(response.pagination).not.toBeNull();
|
||||
expect(response.height).toBeDefined();
|
||||
expect(response.height).not.toBeNull();
|
||||
|
||||
tmClient.disconnect();
|
||||
});
|
||||
});
|
||||
|
||||
describe("clientState", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("consensusState", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("packetCommitment", () => {
|
||||
it("works", async () => {
|
||||
pendingWithoutSimapp();
|
||||
@ -97,6 +137,29 @@ describe("IbcExtension", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("allPacketCommitments", () => {
|
||||
it("works", async () => {
|
||||
pendingWithoutSimapp();
|
||||
const [client, tmClient] = await makeClientWithIbc(simapp.tendermintUrl);
|
||||
|
||||
const response = await client.ibc.unverified.channel.packetCommitments(
|
||||
ibcTest.portId,
|
||||
ibcTest.channelId,
|
||||
);
|
||||
expect(response.commitments).toEqual([ibcTest.packetState]);
|
||||
expect(response.pagination).toBeDefined();
|
||||
expect(response.pagination).not.toBeNull();
|
||||
expect(response.height).toBeDefined();
|
||||
expect(response.height).not.toBeNull();
|
||||
|
||||
tmClient.disconnect();
|
||||
});
|
||||
});
|
||||
|
||||
describe("packetReceipt", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("packetAcknowledgement", () => {
|
||||
it("works", async () => {
|
||||
pending("We don't have an acknowledgement for testing at the moment");
|
||||
@ -135,6 +198,25 @@ describe("IbcExtension", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("allPacketAcknowledgements", () => {
|
||||
it("works", async () => {
|
||||
pendingWithoutSimapp();
|
||||
const [client, tmClient] = await makeClientWithIbc(simapp.tendermintUrl);
|
||||
|
||||
const response = await client.ibc.unverified.channel.packetAcknowledgements(
|
||||
ibcTest.portId,
|
||||
ibcTest.channelId,
|
||||
);
|
||||
expect(response.acknowledgements).toEqual(ibcTest.packetAcknowledgements);
|
||||
expect(response.pagination).toBeDefined();
|
||||
expect(response.pagination).not.toBeNull();
|
||||
expect(response.height).toBeDefined();
|
||||
expect(response.height).not.toBeNull();
|
||||
|
||||
tmClient.disconnect();
|
||||
});
|
||||
});
|
||||
|
||||
describe("unreceivedPackets", () => {
|
||||
it("works", async () => {
|
||||
pendingWithoutSimapp();
|
||||
@ -189,6 +271,52 @@ describe("IbcExtension", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("client", () => {
|
||||
describe("state", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("states", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("allStates", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("consensusState", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("consensusStates", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("allConsensusStates", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("params", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("stateTm", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("statesTm", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("allStatesTm", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("consensusStateTm", () => {
|
||||
it("works");
|
||||
});
|
||||
});
|
||||
|
||||
describe("connection", () => {
|
||||
describe("connection", () => {
|
||||
it("works", async () => {
|
||||
@ -220,6 +348,22 @@ describe("IbcExtension", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("allConnections", () => {
|
||||
it("works", async () => {
|
||||
pendingWithoutSimapp();
|
||||
const [client, tmClient] = await makeClientWithIbc(simapp.tendermintUrl);
|
||||
|
||||
const response = await client.ibc.unverified.connection.connections();
|
||||
expect(response.connections).toEqual([ibcTest.identifiedConnection]);
|
||||
expect(response.pagination).toBeDefined();
|
||||
expect(response.pagination).not.toBeNull();
|
||||
expect(response.height).toBeDefined();
|
||||
expect(response.height).not.toBeNull();
|
||||
|
||||
tmClient.disconnect();
|
||||
});
|
||||
});
|
||||
|
||||
describe("clientConnections", () => {
|
||||
it("works", async () => {
|
||||
pendingWithoutSimapp();
|
||||
@ -233,6 +377,14 @@ describe("IbcExtension", () => {
|
||||
tmClient.disconnect();
|
||||
});
|
||||
});
|
||||
|
||||
describe("clientState", () => {
|
||||
it("works");
|
||||
});
|
||||
|
||||
describe("consensusState", () => {
|
||||
it("works");
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user