Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "service/Service"

Index

Classes

Type aliases

Object literals

Type aliases

ServiceComponents

ServiceComponents: object

The components required by the API service layer.

Type declaration

  • orderBook: OrderBook
  • pool: Pool
  • shutdown: function

    The function to be called to shutdown the parent process

      • (): void
      • Returns void

  • swapClientManager: SwapClientManager
  • swaps: Swaps
  • version: string

    The version of the local xud instance.

XudInfo

XudInfo: object

Type declaration

  • alias: string
  • lnd: Map<string, LndInfo>
  • network: string
  • nodePubKey: string
  • numPairs: number
  • numPeers: number
  • orders: object
    • own: number
    • peer: number
  • pendingSwapHashes: string[]
  • Optional raiden?: RaidenInfo
  • uris: string[]
  • version: string

Object literals

Const argChecks

argChecks: object

Functions to check argument validity and throw INVALID_ARGUMENT when invalid.

HAS_HOST

  • HAS_HOST(__namedParameters: object): void

HAS_NODE_PUB_KEY

  • HAS_NODE_PUB_KEY(__namedParameters: object): void

HAS_ORDER_ID

  • HAS_ORDER_ID(__namedParameters: object): void

HAS_PAIR_ID

  • HAS_PAIR_ID(__namedParameters: object): void

HAS_PEER_PUB_KEY

  • HAS_PEER_PUB_KEY(__namedParameters: object): void

HAS_RHASH

  • HAS_RHASH(__namedParameters: object): void

POSITIVE_AMOUNT

  • POSITIVE_AMOUNT(__namedParameters: object): void

POSITIVE_QUANTITY

  • POSITIVE_QUANTITY(__namedParameters: object): void

PRICE_NON_NEGATIVE

  • PRICE_NON_NEGATIVE(__namedParameters: object): void

VALID_CURRENCY

  • VALID_CURRENCY(__namedParameters: object): void

VALID_PORT

  • VALID_PORT(__namedParameters: object): void

VALID_SWAP_CLIENT

  • VALID_SWAP_CLIENT(__namedParameters: object): void

Generated using TypeDoc