Repository navigation
resolver: resolve .simplex names on mainnet by default - #2090
Merged
epoberezkin merged 10 commits intoNov 22, 2026
Merged
Conversation
brenzi
marked this pull request as ready for review
November 21, 2026 08:42
# Conflicts: # scripts/resolver/README.md # scripts/resolver/docker-compose.yml
epoberezkin
approved these changes
Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.simplexis deployed on Ethereum mainnet: simplex-network/ens-contracts tagsimplex-mainnet-v2(ebf76989), addresses in deployments.mainnet.simplex.json and verification.mainnet.simplex.json. The resolver's.simplexsettings default to empty, so a resolver run fromscripts/resolveranswers400 tldNotConfiguredfor every.simplexname unless.envsets them, and.env.examplesuggests the addresses of the retired deployment.scripts/resolver/service/snrc-resolve.py:
.simplexgets defaults, as.testinghas; the environment variables still override them. Each is the addressdeployments.mainnet.simplex.jsonrecords, the proxy of an upgradeable contract:verification.mainnet.simplex.jsonSNRC_REGISTRY_SIMPLEX0x3ce23ef6a00d89105299b52aadd72b92681414beENSRegistryProxySNRC_REGISTRAR_SIMPLEX0x4c0589dbc22862babb25eb72d11bba49d84aabe8BaseRegistrarImplementationProxySNRC_CONTROLLER_SIMPLEX0x68fab655a0204865a2f3ab3a607037e09648c92bSimplexControllerProxyscripts/resolver/README.md:
.simplex, and the verification file's<contract>@<address>entries are implementations, which hold no names;/v2/resolve/simplex.simplex, reads a reservation from.simplex's name policy, which the resolver finds only at startup, so a resolver started before block 26459168, where the controller's name policy was set, needs a restart; after a fresh sync, a502there withsimplex=-in thelisteningline means the resolver needs a restart, which checks 1 to 4 do not show;.simplexregistry and says to remove all threeSNRC_*_SIMPLEXsettings left from it in.env,docker-compose.ymlor a direct run's environment, which override the defaults, and how to confirm none remains;deployments.mainnet.<tld>.json;docker compose up -d --build resolver;lastBlockTsandregistrationwrapper thatname_responsereturns;.simplexis unset or not deployed, and the sentences of Configuring addresses and What a name costs that describe a TLD without a registrar or controller, which no setting can produce now. Theunknownstatus stays in the v1 tables:name_statusstill returns it for a table entry without a registrar.docker-compose.yml, .env.example: the same statements;
.env.exampleno longer suggests the retired addresses, since the defaults apply while.envleaves the settings unset.scripts/resolver/service/test_snrc_resolve.py:
400without a read of the chain; they used.simplex, which now has defaults, and use.nosuchtld;.simplexempty, to cover the filter of empty entries, leavenosuchtldempty instead;DefaultsTestsloads the script afresh and requires both TLDs in each of the three tables; on master the.simplexvalues are empty, so it fails there.On mainnet (
eth_callandeth_getStorageAtat the latest block, through ethereum-rpc.publicnode.com):namehash("simplex");ens(),namehash("simplex")asbaseNode(), 90 days asGRACE_PERIOD()and the subname registrar0x86d2248f…assubnameHook();0x5147b65f…asnamePolicy()andSimplexPriceOracle0x6fdc7ccd…asprices(), and its ownreservedNamesreverts;simplex.The resolver at this branch, run against mainnet, answers
simplex.simplexas reserved (internal),brenzi.simplexas registered, also by its labelhash, and a free name as available at 5000 cents per year.The earlier
.simplexdeployment (registry0xa7f6497be2f1aa41aa2db55aba8a6e0145dff0d2) is retired: its registrar accepts no registrations from its controller or name policy. #2051, merged into master after this branch started, suggests its addresses in.env.exampleand passes theSNRC_*_SIMPLEXvariables from.envthroughdocker-compose.yml; this branch merges master, keeps the pass-through and removes the suggestion. Draft #2016 overrides.simplexwith the same earlier addresses in itstest_ground_truth.py.A bare public-group name, without a TLD, parses as a
.simplexname (SimplexName.hs), so such lookups are answered from the v2 contracts instead of400 tldNotConfigured.