UNPKG

@smartinvoicexyz/graphql

Version:

Unified source for helpers and schema used across the GraphQL services within the Smart Invoice protocol.

10 lines (9 loc) 544 B
export declare const timeout: (ms: number) => Promise<void>; export type SubgraphStatus = { syncedBlockNumber: number; hasIndexingErrors: boolean; }; export declare const getSubgraphStatus: (chainId: number) => Promise<SubgraphStatus>; export declare const waitForSubgraphSync: (chainId: number, transactionBlockNumber: bigint) => Promise<boolean>; export declare const getCachedSubgraphStatus: (chainId: number) => SubgraphStatus | null; export declare const setCachedSubgraphStatus: (chainId: number, health: SubgraphStatus) => void;