Repository navigation
register names from the registrar allowance, also while sales are closed - #27
Merged
epoberezkin merged 9 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.
SimpleX registers names for partners who have no wallet yet. While public sales are closed, the dApp offers no registration, and the admin Safe's
registerReservedneeds two of four owners. This lets a Ledger account with a registrar allowance onSimplexSponsor(W0, set by the guardian Safe) register a name through the sponsored path, and hand it over later with the existing Send and Claim. No contract changes (ens-contracts 6e035ada, on mainnet).Pricing (
steps/Pricing)registrarAllowanceon the sponsor is above zero sees the allowance path in place of the ETH path, also while public sales are closed (setPublicSalesOpengates only the payable path).controller.rentPriceUSD(label, duration), base and premium, as the sponsor deducts it), the network fee, and the allowance left after the charge. "Register with allowance"; "Allowance too low" when the allowance does not cover the charge, also on Info and Transactions.Transactions, all sent by the connected account W0:
commitUnderGeneralTerms/commitUnderCommunityTerms: W0 accepts the terms, and the commitment is made in the same call.minCommitmentAge.SimplexSponsor.registerWithCredit(registration, 14, 0, 0, 0x)with W0 as owner, so the sponsor checks no signature; 14 dispute days, the contract minimum.Complete shows the charge in USD from
RegistrarAllowanceSpent.errors.tsnamesInsufficientAllowance,DisputeDaysOutOfRange,DisputePeriodOverandDisputeUntilMismatch(DisputePeriodNotOvercomes with #19).Texts (approved): "Register with allowance", "Allowance too low", "Allowance left".
States: while the allowance is read, the pricing step shows a loading button to every connected account; a failed read shows "Error syncing data" with "Try Again"; the form is chosen once the read settles. A duration chosen for an allowance registration is kept on Back. A registration whose allowance no longer covers the charge stops before its commit with "Allowance too low", unless the register's simulation succeeds.
Tests and CI: each test commit failed in CI before its code (runs 45612023918, 45621162828, 45623501124, 45639708768). Head run 45640303303: the three builds pass; the Test workflow fails only on the two AvatarUpload tests that fail on
simplextoo, fixed by #21 (1997 passed).Review: two blind review rounds, their findings fixed or answered; declined: a connect button on the closed-sales card (kept as it is).
The temporary-owner option is stacked on this change in a separate PR.
Screenshots
Base simplex 8ae4e66, PR 858b402. 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.Account #1 (W0) has a registrar allowance of $1,000 on SimplexSponsor, set by account #0, the local guardian. The price of partnername.simplex for 2 years is $100.
The loading and failed reads are made by request interception in the browser: the
registrarAllowancecall inside the Multicall3 batch is answered as failed; the loading frame is taken during the query's retries, the failed frame after them.