UNPKG

@azuro-org/toolkit

Version:

This framework-agnostic package provides essential utilities for building applications on the Azuro Protocol.

21 lines (20 loc) 716 B
import { GameState } from '../global'; export type GetIsPendingResolutionParams = { state: GameState; startsAt: string; }; /** * Determines if a game is pending resolution after completion. * Returns true if the game is in Live state but has exceeded the expected resolution window (100 minutes after start). * * - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/getIsPendingResolution * * @example * import { getIsPendingResolution, GameState } from '@azuro-org/toolkit' * * const isPending = getIsPendingResolution({ * state: GameState.Live, * startsAt: '1640000000' * }) * */ export declare const getIsPendingResolution: ({ state, startsAt }: GetIsPendingResolutionParams) => boolean;