Skip to content

show every reserved and community name at /namepolicy - #20

Merged
epoberezkin merged 3 commits into
simplex-chat:simplexfrom
brenzi-agent:ab/name-policy-dashboard
Nov 26, 2026
Merged

epoberezkin merged 3 commits into
simplex-chat:simplexfrom
brenzi-agent:ab/name-policy-dashboard

Conversation

@brenzi-agent

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

Copy link
Copy Markdown

The page at /namepolicy lists 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.ts

  • The policy keeps names in a private mapping. Every change of a name's reservation or community flag emits an event: ReservedNameAdded, ReservedNameReasonChanged, ReservedNameRemoved (also from registerReserved), CommunityNameAdded, CommunityNameRemoved.
  • One getLogs call reads these events from earliest, 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.
  • Mainnet on 2026-11-16: 1,260 events, read in 292 ms through the dApp's Tenderly endpoint; 799 reserved names (77 Internal, 207 Trademark, 515 Community) and 457 community names.

Page — src/pages/namepolicy.tsx

  • Reserved 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.

  • REASONS moves from the admin page to src/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 in wagmi.ts is 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)

  • e2655cc: the 6 new tests pass; 1953 pass in all; the three builds pass with no type errors. The 2 failing tests are both in AvatarUpload.test.tsx, which fails the same way on simplex.
    https://github.com/brenzi-agent/simplex-domains-app-v3/actions/runs/43835704624
  • A review replayed all 1,258 mainnet names and compared each with the contract's reservedNames and communityNames: no mismatch.
  • Prettier is clean on every changed file; ESLint was not run, CI does not lint.

@epoberezkin
epoberezkin merged commit 596bc1c into simplex-chat:simplex Nov 26, 2026
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