feat: migrate Trade data to SQLite with TradeLegacy for backward compatibility (#3106)

* feat: migrate Trade data to SQLite with TradeLegacy for backward compatibility

* feat: persist full currency snapshots in sql storage, not raw-only [WIP]

* feat: persist full trade currency snapshots in sql storage

* refactor trade and currency handling for migration

* Minor fixes

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
David Adegoke
2026-05-07 00:02:04 +02:00
committed by GitHub
co-authored by Omar Hatem
parent 813aa348bc
commit 9f6396f5d8
39 changed files with 1011 additions and 833 deletions
+1 -3
View File
@@ -1091,9 +1091,7 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
_currentTrade!.stateRaw = isSuccess ? TradeState.completed.raw : TradeState.failed.raw;
if (_currentTrade!.isInBox) {
await _currentTrade!.save();
}
await _currentTrade!.save();
}
@action