UNPKG

@ethereum-sourcify/compilers

Version:

Wrapper around multiple compilers to download the right version and invoke the compilation with a common interface.

11 lines 533 B
/** * Fetches a resource with an exponential timeout. * 1) Send req, wait backoff * 2^0 ms, abort if doesn't resolve * 2) Send req, wait backoff * 2^1 ms, abort if doesn't resolve * 3) Send req, wait backoff * 2^2 ms, abort if doesn't resolve... * ... * ... */ export declare function fetchWithBackoff(resource: string, backoff?: number, retries?: number): Promise<Response>; export declare function asyncExec(command: string, inputStringified: string, maxBuffer: number): Promise<string>; //# sourceMappingURL=common.d.ts.map