Class PaymentRegistryContract

Hierarchy

Index

Constructors

constructor

Properties

name

name: ContractNames

Accessors

address

  • get address(): string

Methods

computePaymentDepositAccountAddress

  • computePaymentDepositAccountAddress(saltOwner: string): string
  • Parameters

    • saltOwner: string

    Returns string

destroy

  • destroy(): void

Optional encodeCommitPaymentChannelAndDeposit

  • encodeCommitPaymentChannelAndDeposit(sender: string, token: string, uid: string, blockNumber: number, amount: BigNumberish, senderSignature: string, guardianSignature: string): TransactionRequest
  • Parameters

    • sender: string
    • token: string
    • uid: string
    • blockNumber: number
    • amount: BigNumberish
    • senderSignature: string
    • guardianSignature: string

    Returns TransactionRequest

Optional encodeCommitPaymentChannelAndWithdraw

  • encodeCommitPaymentChannelAndWithdraw(sender: string, token: string, uid: string, blockNumber: number, amount: BigNumberish, senderSignature: string, guardianSignature: string): TransactionRequest
  • Parameters

    • sender: string
    • token: string
    • uid: string
    • blockNumber: number
    • amount: BigNumberish
    • senderSignature: string
    • guardianSignature: string

    Returns TransactionRequest

Optional encodeWithdrawDeposit

  • encodeWithdrawDeposit(token: string, amount: BigNumberish, guardianSignature: string): TransactionRequest
  • Parameters

    • token: string
    • amount: BigNumberish
    • guardianSignature: string

    Returns TransactionRequest

hashDepositWithdrawal

  • hashDepositWithdrawal(owner: string, token: string, amount: BigNumberish): Buffer
  • Parameters

    • owner: string
    • token: string
    • amount: BigNumberish

    Returns Buffer

hashPaymentChannelCommit

  • hashPaymentChannelCommit(sender: string, recipient: string, token: string, uid: string, blockNumber: number, amount: BigNumberish): Buffer
  • Parameters

    • sender: string
    • recipient: string
    • token: string
    • uid: string
    • blockNumber: number
    • amount: BigNumberish

    Returns Buffer

init

parseLog