radix-utils
Version:
Utility functions for Radix DLT blockchain development
16 lines • 695 B
TypeScript
import { Decimal } from 'decimal.js';
/**
* Creates a new Decimal instance with Radix-specific configuration
* @param value - The value to convert to Decimal
* @returns A new Decimal instance
*/
export declare const BN: (value: string | number) => Decimal;
/**
* Retry a promise with exponential backoff
* @param promises - Array of promises to execute
* @param retries - Number of retries (default: 3)
* @param delay - Initial delay in milliseconds (default: 1000)
* @returns Promise that resolves to the result of Promise.all
*/
export declare const retryPromiseAll: <T>(promises: Promise<T>[], retries?: number, delay?: number) => Promise<T[]>;
//# sourceMappingURL=decimal.d.ts.map