UNPKG

@azuro-org/sdk

Version:

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

14 lines (13 loc) 596 B
import { type ChainId, type ConditionsQuery, type GameMarkets } from '@azuro-org/toolkit'; import { type WrapperUseQueryResult, type QueryParameter } from '../../global'; export type UseActiveMarketsProps = { gameId: string; filter?: { outcomeIds?: string[]; maxMargin?: number; }; chainId?: ChainId; query?: QueryParameter<ConditionsQuery['conditions']>; }; export type UseActiveMarkets = (props: UseActiveMarketsProps) => WrapperUseQueryResult<GameMarkets | undefined, ConditionsQuery['conditions']>; export declare const useActiveMarkets: UseActiveMarkets;