You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pit: buy an unclaimed name from the page someone landed on (#148)
/n/<name> already told a visitor the name was unclaimed and then left them to
find the pit, work out which ending it belongs to, and mint it there. The
purchase flow existed the whole time; it just was not reachable from the one
page where someone has already demonstrated they want the name.
The price comes from quoteName — the same call the checkout makes — so a
button is only shown when the click behind it would actually succeed. A name
that is reserved in someone else's open checkout, or already sold between the
page rendering and the button being pressed, does not get one.
Every reason you cannot buy says which reason it is. "Not for sale", "sign in
first", "you own this ending", and "nobody holds the ending either" are four
different problems with four different next steps, and a single greyed-out
button would tell you none of them. The last one is the interesting case: it
offers the whole ending instead, because at that point the name is free to
whoever takes the namespace.
Your own ending offers nothing to pay for — minting under it is free, and
charging for that would be selling someone what they already have.
Rendered every branch against a live server: priced ending, own ending,
unpriced ending, unclaimed ending, and signed out.
279 across the pwa suite.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments