@azuro-org/sdk
Version:
One-stop solution for building betting dApps on the Azuro Protocol.
22 lines (21 loc) • 710 B
TypeScript
import { type BettorsQuery, type ChainId } from '@azuro-org/toolkit';
import { type UseQueryResult } from '@tanstack/react-query';
import { type QueryParameter } from '../../global';
type UseBetsSummaryResult = {
toPayout: string;
inBets: string;
totalPayout: string;
totalProfit: string;
betsCount: number;
wonBetsCount: number;
lostBetsCount: number;
};
export type UseBetsSummaryProps = {
account: string;
chainId?: ChainId;
affiliates?: string[];
query?: QueryParameter<BettorsQuery['bettors']>;
};
export type UseBetsSummary = (props: UseBetsSummaryProps) => UseQueryResult<UseBetsSummaryResult>;
export declare const useBetsSummary: UseBetsSummary;
export {};