stack_wallet/lib/providers/churning/churning_service_provider.dart

13 lines
464 B
Dart
Raw Normal View History

2024-11-07 22:09:54 +00:00
import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../../services/churning_service.dart';
import '../../wallets/wallet/intermediate/lib_monero_wallet.dart';
import '../global/wallets_provider.dart';
final pChurningService = ChangeNotifierProvider.family<ChurningService, String>(
(ref, walletId) {
final wallet = ref.watch(pWallets.select((s) => s.getWallet(walletId)));
return ChurningService(wallet: wallet as LibMoneroWallet);
},
);