mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-25 13:54:05 -06:00
19 lines
668 B
TypeScript
19 lines
668 B
TypeScript
import { Provider } from "@ethersproject/providers";
|
|
import { ChainId, SUPPORTED_CHAIN_ID } from "../common/chain";
|
|
/**
|
|
* Fallback map of default block mining times in seconds.
|
|
|
|
*/
|
|
export declare const DEFAULT_BLOCK_TIMES_FALLBACK: Record<SUPPORTED_CHAIN_ID | ChainId.Hardhat, {
|
|
secondsBetweenBlocks: number;
|
|
synced: boolean;
|
|
}>;
|
|
/**
|
|
* Given a time in second, return the block number that the time is in.
|
|
*
|
|
* @param timeInEpochSeconds - The time in seconds.
|
|
* @param chainId - The chain id.
|
|
* @returns - The block number.
|
|
*/
|
|
export declare function estimateBlockAtTime(timeInEpochSeconds: number, provider: Provider): Promise<number>;
|