feat: Soroban contract event subscription + invoice comparison (#119, #120)#175
Open
pugsleyonesimus-dev wants to merge 1 commit into
Conversation
…edger-Foundation#119, OpenLedger-Foundation#120) feat(events): implement useContractEvents hook with 10s RPC polling - Add getContractEvents() to lib/stellar/client.ts using rpc.getEvents API - Parse event XDR to extract tokenId, amount, participantAddress - Track last processed ledger as cursor to avoid reprocessing - Invalidate TanStack Query caches per event type (funded/repaid/yield) - Show wallet-relevant toasts via sonner (respects notificationPreferences) - Mock event generator for NEXT_PUBLIC_ENABLE_MOCK_DATA=true mode - Mount via ContractEventSubscriber in marketplace + investor dashboard layouts feat(comparison): invoice side-by-side comparison feature - Add comparisonList: string[] to invoiceStore with toggleComparison/remove/clear - Add compare toggle button to InvoiceCard (max 3, disabled when full) - Build ComparisonBar fixed bottom component with invoice chips + share URL - Build ComparisonTable modal with 10 metric rows and best-value green highlight - Shareable URLs via ?compare=id1,id2,id3 query param Closes OpenLedger-Foundation#119 Closes OpenLedger-Foundation#120
|
@pugsleyonesimus-dev Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
closes #167
closes #168
feat(events): implement useContractEvents hook with 10s RPC polling
feat(comparison): invoice side-by-side comparison feature
Closes #119
Closes #120