UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

6 lines 439 B
import { CachedBeaconStateAllForks } from "@lodestar/state-transition"; import { AllocSource, BufferPool } from "../util/bufferPool.js"; type ProcessStateBytesFn<T> = (stateBytes: Uint8Array) => Promise<T>; export declare function serializeState<T>(state: CachedBeaconStateAllForks, source: AllocSource, processFn: ProcessStateBytesFn<T>, bufferPool?: BufferPool | null): Promise<T>; export {}; //# sourceMappingURL=serializeState.d.ts.map