UNPKG

@azuro-org/sdk

Version:

One-stop solution for building betting dApps on the Azuro Protocol.

23 lines (22 loc) 870 B
import { type ConditionState, type GamesQuery, type ChainId, Game_OrderBy, OrderDirection } from '@azuro-org/toolkit'; import { type UseQueryResult } from '@tanstack/react-query'; import { type SportHub, type QueryParameter } from '../../global'; export type UseGamesProps = { filter?: { limit?: number; offset?: number; sportHub?: SportHub; sportSlug?: string; sportIds?: Array<string | number>; leagueSlug?: string | string[]; maxMargin?: number | string; conditionsState?: ConditionState | ConditionState[]; }; orderBy?: Game_OrderBy; orderDir?: OrderDirection; isLive?: boolean; chainId?: ChainId; query?: QueryParameter<GamesQuery['games']>; }; export type UseGames = (props?: UseGamesProps) => UseQueryResult<GamesQuery['games']>; export declare const useGames: UseGames;