Join our community: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
backend/tests/integration/ exists but individual controller/service tests are largely unit-level, mocking the chain layer. There doesn't appear to be a single integration test that walks a stream through its full realistic lifecycle (create, top up, partial withdraw, cancel) verifying the indexer correctly updates withdrawnAmount/depositedAmount/status at each step in sequence. Bugs that only manifest from state accumulated across multiple operations (several of which are already individually tracked) would be caught earlier by one lifecycle test.
Acceptance criteria
Files to touch
backend/tests/integration/
Out of scope
- Running against real testnet/mainnet
- Load/performance testing
Why this matters
backend/tests/integration/exists but individual controller/service tests are largely unit-level, mocking the chain layer. There doesn't appear to be a single integration test that walks a stream through its full realistic lifecycle (create, top up, partial withdraw, cancel) verifying the indexer correctly updateswithdrawnAmount/depositedAmount/status at each step in sequence. Bugs that only manifest from state accumulated across multiple operations (several of which are already individually tracked) would be caught earlier by one lifecycle test.Acceptance criteria
backend/tests/integration/that performs the full lifecycle against a sandboxed/test chain environmentFiles to touch
backend/tests/integration/Out of scope