Commit fd300d0
pit: $2 a name, $5 an ending — no trailing cents (#144)
PRD 0005 §10.1 wrote these as $1.99 and $4.99. The extra cent buys nothing but
a price tag shaped like a supermarket shelf, and every number here is one a
person has to reason about: a default, a ceiling, a per-line override. Round.
Which price is which mattered and was easy to get wrong. `moshpit_tlds
.price_usd` sits on the ending's row but is the *child* price — what someone
pays to mint `foo.bar`. Owning `.bar` means minting names under it for free;
setting a price is how other people buy them. So $2 is the number that field
carries, and the ending price is a separate thing.
ENDING_PRICE_USD is defined and charged by nothing. `registerTld` inserts a row
and claiming an ending is still free — the checkout that will read this needs
terms and renewals first. It lives beside the child price anyway so the two are
settled together, rather than being invented at the point someone builds that
and reconciled afterwards.
Still no enforcement on setTldPrice: a per-line `$5USD` is honoured. The ceiling
is what the form defaults to and what the input hints at, not a rule the library
imposes on an operator's own namespace.
A test now fails on any price that is not whole dollars, so a regression to .99
cannot ship quietly.
263 across the pwa suite.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent a57b608 commit fd300d0
3 files changed
Lines changed: 52 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
151 | 176 | | |
152 | | - | |
| 177 | + | |
153 | 178 | | |
154 | 179 | | |
155 | 180 | | |
| |||
158 | 183 | | |
159 | 184 | | |
160 | 185 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
166 | 190 | | |
167 | | - | |
| 191 | + | |
168 | 192 | | |
169 | 193 | | |
170 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
232 | 241 | | |
233 | 242 | | |
234 | 243 | | |
| |||
0 commit comments