UNPKG

@lodestar/config

Version:

Chain configuration required for lodestar

10 lines 916 B
import { BlobSchedule, BlobScheduleEntry, ChainConfig, SpecJson, SpecValue, SpecValueTypeName } from "./types.js"; export declare function chainConfigToJson(config: ChainConfig): SpecJson; export declare function chainConfigFromJson(json: Record<string, unknown>): ChainConfig; export declare function specValuesToJson(spec: Record<string, SpecValue>): SpecJson; /** Automatic inference of typeName. For critical variables define type names, else infer */ export declare function toSpecValueTypeName(value: SpecValue): SpecValueTypeName; export declare function serializeSpecValue(value: SpecValue, typeName: SpecValueTypeName): string | Record<keyof BlobScheduleEntry, string>[]; export declare function deserializeSpecValue(valueStr: unknown, typeName: SpecValueTypeName, keyName: string): SpecValue; export declare function deserializeBlobSchedule(input: unknown): BlobSchedule; //# sourceMappingURL=json.d.ts.map