UNPKG

@atomiqlabs/chain-evm

Version:

EVM specific base implementation

16 lines (15 loc) 785 B
export type LoggerType = { debug: (msg: string, ...args: any[]) => void; info: (msg: string, ...args: any[]) => void; warn: (msg: string, ...args: any[]) => void; error: (msg: string, ...args: any[]) => void; }; export declare function timeoutPromise(timeoutMillis: number, abortSignal?: AbortSignal): Promise<void>; export declare function onceAsync<T>(executor: () => Promise<T>): () => Promise<T>; export declare function getLogger(prefix: string): LoggerType; export declare function tryWithRetries<T>(func: () => Promise<T>, retryPolicy?: { maxRetries?: number; delay?: number; exponential?: boolean; }, errorAllowed?: (e: any) => boolean, abortSignal?: AbortSignal): Promise<T>; export declare function uint32ReverseEndianness(value: number): number;