@azuro-org/toolkit
Version:
This framework-agnostic package provides essential utilities for building applications on the Azuro Protocol.
36 lines (35 loc) • 1.15 kB
TypeScript
import type { OutcomeData } from './getConditionsByGameIds';
import type { GameData } from './types';
import type { ConditionState } from '../../global';
import type { ChainId } from '../../config';
export type GetPredefinedComboParams = {
chainId: ChainId;
};
export type PredefinedComboConditionData = {
id: string;
conditionId: string;
state: ConditionState;
title: string;
isPrematchEnabled: boolean;
isLiveEnabled: boolean;
hidden?: boolean;
outcome: OutcomeData;
game: GameData;
isExpressForbidden: boolean;
};
export type PredefinedComboData = {
conditions: PredefinedComboConditionData[];
totalOdds: string;
};
export type GetPredefinedComboResult = PredefinedComboData[];
/**
* Fetches the curated set of predefined combo bets for the chain's environment.
*
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getPredefinedCombo
*
* @example
* import { getPredefinedCombo } from '@azuro-org/toolkit'
*
* const combos = await getPredefinedCombo({ chainId: 137 })
* */
export declare const getPredefinedCombo: (props: GetPredefinedComboParams) => Promise<GetPredefinedComboResult>;