UNPKG

@azuro-org/sdk

Version:

One-stop solution for building betting dApps on the Azuro Protocol.

22 lines (21 loc) 718 B
import { type ChainId } from '@azuro-org/toolkit'; import { type Address } from 'viem'; import { type InfiniteData, type UseInfiniteQueryResult } from '@tanstack/react-query'; import { BetType, type Bet, type InfiniteQueryParameters } from '../../../global'; type UseBetsResult = { bets: Bet[]; nextPage: number | undefined; }; export type UseBetsProps = { filter: { bettor: Address; affiliate?: string; type?: BetType; }; chainId?: ChainId; itemsPerPage?: number; query?: InfiniteQueryParameters<UseBetsResult>; }; export type UseBets = (props: UseBetsProps) => UseInfiniteQueryResult<InfiniteData<UseBetsResult>>; export declare const useBets: UseBets; export {};