@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
14 lines • 2.81 kB
TypeScript
import { Db } from "@lodestar/db";
import { ForkAll } from "@lodestar/params";
import { Root, SSZTypesFor, SignedBeaconBlock, Slot } from "@lodestar/types";
export declare const rootIndexBucketId: "allForks_attesterSlashing" | "allForks_block" | "allForks_blockArchive" | "allForks_checkpointState" | "allForks_dataColumnSidecars" | "allForks_dataColumnSidecarsArchive" | "allForks_stateArchive" | "backfilled_ranges" | "capella_blsToExecutionChange" | "deneb_blobSidecars" | "deneb_blobSidecarsArchive" | "gloas_executionPayloadEnvelope" | "gloas_executionPayloadEnvelopeArchive" | "index_blockArchiveParentRootIndex" | "index_blockArchiveRootIndex" | "index_chainInfo" | "index_depositDataRoot" | "index_mainChain" | "index_stateArchiveRootIndex" | "lightClient_bestLightClientUpdate" | "lightClient_checkpointHeader" | "lightClient_syncCommittee" | "lightClient_syncCommitteeWitness" | "phase0_depositData" | "phase0_depositEvent" | "phase0_eth1Data" | "phase0_exit" | "phase0_preGenesisState" | "phase0_preGenesisStateLastProcessedBlock" | "phase0_proposerSlashing";
export declare const parentRootIndexBucketId: "allForks_attesterSlashing" | "allForks_block" | "allForks_blockArchive" | "allForks_checkpointState" | "allForks_dataColumnSidecars" | "allForks_dataColumnSidecarsArchive" | "allForks_stateArchive" | "backfilled_ranges" | "capella_blsToExecutionChange" | "deneb_blobSidecars" | "deneb_blobSidecarsArchive" | "gloas_executionPayloadEnvelope" | "gloas_executionPayloadEnvelopeArchive" | "index_blockArchiveParentRootIndex" | "index_blockArchiveRootIndex" | "index_chainInfo" | "index_depositDataRoot" | "index_mainChain" | "index_stateArchiveRootIndex" | "lightClient_bestLightClientUpdate" | "lightClient_checkpointHeader" | "lightClient_syncCommittee" | "lightClient_syncCommitteeWitness" | "phase0_depositData" | "phase0_depositEvent" | "phase0_eth1Data" | "phase0_exit" | "phase0_preGenesisState" | "phase0_preGenesisStateLastProcessedBlock" | "phase0_proposerSlashing";
export declare function getRootIndex(db: Db, blockRoot: Root): Promise<Uint8Array | null>;
export declare function getParentRootIndex(db: Db, parentRoot: Root): Promise<Uint8Array | null>;
export declare function storeRootIndex(db: Db, slot: Slot, blockRoot: Root): Promise<void>;
export declare function storeParentRootIndex(db: Db, slot: Slot, parentRoot: Root): Promise<void>;
export declare function deleteRootIndex(db: Db, signedBeaconBlockType: SSZTypesFor<ForkAll, "SignedBeaconBlock">, block: SignedBeaconBlock): Promise<void>;
export declare function deleteParentRootIndex(db: Db, block: SignedBeaconBlock): Promise<void>;
export declare function getParentRootIndexKey(parentRoot: Root): Uint8Array;
export declare function getRootIndexKey(root: Root): Uint8Array;
//# sourceMappingURL=blockArchiveIndex.d.ts.map