feat(dollarsSpend): migrate legacy saga to useTransactionInFlight#192
Merged
TuCopFi merged 1 commit intoJun 17, 2026
Merged
Conversation
…onInFlight Bridges the legacy multiSwap* dispatches with the new useTransactionInFlight keystone so DeepLinkRecovery and TransactionProgressSheet can observe the 'Dolares -> Pesos' flow without changing the existing UI consumers. - inFlightStart on saga entry with derived networkId from steps[0].tokenId - inFlightAdvance(progress) after each step succeeds (currentStep + 1) - inFlightAdvance(succeeded) after multiSwapCompleted - inFlightFail in all 4 error paths (wallet missing, token missing, quote refetch failure, swap step failure) Track C / WRI follow-up. Legacy saga only — the 7702 saga already integrates with useTransactionInFlight.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
multiSwap*dispatches inexecuteMultiSwapSagato the newuseTransactionInFlightkeystone, so DeepLinkRecovery + TransactionProgressSheet can observe the 'Dolares -> Pesos' flow without changing existing UI consumers.inFlightStarton saga entry (withnetworkIdderived from the first step'stokenId).inFlightAdvance({ toStatus: 'progress', patch: { currentStep: index + 1 } })after each step success.inFlightAdvance({ toStatus: 'succeeded' })aftermultiSwapCompleted.inFlightFailin all 4 error paths: wallet missing, token not found, quote refetch failure, swap step failure (withclassifyErrorfor the error class).Context
Track C / WRI follow-up. The 7702 saga (
saga7702.ts) already integrates withuseTransactionInFlight; this PR closes the loop on the legacy sequential fallback so coverage is uniform across both paths.Test plan
yarn build:tscleanyarn lintcleanyarn test src/dollarsSpend/saga(7/7 pass across 2 suites)