Skip to content

Add typed transaction summary mapper #109

Description

@El-swaggerito

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

  • Transaction summary type exists.
  • Mapper handles incoming payments.
  • Mapper handles outgoing payments.
  • Mapper includes transaction hash.
  • Mapper includes amount and asset information.
  • Tests cover representative raw records.

Additional Notes

Keep raw response access available for advanced consumers if currently exposed.

Metadata

Metadata

Labels

GrantFox OSSIssue tracked for GrantFox OSS contributionMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Official GrantFox campaign labelfeatureFeature workintermediateIntermediate difficultymobileMobile app related worksdkSDK related worktransactionsTransaction related work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions