@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
14 lines • 666 B
TypeScript
import { ChainForkConfig } from "@lodestar/config";
import { BeaconStateAllForks } from "@lodestar/state-transition";
import { phase0 } from "@lodestar/types";
import { IBeaconDb } from "../../db/index.js";
import { InteropStateOpts } from "./interop/state.js";
/**
* Builds state for `dev` command, for sim testing and some other tests
*/
export declare function initDevState(config: ChainForkConfig, validatorCount: number, interopStateOpts: InteropStateOpts): {
deposits: phase0.Deposit[];
state: BeaconStateAllForks;
};
export declare function writeDeposits(db: IBeaconDb, deposits: phase0.Deposit[]): Promise<void>;
//# sourceMappingURL=state.d.ts.map