Description
Difficulty: Intermediate
Type: Feature
Summary
Add a mapper that converts raw Stellar transaction or payment records into a simplified transaction summary for mobile UI consumption.
Current Behaviour
The mobile app may need to interpret raw Horizon responses directly, leading to duplicated formatting and mapping logic.
Expected Behaviour
The SDK should provide a stable summary model with fields useful for transaction lists and detail screens.
Suggested Implementation
Create mapTransactionToSummary or mapPaymentToSummary. Include direction where possible, amount, asset, counterparty, memo, createdAt, transaction hash, and status if available.
Files or Areas Likely Affected
src/transactions/
src/types/
tests/
docs/api-reference.md
Acceptance Criteria
Additional Notes
Keep raw response access available for advanced consumers if currently exposed.
Description
Difficulty: Intermediate
Type: Feature
Summary
Add a mapper that converts raw Stellar transaction or payment records into a simplified transaction summary for mobile UI consumption.
Current Behaviour
The mobile app may need to interpret raw Horizon responses directly, leading to duplicated formatting and mapping logic.
Expected Behaviour
The SDK should provide a stable summary model with fields useful for transaction lists and detail screens.
Suggested Implementation
Create mapTransactionToSummary or mapPaymentToSummary. Include direction where possible, amount, asset, counterparty, memo, createdAt, transaction hash, and status if available.
Files or Areas Likely Affected
src/transactions/
src/types/
tests/
docs/api-reference.md
Acceptance Criteria
Additional Notes
Keep raw response access available for advanced consumers if currently exposed.