Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Config

Hierarchy

  • Config

Index

Constructors

constructor

Properties

dbpath

dbpath: string

The file path for the database, or ':memory:' if the database should be kept in memory.

debug

debug: object

Type declaration

  • raidenDirectChannelChecks: boolean

http

http: object

Type declaration

  • host: string
  • port: number

initdb

initdb: boolean = true

Whether to intialize a new database with default values.

instanceid

instanceid: number = 0

lnd

lnd: object

Type declaration

logdateformat

logdateformat: string

loglevel

loglevel: string

logpath

logpath: string

network

network: XuNetwork

nobalancechecks

nobalancechecks: boolean = false

Whether to disable balance checks that verify that the orders can possibly be swapped before adding them to the order book.

noencrypt

noencrypt: boolean = true

Whether a password should not be used to encrypt the xud key and underlying wallets.

nomatching

nomatching: boolean = false

Whether matching will be disabled

nosanityswaps

nosanityswaps: boolean = true

Whether to disable sanity swaps that verify that the orders can possibly be swapped before adding trading pairs as active.

orderthresholds

orderthresholds: OrderBookThresholds

p2p

raiden

rpc

rpc: object

Type declaration

  • disable: boolean
  • host: string
  • port: number

webproxy

webproxy: object

Type declaration

  • disable: boolean
  • port: number

xudir

xudir: string

Methods

Private getDefaultDbPath

  • getDefaultDbPath(): string

Private getDefaultLogLevel

  • getDefaultLogLevel(): string

Private getDefaultLogPath

  • getDefaultLogPath(): string

Private getDefaultP2pPort

  • getDefaultP2pPort(): 8885 | 18885 | 28885 | 38885

Private getNetwork

load

  • load(args?: undefined | object): Promise<boolean>
  • Loads the xud configuration from an optional file and any command line arguments.

    Parameters

    • Optional args: undefined | object

    Returns Promise<boolean>

    a promise that resolves to true if a config file was found and loaded, otherwise false

Private mkDirIfNotExist

  • mkDirIfNotExist(dirPath: string): Promise<void>
  • Creates a directory if it does not exist, otherwise does nothing.

    Parameters

    • dirPath: string

    Returns Promise<void>

Private setDefaultMacaroonPaths

  • setDefaultMacaroonPaths(): void

Static Private readConfigProps

  • readConfigProps(configPath: string): Promise<any>
  • Parameters

    • configPath: string

    Returns Promise<any>

Generated using TypeDoc