@azuro-org/sdk
Version:
One-stop solution for building betting dApps on the Azuro Protocol.
22 lines (21 loc) • 900 B
TypeScript
import { type ChainId, type ConditionDetailedData } from '@azuro-org/toolkit';
import { type QueryParameter } from '../../global';
export type UseResolvedMarketsProps = {
gameId: string;
chainId?: ChainId;
extended?: boolean;
query?: QueryParameter<ConditionDetailedData[]>;
};
export type UseResolvedMarkets = typeof useResolvedMarkets;
/**
* Get resolved markets grouped by market type for a specific game.
* Wraps `useConditions` and groups conditions by market.
*
* - Docs: https://gem.azuro.org/hub/apps/sdk/data-hooks/useResolvedMarkets
*
* @example
* import { useResolvedMarkets } from '@azuro-org/sdk'
*
* const { data: markets, isFetching } = useResolvedMarkets({ gameId: '123' })
* */
export declare const useResolvedMarkets: (props: UseResolvedMarketsProps) => import("@tanstack/react-query").UseQueryResult<import("@azuro-org/toolkit").GameMarkets | undefined>;