UNPKG

@azuro-org/sdk

Version:

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

25 lines (24 loc) 697 B
import React from 'react'; import { type GameState } from '@azuro-org/toolkit'; export type GameUpdatesContextValue = { isSocketReady: boolean; subscribeToUpdates: (gameIds: string[]) => void; unsubscribeToUpdates: (gameIds: string[]) => void; }; export type GameData = { id: string; sportId: number; country: string; league: string; state: GameState; startsAt: number; participants: string[]; title: string | null; }; export type SocketData = { event: string; data: GameData; }; export type GameUpdatedData = GameData; export declare const useGameUpdates: () => GameUpdatesContextValue; export declare const GameUpdatesProvider: React.FC<any>;