Registering .eth names on L1 Ethereum can be very expensive with costs of $30 or more when gas prices on the network are high. While registering second-level .eth names like vitalik.eth is limited to L1 Ethereum, subnames such as mike.isme.eth can be registered off-chain or on Layer 2, offering significantly lower fees.
Currently, there is no official ENS Layer 2 registry for subname registration. Using a mix of ENS contracts from L1 Ethererum, modified ENS contracts and new contracts we have create a system for registering subnames on L2s, as well as demonstrated the ability to register second level .eth names, such as vitalik.eth. Key objectives include:
To register subnames on L2, we use the ENS registry along with an upgraded version of the NameWrapper (L2NameWrapper) contract. The ERC-721 based resolver, currently present on L1, has been removed, as its functionality is now integrated into our L2NameWrapper contract. For registering subnames on L2 we use a new custom registrar, that allows any parent name owner to easily configure their name for subname rentals using Renewal Controllers, a specialized contract used exclusivly for renewing subnames.
Renewal Controllers enable subname owners to renew their subnames, such as mike.isme.eth, without needing permission from the parent name owner, i.e., isme.eth. Subnames can be assigned a renewal controller upon registration, which cannot be removed by anyone and can be owned by third parties, whose role is to ensure a stable long-term price for renewing subnames.
ENS currently has no system in place for compensating referrers who refer users to register .eth names on L1 Ethereum. Referrer Accounts on L2 allow for anyone who refers a user to register or renew a .eth name to receive a cut of the fees, which acrue over time and can be withdrawn by the referrer onchain.
As well as creating a registration and renewal system for ENS subnames on L2, we have also designed the L2NameWrapper contract to allow for the registration of second-level .eth names, such as vitalik.eth. The ENS DAO controls the resolver record of .eth and, therefore, is able to permit the registration of second-level .eth names on an L2 if they choose. Alongside the L2NameWrapper contract, we have developed a custom registrar contract (L2EthRegistrar) that could be owned and operated by the ENS DAO to register ENS second-level names on L2. We also intend to enhance the system further with an upgraded version of the L1 NameWrapper smart contract that enables any name on L2 to upgrade to L1 at any time.
We are building a smart contract based system that extends the capabilities of the Ethereum Name Service (ENS) NameWrapper contract, enabling "unruggable" rentals of .eth domain subnames. The system allows domain name owners to offer subnames for rent with the assurance of automatic renewals based on predetermined conditions, such as timely payments.
Our system provides essential functionality for decentralized and trustless subname rentals in the Ethereum Name Service (ENS) ecosystem. By extending the capabilities of the NameWrapper contract, it addresses the following challenges:
Traditionally, subname rentals involve a certain level of trust between the parent domain name owner and the renter. Or system eliminates this trust requirement by contractually binding renter and rentee to a set of pre-defined conditions.
Our solution allows parent domain names to specify custom renewal conditions, ensuring a transparent and predictable rental experience for both parties.
By leveraging the capabilities of the NameWrapper contract, our system simplifies the process of creating, renting, and renewing subnames. In summary, our system is necessary to promote a more secure, transparent, and efficient rental experience for ENS subnames.