14 lines
350 B
TypeScript
14 lines
350 B
TypeScript
import { AsyncOrSync } from "ts-essentials";
|
|
import { LightClientUpdate } from "./types.js";
|
|
|
|
export interface IProver {
|
|
getSyncUpdate(
|
|
period: number,
|
|
currentPeriod: number,
|
|
cacheCount: number
|
|
): AsyncOrSync<LightClientUpdate>;
|
|
}
|
|
export interface IStore {
|
|
addUpdate(period: number, update: LightClientUpdate): AsyncOrSync<void>;
|
|
}
|