tovarish-relayer/lib/config.d.ts

35 lines
854 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[];
enableTrees: boolean;
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;