Skip to content

show a name's dispute period, and extend it only after its end - #26

Merged
epoberezkin merged 21 commits into
simplex-chat:simplexfrom
brenzi-agent:ab/dispute-period
Nov 26, 2026
Merged

epoberezkin merged 21 commits into
simplex-chat:simplexfrom
brenzi-agent:ab/dispute-period

Conversation

@brenzi-agent

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

Copy link
Copy Markdown

The contracts change: simplex-network/ens-contracts#51, merged and deployed with the v2 .simplex contracts. 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)

  • Name page: "Dispute period ends" with the date, and the tooltip "Until then, the registration can be ended if a payment for it is disputed, reversed or refunded in full, and the name can't be extended."; "The dispute period of this name could not be read." when the read fails.
  • Extend: before the end, "This name can't be extended before its dispute period ends on {date}." and no Next; the later of the dispute end and the earliest extension date is named. When the end cannot be read: "The dispute period of this name could not be read, so it can't be extended now."
  • Claim review: the dispute end, and the acknowledgement "I accept that I lose this name if its registration is ended before its dispute period ends." before claiming. When the end cannot be read, the name cannot be claimed.
  • My names: a name whose registration was ended in its dispute period is no longer listed for its former holder.
  • A renewal reverted with DisputePeriodNotOver is 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: reads disputeUntil from 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.ts and errors.ts use it.

Checks

#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.mjs of 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 registerWithCredit and 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 with unregister, sent by account #0, the local controller owner and guardian.

  • Ownership tab of a name in its dispute period: a “Dispute period ends” panel with date, time and tooltip; absent on the base. Flip diff.
    name-dispute-end
  • Extend by the holder in the dispute period: “This name can't be extended before its dispute period ends on December 10, 2026, 10:23:40 UTC.” with Next disabled; on the base, the duration, the invoice and “Not enough ETH in wallet”, with Next enabled. Flip diff.
    extend-before-dispute-end
  • Claim review by the recipient: the warning “Until December 10, 2026, 10:24:45 UTC, the registration of offeredname.simplex can be ended if a payment for it is disputed, reversed or refunded in full. If it is ended, you lose the name, and anyone can register it.” and the checkbox “I accept that I lose this name if its registration is ended before its dispute period ends.” above the terms; absent on the base. Flip diff.
    claim-dispute-warning
  • My names of account support new contracts for simplex tld #3: keptname.simplex only; on the base, also endedname.simplex, without an expiry. Flip diff.
    my-names-ended
  • Ownership tab with a failed disputeUntil read: “Dispute period ends” with “The dispute period of this name could not be read.”
    name-dispute-unknown
  • Extend with a failed read: “The dispute period of this name could not be read, so it can't be extended now.” with Next disabled.
    extend-dispute-unknown
  • Claim review with a failed read: “The dispute period of this name could not be read, so it cannot be claimed now.” with Claim disabled.
    claim-dispute-unknown

The three failed reads are made by request interception in the browser: the disputeUntil call inside the Multicall3 batch is answered as failed, and every other call of the batch is answered by the node.

@epoberezkin
epoberezkin merged commit 02335bb into simplex-chat:simplex Nov 26, 2026
@brenzi-agent
brenzi-agent deleted the ab/dispute-period branch November 26, 2026 10:57
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