Skip to content

feat(frontend): implement full transaction lifecycle states (submitted → confirming → confirmed) #566

@ogazboiz

Description

@ogazboiz

Join our community: https://t.me/+DOylgFv1jyJlNzM0

Area: useContractMutation.ts, transaction flows

Transactions only show pending → success/error. Missing intermediate states: submitted (in mempool), confirming (awaiting ledger close), confirmed (N confirmations). If the UI loses track mid-flight, users see a frozen spinner forever.

Fix:

  • Add transaction states: idle | pending | submitted | confirming | confirmed | failed
  • Poll pollTransaction(txHash) and update UI at each stage
  • Show estimated wait time ("Waiting for ledger close...")
  • Add a "Transaction stuck?" recovery link after 60s

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcoreCore functionalityenhancementNew feature or requestfrontendIssues related to frontend development

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions