Repository navigation
show every reserved and community name at /namepolicy - #20
Merged
epoberezkin merged 3 commits intoNov 26, 2026
Merged
Conversation
epoberezkin
approved these changes
Nov 26, 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.
The page at
/namepolicylists every name the name policy holds as reserved, with its reason, and every community name. Anyone can open it; no wallet is needed. One search box filters both lists in the browser.Data, without an indexer —
src/hooks/usePolicyNames.tsReservedNameAdded,ReservedNameReasonChanged,ReservedNameRemoved(also fromregisterReserved),CommunityNameAdded,CommunityNameRemoved.getLogscall reads these events fromearliest, filtered by the policy's address, as the claim review reads the registry's and the resolver's events (snrcClaimChecks.ts). The events are replayed in order into the current lists.Page —
src/pages/namepolicy.tsxReserved names with their reason, and community names, each list with its count; "n of m" while a search is active.
The search matches any part of the full name,
name.simplex, in any letter case.A link to the policy contract on Etherscan.
REASONSmoves from the admin page tosrc/utils/snrcNamePolicy.ts, beside the events, as both pages use it.The reserved reason
Community(515 names, 489 of them country or territory names) is shown as "Reserved for a community", so it is not read as the community names list.The page is not linked from the navigation.
RPC: a decision for the maintainer. The deployed Alchemy key refuses this read: "Under the Free tier plan, you can make eth_getLogs requests with up to a 10 block range" (sent with
Origin: https://app.simplex.domains, 2026-11-16). The DRPC fallback key inwagmi.tsis deactivated. Only the third fallback, the Tenderly key from upstream ENS, serves it, so the page depends on that key. The claim review's log reads (snrcClaimChecks.ts) depend on it the same way. Options: upgrade the Alchemy plan to PAYG, or accept the dependency on the Tenderly key.Merge order with #19: after the renewal upgrade, renewing a community name also requires the community terms. Whichever of the two PRs merges second adds "or renewing" to this page's sentence.
Checks (fork CI)
AvatarUpload.test.tsx, which fails the same way onsimplex.https://github.com/brenzi-agent/simplex-domains-app-v3/actions/runs/43835704624
reservedNamesandcommunityNames: no mismatch.