ensdomains / ens-contracts

The core contracts of the ENS protocol
https://ens.domains/
MIT License
572 stars 394 forks source link

Example contract to allow anyone to extend a subname #263

Open serenae-fansubs opened 1 year ago

serenae-fansubs commented 1 year ago
  1. Call approve on the NameWrapper to approve this contract as the "Subname Renewal Manager" for your name
  2. Revoke the "Can Approve" permission on your wrapped name

Now any account will be able to extend the expiry for any subname under that name, similar to .eth 2LDs.

No fees (just gas). So this would not be useful to anyone looking to rent subnames for a fee. Instead, this is useful for people who want to issue "forever" subnames (possibly with immutable records too) and then guarantee that they will always be able to be extended, even if the parent owner goes AWOL.