tovarish-relayer/lib/config.d.ts
2024-11-13 01:42:13 +00:00

34 lines
828 B
TypeScript
Vendored

import 'dotenv/config';
import { NetIdType, SubdomainMap } from '@tornado/core';
export declare const version: string;
export interface RelayerConfig {
/**
* Router config
*/
host: string;
port: number;
workers: number;
reverseProxy: boolean;
logLevel?: string;
/**
* Worker config
*/
rewardAccount: string;
serviceFee: number;
clearInterval: number;
/**
* Sync config
*/
enabledNetworks: NetIdType[];
rpcUrls: SubdomainMap;
txRpcUrls: SubdomainMap;
merkleWorkerPath: string;
cacheDir: string;
userEventsDir: string;
userTreeDir: string;
syncInterval: number;
}
export declare function getPrivateKey(): string;
export declare function getRewardAccount(): string;
export declare function getRelayerConfig(): RelayerConfig;