Files
amethyst/commons
Claude 9d0224ba5b feat(cashu): Wallet Settings screen with retractable mint recommendations
The top-bar pencil on the Cashu Wallet screen becomes a gear that opens a
new Settings hub instead of jumping straight to the edit form. The hub
hosts:

- "Edit wallet details" → routes to the existing AddCashuWallet form in
  edit mode (mints + nutzap key).
- "My mint recommendations" → live list of NIP-87 kind:38000 events this
  account has published, each with a NIP-09 retract button. Retraction
  fires DeletionEvent with both `e` and (when a d-tag is present) `a`
  tags so compliant relays drop all versions of the parameterized-
  replaceable recommendation.

The wallet's existing CashuWalletFilterAssembler now pulls
MintRecommendationEvent.KIND alongside the other NIP-60 / NIP-61 kinds,
so the list populates without an extra subscription. CashuWalletState
indexes own recommendations into a new `ownRecommendations` StateFlow
(keyed by d-tag, falling back to event id for malformed events) and
keeps it in sync via the existing live cache + delete observers.

Future settings (auto-recommend toggle, nutzap relay overrides,
export/backup) belong here — consolidating wallet-shaped knobs in one
place avoids re-cluttering the main wallet screen.

https://claude.ai/code/session_01MdWddiar819f8XYt5N8BjP
2026-05-27 15:17:42 +00:00
..