alloy-rs / core

High-performance, well-tested & documented core libraries for Ethereum, in Rust
https://alloy.rs
Apache License 2.0
786 stars 149 forks source link

[Feature] Allow deserializing ethabi decoded events dynamically #549

Closed KaiserKarel closed 2 months ago

KaiserKarel commented 8 months ago

Component

json-abi

Describe the feature you would like

It would be great if the json-abi could be used for programs that load abis during runtime to deserialize events into JSON or other structures. Something like

Event::parser(events).parse::<T: Deserialize>(bytes);

This is useful for indexers and database usage.

Additional context

No response