WalletChan

Display named smart contracts on L2 chains

Display ENS names instead of addresses when users interact with named smart contracts on L2 chains.

Passed benchmark result indicator

Passed

ENS best practice benchmark report

ENSIP-19 enables primary names to be set on any chain. Contracts deployed to an L2 chain benefit from this, as the contract can then configure its name directly on the chain it is deployed to without any need to update state on mainnet. If a contract has an ENS name, you can use the contract's ENS profile to power additional UX improvements such as displaying the contract's avatar, metadata, audit information, and more. More information can be found at this ENSIP Proposal.

Benefit from using ENS

Users can easily identify and interact with named smart contracts on an L2 chain, improving security and user experience.

Acceptance Test 1

When users interact with named smart contracts on an L2 chain the app should display the contract's name as its primary identifier.

Test 1 Result Passed

TODO: Add correct Benchmark notes

example proof
Test completed
Contributed by

Implementation recommendations

When users interact with a contract on an L2 chain, use the ENSIP-19 standard to lookup the primary name of the contract. ENSIP-19 provides chain-specific primary names for L2 networks (including Optimism, Arbitrum, Base, Linea, and Scroll), with an automatic fallback to a default primary name (defined on mainnet) if no chain-specific primary name is defined. There are several libraries to choose from that support ENSIP-19 and all ENS best practices:



Libraries and tools for additional languages or frameworks can be found in the ENS documentation.

Benchmark summary

Category

Contract naming

Acceptance test results

Passed

Last updated

Contributors

All benchmarks on ENSAwards are open for public contribution.

Founded in 2022, Namehash Labs is dedicated to developing open source infrastructure that helps the Ethereum Name Service (ENS) Protocol grow.

© NameHash Labs. All Rights Reserved

Made with❤️byNameHash Labs