@azuro-org/sdk
Version:
One-stop solution for building betting dApps on the Azuro Protocol.
16 lines (15 loc) • 525 B
TypeScript
import { ConditionState, type GameMarkets } from '@azuro-org/toolkit';
export type UseActiveMarketProps = {
markets: GameMarkets;
};
export declare const useActiveMarket: ({ markets }: UseActiveMarketProps) => {
data: {
states: Record<string, ConditionState>;
marketsByKey: Record<string, import("@azuro-org/toolkit").Market>;
activeMarketKey: string;
activeConditionIndex: number;
otherMarkets: string[];
sortedMarketKeys: string[];
};
isFetching: boolean;
};