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 trace_filter RPC method #6410

Conversation

mike-code
Copy link

Motivation

#4129

Solution

I took a liberty of extending the the filter_trace call with mode parameter which allows to specify whether fromAddress and toAddress should be checked as a union or intersection. That is, if I pass two lists of both from and to addresses, should the trace addresses match both of them or either one of them. This isn't explicitly specified by the open ethereum docs so it makes sense to allow both and make it configurable.

tbd

  • unit tests

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.

thanks for this.

we're currently in the process of migrating to reth's rpc types and tracer impl
so we can reuuse
https://github.com/paradigmxyz/reth/blob/3598a23cf7dfdaa254d6507677db9e419563b8da/crates/rpc/rpc-types/src/eth/trace/filter.rs#L11-L11

very soon.
The implementation of trace filter looks good, but can likely simplified as well once we migrated to reth's tracer impl.

I hope we can make much progress on this within the next few days so we can also include this PR here.

@mike-code mike-code force-pushed the foundry-4129/trace-filter-support branch from e2e09da to de2377b Compare November 23, 2023 14:05
@mike-code mike-code force-pushed the foundry-4129/trace-filter-support branch from de2377b to 9dd44a0 Compare December 13, 2023 15:59
@zerosnacks zerosnacks self-assigned this Jul 2, 2024
@zerosnacks
Copy link
Member

Closing in favor of #8458

@zerosnacks zerosnacks closed this Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants