Repository navigation
feat(ui): observed incoming Platform-address payments in the home history - #842
Merged
QuantumExplorer merged 1 commit intoJul 17, 2026
Merged
Conversation
…tory A third party paying one of the wallet's Platform addresses changed the balance with NOTHING in the home history — the SDK persists no per-payment platform event stream (the BLAST sync surfaces absolute per-address balances; its sync event carries only aggregate counters). Close the gap observationally, app-side: - PlatformAddressActivityStore (app SQLite, new migration): a per-(wallet, network, address) balance baseline plus an append-only ledger of observed increases. After every BLAST pass the recorder diffs the snapshot against the baseline; unattributed increases record as received activity. First observation seeds the baseline silently — recording a standing balance as "received today" would be fabricated history. - Own internal moves are suppressed so they don't double-show next to their existing rows: net-zero passes (intra-wallet shuffles), internal unshields (exact match on decoded destination address + net amount), and Transparent→Platform top-ups (exact match on the asset lock's recipient address hash). - Home history renders the ledger as Received rows (creditcard icon, shortened address pill, live fiat) interleaved by day with Core and shielded rows; they ride the .received filter category via a shared passesCategoryFilter (shielded filter refactored onto it). Tapping opens a detail sheet with the copyable address, balance after, and the honest caveats: no sender attribution, observation-time stamping. - The recorder posts platformAddressActivityRecorded (the SQLite insert is invisible to the SwiftData save trigger) and the home view model reloads on it. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When someone pays one of the wallet's Platform addresses, the balance changes but nothing appears in the home history — confusing ("where did this money come from?"). There's no SDK-persisted platform payment stream to render: the BLAST sync surfaces absolute per-address balances, and its per-pass event carries only aggregate counters.
Approach — an observational ledger (honest v1)
App-side recording, no SDK/FFI changes (PlatformAddressActivityStore.swift, new app-SQLite migration):
recipientPlatformAddressHash.UI
passesCategoryFilter).Known limits (by design, documented in the store header)
Test plan
tdash1…) → Received row appears on the receiver within a sync pass (full rescan until #4142 deploys), with correct amount/fiat and the address pill🤖 Generated with Claude Code