From 4128aefa3b1eda7f8c8fe8bcbf1da62d2b46d395 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 17 Oct 2024 15:49:00 -0400 Subject: [PATCH] fixup! refactor!: Add mailbox types and differentiate use of maps from map-like stores --- packages/boot/tools/supports.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/boot/tools/supports.ts b/packages/boot/tools/supports.ts index 1b25dba7a8ad..c07ba162d1b8 100644 --- a/packages/boot/tools/supports.ts +++ b/packages/boot/tools/supports.ts @@ -40,9 +40,7 @@ import { import type { ExecutionContext as AvaT } from 'ava'; import type { CoreEvalSDKType } from '@agoric/cosmic-proto/swingset/swingset.js'; -import type { KVStore } from '@agoric/cosmic-swingset/src/helpers/bufferedStorage.js'; import type { EconomyBootstrapPowers } from '@agoric/inter-protocol/src/proposals/econ-behaviors.js'; -import type { Mailbox } from '@agoric/swingset-vat'; import type { SwingsetController } from '@agoric/swingset-vat/src/controller/controller.js'; import type { BridgeHandler, IBCMethod } from '@agoric/vats'; import type { BootstrapRootObject } from '@agoric/vats/src/core/lib-boot.js'; @@ -513,15 +511,9 @@ export const makeSwingsetTestKit = async ( }, }); } - /** @type {KVStore} */ - const mailboxStorage = Object.assign(new Map(), { - getNextKey: previousKey => { - for (const k of mailboxStorage.keys()) { - if (k > previousKey) return k; - } - }, - }); + const mailboxStorage = new Map(); const { controller, timer, bridgeInbound } = await buildSwingset( + // @ts-expect-error missing method 'getNextKey' mailboxStorage, bridgeOutbound, kernelStorage,