This is an example / proof-of-concept: Example contract to allow anyone to extend a subname by serenae-fansubs · Pull Request #263 · ensdomains/ens-contracts · GitHub
Deployed on:
- Mainnet:
0xf301A64C73aAE2247F52b51647EE985398EC20d9
- Goerli:
0x0Dc92703F54F71f2C78D9c91Bc34ED6E6cF2fe32
It’s a dead-simple contract, all it does is delegate to NameWrapper.extendExpiry
, and allows any account to invoke it.
To use it:
- Call
approve
on the Name Wrapper contract to approve this contract as the “Subname Renewal Manager” for your name - (Optional) Revoke the “can approve” permission/fuse on your name
Now, similar to .eth 2LDs, any account will be able to extend any subnames underneath that name.
There are no fees either (just gas). So this would not be useful to anyone looking to rent subnames. 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 owner or parent owner goes AWOL.
Hope it helps, or at least gives you some ideas!