CakeWallet/lib
David Adegoke eede8fa6c7
CW-959: Swap Status on Transaction Screen (#2247)
* feat(swap-status-monitor): add real-time swap status monitoring and UI updates

- Introduce SwapManager for automatic tracking of active-wallet swaps.
- Automatically queues new or updated trades from the Hive box.
- Periodically fetch and persist swap statuses via the corresponding trade provider.
- Implement start(wallet, providers), stop(), and dispose() for lifecycle control.
- Apply user's ExchangeApiMode(disabled, tor-only, enabled) when fetching updates.
- Remove swaps from the watchlist on any final state (completed, expired, failed).
- Dispose SwapManager in AppState.dispose() to cancel polling and the Hive subscription.

* refactor(swap-status): replace SwapManager with TradeMonitor for improved trade monitoring.

This change improves the flow by simplifying the trade monitoring logic.

- Removes SwapManager class and replace with TradeMonitor implementation
- Update di and Appstate to register and dispose TradeMonitor
- Modify DashboardViewModel to use TradeMonitor instead of SwapManager

* fix: Modify trade monitoring logic to ensure trade timers are properly disposed when wallet switching occurs

* fix(swap-status): Fix receive amount for exchanges showing as .00 because of null values
2025-05-27 00:52:51 +03:00
..
anonpay Generic fixes (#1583) 2024-08-09 22:18:32 +03:00
anypay Remove haven (#2085) 2025-03-21 04:52:05 +02:00
bitcoin FIX (#2283) 2025-05-25 22:28:08 +03:00
bitcoin_cash CW-843: Enhance Wallet Groups Implementation (#2045) 2025-03-06 02:25:38 +02:00
buy New themes (#2239) 2025-05-25 23:11:45 +03:00
cake_pay fix cakepay text encoding (#1902) 2024-12-28 08:06:37 +02:00
core CW-959: Swap Status on Transaction Screen (#2247) 2025-05-27 00:52:51 +03:00
decred Add decred (#1938) 2025-03-21 04:18:47 +02:00
entities New themes (#2239) 2025-05-25 23:11:45 +03:00
ethereum CW-843: Enhance Wallet Groups Implementation (#2045) 2025-03-06 02:25:38 +02:00
exchange v4.28.0 Release Candidate (#2260) 2025-05-16 13:51:36 +03:00
haven Add the code to enable removing Haven wallets (#2222) 2025-04-23 12:19:59 +02:00
locales CW-875 BackupServiceV3 (#2064) 2025-03-22 03:16:54 +02:00
mastodon CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
monero CW-1045-Ledger-Bugs-Enhancements (#2278) 2025-05-26 18:38:51 +03:00
nano CW-843: Enhance Wallet Groups Implementation (#2045) 2025-03-06 02:25:38 +02:00
nostr CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
polygon CW-843: Enhance Wallet Groups Implementation (#2045) 2025-03-06 02:25:38 +02:00
reactions implement-payjoin (#1949) 2025-05-12 20:33:14 +03:00
solana Fix Scam tokens handling and make it persistent (#2138) 2025-04-03 03:32:00 +02:00
src CW-959: Swap Status on Transaction Screen (#2247) 2025-05-27 00:52:51 +03:00
store New themes (#2239) 2025-05-25 23:11:45 +03:00
themes Fix some colors (#2293) 2025-05-27 00:35:11 +03:00
tron Fix Scam tokens handling and make it persistent (#2138) 2025-04-03 03:32:00 +02:00
twitter New versions (#1312) 2024-03-04 19:32:10 +02:00
utils New themes (#2239) 2025-05-25 23:11:45 +03:00
view_model CW-959: Swap Status on Transaction Screen (#2247) 2025-05-27 00:52:51 +03:00
wownero CW-1024 Improve performance of xmr wallet (#2128) 2025-04-03 03:31:25 +02:00
zano CW-1024 Improve performance of xmr wallet (#2128) 2025-04-03 03:31:25 +02:00
app_scroll_behavior.dart Cw 567 cant swipe through menus on desktop builds (#1563) 2024-08-10 01:21:26 +03:00
di.dart CW-959: Swap Status on Transaction Screen (#2247) 2025-05-27 00:52:51 +03:00
main.dart CW-959: Swap Status on Transaction Screen (#2247) 2025-05-27 00:52:51 +03:00
palette.dart Replace purple with "Cake Dark Blue" theme and make it default (#1314) 2024-02-28 04:15:18 +02:00
router.dart Modify Themes Startup Behaviour (#2288) 2025-05-26 04:43:15 +03:00
routes.dart implement-payjoin (#1949) 2025-05-12 20:33:14 +03:00
typography.dart Cw 657 new buy sell flow (#1553) 2024-11-09 21:00:56 +02:00
wallet_type_utils.dart Remove haven (#2085) 2025-03-21 04:52:05 +02:00