feat(wallet): implement C09 stellar wallet transactions, integration … - #39
Closed
Fabr-i10 wants to merge 2 commits into
Closed
feat(wallet): implement C09 stellar wallet transactions, integration …#39Fabr-i10 wants to merge 2 commits into
Fabr-i10 wants to merge 2 commits into
Conversation
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 #31
PR title
Description
This PR implements C09 — Stellar wallet: transactions, integration and tests for the Ding Payments mobile client.
It introduces the transaction primitives and wallet infrastructure required before payment execution, including typed transaction builders, fee affordability validation, centralized Horizon access, standardized wallet error mapping, wallet readiness integration, comprehensive regression tests, and architecture documentation.
The implementation completes the work defined in CLI-039 through CLI-044, providing a reusable and well-tested foundation for future payment submission, NFC transport, and higher-level wallet features.
Type of change
feat)fix)Changes made
CLI-039 — Transaction builder
paymentTx.ts)TransactionBuilderfor XLM and USDC payment transactionsShared Horizon infrastructure
StellarHorizonClientCLI-040 — Fee estimation and reserve validation
FeeServicestellarReserve.ts)BalanceServicewith stroop-based helpersCLI-041 — Wallet error mapping
walletErrors.tsCLI-042 — Wallet integration
AuthGuardto require both:CLI-043 — Tests
Added deterministic Jest coverage for:
All wallet tests execute using mocked Horizon and mocked Stellar SDK components without requiring network connectivity.
CLI-044 — Documentation
docs/wallet-flow.mdTest plan
Screenshots / evidence
Test execution
Checklist
Closes #31with the correct issue numbersrc/features/, etc.)docs/wallet-flow.md)