listInFlightSwaps method
The durable IN-FLIGHT SWAP surface (W-swap-5, #366): every swap whose order
was registered at execute and has neither been dismissed nor self-lapsed.
THE kill→relaunch re-attach — after a process restart the wallet screen
lists these and re-opens live tracking by feeding SwapRecord.id to
watchSwapStatus. NOT gated on swap being enabled or the §3.5 kill (a
local read is not swap traffic — the user never loses sight of money in
motion). Read-only, cheap + LOCAL; called on the same edges as the
parked/in-flight send surfaces. §5.4: SwapRecord.id is render-never-log.
Implementation
@override
Future<List<SwapRecord>> listInFlightSwaps() {
listInFlightSwapsCount++;
if (listInFlightSwapsThrows != null) {
return Future<List<SwapRecord>>.error(listInFlightSwapsThrows!);
}
return Future<List<SwapRecord>>.value(inFlightSwapsResult);
}