Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "service/Service"

Index

Classes

Object literals

Object literals

Const argChecks

argChecks: object

Functions to check argument validity and throw INVALID_ARGUMENT when invalid.

HAS_HOST

  • HAS_HOST(__namedParameters: { host: string }): void

HAS_NODE_IDENTIFIER

  • HAS_NODE_IDENTIFIER(__namedParameters: { nodeIdentifier: string }): void
  • Parameters

    • __namedParameters: { nodeIdentifier: string }
      • nodeIdentifier: string

    Returns void

HAS_NODE_PUB_KEY

  • HAS_NODE_PUB_KEY(__namedParameters: { nodePubKey: string }): void

HAS_ORDER_ID

  • HAS_ORDER_ID(__namedParameters: { orderId: string }): void

HAS_PAIR_ID

  • HAS_PAIR_ID(__namedParameters: { pairId: string }): void

HAS_RHASH

  • HAS_RHASH(__namedParameters: { rHash: string }): void

POSITIVE_AMOUNT

  • POSITIVE_AMOUNT(__namedParameters: { amount: number }): void

PRICE_MAX_DECIMAL_PLACES

  • PRICE_MAX_DECIMAL_PLACES(__namedParameters: { price: number }): void

PRICE_NON_NEGATIVE

  • PRICE_NON_NEGATIVE(__namedParameters: { price: number }): void

VALID_CURRENCY

  • VALID_CURRENCY(__namedParameters: { currency: string }): void

VALID_FEE

  • VALID_FEE(__namedParameters: { fee: undefined | number; swapClient: undefined | Lnd | Connext }): void

VALID_PORT

  • VALID_PORT(__namedParameters: { port: number }): void

VALID_SWAP_CLIENT

  • VALID_SWAP_CLIENT(__namedParameters: { swapClient: number }): void

Generated using TypeDoc