foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.31k stars 1.76k forks source link

Add state diff tracer to Anvil #5403

Open alex-miller-0 opened 1 year ago

alex-miller-0 commented 1 year ago

Component

Anvil

Describe the feature you would like

Anvil is an extremely useful tool for simulating a sequence of unsigned transactions and determining if any will revert. The eth_sendUnsignedTransaction appears to be without analogy in any other client/tool and is awesome! However, being able to simulate state diffs is important to many workflows as well.

Geth has several built in tracers, including one that is exceedingly useful called the prestateTracer.

It would be great if Anvil could incorporate a similar tracer to provide state diffs for simulated, unsigned transactions.

Additional context

No response

Ifechukwudaniel commented 1 year ago

This would be really awesome

0xad1onchain commented 1 year ago

Having support for prestateTracer as a tracer argument would be really useful

409H commented 1 month ago

+1, would really like to see this!