alloy-rs / alloy

Transports, Middleware, and Networks for the Alloy project
https://alloy.rs
Apache License 2.0
584 stars 213 forks source link

[Feature] Add Resolve ENS trait as extension trait #491

Open mattsse opened 5 months ago

mattsse commented 5 months ago

Component

network, json-rpc, provider, pubsub

Describe the feature you would like

ref https://github.com/foundry-rs/foundry/pull/7106/files#diff-122addc5d51c48daa1cf5a210987b086bc26fba01e8912d137afd24f6101e060R101

TODO

add an extension trait for this, similar to:

https://github.com/alloy-rs/alloy/blob/5f74d4e7a417662489e4165236c1251fee8e6078/crates/provider/src/admin.rs#L11-L11

Additional context

No response

prestwich commented 5 months ago

Note that ENS resolutions are stateful as the resolver address may differ