block-timestamp/lib/config.d.ts
2024-12-19 14:13:17 +00:00

34 lines
650 B
TypeScript
Vendored

import 'dotenv/config';
export interface Config {
/**
* Router config
*/
host: string;
port: number;
workers: number;
reverseProxy: boolean;
logLevel?: string;
/**
* Connection config (Required)
*/
chainId: number;
rpcUrl: string;
mongoUrl: string;
/**
* Sync config
*/
readOnly: boolean;
startBlock: number;
syncInterval: number;
/**
* Queue & Retries
*/
maxRetry: number;
retryAfter: number;
blockQueue: number;
blockConcurrency: number;
blockBatch: number;
maxReturn: number;
}
export declare function getConfig(): Config;