mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-03 17:29:23 +00:00
14 lines
588 B
Dart
14 lines
588 B
Dart
import 'dart:async';
|
|
|
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
|
|
|
/// Store chain height subscriptions for each coin.
|
|
abstract class ElectrumxChainHeightService {
|
|
// Used to hold chain height subscriptions for each coin as in:
|
|
// ElectrumxChainHeightService.subscriptions[cryptoCurrency.coin] = sub;
|
|
static Map<Coin, StreamSubscription<dynamic>?> subscriptions = {};
|
|
|
|
// Used to hold chain height completers for each coin as in:
|
|
// ElectrumxChainHeightService.completers[cryptoCurrency.coin] = completer;
|
|
static Map<Coin, Completer<int>?> completers = {};
|
|
}
|