games_app/backend/dist/realtime/redis/keys.d.ts

49 lines
1.8 KiB
TypeScript

/** Redis key naming for Prediqo realtime (Candle Predict). */
export declare const REDIS_PREFIX = "prediqo";
export declare const redisKeys: {
readonly config: () => string;
readonly intervals: () => string;
readonly round: (intervalMinutes: number, openMs: number) => string;
readonly pools: (intervalMinutes: number, openMs: number) => string;
readonly timing: (intervalMinutes: number) => string;
readonly userRound: (userId: string, intervalMinutes: number, openMs: number) => string;
readonly candlesTail: (intervalMinutes: number) => string;
readonly betIdempotency: (key: string) => string;
readonly betStream: () => string;
readonly betResultStream: () => string;
readonly pubsubRound: (intervalMinutes: number) => string;
readonly pubsubUser: (userId: string) => string;
readonly engineLeader: () => string;
/** Monotonic business versions for cheap /state short-circuit (before full getGameState). */
readonly stateVerConfig: () => string;
readonly stateVerRound: (intervalMinutes: number) => string;
readonly stateVerUserBet: (userId: string, intervalMinutes: number) => string;
readonly stateVerUserAuto: (userId: string) => string;
};
export type RoundCacheHash = {
id: string;
candleOpenMs: string;
candleCloseMs: string;
intervalMinutes: string;
status: string;
outcome: string;
openPrice: string;
highPrice: string;
lowPrice: string;
closePrice: string;
settledAt: string;
shortPoolPercent: string;
longPoolPercent: string;
serverNowMs: string;
secondsToBettingEnd: string;
secondsToBettingStart: string;
secondsToClose: string;
bettingEndMs: string;
bettingStartMs: string;
version: string;
};
export type PoolCacheHash = {
short: string;
long: string;
};
//# sourceMappingURL=keys.d.ts.map