Skip to content

Add integration test for sell event indexer correctly persisting sell events from Soroban stream #624

Description

@Chucks1093

Summary

The indexer processes sell events from the Soroban transaction stream but there is no integration test confirming sell events are persisted correctly. A test should feed a mock sell event into the pipeline and assert the database record matches the event fields.

Scope

  • Feed a mock Soroban sell event into the indexer pipeline
  • Assert a trade record is created with type sell and correct fields: seller, creator_id, quantity, proceeds, ledger, timestamp
  • Assert duplicate sell events are deduplicated using the same hash+index logic as buy events
  • Assert a sell event with a missing required field is skipped with a warn-level log

Acceptance Criteria

  • Sell trade record created with all six fields correct and type: sell
  • Duplicate sell event does not create a second record
  • Malformed sell event skipped without crashing the indexer
  • Skipped event produces a warn-level log

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions