feat: expose mempool transaction data in UniFFI bridge#57
Open
xdustinface wants to merge 1 commit intov0.42-devfrom
Open
feat: expose mempool transaction data in UniFFI bridge#57xdustinface wants to merge 1 commit intov0.42-devfrom
xdustinface wants to merge 1 commit intov0.42-devfrom
Conversation
|
This PR has merge conflicts with the base branch. Please rebase or merge the base branch into your branch to resolve them. |
Add MempoolTransactionInfo and MempoolBalanceInfo UniFFI record types and three new SpvClient methods to expose mempool state across the FFI boundary for Phase 3 (Send & Mempool) UI work. New client/mempool.rs methods on DashSpvClient: - get_all_mempool_transactions: snapshot of tracked unconfirmed txs - get_aggregate_mempool_balance: pending/pending_instant from MempoolState New bridge/mod.rs types and SpvClient methods: - MempoolTransactionInfo: maps UnconfirmedTransaction (Instant → secs ago) - MempoolBalanceInfo: aggregate pending balance record - get_mempool_transactions: returns Vec<MempoolTransactionInfo> - get_mempool_transaction_count: delegates to inner client method - get_mempool_balance: returns MempoolBalanceInfo from aggregate state Unit tests added for type mapping and all three SpvClient methods. Closes #54 Co-authored-by: Kevin Rombach <xdustinface@users.noreply.github.com>
2505007 to
728eb3e
Compare
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v0.42-dev #57 +/- ##
=============================================
- Coverage 68.85% 67.89% -0.96%
=============================================
Files 200 316 +116
Lines 42664 68894 +26230
=============================================
+ Hits 29376 46776 +17400
- Misses 13288 22118 +8830
🚀 New features to boost your workflow:
|
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.
Summary
Exposes mempool state through the UniFFI bridge for Phase 3 (Send & Mempool) UI work.
MempoolTransactionInfoandMempoolBalanceInforecord typesMempoolActivatedvariant to bridgeSyncEventenumSpvClientmethods:get_mempool_transactions,get_mempool_transaction_count,get_mempool_balanceCloses #54