import 'package:cw_core/crypto_currency.dart'; import 'package:cw_core/node.dart'; import 'package:cw_core/pending_transaction.dart'; import 'package:cw_core/sync_status.dart'; import 'package:cw_core/transaction_priority.dart'; import 'package:cw_core/wallet_info.dart'; import 'package:mobx/mobx.dart'; import 'package:cw_core/wallet_base.dart'; import 'dummy_balance.dart'; import 'dummy_transaction_history.dart'; import 'dummy_transaction_info.dart'; import 'dummy_wallet_addresses.dart'; part 'dummy_wallet.g.dart'; class DummyWallet = DummyWalletBase with _$DummyWallet; abstract class DummyWalletBase extends WalletBase with Store { DummyWalletBase({required WalletInfo walletInfo}) : super(walletInfo) {} @override int calculateEstimatedFee(TransactionPriority priority, int? amount) => throw UnimplementedError(); @override Future changePassword(String password) async => throw UnimplementedError(); @override Future close() async => throw UnimplementedError(); @override Future connectToNode({required Node node}) async => throw UnimplementedError(); @override Future createTransaction(Object credentials) async => throw UnimplementedError(); @override Future> fetchTransactions() async => throw UnimplementedError(); @override Future renameWalletFiles(String newWalletName) async => throw UnimplementedError(); @override Future rescan({required int height}) async => throw UnimplementedError(); @override Future save() async => throw UnimplementedError(); @override Future startSync() async => throw UnimplementedError(); @override Future? updateBalance() => null; @override @observable late ObservableMap balance; @override Object get keys => throw UnimplementedError("keys"); @override String get seed => "seed"; @override @observable late SyncStatus syncStatus; @override late DummyWalletAddresses walletAddresses; }