Skip to content

feat: transaction notifications for incoming transactions - #1359

Draft
sneurlax wants to merge 3 commits into
stagingfrom
feat/300-transaction-notifications
Draft

feat: transaction notifications for incoming transactions#1359
sneurlax wants to merge 3 commits into
stagingfrom
feat/300-transaction-notifications

Conversation

@sneurlax

Copy link
Copy Markdown
Member

closes #300

@sneurlax

Copy link
Copy Markdown
Member Author

Converting to draft because I have too many open PRs ready--will take another review pass over this before re-readying it

@sneurlax
sneurlax marked this pull request as draft August 20, 2026 19:00
@sneurlax
sneurlax force-pushed the feat/300-transaction-notifications branch from 4ffd667 to 92767b7 Compare August 20, 2026 21:27
…navigator

CryptoNotifications sat in home:, which makes it a route, so the first
navigation after login disposed it. Nothing depended on it staying alive until
incoming-transaction notifications started gating on hasListeners.
Fires an OS and in-app notification when an incoming transaction is first seen.

Delivery is acknowledged by the listener so a failed or unlistened send is
retried rather than recorded, and a txid is only marked delivered after it is
durably persisted. Per-wallet state is namespaced into the prefs box because
per-wallet Hive boxes are only opened for installs predating the Isar
migration. Wallets that exist at upgrade time are marked initialized once so
their history is not replayed as notifications; new wallets opt in explicitly
and restores stay silent. The delivered ledger is capped at 256 entries per
wallet, and confirmation watching is limited to ElectrumX wallets.
@sneurlax
sneurlax force-pushed the feat/300-transaction-notifications branch from be49563 to 146d7a1 Compare August 24, 2026 21:31
@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 41.05960% with 89 lines in your changes missing coverage. Please review.
✅ Project coverage is 4.87%. Comparing base (da38ddc) to head (7094e43).
⚠️ Report is 1 commits behind head on staging.

Files with missing lines Patch % Lines
lib/wallets/wallet/wallet.dart 0.00% 22 Missing ⚠️
lib/services/notifications_api.dart 0.00% 16 Missing ⚠️
lib/services/notifications_service.dart 0.00% 15 Missing ⚠️
lib/services/transaction_notification_tracker.dart 67.39% 15 Missing ⚠️
...t_bus/events/global/crypto_notification_event.dart 13.33% 13 Missing ⚠️
..._views/frost_ms/new/steps/frost_create_step_5.dart 0.00% 3 Missing ⚠️
lib/services/transaction_notification_service.dart 93.54% 2 Missing ⚠️
lib/services/wallets.dart 0.00% 2 Missing ⚠️
..._view/new_wallet_recovery_phrase_warning_view.dart 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #1359      +/-   ##
===========================================
+ Coverage     4.79%    4.87%   +0.07%     
===========================================
  Files         1109     1111       +2     
  Lines       111003   111109     +106     
===========================================
+ Hits          5325     5416      +91     
- Misses      105678   105693      +15     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notifications on incoming transactions

1 participant