mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
Add a pure, stateless CashuWalletReader in commons that projects a stream of NIP-60/61/87 events into a WalletSnapshot (wallet/nutzap-info events, decrypted mints, unspent token entries, history, pending quotes, nutzaps, recommendations, plus balance + per-mint balances). Android's CashuWalletState keeps its incremental dirty-tracking and StateFlow plumbing but now delegates the two tricky computations — del-rollover over decrypted tokens (computeUnspent) and the destroyed/expired pending-quote filter (computePending) — to the shared reader instead of carrying its own copies. amy will call project() once per command over its event store. Extraction C of cli/plans/2026-05-28-cashu-cli.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011SapGdtAc1j7woifoCZ9fY