Skip to content

CW-959: Swap Status on Transaction Screen #2247

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Blazebrain
Copy link
Contributor

  • Introduce SwapManager for automatic tracking of active-wallet swaps.
  • Automatically queues new or updated trades from the Hive box.
  • Periodically fetch and persist swap statuses via the corresponding trade provider.
  • Implement start(wallet, providers), stop(), and dispose() for lifecycle control.
  • Apply user's ExchangeApiMode(disabled, tor-only, enabled) when fetching updates.
  • Remove swaps from the watchlist on any final state (completed, expired, failed).
  • Dispose SwapManager in AppState.dispose() to cancel polling and the Hive subscription.

Issue Number (if Applicable): Fixes #

Description

Please include a summary of the changes and which issue is fixed / feature is added.

Pull Request - Checklist

  • Initial Manual Tests Passed
  • Double check modified code and verify it with the feature/task requirements
  • Format code
  • Look for code duplication
  • Clear naming for variables and methods
  • Manual tests in accessibility mode (TalkBack on Android) passed

…I updates

- Introduce SwapManager for automatic tracking of active-wallet swaps.
- Automatically queues new or updated trades from the Hive box.
- Periodically fetch and persist swap statuses via the corresponding trade provider.
- Implement start(wallet, providers), stop(), and dispose() for lifecycle control.
- Apply user's ExchangeApiMode(disabled, tor-only, enabled) when fetching updates.
- Remove swaps from the watchlist on any final state (completed, expired, failed).
- Dispose SwapManager in AppState.dispose() to cancel polling and the Hive subscription.
@Blazebrain Blazebrain self-assigned this May 2, 2025
@Blazebrain Blazebrain requested a review from OmarHatem28 May 2, 2025 15:42
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant