Class PaymentHubService

Hierarchy

Index

Methods

activatePaymentHubBridge

  • activatePaymentHubBridge(token: string, acceptedChainId: number, acceptedToken?: string): Promise<PaymentHubBridge>
  • Parameters

    • token: string
    • acceptedChainId: number
    • Default value acceptedToken: string = null

    Returns Promise<PaymentHubBridge>

createPaymentHubPayment

  • createPaymentHubPayment(hub: string, token: string, recipient: string, value: BigNumber): Promise<PaymentHubPayment>
  • Parameters

    • hub: string
    • token: string
    • recipient: string
    • value: BigNumber

    Returns Promise<PaymentHubPayment>

deactivatePaymentHubBridge

  • deactivatePaymentHubBridge(token: string, acceptedChainId: number, acceptedToken?: string): Promise<PaymentHubBridge>
  • Parameters

    • token: string
    • acceptedChainId: number
    • Default value acceptedToken: string = null

    Returns Promise<PaymentHubBridge>

destroy

  • destroy(): void

getPaymentHub

  • getPaymentHub(hub: string, token?: string): Promise<PaymentHub>
  • Parameters

    • hub: string
    • Default value token: string = null

    Returns Promise<PaymentHub>

getPaymentHubBridge

  • getPaymentHubBridge(hub: string, token: string, acceptedChainId: number, acceptedToken: string): Promise<PaymentHubBridge>
  • Parameters

    • hub: string
    • token: string
    • acceptedChainId: number
    • acceptedToken: string

    Returns Promise<PaymentHubBridge>

getPaymentHubBridges

  • getPaymentHubBridges(hub: string, token?: string, acceptedChainId?: number, page?: number): Promise<PaymentHubBridges>
  • Parameters

    • hub: string
    • Default value token: string = null
    • Default value acceptedChainId: number = null
    • Default value page: number = null

    Returns Promise<PaymentHubBridges>

getPaymentHubDeposit

  • getPaymentHubDeposit(hub: string, token?: string, owner: string): Promise<PaymentHubDeposit>
  • Parameters

    • hub: string
    • Default value token: string = null
    • owner: string

    Returns Promise<PaymentHubDeposit>

getPaymentHubDeposits

  • getPaymentHubDeposits(hub: string, tokens?: string[], owner: string, page?: number): Promise<PaymentHubDeposits>
  • Parameters

    • hub: string
    • Default value tokens: string[] = []
    • owner: string
    • Default value page: number = null

    Returns Promise<PaymentHubDeposits>

getPaymentHubPayment

getPaymentHubPayments

  • getPaymentHubPayments(hub: string, token?: string, senderOrRecipient: string, page?: number): Promise<PaymentHubPayments>
  • Parameters

    • hub: string
    • Default value token: string = null
    • senderOrRecipient: string
    • Default value page: number = null

    Returns Promise<PaymentHubPayments>

getPaymentHubs

  • getPaymentHubs(hub?: string, token?: string, page?: number): Promise<PaymentHubs>
  • Parameters

    • Default value hub: string = null
    • Optional token: string
    • Default value page: number = null

    Returns Promise<PaymentHubs>

init

transferPaymentHubDeposit

  • transferPaymentHubDeposit(hub: string, token: string, value: BigNumber, targetChainId: number, targetHub?: string, targetToken?: any): Promise<PaymentHubDeposit>
  • Parameters

    • hub: string
    • token: string
    • value: BigNumber
    • targetChainId: number
    • Default value targetHub: string = null
    • Default value targetToken: any = null

    Returns Promise<PaymentHubDeposit>

updatePaymentHub

  • updatePaymentHub(liquidity: BigNumber, token?: string): Promise<PaymentHub>
  • Parameters

    • liquidity: BigNumber
    • Default value token: string = null

    Returns Promise<PaymentHub>

updatePaymentHubDeposit

  • updatePaymentHubDeposit(hub: string, totalAmount: BigNumber, token?: string): Promise<PaymentHubDeposit>
  • Parameters

    • hub: string
    • totalAmount: BigNumber
    • Default value token: string = null

    Returns Promise<PaymentHubDeposit>