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

chore: move trace methods from Provider to TraceApi #818

Merged
merged 1 commit into from
Jun 3, 2024
Merged

chore: move trace methods from Provider to TraceApi #818

merged 1 commit into from
Jun 3, 2024

Conversation

RexCloud
Copy link
Contributor

@RexCloud RexCloud commented Jun 3, 2024

Motivation

This comment above some trace methods
// todo: move to extension trait

Solution

Moved trace related methods, types and tests from provider/trait.rs to ext/trace.rs

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

fn trace_call<'a, 'b>(
&self,
request: &'a N::TransactionRequest,
trace_type: &'b [TraceType],
Copy link
Member

Choose a reason for hiding this comment

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

cc @mattsse my guess is we could also return a builder that's called TraceRpcWithBlock or similar? since we default to ["trace"] most times?

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.

moving them makes sense,

+1 on having a call type for endpoints that accept a list of tracetype for TraceCallList

and perhaps even a helper arg type for

@mattsse mattsse merged commit eaf5355 into alloy-rs:main Jun 3, 2024
24 checks passed
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 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