Overview
Create shared event indexing service to parse PoolCreated events and store pool data in Firestore.
Tasks
Acceptance Criteria
- Service successfully parses PoolCreated events
- Idempotent storage prevents duplicate pools
- Handles all supported chains (Polygon Amoy, localhost)
- Comprehensive error handling for blockchain interactions
Related Documentation
- See docs/POOL_CREATION_ARCHITECTURE.md Phase 4
- See docs/POOL_CREATION_TASKS.md Tasks 3, 6
Labels: comp: backend, type: feature
Milestone: Sprint 3: Pool Creation
Part of Epic: #35
Overview
Create shared event indexing service to parse PoolCreated events and store pool data in Firestore.
Tasks
services/eventIndexer.tswith shared pool indexing logicparsePoolCreatedEvent()to extract pool data from eventsstorePoolInFirestore()with idempotency checksutils/blockchain.tswith ethers.js helpersgetTransactionReceipt(),getLatestBlockNumber()Acceptance Criteria
Related Documentation
Labels: comp: backend, type: feature
Milestone: Sprint 3: Pool Creation
Part of Epic: #35