UNPKG

@btc-vision/bsi-common

Version:

Common library for OP_NET.

17 lines (12 loc) 555 B
import { DataBaseConfig, IConfig, IConfigBase, IConfigTemplate } from './interfaces/IConfig.js'; import { DebugLevel } from '@btc-vision/logger'; export abstract class ConfigBase<T extends IConfigTemplate> implements IConfigBase { public readonly LOG_FOLDER: string; public readonly DEBUG_LEVEL: DebugLevel; public readonly DATABASE: DataBaseConfig; protected constructor(config: IConfig<T>) { this.DEBUG_LEVEL = config.DEBUG_LEVEL; this.DATABASE = config.DATABASE; this.LOG_FOLDER = config.LOG_FOLDER; } }