Set up environment variables and Firestore collections for pool creation feature.
Document ID: ${chainId}-${poolId}
Fields: {
poolId, poolAddress, poolOwner, name, description,
maxLoanAmount, interestRate, loanDuration,
chainId, createdAt, transactionHash,
blockNumber, isActive
}
Document ID: ${chainId}
Fields: {
chainId, lastProcessedBlock,
lastSyncedAt, totalPoolsIndexed
}
Overview
Set up environment variables and Firestore collections for pool creation feature.
Tasks
Mobile Environment Variables
EXPO_PUBLIC_POOL_FACTORY_ADDRESS_AMOYtoapps/mobile/.envEXPO_PUBLIC_BACKEND_URLfor Firebase FunctionsFirestore Collections Setup
poolscollection with composite key${chainId}-${poolId}event_sync_statecollection with document per chainCollection Schemas
pools
event_sync_state
Acceptance Criteria
Related Documentation
Labels: type: chore
Milestone: Sprint 3: Pool Creation
Part of Epic: #35