Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add a method for an in-memory comparison between a Filter and Log #2179

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

startup-dreamer
Copy link
Contributor

Cloese: #1943

Added matches_log method that Adds ability to check if a Log matches a Filter entirely in memory, without requiring RPC calls. This is particularly useful when filtering logs from a single transaction that you already have in memory.

@kayabaNerve do you think something like this is what was needed.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@startup-dreamer startup-dreamer changed the title feat: add a method for an in-memory comparison between a Filter and a… feat: add a method for an in-memory comparison between a Filter and Log Mar 11, 2025
@startup-dreamer
Copy link
Contributor Author

Please review @yash-atreya, I think tests can be improved (but let me know).

@kayabaNerve
Copy link
Contributor

Without certifying the accuracy of the function, this is the exact intent I had! Thank you.

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, yeah I think we want this,

need some time to properly review this because filters give me headaches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

4 participants