UNPKG

@azuro-org/sdk

Version:

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

15 lines (14 loc) 612 B
import { type ChainId, type ConditionsQuery } from '@azuro-org/toolkit'; import { type UseQueryResult } from '@tanstack/react-query'; import { type QueryParameter } from '../../global'; export type UseActiveConditionsProps = { gameId: string | bigint; filter?: { outcomeIds?: string[]; maxMargin?: number | string; }; chainId?: ChainId; query?: QueryParameter<ConditionsQuery['conditions']>; }; export type UseActiveConditions = (props: UseActiveConditionsProps) => UseQueryResult<ConditionsQuery['conditions']>; export declare const useActiveConditions: UseActiveConditions;