Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "p2p/packets/utils"

Index

Functions

Const convertLndUris

  • convertLndUris(kvpArray: [string, pb.LndUris.AsObject][]): {}

Const convertNodeState

  • convertNodeState(nodeState: pb.NodeState.AsObject): { addresses: { host: string; port: number }[]; connextIdentifier: string; lndPubKeys: {}; lndUris: {}; pairs: string[]; tokenIdentifiers: {} }
  • Parameters

    • nodeState: pb.NodeState.AsObject

    Returns { addresses: { host: string; port: number }[]; connextIdentifier: string; lndPubKeys: {}; lndUris: {}; pairs: string[]; tokenIdentifiers: {} }

    • addresses: { host: string; port: number }[]
    • connextIdentifier: string
    • lndPubKeys: {}
      • [key: string]: T
    • lndUris: {}
      • [key: string]: string[]
    • pairs: string[]
    • tokenIdentifiers: {}
      • [key: string]: T

Const serializeNodeState

  • serializeNodeState(nodeState: NodeState): NodeState

Const setLndUrisMap

  • setLndUrisMap(obj: any, map: { set: (key: string, value: any) => any }): void
  • Parameters

    • obj: any
    • map: { set: (key: string, value: any) => any }
      • set: (key: string, value: any) => any
          • (key: string, value: any): any
          • Parameters

            • key: string
            • value: any

            Returns any

    Returns void

Const validateNodeState

  • validateNodeState(nodeState?: pb.NodeState.AsObject): boolean

Generated using TypeDoc