UNPKG

@atomiqlabs/chain-evm

Version:

EVM specific base implementation

20 lines (19 loc) 1.05 kB
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; export declare function bigIntMax(a: bigint, b: bigint): bigint; export declare const allowedEthersErrorCodes: Set<string>; export declare const allowedEthersErrorNumbers: Set<number>; export declare const allowedEthersErrorMessages: Set<string>;