@metamask/ocap-kernel
Version:
OCap kernel core components
11 lines • 424 B
text/typescript
import type { VatKVStore } from "@metamask/kernel-store";
/**
* Create an in-memory VatKVStore for a vat, backed by a Map and tracking
* changes so that they can be reported at the end of a crank.
*
* @param state - The state to begin with.
*
* @returns a VatKVStore wrapped around `state`.
*/
export declare function makeVatKVStore(state: Map<string, string>): VatKVStore;
//# sourceMappingURL=vat-kv-store.d.mts.map