UNPKG

@ethereumjs/evm

Version:
20 lines 809 B
import type { PrefixedHexString } from '@ethereumjs/util'; import type { BinaryStemAccessEvent, BinaryStemMeta } from './binaryTreeAccessWitness.ts'; export declare class StemCache { cache: Map<PrefixedHexString, BinaryStemAccessEvent & BinaryStemMeta>; constructor(); set(stemKey: PrefixedHexString, accessedStem: BinaryStemAccessEvent & BinaryStemMeta): void; get(stemHex: PrefixedHexString): (BinaryStemAccessEvent & BinaryStemMeta) | undefined; del(stemHex: PrefixedHexString): void; commit(): [PrefixedHexString, BinaryStemAccessEvent & BinaryStemMeta][]; /** * Clear cache */ clear(): void; /** * Returns the size of the cache * @returns Number of cached stems currently stored */ size(): number; } //# sourceMappingURL=stemCache.d.ts.map