mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
12 lines
464 B
Dart
12 lines
464 B
Dart
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);
|
|
},
|
|
);
|