Class UserOperationEventListener

This class encapsulates Ethers.js listener function and necessary UserOperation details to discover a TransactionReceipt for the operation.

Hierarchy

  • UserOperationEventListener

Index

Constructors

constructor

  • new UserOperationEventListener(resolve: (t: TransactionReceipt) => void, reject: (reason?: any) => void, entryPoint: EntryPoint, sender: string, userOpHash: string, nonce?: BigNumberish, timeout?: number): UserOperationEventListener
  • Parameters

    • resolve: (t: TransactionReceipt) => void
        • (t: TransactionReceipt): void
        • Parameters

          • t: TransactionReceipt

          Returns void

    • reject: (reason?: any) => void
        • (reason?: any): void
        • Parameters

          • Optional reason: any

          Returns void

    • entryPoint: EntryPoint
    • sender: string
    • userOpHash: string
    • Optional nonce: BigNumberish
    • Optional timeout: number

    Returns UserOperationEventListener

Properties

boundLisener

boundLisener: (this: any, ...param: any) => void

Type declaration

    • (this: any, ...param: any): void
    • Parameters

      • this: any
      • Rest ...param: any

      Returns void

Readonly entryPoint

entryPoint: EntryPoint

Optional Readonly nonce

nonce: BigNumberish

Readonly reject

reject: (reason?: any) => void

Type declaration

    • (reason?: any): void
    • Parameters

      • Optional reason: any

      Returns void

Readonly resolve

resolve: (t: TransactionReceipt) => void

Type declaration

    • (t: TransactionReceipt): void
    • Parameters

      • t: TransactionReceipt

      Returns void

resolved

resolved: boolean = false

Readonly sender

sender: string

Optional Readonly timeout

timeout: number

Readonly userOpHash

userOpHash: string

Methods

extractFailureReason

  • extractFailureReason(receipt: TransactionReceipt): Promise<void>
  • Parameters

    • receipt: TransactionReceipt

    Returns Promise<void>

listenerCallback

  • listenerCallback(this: any, ...param: any): Promise<void>
  • Parameters

    • this: any
    • Rest ...param: any

    Returns Promise<void>

start

  • start(): void
  • Returns void

stop

  • stop(): void
  • Returns void