Commit c9b247d
feat(express): type coinSpecific.ofc on WalletResponse codec
Narrow the WalletResponse `coinSpecific` codec from a bare `t.UnknownRecord`
to an intersection that adds typed visibility for `coinSpecific.ofc.userKeySigningRequired`
while keeping the unknown-record permissiveness intact for unrelated subdocuments
(eth, terc20, etc.). Add codec-decode tests covering wallets with non-ofc
subdocuments, the typed ofc shape, an empty coinSpecific, and rejection of
wrong-typed values.
Ticket: WCN-471
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e75172b commit c9b247d
2 files changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
309 | 338 | | |
0 commit comments