@azuro-org/sdk
Version:
One-stop solution for building betting dApps on the Azuro Protocol.
21 lines (20 loc) • 792 B
TypeScript
import { type SportsQuery, 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 UseSportsProps = {
filter?: {
limit?: number;
sportHub?: SportHub;
sportSlug?: string;
countrySlug?: string;
leagueSlug?: string;
sportIds?: Array<string | number>;
};
gameOrderBy?: Game_OrderBy.Turnover | Game_OrderBy.StartsAt;
orderDir?: OrderDirection;
isLive?: boolean;
chainId?: ChainId;
query?: QueryParameter<SportsQuery['sports']>;
};
export type UseSports = (props?: UseSportsProps) => UseQueryResult<SportsQuery['sports']>;
export declare const useSports: UseSports;