UNPKG

near-protocol-rewards

Version:

A transparent, metric-based rewards system for NEAR projects

12 lines (11 loc) 334 B
/** * Retry utility with exponential backoff * Handles transient failures in API calls */ interface RetryOptions { maxRetries: number; retryDelay: (attempt: number) => number; shouldRetry?: (error: any) => boolean; } export declare function retry<T>(fn: () => Promise<T>, options: RetryOptions): Promise<T>; export {};