Skip to content

fix: resolve ENSv2 names on mainnet - #2460

Merged
bonustrack merged 5 commits into
masterfrom
fix/ens-v2-mainnet
Nov 18, 2026
Merged

bonustrack merged 5 commits into
masterfrom
fix/ens-v2-mainnet

Conversation

@bonustrack

@bonustrack bonustrack commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

ENSv2 went live on mainnet on 2026-10-27. The UI's ENS helper has the ENSv2 lookup but only Sepolia is configured, so on mainnet:

  • a name registered in ENSv2 has no owner, and a migrated name is owned by the ENS Graveyard, so the real owner is never isController and cannot edit the space (unless listed as admin)
  • a snapshot text record set on an ENSv2 resolver is not read, so the Controller tab shows 0x0000…0000 for a space the sequencer already accepts (aavegotchi-dao.eth)
  • "change controller" fails with No resolver set for name on those names
  • migrated names no longer resolve to an address

This adds the mainnet UniversalHelper, ENSV1Resolver and DNSTLDResolver, so mainnet takes the path Sepolia already uses. Same addresses and same onchain checks as snapshot-labs/snapshot.js#1263, which fixes the sequencer side (not allowed when creating a space on an ENSv2 name).

With both chains on ENSv2 the v1 record path can no longer run, so the second commit deletes it: deepResolve, the Stamp address fallback and the unused resolvers list. The owner lookup (getNameOwner, getResolverDetails) is otherwise untouched. Net -36 lines.

Behaviour changes on mainnet

  • Mainnet records (resolveName, getEnsTextRecord) are now read through the Universal Resolver instead of the v1 registry, as on Sepolia. Across 1,728 space names ending in .eth: 415 that returned nothing now resolve (migrated names, CCIP names such as *.base.eth), 467 expired names stop resolving to a stale address, 59 whose resolver reverts now throw instead of returning nothing.
  • An expired name has no controller, where the stale v1 owner used to count. Same rule and same reasoning as in the snapshot.js PR.
  • 63 spaces sit on a name that expired and was then registered in ENSv2 by another address (6 verified, aavegotchi.eth the largest). The UI shows that address as controller, where it shows the Graveyard today. The sequencer already accepts a snapshot text record from that address, so this follows what the holder can do today.
  • For 45 spaces the controller lookup now throws in the UI where it returned an address. The sequencer already fails on the same spaces, so their controllers could not save settings before either.
  • Three tests go from "empty address" to "rejects" for names that are not spaces (web3.wanki.moe, lucemans-test-not-exist.cb.id, lucemans-test-not-exist.cbars.id): the address read now goes through the Universal Resolver, which reverts for them.

Sequencer and hub

The last commit bumps @snapshot-labs/snapshot.js to 0.18.1 (snapshot-labs/snapshot.js#1263, now released) in apps/sequencer and apps/hub. This is what fixes space creation: the sequencer rejected the settings message with not allowed because the owner of an ENSv2 name resolved to 0x0000…0000. Merging looks like it deploys both: the live sequencer and hub report the current master commit as their version.

Temporary lock on aavegotchi.eth

aavegotchi.eth (86k followers) expired and was registered in ENSv2 by an address that is not Aavegotchi. With the ENSv2 lookup that address would become controller, able to edit the space, remove its admins and delete it. The last commit makes the sequencer report no controller for this space (CONTROLLER_LOCKED_SPACES in apps/sequencer/src/helpers/utils.ts), which also closes the snapshot text record path that works today. Current admins and moderators keep their rights, and the admin list cannot change while the lock is on. The UI still shows the ENSv2 holder on the Controller tab, but the sequencer answers not allowed. To remove once the case is settled.

Test plan

  • Full UI suite: 500 passed, 2 skipped, with new mainnet cases for the ENSv2 owner and an accepted controller update on a migrated name (ethenagovernance.eth)
  • eslint and prettier on the two files
  • Ran the helper before and after the mainnet config on 3,334 mainnet spaces and compared it with the patched sequencer lookup: 2,311 agree, 46 fail in both, 8 differ and differed before this change too (.eth subdomains the sequencer resolves through their address record)
  • The second commit returns the same controller, owner, address, resolver and text record as the first on 380 mainnet names
  • A snapshot text record write on an ENSv2 resolver is accepted from the name owner and reverts from another address
  • On the preview, the Controller tab follows ENSv2: aavegotchi.eth shows its ENSv2 holder 0xb54a…cb08 where snapshot.box shows the Graveyard 0xDa02…B7F6, fabien.eth, coincollect.app and snapshot.dcl.eth show the same controller as the sequencer lookup, and expired dydxgov.eth shows 0x0000…0000
  • On the preview, aavegotchi-dao.eth shows 0x027F…660c where snapshot.box shows 0x0000…0000, and migrated ethenagovernance.eth shows its owner 0xC5ce…D6cb
  • With 0.18.1 installed, getSpaceController called from apps/sequencer returns the owner for pots1000.eth (the reported name, 0x0000…0000 before), aavegotchi-dao.eth and ethenagovernance.eth, and unchanged controllers for fabien.eth, ens.eth, stakedao.eth and coincollect.app
  • Typecheck and lint on apps/sequencer and apps/hub
  • Lock: the sequencer wrapper returns no controller for aavegotchi.eth in any letter case without calling the lookup, and the delete-space writer rejects the name holder with not allowed
  • After the sequencer deploy: create a space on an ENSv2 name

🤖 Generated with Claude Code

bonustrack and others added 4 commits November 18, 2026 23:05
ENSv2 went live on mainnet on 2026-10-27. The ENS helper only had the
ENSv2 contracts for Sepolia, so on mainnet a name registered in ENSv2
had no owner and a migrated name was owned by the ENS Graveyard: the
real owner was never the controller and could not edit the space.

Add the mainnet UniversalHelper, ENSV1Resolver and DNSTLDResolver so
mainnet takes the ENSv2 path Sepolia already uses.

Co-Authored-By: Claude <noreply@anthropic.com>
With mainnet on ENSv2 every ENS chain reads records through the
Universal Resolver, so deepResolve, the Stamp address fallback and the
resolvers list are unreachable. The owner lookup is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
aavegotchi.eth was not migrated: it expired and another address
registered it in ENSv2. ethenagovernance.eth kept its owner through the
migration and its ENSv2 registration runs until 2029.

Co-Authored-By: Claude <noreply@anthropic.com>
Picks up the mainnet ENSv2 addresses, so the sequencer and hub resolve
the controller of names registered in or migrated to ENSv2.

Co-Authored-By: Claude <noreply@anthropic.com>
@bonustrack bonustrack changed the title fix(ui): resolve ENSv2 names on mainnet fix: resolve ENSv2 names on mainnet Nov 18, 2026
The name expired and was registered in ENSv2 by another address, which
would become controller of the space with the ENSv2 lookup. Report no
controller for it until the case is settled. Admins keep their rights.

Co-Authored-By: Claude <noreply@anthropic.com>
@bonustrack
bonustrack merged commit c2a806f into master Nov 18, 2026
10 checks passed
@bonustrack
bonustrack deleted the fix/ens-v2-mainnet branch November 18, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant