@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
18 lines • 609 B
TypeScript
import { ChainForkConfig } from "@lodestar/config";
import { Db, Repository } from "@lodestar/db";
import { SignedBeaconBlock } from "@lodestar/types";
/**
* Blocks by root
*
* Used to store unfinalized blocks
*/
export declare class BlockRepository extends Repository<Uint8Array, SignedBeaconBlock> {
constructor(config: ChainForkConfig, db: Db);
/**
* Id is hashTreeRoot of unsigned BeaconBlock
*/
getId(value: SignedBeaconBlock): Uint8Array;
encodeValue(value: SignedBeaconBlock): Buffer;
decodeValue(data: Buffer): SignedBeaconBlock;
}
//# sourceMappingURL=block.d.ts.map