Class P2PPaymentService

Hierarchy

Index

Properties

Readonly p2pPaymentDepositAddress$

p2pPaymentDepositAddress$: UniqueSubject<string> = new UniqueSubject<string>()

Accessors

p2pPaymentDepositAddress

  • get p2pPaymentDepositAddress(): string
  • Returns string

Methods

buildP2PPaymentDepositWithdrawalTransactionRequest

decreaseP2PPaymentDeposit

  • decreaseP2PPaymentDeposit(token: string, amount: BigNumber): Promise<P2PPaymentDeposit>

destroy

  • destroy(): void

getP2PPaymentChannel

getP2PPaymentChannelPayments

getP2PPaymentChannels

  • getP2PPaymentChannels(senderOrRecipient: string, filters: { uncommittedOnly: boolean }, page?: number): Promise<P2PPaymentChannels>
  • Parameters

    • senderOrRecipient: string
    • filters: { uncommittedOnly: boolean }
      • uncommittedOnly: boolean
    • Default value page: number = null

    Returns Promise<P2PPaymentChannels>

getP2PPaymentChannelsAdmin

increaseP2PPaymentChannelAmount

  • increaseP2PPaymentChannelAmount(recipient: string, token: string, value: BigNumber, uidSalt?: string): Promise<P2PPaymentChannel>
  • Parameters

    • recipient: string
    • token: string
    • value: BigNumber
    • Default value uidSalt: string = null

    Returns Promise<P2PPaymentChannel>

init

signP2PPaymentChannel

syncP2PPaymentDeposit

syncP2PPaymentDeposits

updateP2PPaymentChannel

  • updateP2PPaymentChannel(recipient: string, token: string, totalAmount: BigNumber, uidSalt?: string): Promise<P2PPaymentChannel>
  • Parameters

    • recipient: string
    • token: string
    • totalAmount: BigNumber
    • Default value uidSalt: string = null

    Returns Promise<P2PPaymentChannel>

updateP2PPaymentDeposit

  • updateP2PPaymentDeposit(token: string, totalAmount: BigNumber): Promise<P2PPaymentDeposit>