UNPKG

lisk-framework

Version:

Lisk blockchain application platform

17 lines (16 loc) 489 B
import { SingleCommit } from './types'; export declare enum COMMIT_SORT { ASC = 1, DSC = -1 } export declare class CommitList { private readonly _commitMap; getByHeight(height: number): SingleCommit[]; getHeights(): number[]; size(): number; add(commit: SingleCommit): void; exists(commit: SingleCommit): boolean; deleteByHeight(height: number): void; getAll(sortOrder?: COMMIT_SORT): SingleCommit[]; deleteSingle(commit: SingleCommit): void; }