-
Notifications
You must be signed in to change notification settings - Fork 0
Currency repository #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currency repository #199
Conversation
ovitrif
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Added a comment about the duplicate caching, which is ok to just fix with a deprecation annotation on the service method loadCachedRates(), which is used in multiple places.
Just wanting to make sure we don't forget about this, if it's a must to merge asap so progress on the high-balance-warning is unblocked.
… details This PR adds boosted txids tracking and displays parent transaction IDs in the activity details, matching iOS PR #199. ## Changes - Added `boostTxIds: List<String>` field to `PendingBoostActivity` to store parent transaction IDs - **CPFP**: Append child transaction ID to parent's `boostTxIds` when boosting - **RBF**: Track parent chain (existing `boostTxIds` + current txId) in `PendingBoostActivity`. Store parent txIds when creating replacement, retrieve and apply when replacement syncs - **UI**: Display boosted transaction IDs in `ActivityDetailScreen` with labels "BOOSTED TRANSACTION {num} (CPFP)" or "BOOSTED TRANSACTION {num} (RBF)" based on transaction direction ### Implementation Details 1. **PendingBoostActivity DTO**: Added `boostTxIds` field to track parent transaction IDs for RBF 2. **BoostTransactionViewModel**: - Updated `cachePendingBoostActivity()` to track parent chain for RBF (existing boostTxIds + current txId) - Updated `handleCPFPUpdate()` to append child txId to parent's boostTxIds 3. **ActivityRepo**: Updated `boostPendingActivities()` to apply tracked boostTxIds when processing pending boosts 4. **ActivityDetailScreen**: Added UI section to display boosted transaction IDs with appropriate labels This matches the behavior implemented in bitkit-ios PR #199.
This PR moves the business logic and states from the CurrencyViewModel to a repository so they can be shared across other ViewModels
CurrencyRepoRelated to #195
Necessary to #196