2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-10-31 09:20:27 +00:00
RTL/server/models/config.model.ts

81 lines
2.1 KiB
TypeScript
Raw Normal View History

2021-12-29 23:08:41 +00:00
export class CommonSelectedNode {
constructor(
public options?: any,
public ln_server_url?: string,
public macaroon_path?: string,
public macaroon_value?: string,
public rune_path?: string,
public rune_value?: string,
2021-12-29 23:08:41 +00:00
public ln_api_password?: string,
public swap_server_url?: string,
public boltz_server_url?: string,
public config_path?: string,
public rtl_conf_file_path?: string,
public swap_macaroon_path?: string,
public boltz_macaroon_path?: string,
public bitcoind_config_path?: string,
public channel_backup_path?: string,
public log_level?: string,
public log_file?: string,
public index?: string,
public ln_node?: string,
public ln_implementation?: string,
public user_persona?: string,
public theme_mode?: string,
public theme_color?: string,
public unannounced_channels?: boolean,
2021-12-29 23:08:41 +00:00
public fiat_conversion?: boolean,
public currency_unit?: string,
public ln_version?: string,
public api_version?: string,
public enable_offers?: boolean,
public enable_peerswap?: boolean
2021-12-29 23:08:41 +00:00
) { }
}
export class AuthenticationConfiguration {
constructor(
public configPath?: string,
public swapMacaroonPath?: string,
public boltzMacaroonPath?: string
) { }
}
export class NodeSettingsConfiguration {
constructor(
public userPersona?: string,
public themeMode?: string,
public themeColor?: string,
public unannouncedChannels?: boolean,
2021-12-29 23:08:41 +00:00
public fiatConversion?: boolean,
public currencyUnit?: string,
public bitcoindConfigPath?: string,
public logLevel?: string,
public lnServerUrl?: string,
public swapServerUrl?: string,
public boltzServerUrl?: string,
public channelBackupPath?: string,
public enableOffers?: boolean,
public enablePeerswap?: boolean
2021-12-29 23:08:41 +00:00
) { }
}
export class LogJSONObj {
constructor(
public level?: string,
public msg?: string,
public data?: string | any | any[],
public error?: string | any,
public fileName?: string,
public selectedNode?: CommonSelectedNode
) { }
}