Repository navigation
show a name's dispute period, and extend it only after its end - #26
Merged
epoberezkin merged 21 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 contracts change: simplex-network/ens-contracts#51, merged and deployed with the v2
.simplexcontracts. A sponsored registration has a dispute period, whose end the registrar stores (disputeUntil(id)). Before it, the guardian or the admin can end the registration, and the registrar refuses a renewal (DisputePeriodNotOver). The dApp showed neither, and its Extend dialog sent a renewal that reverts.What users see (texts approved by the owner on 20-21 Nov)
DisputePeriodNotOveris decoded by name (errors.ts); extend a name only as its holder, accepting its terms again #19 gives it its sentence.Code
src/hooks/useDisputeEnd.ts: readsdisputeUntilfrom the registrar and compares it with the latest block's time; loading, unread, none and a date are told apart, and the last end read is kept when a later read fails.ExpirySection(useExpiryDetails,ExpiryPanel),ExtendNames-flow.tsx,ClaimName-flow.tsx,useNamesForAddress.tsanderrors.tsuse it.Checks
simplexat b003795, its current head..simplexsuite with seven Extend tests added, run in the agents' private fork of the parent.renewreverts withDisputePeriodNotOver(in the node log) and succeeds 14 days later. The 5 failing tests are those of extend a name only as its holder, accepting its terms again #19: at this head, Extend is still offered to any wallet, andrenewis sent alone.https://github.com/brenzi-agent/simplex-namespace-contract/actions/runs/45571854005
simplexat b003795, the dispute test fails: the name page shows no dispute end.https://github.com/brenzi-agent/simplex-namespace-contract/actions/runs/45571853622
AvatarUpload.test.tsx, which fails the same way onsimplex(https://github.com/simplex-chat/simplex-domains-app-v3/actions/runs/45180157118) and is fixed by test: fix avatar upload tests for the timeout signal and status check #21.https://github.com/brenzi-agent/simplex-domains-app-v3/actions/runs/45426639273
#19, the holder-only renewal, is stacked on this.
Screenshots
Base simplex 8ae4e66, PR f409c6b. Local chain: anvil 1.5.1, chain ID 1337, ens-contracts 6e035ada deployed by
scripts/deploy-local.mjsof simplex-namespace-contract main 24e530642; accounts of the test mnemonic only; Chromium at 1280 px (390 px for the phone menu), light theme, UTC. A flip diff is a GIF in which the base frame and the PR frame are shown in turn for 1.5 s each, labelled in a corner.disputedname.simplex and offeredname.simplex are registered with
registerWithCreditand 14 dispute days (dispute end 10 Dec 2026); offeredname.simplex is offered by account #0 to account #1. endedname.simplex of account #3 is ended in its dispute period withunregister, sent by account #0, the local controller owner and guardian.disputeUntilread: “Dispute period ends” with “The dispute period of this name could not be read.”The three failed reads are made by request interception in the browser: the
disputeUntilcall inside the Multicall3 batch is answered as failed, and every other call of the batch is answered by the node.