UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

11 lines 530 B
import { ssz } from "@lodestar/types"; import { interopDeposits } from "./interop/deposits.js"; import { getInteropState } from "./interop/state.js"; /** * Builds state for `dev` command, for sim testing and some other tests */ export function initDevState(config, validatorCount, interopStateOpts) { const deposits = interopDeposits(config, ssz.phase0.DepositDataRootList.defaultViewDU(), validatorCount, interopStateOpts); return getInteropState(config, interopStateOpts, deposits); } //# sourceMappingURL=state.js.map