Summary
The trade indexer processes buy events from the Soroban transaction stream and writes them to the database, but there is no integration test confirming the persisted record matches the on-chain event fields. A test should simulate an incoming buy event and assert the database record is correct.
Scope
- Feed a mock Soroban buy event into the indexer pipeline
- Assert a trade record is created in the database with matching:
buyer, creator_id, quantity, price, ledger, timestamp
- Assert no duplicate record is created if the same event is processed twice (idempotency)
- Assert an event with a missing required field is skipped and logged
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The trade indexer processes buy events from the Soroban transaction stream and writes them to the database, but there is no integration test confirming the persisted record matches the on-chain event fields. A test should simulate an incoming buy event and assert the database record is correct.
Scope
buyer,creator_id,quantity,price,ledger,timestampAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram