UNPKG

@tevm/utils

Version:

A custom implementation of ethereumjs blockchain

8 lines (6 loc) 328 B
import type { DBObject } from '@ethereumjs/util' import type { MemoryDb } from './MemoryDb.js' export type CreateMemoryDbFn< TKey extends string | number | Uint8Array = Uint8Array, TValue extends string | Uint8Array | Uint8Array | string | DBObject = Uint8Array, > = (initialDb?: Map<TKey, TValue>) => MemoryDb<TKey, TValue>