Skip to content

feat(mobile): Implement transaction monitoring and indexing hooks #76

Description

@rafamiziara

Overview

Create React hooks for monitoring transaction status and triggering immediate pool indexing.

Tasks

Transaction Monitoring Hook

  • Create hooks/pools/useTransactionMonitoring.ts
  • Implement waitForTransaction() using Wagmi/Viem
  • Poll transaction status until confirmed or failed
  • Update PendingTransactionsStore with status changes
  • Extract poolId and poolAddress from transaction receipt

Pool Indexing Hook

  • Create hooks/pools/usePoolIndexing.ts
  • Implement triggerIndexing() to call backend indexPool
  • Handle immediate indexing success/failure
  • Silently fail and rely on scheduled indexing if backend unavailable

Acceptance Criteria

  • Transaction monitoring tracks status correctly
  • Indexing hook successfully triggers immediate indexing
  • Graceful fallback to scheduled indexing on failure
  • Proper error handling without blocking user flow

Related Documentation

  • See docs/POOL_CREATION_ARCHITECTURE.md Phase 4
  • See docs/POOL_CREATION_TASKS.md Tasks 11-12

Labels: comp: frontend, type: feature

Milestone: Sprint 3: Pool Creation

Part of Epic: #35

Metadata

Metadata

Assignees

Labels

comp: frontendIssues for the mobile app UI/UX in packages/mobile-apptype: featureNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions