Summary
The SEP-24 (Hosted Deposit and Withdrawal) flow involves a highly complex state machine. Transactions transition through various states (incomplete, pending_user_transfer_start, completed) based on external triggers and Horizon network events. Currently, our unit tests only cover isolated functions, leaving us vulnerable to integration bugs between the network listener and the database.
We must build a comprehensive end-to-end integration suite for SEP-24. This suite needs to mock Horizon network responses, simulate the interactive web flow, and assert that the database state mutates exactly as defined by the Stellar ecosystem specifications. Fee calculation edge-cases must also be rigorously asserted.
Acceptance Criteria
Tech Stack
TypeScript (Node.js 24), Jest, supertest.
Summary
The SEP-24 (Hosted Deposit and Withdrawal) flow involves a highly complex state machine. Transactions transition through various states (
incomplete,pending_user_transfer_start,completed) based on external triggers and Horizon network events. Currently, our unit tests only cover isolated functions, leaving us vulnerable to integration bugs between the network listener and the database.We must build a comprehensive end-to-end integration suite for SEP-24. This suite needs to mock Horizon network responses, simulate the interactive web flow, and assert that the database state mutates exactly as defined by the Stellar ecosystem specifications. Fee calculation edge-cases must also be rigorously asserted.
Acceptance Criteria
Horizonserver to simulate incoming network payments.Tech Stack
TypeScript (Node.js 24), Jest,
supertest.