Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "utils/simnet-connext-channels"

Index

Type aliases

Balances

Balances: { channelBalance: number; walletBalance: number }

Type declaration

  • channelBalance: number
  • walletBalance: number

ChannelConfig

ChannelConfig: { channelAmount: number; currency: string; minChannelAmount: number }

Type declaration

  • channelAmount: number
  • currency: string
  • minChannelAmount: number

ChannelsConfig

ChannelsConfig: { channels: ChannelConfig[]; retryInterval: number }

Type declaration

Functions

Const checkBalanceObservable

  • checkBalanceObservable(client: XudClient, currency: string, minimumBalance: number): Observable<Balances>

Const createSimnetChannel

  • createSimnetChannel(__namedParameters: { channelAmount: number; currency: string; minChannelAmount: number; retryInterval: number }): Observable<string>
  • Parameters

    • __namedParameters: { channelAmount: number; currency: string; minChannelAmount: number; retryInterval: number }
      • channelAmount: number
      • currency: string
      • minChannelAmount: number
      • retryInterval: number

    Returns Observable<string>

Const createSimnetChannels

Const faucetRequest

  • faucetRequest(connextAddress: string): Promise<unknown>

Const getBalance

  • getBalance(client: XudClient, currency?: undefined | string): Promise<GetBalanceResponse>

Const getConnextAddressObservable

  • getConnextAddressObservable(client: XudClient): Observable<string>

Const getInfo

  • getInfo(client: XudClient): Promise<GetInfoResponse>

Const openConnextChannel

  • openConnextChannel(client: XudClient, currency: string, amount: number): Promise<OpenChannelResponse>

Const processResponse

  • processResponse(resolve: Function, reject: Function): (Anonymous function)

Generated using TypeDoc