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 thisENSIP Proposal.

Desired outcome

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

Acceptance tests

Passed

Display ENS names for smart contracts on L2 chains

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

l2-chain-interactions-display-named-smart-contracts acceptance test

Benchmark notes

Benchmark placeholder notes

example proof

Implementation recommendations

When users interact with a contract on an L2 chain, use theENSIP-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 benchmark results

Passed

Last updated

Contributors

All benchmarks on ENSAwards are open for public contribution.

Submit a 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