@azuro-org/sdk
Version:
One-stop solution for building betting dApps on the Azuro Protocol.
67 lines (66 loc) • 2.09 kB
TypeScript
import type { GraphBetStatus, BetResult, SelectionResult, SelectionKind, BetConditionStatus } from '@azuro-org/toolkit';
import type { Exact, V3_Bet_Filter } from './types';
export type BetsQueryVariables = Exact<{
first?: number;
skip?: number;
where: V3_Bet_Filter;
}>;
export type BetsQuery = {
__typename?: 'Query';
v3Bets: Array<{
__typename?: 'V3_Bet';
id: string;
actor: string;
amount: string;
status: GraphBetStatus;
potentialPayout: string;
payout: string | null;
result: BetResult | null;
odds: string;
settledOdds: string | null;
redeemedTxHash: string | null;
affiliate: string;
nonce: string;
isRedeemed: boolean;
isRedeemable: boolean;
isCashedOut: boolean;
freebetId?: string | null;
isFreebetAmountReturnable?: boolean | null;
paymasterContractAddress?: string | null;
tokenId: string;
createdAt: string;
resolvedAt?: string | null;
redeemedAt?: string | null;
txHash: string;
core: {
address: string;
liquidityPool: {
address: string;
};
};
selections: Array<{
__typename?: 'V3_Selection';
odds: string;
result?: SelectionResult | null;
conditionKind: SelectionKind;
outcome: {
__typename?: 'V3_Outcome';
outcomeId: string;
title?: string | null;
condition: {
__typename?: 'V3_Condition';
conditionId: string;
title?: string | null;
status: BetConditionStatus;
gameId: string;
wonOutcomeIds?: Array<string> | null;
};
};
}>;
cashout?: {
__typename?: 'Cashout';
payout: string;
} | null;
}>;
};
export declare const BetsDocument: import("graphql").DocumentNode;