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(anvil): add trace_replayBlockTransactions endpoint #8776

Open
Tracked by #8269
anna-carroll opened this issue Aug 29, 2024 · 0 comments
Open
Tracked by #8269

feat(anvil): add trace_replayBlockTransactions endpoint #8776

anna-carroll opened this issue Aug 29, 2024 · 0 comments
Labels
C-anvil Command: anvil T-feature Type: feature

Comments

@anna-carroll
Copy link

anna-carroll commented Aug 29, 2024

Component

Anvil

Describe the feature you would like

It would be awesome if anvil supported parity's trace_replayBlockTransactions endpoint.

Additional context

I am attempting to write some developer tooling for programmatically producing genesis file alloc fields for their pre-deployed contracts. I want to enable developers to simply write a forge script that deploys their system contracts, then programmatically transform the results of that script into alloc JSON.

I am using heimdall dump module pointed at anvil to discover all storage slot values for a deployed contract. heimdall dump relies on the trace_replayBlockTransactions endpoint to produce the state diffs (1, 2), but this endpoint isn't currently supported in anvil.

cast storage isn't perfect for this because it doesn't work well with proxies or immutable variables (#5437), nor does it show values stored in mappings, nor values manually sstore'd at hashed storage slots.

@anna-carroll anna-carroll added T-feature Type: feature T-needs-triage Type: this issue needs to be labelled labels Aug 29, 2024
@anna-carroll anna-carroll changed the title add trace_replayBlockTransactions endpoint feat(anvil): add trace_replayBlockTransactions endpoint Aug 29, 2024
@zerosnacks zerosnacks added C-anvil Command: anvil and removed T-needs-triage Type: this issue needs to be labelled labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-anvil Command: anvil T-feature Type: feature
Projects
None yet
Development

No branches or pull requests

2 participants