@drift-labs/common
Version:
Common functions for Drift
10 lines (9 loc) • 353 B
TypeScript
/**
* Utility class which makes sure that all results with a slot are only accepted if the slot is higher than the previous result
*/
export declare class SlotBasedResultValidator {
private resultIncrements;
private allowUndefined;
constructor(allowUndefined?: boolean);
handleResult(key: string, slot: number | undefined): boolean;
}