Skip to content

resolver: resolve .simplex names on mainnet by default - #2090

Merged
epoberezkin merged 10 commits into
simplex-chat:masterfrom
brenzi-agent:ab/resolver-simplex-v2
Nov 22, 2026
Merged

epoberezkin merged 10 commits into
simplex-chat:masterfrom
brenzi-agent:ab/resolver-simplex-v2

Conversation

@brenzi-agent

@brenzi-agent brenzi-agent commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

.simplex is deployed on Ethereum mainnet: simplex-network/ens-contracts tag simplex-mainnet-v2 (ebf76989), addresses in deployments.mainnet.simplex.json and verification.mainnet.simplex.json. The resolver's .simplex settings default to empty, so a resolver run from scripts/resolver answers 400 tldNotConfigured for every .simplex name unless .env sets them, and .env.example suggests the addresses of the retired deployment.

scripts/resolver/service/snrc-resolve.py: .simplex gets defaults, as .testing has; the environment variables still override them. Each is the address deployments.mainnet.simplex.json records, the proxy of an upgradeable contract:

Setting Address In verification.mainnet.simplex.json
SNRC_REGISTRY_SIMPLEX 0x3ce23ef6a00d89105299b52aadd72b92681414be ENSRegistryProxy
SNRC_REGISTRAR_SIMPLEX 0x4c0589dbc22862babb25eb72d11bba49d84aabe8 BaseRegistrarImplementationProxy
SNRC_CONTROLLER_SIMPLEX 0x68fab655a0204865a2f3ab3a607037e09648c92b SimplexControllerProxy

scripts/resolver/README.md:

  • the defaults are proxies for .simplex, and the verification file's <contract>@<address> entries are implementations, which hold no names;
  • Verify check 5, /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, a 502 there with simplex=- in the listening line means the resolver needs a restart, which checks 1 to 4 do not show;
  • check 2 shows the full registry addresses; Caveats names the earlier .simplex registry and says to remove all three SNRC_*_SIMPLEX settings left from it in .env, docker-compose.yml or a direct run's environment, which override the defaults, and how to confirm none remains;
  • a table maps each setting to its entry of deployments.mainnet.<tld>.json;
  • Caveats: the resolver image contains the script, so an update needs docker compose up -d --build resolver;
  • check 4's sample output shows the lastBlockTs and registration wrapper that name_response returns;
  • in Configuring addresses, the three settings of a TLD are overridden together, since an unset one keeps its mainnet default;
  • the statements that .simplex is 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. The unknown status stays in the v1 tables: name_status still returns it for a table entry without a registrar.

docker-compose.yml, .env.example: the same statements; .env.example no longer suggests the retired addresses, since the defaults apply while .env leaves the settings unset.

scripts/resolver/service/test_snrc_resolve.py:

  • the request-log, request-body and keep-alive tests ask for a name under a TLD with no addresses, to be answered 400 without a read of the chain; they used .simplex, which now has defaults, and use .nosuchtld;
  • fixtures that left .simplex empty, to cover the filter of empty entries, leave nosuchtld empty instead;
  • DefaultsTests loads the script afresh and requires both TLDs in each of the three tables; on master the .simplex values are empty, so it fails there.

On mainnet (eth_call and eth_getStorageAt at the latest block, through ethereum-rpc.publicnode.com):

  • the EIP-1967 implementation slots of the three proxies hold the implementations the verification file records;
  • the registry gives the registrar as owner of namehash("simplex");
  • the registrar gives the registry as ens(), namehash("simplex") as baseNode(), 90 days as GRACE_PERIOD() and the subname registrar 0x86d2248f… as subnameHook();
  • the controller gives the name policy 0x5147b65f… as namePolicy() and SimplexPriceOracle 0x6fdc7ccd… as prices(), and its own reservedNames reverts;
  • the name policy gives reason 1 (internal) for simplex.

The resolver at this branch, run against mainnet, answers simplex.simplex as reserved (internal), brenzi.simplex as registered, also by its labelhash, and a free name as available at 5000 cents per year.

The earlier .simplex deployment (registry 0xa7f6497be2f1aa41aa2db55aba8a6e0145dff0d2) 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.example and passes the SNRC_*_SIMPLEX variables from .env through docker-compose.yml; this branch merges master, keeps the pass-through and removes the suggestion. Draft #2016 overrides .simplex with the same earlier addresses in its test_ground_truth.py.

A bare public-group name, without a TLD, parses as a .simplex name (SimplexName.hs), so such lookups are answered from the v2 contracts instead of 400 tldNotConfigured.

@brenzi
brenzi marked this pull request as ready for review November 21, 2026 08:42
@epoberezkin
epoberezkin merged commit ac3399f into simplex-chat:master Nov 22, 2026
9 checks passed
@brenzi-agent
brenzi-agent deleted the ab/resolver-simplex-v2 branch November 23, 2026 07:24
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.

2 participants