@lodestar/params
Version:
Chain parameters required for lodestar
26 lines • 1.09 kB
TypeScript
import { presetFromJson } from "./json.js";
import { PresetName } from "./presetName.js";
import { BeaconPreset } from "./types.js";
export { PresetName, presetFromJson };
/**
* The preset name currently exported by this library
*
* The `LODESTAR_PRESET` environment variable is used to select the active preset
* If `LODESTAR_PRESET` is not set, the default is `mainnet`.
*
* The active preset can be manually overridden with `setActivePreset`
*/
export declare let userSelectedPreset: PresetName | null;
export declare let userOverrides: Partial<BeaconPreset> | undefined;
/**
* Override the active preset
*
* WARNING: Lodestar libraries rely on preset values being _constant_, so the active preset must be set _before_ loading any other lodestar libraries.
*
* Only call this function if you _really_ know what you are doing.
*
* @param presetName - the preset to use as a base
* @param overrides - customized fields
*/
export declare function setActivePreset(presetName: PresetName | null, overrides?: Partial<BeaconPreset>): void;
//# sourceMappingURL=setPreset.d.ts.map