Description
Allow tools that accept addresses to also accept ENS names (e.g., vitalik.eth).
Current behavior
Address parameters accept:
- Ethereum addresses (
0x1234...)
- Participant names from the trust registry (
"WeatherOracle")
- Self-reference (
"me")
- Index reference (
"#1", "#2")
Proposed behavior
Also accept ENS names like vitalik.eth, resolving them via the ENS registry on L1.
Suggested approach
- Detect
.eth suffix in the address resolver (src/utils/)
- Use viem's
getEnsAddress to resolve
- Cache resolutions to avoid repeated lookups
- Fall through to existing resolution if ENS fails
Description
Allow tools that accept addresses to also accept ENS names (e.g.,
vitalik.eth).Current behavior
Address parameters accept:
0x1234...)"WeatherOracle")"me")"#1","#2")Proposed behavior
Also accept ENS names like
vitalik.eth, resolving them via the ENS registry on L1.Suggested approach
.ethsuffix in the address resolver (src/utils/)getEnsAddressto resolve