foundry icon indicating copy to clipboard operation
foundry copied to clipboard

feat(`anvil`): add support for JS tracer in Anvil

Open mattsse opened this issue 1 year ago • 5 comments

Component

Anvil

Describe the feature you would like

with new inspector crate we can now add JS tracing

reference impl

https://github.com/paradigmxyz/reth/blob/6430731fff06bfde15318667240d5738505fd6f8/crates/rpc/rpc/src/debug.rs#L551-L551

Note: because JS needs to access the DB we need to spawn a task that handles various db requests:

https://github.com/paradigmxyz/reth/blob/6430731fff06bfde15318667240d5738505fd6f8/crates/rpc/rpc/src/debug.rs#L645-L645

Additional context

No response

mattsse avatar Jan 11 '24 17:01 mattsse

Would love to have this feature as well! Hope it gets to Anvil.

krisdimitrov avatar Jan 15 '24 12:01 krisdimitrov

I would like to work on this

1010adigupta avatar Jan 16 '24 14:01 1010adigupta

@1010adigupta great! lmk when you need pointers

mattsse avatar Jan 16 '24 18:01 mattsse

Hi @1010adigupta, do you have any updates on this ticket or need help? We are happy to give pointers

zerosnacks avatar Jul 09 '24 15:07 zerosnacks

Hey @zerosnacks, if this is still available for dev, I'd be happy to take it. I would appreciate any pointers to get started since the reth code linked in the issue has changed. Ty 🙏

tsnewnami avatar Aug 26 '24 06:08 tsnewnami

Hi @EdwardJES sorry I had missed your tag! Assigned you

The updated links are:

https://github.com/paradigmxyz/reth/pull/6129

https://github.com/paradigmxyz/reth/blob/bb27f37cc703789eb41bb084892d44f770868e7d/crates/rpc/rpc/src/debug.rs#L400-L424

zerosnacks avatar Sep 23 '24 10:09 zerosnacks