Problem
The API has no way to track on-chain events from
StepFi contracts. When a loan is approved on-chain,
the API does not know.
What To Build
- Create src/indexer/ module
- Use BullMQ for event processing queue
- Horizon event polling every 6 seconds
- Create indexer_state table in Supabase
- Add health check GET /indexer/status
Files To Touch
- src/indexer/ (new module)
- src/app.module.ts
- supabase/migrations/[ts]_indexer_state.sql
Acceptance Criteria
Mandatory Checks Before PR
Problem
The API has no way to track on-chain events from
StepFi contracts. When a loan is approved on-chain,
the API does not know.
What To Build
Files To Touch
Acceptance Criteria
Mandatory Checks Before PR