feat(receipts): add Soroban receipt normalization API (#546)#630
Merged
Conversation
- Define canonical NormalizedReceipt schema for payments, refunds, and contract actions - Add ReceiptNormalizer to aggregate Horizon, Soroban RPC, and indexer metadata - Add stable receipt IDs derived from txHash + operationIndex - Use submittedAt for failed tx timestamps to survive testnet retries - Always return diagnostic metadata (errorCode, resultXdr, envelopeXdr) on failure - Expose GET /v1/receipts/tx/:txHash and GET /v1/receipts/address/:address - Add 20 Jest tests covering success, pending, and failed contract actions
|
@coderDom-x 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! 🚀 |
Contributor
|
@coderDom-x Fix workflow |
Contributor
Author
|
@Cedarich done |
Cedarich
approved these changes
Jun 29, 2026
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
Closes #546 — BE-62
Normalizes transaction, contract, and fee metadata into a single stable
NormalizedReceiptpayload. Clients can render receipt screens with noadditional joins or calculations.
Changes
receipt.schema.ts— canonical receipt type covering payments, refunds, contract actionsreceipt.normalizer.ts— aggregates Horizon + Soroban RPC + indexer into one payloadreceipts.service.ts— orchestrates fetches; Supabase hook marked with TODOreceipts.controller.ts— GET /v1/receipts/tx/:txHash, GET /v1/receipts/address/:addressreceipts.module.ts— NestJS module registrationreceipt.normalizer.spec.ts— 20 Jest testsAcceptance Criteria
Testing
pnpm turbo run test --filter=app/backend