Skip to content

Conversation

@zeluisping
Copy link

@zeluisping zeluisping commented Oct 21, 2025

Description

This PR integrates private event support into the EntryPointService's getUserOperationEvent method, enabling it to retrieve user operation events from private event logs.

Key Changes:

  • Private Event Querying: Updated getUserOperationEvent() to query for PrivateEvent
  • Event Filtering: Filters private events by eventType to only retrieve UserOperationEvent emissions
  • Event Unwrapping: Unwraps private event payloads and validates the userOpHash matches the requested operation
  • Search Behaviour: Checks for private events, filtering by eventType, to locate the requested user operation event
  • Error Handling: Added error logging for private event unwrapping failures without breaking the flow

Implementation Details:

  • Uses the centralised event ABI definitions and unwrapping utilities from utils/abi-events
  • Each private log is validated, unwrapped, and checked against the target userOpHash
  • Returns the first matching unwrapped event, maintaining the same return type as the public event path
  • Failed unwrapping attempts are logged, but don't prevent checking remaining logs

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • Removes support for public events of UserOperationEvent
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Further comments (optional)

  • Removed support for the public events that were privatised; these are now handled solely as PrivateEvents

@zeluisping zeluisping requested a review from seromenho October 21, 2025 11:44
@zeluisping zeluisping self-assigned this Oct 21, 2025
@zeluisping zeluisping added the enhancement New feature or request label Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant