diff --git a/packages/boot/package.json b/packages/boot/package.json index 13b607a386c..d0238a737a4 100644 --- a/packages/boot/package.json +++ b/packages/boot/package.json @@ -21,6 +21,7 @@ "dependencies": { "@endo/errors": "^1.2.7", "@agoric/builders": "^0.1.0", + "@agoric/client-utils": "^0.1.0", "@agoric/cosmic-proto": "^0.4.0", "@agoric/cosmic-swingset": "^0.41.3", "@agoric/ertp": "^0.16.2", diff --git a/packages/boot/tools/supports.ts b/packages/boot/tools/supports.ts index 8b4a810f799..c59f050f294 100644 --- a/packages/boot/tools/supports.ts +++ b/packages/boot/tools/supports.ts @@ -8,6 +8,7 @@ import { basename, join } from 'path'; import { inspect } from 'util'; import { buildSwingset } from '@agoric/cosmic-swingset/src/launch-chain.js'; +import type { TypedPublished } from '@agoric/client-utils'; import { BridgeId, makeTracer, @@ -336,6 +337,9 @@ export const makeSwingsetTestKit = async ( return data; }; + const readPublished = (subpath: T) => + readLatest(`published.${subpath}`) as TypedPublished; + let lastBankNonce = 0n; let ibcSequenceNonce = 0; let lcaSequenceNonce = 0; @@ -645,6 +649,7 @@ export const makeSwingsetTestKit = async ( getCrankNumber, jumpTimeTo, readLatest, + readPublished, runUtils, shutdown, storage,