@azuro-org/toolkit
Version:
This framework-agnostic package provides essential utilities for building applications on the Azuro Protocol.
156 lines (155 loc) • 5.26 kB
TypeScript
import * as Types from './types';
export type LegacyBetsQueryVariables = Types.Exact<{
first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
skip?: Types.InputMaybe<Types.Scalars['Int']['input']>;
where: Types.Bet_Filter;
orderBy?: Types.InputMaybe<Types.Bet_OrderBy>;
orderDirection?: Types.InputMaybe<Types.OrderDirection>;
}>;
export type LegacyBetsQuery = {
__typename?: 'Query';
bets: Array<{
__typename?: 'Bet';
id: string;
actor: string;
amount: string;
status: Types.BetStatus;
potentialPayout: string;
payout?: string | null;
result?: Types.BetResult | null;
odds: string;
settledOdds?: string | null;
redeemedTxHash?: string | null;
affiliate?: string | null;
isRedeemed: boolean;
isRedeemable: boolean;
isCashedOut: boolean;
tokenId: string;
createdAt: string;
resolvedAt?: string | null;
txHash: string;
redeemedAt?: string | null;
core: {
__typename?: 'CoreContract';
address: string;
liquidityPool: {
__typename?: 'LiquidityPoolContract';
address: string;
};
};
selections: Array<{
__typename?: 'Selection';
odds: string;
result?: Types.SelectionResult | null;
outcome: {
__typename?: 'Outcome';
outcomeId: string;
title?: string | null;
condition: {
__typename?: 'Condition';
conditionId: string;
status: Types.ConditionStatus;
title?: string | null;
wonOutcomeIds?: Array<string> | null;
game: {
__typename?: 'Game';
id: string;
gameId: string;
title?: string | null;
startsAt: string;
status: Types.GameStatus;
slug?: string | null;
sport: {
__typename?: 'Sport';
sportId: string;
slug: string;
name: string;
sporthub: {
__typename?: 'SportHub';
id: string;
slug: string;
};
};
league: {
__typename?: 'League';
id: string;
slug: string;
name: string;
country: {
__typename?: 'Country';
id: string;
slug: string;
name: string;
};
};
participants: Array<{
__typename?: 'Participant';
image?: string | null;
name: string;
}>;
};
};
};
}>;
freebet?: {
__typename?: 'Freebet';
freebetId: string;
contractAddress: string;
} | null;
cashout?: {
__typename?: 'Cashout';
payout: string;
} | null;
}>;
liveBets: Array<{
__typename?: 'LiveBet';
id: string;
actor: string;
amount: string;
status: Types.BetStatus;
potentialPayout: string;
payout?: string | null;
result?: Types.BetResult | null;
odds: string;
settledOdds?: string | null;
redeemedTxHash?: string | null;
affiliate?: string | null;
isRedeemed: boolean;
isRedeemable: boolean;
isCashedOut: boolean;
tokenId: string;
createdAt: string;
resolvedAt?: string | null;
txHash: string;
redeemedAt?: string | null;
core: {
__typename?: 'CoreContract';
address: string;
liquidityPool: {
__typename?: 'LiquidityPoolContract';
address: string;
};
};
selections: Array<{
__typename?: 'LiveSelection';
odds: string;
result?: Types.SelectionResult | null;
outcome: {
__typename?: 'LiveOutcome';
outcomeId: string;
condition: {
__typename?: 'LiveCondition';
conditionId: string;
status: Types.ConditionStatus;
gameId: string;
wonOutcomeIds?: Array<string> | null;
};
};
}>;
cashout?: {
__typename?: 'Cashout';
payout: string;
} | null;
}>;
};
export declare const LegacyBetsDocument: import("graphql/language/ast").DocumentNode;