Name Wrapper update

I just wanted to give a quick update on the status of the Name Wrapper contract.

@Premm.eth contributed a change that allows for upgrading to a new version of the wrapper. It functions such that the DAO must approve the upgraded version, and then individual users must execute the upgrade; upgrades cannot be forced by either party.

I contributed a change to refactor how subdomain replacement is controlled; instead of a flag on parent domains that prevents overwriting any child domain, there is now a flag on each domain that specifies the parent cannot replace it. This allows people to issue ā€˜irrevocableā€™ subdomains without removing their ability to control all subdomains.

Weā€™ve refactored some of the methods that handle subdomain creation/update/replacement, to assume that the subdomain will also be wrapped. This simplifies the API a lot.

Jeff and I have come up with a way to enable fuses to have expirations attached. With the current version of the wrapper, we had the issue that fuses are burned ā€˜permanentlyā€™ but can still be revoked when the second-level domain expires and is reregistered. Integrating expirations for fuses into the wrapper makes this model explicit, and solves several issues we had:

  • Because each nameā€™s fuses now have expiration dates attached, itā€™s now possible to check if a name is ā€˜safeā€™ against interference by parent domain owners by checking just that nameā€™s fuses and expiration.
  • As a result, we no longer need the complex logic for checking a nameā€™s entire hierarchy, and itā€™s now practical and affordable to check a nameā€™s mutability onchain.
  • Users will now be able to ā€˜rentā€™ subdomains by revoking their control over them for a limited period.

The rules around fuses and expiries are as follows:

  1. Every name has fuses and an expiry for those fuses.
  2. If the expiry is in the past, the fuses are cleared (set to their most permissive state)
  3. The expiry can only be increased, not decreased.
  4. The expiry cannot be greater than the parent domainā€™s expiry.
  5. The expiry on a .eth second level domain cannot be greater than the expiry of the domain itself in the registrar.
  6. Only the owner of the parent domain can set an expiry.

We aim to have the new version of the wrapper available for review some time this week.

23 Likes

Niceā€“This is A Lot of positive development!

Thank you, @nick.eth, @Premm.eth, Jeff, & Teams.

5 Likes

Great job everyone who is working on this! Really some giga-brain solutions here. Very proud of you all!

To be clear on one thing, the Name Wrapper updates only apply to .eth ENS names correct? These updates do not apply to DNS names imported into ENS right?

Hoping the ENS Youtube channel will go over these changes in some kind of workshop or slideshow with a dev explaining the thinking and possibilities. A part 2 to this one:

ENS Workshop 1: ENS as NFT v2 (aka Name Wrapper)

Though, Iā€™m not sure of what timing is most beneficial. When the new version is review-able? Or, just a workshop after itā€™s released?

Anyhow, this is all really exciting. Great work everyone. :partying_face:

4 Likes

Very Nice Progress!

3 Likes

DNS names can be wrapped using the wrapper. Second-level domains (Eg, google.com) will be non-transferable, and DNS domains at all levels wonā€™t be able to use fuses.

7 Likes

Will wrapped names be under a new, separate collection on OpenSea?

2 Likes

@aox.eth, Yes.

2 Likes

This is great news! You guys are incredible and the community holds you all in such a high regard. Have you seen / heard some of the things people are building out there ? Some really really ā€œEnspirationalā€ ideas being worked on.
:star_struck::raised_hands:t4::people_hugging::globe_with_meridians:

3 Likes

What is everyones take on the cb.id move by Coinbase? To me it seems offensive towards ENS in nature as it seems they intend to establish the ā€œstandardā€ web3 domain name service as their own cb.id VS the decentralized ENS.

2 Likes

.cb.id uses ens - both the new features we just released to support offchain resolution and DNS integration. Weā€™re delighted theyā€™re building on top of it!

10 Likes

Cool. I guess I just dont understand it well enough. Good to know though. Thank you.

1 Like

Iā€™ve got a question about the expiry and renewals.

Letā€™s say I have a .eth 2LD that is registered for 1 year. And letā€™s say I just want people who register subdomains to be guaranteed to own them forever (or as long as the parent .eth name is not expired).

When a subdomain is registered and wrapped, as I understand it, the expiry on that subdomain can only be set up to a maximum of whatever the parent expiry is. There is no way to say ā€œthis subdomain should expire when the parent expiresā€, you have to set an explicit numeric value. And if you want fuses to be active, then you canā€™t set the expiry to 0, because thatā€™s just the same as the subdomain already being ā€œexpiredā€, and getData will always return unset/cleared fuses in that case. So I have no choice but to set all registered subdomains to expire in 1 year as well, since thatā€™s the maximum that it can go in this case.

So I wrap that name and have a subdomain registrar, and issue a bunch of subdomains.

Now letā€™s say I renew the .eth 2LD for another year, calling the renew method on the NameWrapper. If Iā€™m understanding correctly, this only updates the expiry of the .eth 2LD node in the wrapper, and the expiries of any wrapped subdomains are unchanged. So now the .eth 2LD expires in 2 years, but all the subdomains still expire in 1 year.

If my goal is to just have all subdomains expire whenever the .eth 2LD expires, then do I also now need to call setChildFuses for every individual subdomain (of which there could be hundreds or thousands), whenever the parent expiry increases? Or is there something Iā€™m missing?

4 Likes

@serenae
That is correct, if you thought you were going to run into a situation like this it would be best to extend your name before issuing subnames.

You could also approve your own contract to use setChildFuses and then let users change the expiry themselves.

4 Likes

Makes sense, it would probably be more scalable to just let the subdomain owners re-up their expiry by themselves. It would be an extra transaction for them, but not something that should come up very often.

And even if the subdomain ā€œexpiresā€, that doesnā€™t necessarily mean theyā€™d lose the subdomain NFT or anything, at least not immediately. It just means that the parent owner could technically now replace/rewrap since the fuses are now cleared.

===========

Editing this reply because Iā€™m not allowed to reply consecutively

FYI great update here:

@jefflau.eth I canā€™t reply on that thread, not sure if thatā€™s intentional or not! But I was playing around with it and was wondering about the metadata service. Is that not expected to be functional yet, or is there a separate Goerli deployment for it? Because it doesnā€™t look like the ens-metadata-service.appspot.com/name/0x{id} endpoint works currently.

Will the same metadata service be used for both the current NFT contract and the new NameWrapper contract? I ask because the route /name/0x{id} returned from the StaticMetadataService doesnā€™t have a contract address in it, and we know that the NFT token ID for .eth 2LDs will be different in the old vs. new contracts. So just wondering how all that will work!

5 Likes

Pardon me for being slow, however what happens if you donā€™t wrap l? Seems like wrapping only really matters if you want subs? Ok Iā€™ll go back into my hole now
Yā€™all have a good day!! :face_in_clouds:

2 Likes