Skip to content

feat(mobile): Implement pool creation hook with Wagmi integration #75

Description

@rafamiziara

Overview

Create custom React hook for pool creation using Reown AppKit + Wagmi for wallet interactions.

Tasks

  • Create hooks/pools/usePoolCreation.ts
  • Integrate Reown AppKit + Wagmi hooks for wallet client
  • Implement gas estimation and balance check
  • Implement createPool() function to call PoolFactory contract
  • Handle transaction submission and return transaction hash
  • Add to PendingTransactionsStore on submission
  • Implement error handling for rejected transactions

Acceptance Criteria

  • Hook successfully submits pool creation transactions
  • Gas estimation works correctly
  • Handles insufficient balance gracefully
  • Integrates with PendingTransactionsStore
  • Proper error handling for all failure scenarios

Related Documentation

  • See docs/POOL_CREATION_ARCHITECTURE.md Phase 3
  • See docs/POOL_CREATION_TASKS.md Task 10

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