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

Add option to use native tracer in replay #84

Merged
merged 2 commits into from
Aug 20, 2024
Merged

Conversation

gligneul
Copy link
Contributor

Description

We developed a native Go tracer in Nitro to be used in Cargo Stylus Replay (OffchainLabs/nitro#2560). During this process, we also improved the JS tracer to be compatible with the native one. This PR adds those improvements to the JS tracer in Stylus Replay and a CLI option for using the native tracer. The native tracer won't be enabled by default because it isn't released yet. We can deprecate the JS tracer once the native tracer is released and proven to work correctly.

Checklist

  • I have documented these changes where necessary.
  • I have read the DCO and ensured that these changes comply.
  • I assign this work under its open source licensing.

Handle EVM calls in the traces and encode binary data as hex.
}

#[test]
fn parse_call() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice tests!

@rauljordan rauljordan merged commit 2707d89 into main Aug 20, 2024
7 checks passed
@rauljordan rauljordan deleted the gligneul/improve-tracer branch August 20, 2024 15:50
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.

2 participants