From 78527467a9464ec7371864de2bd2cfb13d9df337 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Wed, 23 Oct 2024 13:04:31 -0700 Subject: [PATCH] chore(types): ts-check --- multichain-testing/test/chain-queries.test.ts | 1 + multichain-testing/tools/batchQuery.js | 1 + multichain-testing/tools/e2e-tools.js | 3 +++ multichain-testing/tools/makeHttpClient.js | 1 + multichain-testing/tools/marshalTables.js | 1 + multichain-testing/tools/queryKit.js | 1 + 6 files changed, 8 insertions(+) diff --git a/multichain-testing/test/chain-queries.test.ts b/multichain-testing/test/chain-queries.test.ts index a9b91c97fe39..e739d0d53b62 100644 --- a/multichain-testing/test/chain-queries.test.ts +++ b/multichain-testing/test/chain-queries.test.ts @@ -247,6 +247,7 @@ test.serial('Send Local Query from chain object', async t => { }, ); const balanceProto3JsonQuery = typedJson( + // @ts-expect-error outdated cosmic-proto dep '/cosmos.bank.v1beta1.QueryBalanceRequest', { address: agoricAddr, diff --git a/multichain-testing/tools/batchQuery.js b/multichain-testing/tools/batchQuery.js index 64c1d1855b54..3d26c6037ad7 100644 --- a/multichain-testing/tools/batchQuery.js +++ b/multichain-testing/tools/batchQuery.js @@ -1,3 +1,4 @@ +// @ts-check import { assert } from '@endo/errors'; import { E } from '@endo/far'; diff --git a/multichain-testing/tools/e2e-tools.js b/multichain-testing/tools/e2e-tools.js index df46fbd65b02..6fb4a43dd72c 100644 --- a/multichain-testing/tools/e2e-tools.js +++ b/multichain-testing/tools/e2e-tools.js @@ -1,3 +1,4 @@ +// @ts-check /** global harden */ import { assert } from '@endo/errors'; import { E, Far } from '@endo/far'; @@ -123,6 +124,7 @@ const installBundle = async (fullPath, opts) => { * chainId?: string; * whale?: string; * progress?: typeof console.log; + * q?: import('./queryKit.js').QueryTool; * }} opts */ export const provisionSmartWallet = async ( @@ -471,6 +473,7 @@ export const makeE2ETools = async ( // name, id: fullPath, installHeight: tx.height, + // @ts-expect-error confirm is a boolean? installed: confirm.installed, }); } diff --git a/multichain-testing/tools/makeHttpClient.js b/multichain-testing/tools/makeHttpClient.js index 373444199468..3219a8f147e7 100644 --- a/multichain-testing/tools/makeHttpClient.js +++ b/multichain-testing/tools/makeHttpClient.js @@ -1,3 +1,4 @@ +// @ts-check import { assert } from '@endo/errors'; import { Far } from '@endo/far'; diff --git a/multichain-testing/tools/marshalTables.js b/multichain-testing/tools/marshalTables.js index 827bd230cc30..ac06ed20f5d5 100644 --- a/multichain-testing/tools/marshalTables.js +++ b/multichain-testing/tools/marshalTables.js @@ -1,3 +1,4 @@ +// @ts-check /** * @file marshal tools for vstorage clients * diff --git a/multichain-testing/tools/queryKit.js b/multichain-testing/tools/queryKit.js index 44bf5ac7f7a5..3acdfb62f7f8 100644 --- a/multichain-testing/tools/queryKit.js +++ b/multichain-testing/tools/queryKit.js @@ -1,3 +1,4 @@ +// @ts-check import { E, Far } from '@endo/far'; import { batchVstorageQuery } from './batchQuery.js'; import { makeClientMarshaller } from './marshalTables.js';