diff --git a/test/pages/send_view/send_view_test.mocks.dart b/test/pages/send_view/send_view_test.mocks.dart index a8c1ca423..032983189 100644 --- a/test/pages/send_view/send_view_test.mocks.dart +++ b/test/pages/send_view/send_view_test.mocks.dart @@ -3,12 +3,11 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i22; -import 'dart:typed_data' as _i28; -import 'dart:ui' as _i24; +import 'dart:async' as _i21; +import 'dart:typed_data' as _i27; +import 'dart:ui' as _i23; -import 'package:bip32/bip32.dart' as _i17; -import 'package:bip47/bip47.dart' as _i18; +import 'package:bip47/bip47.dart' as _i17; import 'package:bitcoindart/bitcoindart.dart' as _i14; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; @@ -18,26 +17,26 @@ import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i11; import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i10; import 'package:stackwallet/models/balance.dart' as _i12; import 'package:stackwallet/models/isar/models/isar_models.dart' as _i16; -import 'package:stackwallet/models/node_model.dart' as _i25; +import 'package:stackwallet/models/node_model.dart' as _i24; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9; import 'package:stackwallet/pages/exchange_view/sub_widgets/exchange_rate_sheet.dart' - as _i31; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i26; -import 'package:stackwallet/services/coins/coin_service.dart' as _i19; + as _i30; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i25; +import 'package:stackwallet/services/coins/coin_service.dart' as _i18; import 'package:stackwallet/services/coins/manager.dart' as _i6; -import 'package:stackwallet/services/locale_service.dart' as _i29; +import 'package:stackwallet/services/locale_service.dart' as _i28; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i8; -import 'package:stackwallet/services/wallets.dart' as _i20; +import 'package:stackwallet/services/wallets.dart' as _i19; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i32; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i21; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i27; -import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i30; +import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i31; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i20; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i26; +import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i29; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i7; -import 'package:stackwallet/utilities/prefs.dart' as _i23; +import 'package:stackwallet/utilities/prefs.dart' as _i22; import 'package:tuple/tuple.dart' as _i15; // ignore_for_file: type=lint @@ -187,9 +186,9 @@ class _FakeElectrumXNode_12 extends _i1.SmartFake ); } -class _FakeTuple4_13 extends _i1.SmartFake - implements _i15.Tuple4 { - _FakeTuple4_13( +class _FakeTuple2_13 extends _i1.SmartFake + implements _i15.Tuple2 { + _FakeTuple2_13( Object parent, Invocation parentInvocation, ) : super( @@ -208,8 +207,8 @@ class _FakeAddress_14 extends _i1.SmartFake implements _i16.Address { ); } -class _FakeBIP32_15 extends _i1.SmartFake implements _i17.BIP32 { - _FakeBIP32_15( +class _FakePaymentCode_15 extends _i1.SmartFake implements _i17.PaymentCode { + _FakePaymentCode_15( Object parent, Invocation parentInvocation, ) : super( @@ -218,19 +217,9 @@ class _FakeBIP32_15 extends _i1.SmartFake implements _i17.BIP32 { ); } -class _FakePaymentCode_16 extends _i1.SmartFake implements _i18.PaymentCode { - _FakePaymentCode_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeCoinServiceAPI_17 extends _i1.SmartFake - implements _i19.CoinServiceAPI { - _FakeCoinServiceAPI_17( +class _FakeCoinServiceAPI_16 extends _i1.SmartFake + implements _i18.CoinServiceAPI { + _FakeCoinServiceAPI_16( Object parent, Invocation parentInvocation, ) : super( @@ -242,7 +231,7 @@ class _FakeCoinServiceAPI_17 extends _i1.SmartFake /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i20.Wallets { +class MockWallets extends _i1.Mock implements _i19.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -309,7 +298,7 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i21.Coin? coin}) => + List getWalletIdsFor({required _i20.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -319,18 +308,18 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValue: [], ) as List); @override - Map<_i21.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> + Map<_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i21.Coin, + returnValue: <_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>{}, - ) as Map<_i21.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); + ) as Map<_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i21.Coin? coin) => + _i20.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -394,17 +383,17 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - _i22.Future load(_i23.Prefs? prefs) => (super.noSuchMethod( + _i21.Future load(_i22.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future loadAfterStackRestore( - _i23.Prefs? prefs, + _i21.Future loadAfterStackRestore( + _i22.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -415,11 +404,11 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { managers, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -427,7 +416,7 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -453,19 +442,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i22.Future> get walletNames => + _i21.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i22.Future>.value( + returnValue: _i21.Future>.value( {}), - ) as _i22.Future>); + ) as _i21.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i22.Future renameWallet({ + _i21.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -480,13 +469,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future addExistingStackWallet({ + _i21.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i21.Coin? coin, + required _i20.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -500,13 +489,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future addNewWallet({ + _i21.Future addNewWallet({ required String? name, - required _i21.Coin? coin, + required _i20.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -519,46 +508,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i21.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); @override - _i22.Future saveFavoriteWalletIds(List? walletIds) => + _i21.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i21.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i21.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future moveFavorite({ + _i21.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -571,48 +560,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i21.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i21.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future isMnemonicVerified({required String? walletId}) => + _i21.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future setMnemonicVerified({required String? walletId}) => + _i21.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future deleteWallet( + _i21.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -624,20 +613,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future refreshWallets(bool? shouldNotifyListeners) => + _i21.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -645,7 +634,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -687,33 +676,33 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), ) as _i7.SecureStorageInterface); @override - List<_i25.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i24.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i25.NodeModel>[], - ) as List<_i25.NodeModel>); + returnValue: <_i24.NodeModel>[], + ) as List<_i24.NodeModel>); @override - List<_i25.NodeModel> get nodes => (super.noSuchMethod( + List<_i24.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i25.NodeModel>[], - ) as List<_i25.NodeModel>); + returnValue: <_i24.NodeModel>[], + ) as List<_i24.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i22.Future updateDefaults() => (super.noSuchMethod( + _i21.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future setPrimaryNodeFor({ - required _i21.Coin? coin, - required _i25.NodeModel? node, + _i21.Future setPrimaryNodeFor({ + required _i20.Coin? coin, + required _i24.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -726,44 +715,44 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i25.NodeModel? getPrimaryNodeFor({required _i21.Coin? coin}) => + _i24.NodeModel? getPrimaryNodeFor({required _i20.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i25.NodeModel?); + )) as _i24.NodeModel?); @override - List<_i25.NodeModel> getNodesFor(_i21.Coin? coin) => (super.noSuchMethod( + List<_i24.NodeModel> getNodesFor(_i20.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i25.NodeModel>[], - ) as List<_i25.NodeModel>); + returnValue: <_i24.NodeModel>[], + ) as List<_i24.NodeModel>); @override - _i25.NodeModel? getNodeById({required String? id}) => + _i24.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i25.NodeModel?); + )) as _i24.NodeModel?); @override - List<_i25.NodeModel> failoverNodesFor({required _i21.Coin? coin}) => + List<_i24.NodeModel> failoverNodesFor({required _i20.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i25.NodeModel>[], - ) as List<_i25.NodeModel>); + returnValue: <_i24.NodeModel>[], + ) as List<_i24.NodeModel>); @override - _i22.Future add( - _i25.NodeModel? node, + _i21.Future add( + _i24.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -776,11 +765,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future delete( + _i21.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -792,11 +781,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future setEnabledState( + _i21.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -810,12 +799,12 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future edit( - _i25.NodeModel? editedNode, + _i21.Future edit( + _i24.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -828,20 +817,20 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future updateCommunityNodes() => (super.noSuchMethod( + _i21.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -849,7 +838,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -877,13 +866,13 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { /// A class which mocks [BitcoinWallet]. /// /// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i22.Timer? _timer) => super.noSuchMethod( + set timer(_i21.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -960,64 +949,74 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValue: false, ) as bool); @override - _i21.Coin get coin => (super.noSuchMethod( + _i20.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i20.Coin.bitcoin, + ) as _i20.Coin); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i21.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i16.UTXO>[]), - ) as _i22.Future>); + returnValue: _i21.Future>.value(<_i16.UTXO>[]), + ) as _i21.Future>); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i21.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i16.Transaction>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i16.Transaction>[]), + ) as _i21.Future>); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i21.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future get currentChangeAddress => (super.noSuchMethod( + _i21.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future get currentChangeAddressP2PKH => (super.noSuchMethod( + _i21.Future get currentChangeAddressP2PKH => (super.noSuchMethod( Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i22.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i21.Future<_i9.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i21.Future<_i9.FeeObject>.value(_FakeFeeObject_6( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i9.FeeObject>); + ) as _i21.Future<_i9.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i21.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i21.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); @override - _i22.Future get chainHeight => (super.noSuchMethod( + _i21.Future get mnemonicString => (super.noSuchMethod( + Invocation.getter(#mnemonicString), + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override + _i21.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override + _i21.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -1114,27 +1113,28 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { ), ) as _i14.NetworkType); @override - _i22.Future exit() => (super.noSuchMethod( + _i21.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i27.DerivePathType addressType({required String? address}) => + _i26.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i27.DerivePathType.bip44, - ) as _i27.DerivePathType); + returnValue: _i26.DerivePathType.bip44, + ) as _i26.DerivePathType); @override - _i22.Future recoverFromMnemonic({ + _i21.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -1145,52 +1145,53 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future getTransactionCacheEarly(List? allAddresses) => + _i21.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i21.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future getAllTxsToWatch() => (super.noSuchMethod( + _i21.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i21.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future> prepareSend({ + _i21.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -1206,26 +1207,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i21.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i21.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -1243,33 +1244,33 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i21.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i21.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future updateSentCachedTxData(Map? txData) => + _i21.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1279,36 +1280,36 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValue: false, ) as bool); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future<_i10.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i21.Future<_i10.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), returnValue: - _i22.Future<_i10.ElectrumXNode>.value(_FakeElectrumXNode_12( + _i21.Future<_i10.ElectrumXNode>.value(_FakeElectrumXNode_12( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i22.Future<_i10.ElectrumXNode>); + ) as _i21.Future<_i10.ElectrumXNode>); @override - _i22.Future addDerivation({ + _i21.Future addDerivation({ required int? chain, required String? address, required String? pubKey, required String? wif, - required _i27.DerivePathType? derivePathType, + required _i26.DerivePathType? derivePathType, }) => (super.noSuchMethod( Invocation.method( @@ -1322,13 +1323,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #derivePathType: derivePathType, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future addDerivations({ + _i21.Future addDerivations({ required int? chain, - required _i27.DerivePathType? derivePathType, + required _i26.DerivePathType? derivePathType, required Map? derivationsToAdd, }) => (super.noSuchMethod( @@ -1341,50 +1342,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #derivationsToAdd: derivationsToAdd, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future>> fastFetch( + _i21.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i22.Future>>.value( + returnValue: _i21.Future>>.value( >[]), - ) as _i22.Future>>); + ) as _i21.Future>>); @override - _i22.Future getTxCount({required String? address}) => + _i21.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future checkCurrentReceivingAddressesForTransactions() => + _i21.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future checkCurrentChangeAddressesForTransactions() => + _i21.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override int estimateTxFee({ required int? vSize, @@ -1424,7 +1425,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, )); @override - _i22.Future> fetchBuildTxData( + _i21.Future> fetchBuildTxData( List<_i16.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( @@ -1432,10 +1433,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { [utxosToUse], ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future> buildTransaction({ + _i21.Future> buildTransaction({ required List<_i16.UTXO>? utxosToUse, required Map? utxoSigningData, required List? recipients, @@ -1453,10 +1454,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future fullRescan( + _i21.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1468,11 +1469,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future estimateFeeFor( + _i21.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1484,8 +1485,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { feeRate, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override int roughFeeEstimate( int? inputCount, @@ -1504,25 +1505,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValue: 0, ) as int); @override - _i22.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( + _i21.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i21.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override void initCache( String? walletId, - _i21.Coin? coin, + _i20.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1535,14 +1536,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future updateCachedId(String? id) => (super.noSuchMethod( + _i21.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1552,14 +1553,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValue: 0, ) as int); @override - _i22.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i21.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1569,15 +1570,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValue: false, ) as bool); @override - _i22.Future updateCachedIsFavorite(bool? isFavorite) => + _i21.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override _i12.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1593,15 +1594,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { ), ) as _i12.Balance); @override - _i22.Future updateCachedBalance(_i12.Balance? balance) => + _i21.Future updateCachedBalance(_i12.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override _i12.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1617,15 +1618,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { ), ) as _i12.Balance); @override - _i22.Future updateCachedBalanceSecondary(_i12.Balance? balance) => + _i21.Future updateCachedBalanceSecondary(_i12.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override void initWalletDB({_i13.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1636,13 +1637,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future< - _i15.Tuple4<_i16.Transaction, List<_i16.Output>, List<_i16.Input>, - _i16.Address>> parseTransaction( + _i21.Future<_i15.Tuple2<_i16.Transaction, _i16.Address>> parseTransaction( Map? txData, dynamic electrumxClient, List<_i16.Address>? myAddresses, - _i21.Coin? coin, + _i20.Coin? coin, int? minConfirms, String? walletId, ) => @@ -1658,10 +1657,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { walletId, ], ), - returnValue: _i22.Future< - _i15.Tuple4<_i16.Transaction, List<_i16.Output>, List<_i16.Input>, - _i16.Address>>.value(_FakeTuple4_13<_i16.Transaction, - List<_i16.Output>, List<_i16.Input>, _i16.Address>( + returnValue: + _i21.Future<_i15.Tuple2<_i16.Transaction, _i16.Address>>.value( + _FakeTuple2_13<_i16.Transaction, _i16.Address>( this, Invocation.method( #parseTransaction, @@ -1675,53 +1673,46 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { ], ), )), - ) as _i22.Future< - _i15.Tuple4<_i16.Transaction, List<_i16.Output>, List<_i16.Input>, - _i16.Address>>); + ) as _i21.Future<_i15.Tuple2<_i16.Transaction, _i16.Address>>); @override void initPaynymWalletInterface({ required String? walletId, required String? walletName, required _i14.NetworkType? network, - required _i21.Coin? coin, + required _i20.Coin? coin, required _i13.MainDB? db, required _i10.ElectrumX? electrumXClient, required _i7.SecureStorageInterface? secureStorage, required int? dustLimitP2PKH, required int? minConfirms, - required _i22.Future> Function()? getMnemonic, - required _i22.Future Function()? getChainHeight, - required _i22.Future Function()? getCurrentChangeAddress, + required _i21.Future Function()? getMnemonicString, + required _i21.Future Function()? getMnemonicPassphrase, + required _i21.Future Function()? getChainHeight, + required _i21.Future Function()? getCurrentChangeAddress, required int Function({ required int feeRatePerKB, required int vSize, })? estimateTxFee, - required _i22.Future> Function({ + required _i21.Future> Function({ required String address, required int satoshiAmount, Map? args, })? prepareSend, - required _i22.Future Function({required String address})? getTxCount, - required _i22.Future> Function(List<_i16.UTXO>)? + required _i21.Future Function({required String address})? getTxCount, + required _i21.Future> Function(List<_i16.UTXO>)? fetchBuildTxData, - required _i22.Future Function()? refresh, - required _i22.Future Function()? checkChangeAddressForTransactions, - required _i22.Future Function({ + required _i21.Future Function()? refresh, + required _i21.Future Function()? checkChangeAddressForTransactions, + required _i21.Future Function({ required String address, required int chain, - required _i27.DerivePathType derivePathType, + required _i26.DerivePathType derivePathType, required String pubKey, required String wif, })? addDerivation, - required _i22.Future Function({ - required int chain, - required Map derivationsToAdd, - required _i27.DerivePathType derivePathType, - })? - addDerivations, }) => super.noSuchMethod( Invocation.method( @@ -1737,7 +1728,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #secureStorage: secureStorage, #dustLimitP2PKH: dustLimitP2PKH, #minConfirms: minConfirms, - #getMnemonic: getMnemonic, + #getMnemonicString: getMnemonicString, + #getMnemonicPassphrase: getMnemonicPassphrase, #getChainHeight: getChainHeight, #getCurrentChangeAddress: getCurrentChangeAddress, #estimateTxFee: estimateTxFee, @@ -1748,79 +1740,67 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #checkChangeAddressForTransactions: checkChangeAddressForTransactions, #addDerivation: addDerivation, - #addDerivations: addDerivations, }, ), returnValueForMissingStub: null, ); @override - _i22.Future<_i16.Address> currentReceivingPaynymAddress( - _i18.PaymentCode? sender) => + _i21.Future<_i16.Address> currentReceivingPaynymAddress( + _i17.PaymentCode? sender) => (super.noSuchMethod( Invocation.method( #currentReceivingPaynymAddress, [sender], ), - returnValue: _i22.Future<_i16.Address>.value(_FakeAddress_14( + returnValue: _i21.Future<_i16.Address>.value(_FakeAddress_14( this, Invocation.method( #currentReceivingPaynymAddress, [sender], ), )), - ) as _i22.Future<_i16.Address>); + ) as _i21.Future<_i16.Address>); @override - _i22.Future checkCurrentPaynymReceivingAddressForTransactions( - _i18.PaymentCode? sender) => + _i21.Future checkCurrentPaynymReceivingAddressForTransactions( + _i17.PaymentCode? sender) => (super.noSuchMethod( Invocation.method( #checkCurrentPaynymReceivingAddressForTransactions, [sender], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => + _i21.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkAllCurrentReceivingPaynymAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future<_i17.BIP32> getRootNode({required List? mnemonic}) => - (super.noSuchMethod( - Invocation.method( - #getRootNode, - [], - {#mnemonic: mnemonic}, - ), - returnValue: _i22.Future<_i17.BIP32>.value(_FakeBIP32_15( - this, - Invocation.method( - #getRootNode, - [], - {#mnemonic: mnemonic}, - ), - )), - ) as _i22.Future<_i17.BIP32>); - @override - _i22.Future<_i28.Uint8List> deriveNotificationPrivateKey( - {required List? mnemonic}) => + _i21.Future<_i27.Uint8List> deriveNotificationPrivateKey({ + required String? mnemonic, + required String? mnemonicPassphrase, + }) => (super.noSuchMethod( Invocation.method( #deriveNotificationPrivateKey, [], - {#mnemonic: mnemonic}, + { + #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, + }, ), - returnValue: _i22.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i22.Future<_i28.Uint8List>); + returnValue: _i21.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), + ) as _i21.Future<_i27.Uint8List>); @override - _i22.Future<_i28.Uint8List> deriveReceivingPrivateKey({ - required List? mnemonic, + _i21.Future<_i27.Uint8List> deriveReceivingPrivateKey({ + required String? mnemonic, + required String? mnemonicPassphrase, required int? index, }) => (super.noSuchMethod( @@ -1829,48 +1809,49 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #index: index, }, ), - returnValue: _i22.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i22.Future<_i28.Uint8List>); + returnValue: _i21.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), + ) as _i21.Future<_i27.Uint8List>); @override - _i22.Future<_i18.PaymentCode> getPaymentCode( - _i27.DerivePathType? derivePathType) => + _i21.Future<_i17.PaymentCode> getPaymentCode( + _i26.DerivePathType? derivePathType) => (super.noSuchMethod( Invocation.method( #getPaymentCode, [derivePathType], ), - returnValue: _i22.Future<_i18.PaymentCode>.value(_FakePaymentCode_16( + returnValue: _i21.Future<_i17.PaymentCode>.value(_FakePaymentCode_15( this, Invocation.method( #getPaymentCode, [derivePathType], ), )), - ) as _i22.Future<_i18.PaymentCode>); + ) as _i21.Future<_i17.PaymentCode>); @override - _i22.Future<_i28.Uint8List> signWithNotificationKey(_i28.Uint8List? data) => + _i21.Future<_i27.Uint8List> signWithNotificationKey(_i27.Uint8List? data) => (super.noSuchMethod( Invocation.method( #signWithNotificationKey, [data], ), - returnValue: _i22.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i22.Future<_i28.Uint8List>); + returnValue: _i21.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), + ) as _i21.Future<_i27.Uint8List>); @override - _i22.Future signStringWithNotificationKey(String? data) => + _i21.Future signStringWithNotificationKey(String? data) => (super.noSuchMethod( Invocation.method( #signStringWithNotificationKey, [data], ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future> preparePaymentCodeSend({ - required _i18.PaymentCode? paymentCode, + _i21.Future> preparePaymentCodeSend({ + required _i17.PaymentCode? paymentCode, required int? satoshiAmount, Map? args, }) => @@ -1885,12 +1866,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future<_i16.Address> nextUnusedSendAddressFrom({ - required _i18.PaymentCode? pCode, - required _i28.Uint8List? privateKey, + _i21.Future<_i16.Address> nextUnusedSendAddressFrom({ + required _i17.PaymentCode? pCode, + required _i27.Uint8List? privateKey, int? startIndex = 0, }) => (super.noSuchMethod( @@ -1903,7 +1884,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #startIndex: startIndex, }, ), - returnValue: _i22.Future<_i16.Address>.value(_FakeAddress_14( + returnValue: _i21.Future<_i16.Address>.value(_FakeAddress_14( this, Invocation.method( #nextUnusedSendAddressFrom, @@ -1915,9 +1896,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, ), )), - ) as _i22.Future<_i16.Address>); + ) as _i21.Future<_i16.Address>); @override - _i22.Future> prepareNotificationTx({ + _i21.Future> prepareNotificationTx({ required int? selectedTxFeeRate, required String? targetPaymentCodeString, int? additionalOutputs = 0, @@ -1935,10 +1916,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future broadcastNotificationTx( + _i21.Future broadcastNotificationTx( {required Map? preparedTx}) => (super.noSuchMethod( Invocation.method( @@ -1946,19 +1927,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { [], {#preparedTx: preparedTx}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future hasConnected(String? paymentCodeString) => + _i21.Future hasConnected(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #hasConnected, [paymentCodeString], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransaction({ + _i21.Future<_i17.PaymentCode?> unBlindedPaymentCodeFromTransaction({ required _i16.Transaction? transaction, required _i16.Address? myNotificationAddress, }) => @@ -1971,31 +1952,31 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #myNotificationAddress: myNotificationAddress, }, ), - returnValue: _i22.Future<_i18.PaymentCode?>.value(), - ) as _i22.Future<_i18.PaymentCode?>); + returnValue: _i21.Future<_i17.PaymentCode?>.value(), + ) as _i21.Future<_i17.PaymentCode?>); @override - _i22.Future> + _i21.Future> getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( Invocation.method( #getAllPaymentCodesFromNotificationTransactions, [], ), returnValue: - _i22.Future>.value(<_i18.PaymentCode>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i17.PaymentCode>[]), + ) as _i21.Future>); @override - _i22.Future checkForNotificationTransactionsTo( + _i21.Future checkForNotificationTransactionsTo( Set? otherCodeStrings) => (super.noSuchMethod( Invocation.method( #checkForNotificationTransactionsTo, [otherCodeStrings], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future restoreAllHistory({ + _i21.Future restoreAllHistory({ required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required Set? paymentCodeStrings, @@ -2010,12 +1991,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #paymentCodeStrings: paymentCodeStrings, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future restoreHistoryWith( - _i18.PaymentCode? other, + _i21.Future restoreHistoryWith( + _i17.PaymentCode? other, int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2028,15 +2009,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future<_i16.Address> generatePaynymSendAddressFromKeyPair({ + _i21.Future<_i16.Address> generatePaynymSendAddressFromKeyPair({ required _i14.ECPair? pair, required int? derivationIndex, - required _i27.DerivePathType? derivePathType, - required _i18.PaymentCode? toPaymentCode, + required _i26.DerivePathType? derivePathType, + required _i17.PaymentCode? toPaymentCode, }) => (super.noSuchMethod( Invocation.method( @@ -2049,7 +2030,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #toPaymentCode: toPaymentCode, }, ), - returnValue: _i22.Future<_i16.Address>.value(_FakeAddress_14( + returnValue: _i21.Future<_i16.Address>.value(_FakeAddress_14( this, Invocation.method( #generatePaynymSendAddressFromKeyPair, @@ -2062,13 +2043,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, ), )), - ) as _i22.Future<_i16.Address>); + ) as _i21.Future<_i16.Address>); @override - _i22.Future<_i16.Address> generatePaynymReceivingAddressFromKeyPair({ + _i21.Future<_i16.Address> generatePaynymReceivingAddressFromKeyPair({ required _i14.ECPair? pair, required int? derivationIndex, - required _i27.DerivePathType? derivePathType, - required _i18.PaymentCode? fromPaymentCode, + required _i26.DerivePathType? derivePathType, + required _i17.PaymentCode? fromPaymentCode, }) => (super.noSuchMethod( Invocation.method( @@ -2081,7 +2062,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #fromPaymentCode: fromPaymentCode, }, ), - returnValue: _i22.Future<_i16.Address>.value(_FakeAddress_14( + returnValue: _i21.Future<_i16.Address>.value(_FakeAddress_14( this, Invocation.method( #generatePaynymReceivingAddressFromKeyPair, @@ -2094,56 +2075,56 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, ), )), - ) as _i22.Future<_i16.Address>); + ) as _i21.Future<_i16.Address>); @override - _i22.Future<_i16.Address> getMyNotificationAddress( - _i27.DerivePathType? derivePathType) => + _i21.Future<_i16.Address> getMyNotificationAddress( + _i26.DerivePathType? derivePathType) => (super.noSuchMethod( Invocation.method( #getMyNotificationAddress, [derivePathType], ), - returnValue: _i22.Future<_i16.Address>.value(_FakeAddress_14( + returnValue: _i21.Future<_i16.Address>.value(_FakeAddress_14( this, Invocation.method( #getMyNotificationAddress, [derivePathType], ), )), - ) as _i22.Future<_i16.Address>); + ) as _i21.Future<_i16.Address>); @override - _i22.Future> lookupKey(String? paymentCodeString) => + _i21.Future> lookupKey(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #lookupKey, [paymentCodeString], ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); @override - _i22.Future paymentCodeStringByKey(String? key) => + _i21.Future paymentCodeStringByKey(String? key) => (super.noSuchMethod( Invocation.method( #paymentCodeStringByKey, [key], ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future storeCode(String? paymentCodeString) => + _i21.Future storeCode(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #storeCode, [paymentCodeString], ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); } /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i29.LocaleService { +class MockLocaleService extends _i1.Mock implements _i28.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -2159,17 +2140,17 @@ class MockLocaleService extends _i1.Mock implements _i29.LocaleService { returnValue: false, ) as bool); @override - _i22.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i21.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2177,7 +2158,7 @@ class MockLocaleService extends _i1.Mock implements _i29.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2205,7 +2186,7 @@ class MockLocaleService extends _i1.Mock implements _i29.LocaleService { /// A class which mocks [Prefs]. /// /// See the documentation for Mockito's code generation for more information. -class MockPrefs extends _i1.Mock implements _i23.Prefs { +class MockPrefs extends _i1.Mock implements _i22.Prefs { MockPrefs() { _i1.throwOnMissingStub(this); } @@ -2261,12 +2242,12 @@ class MockPrefs extends _i1.Mock implements _i23.Prefs { returnValueForMissingStub: null, ); @override - _i30.SyncingType get syncType => (super.noSuchMethod( + _i29.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), - returnValue: _i30.SyncingType.currentWalletOnly, - ) as _i30.SyncingType); + returnValue: _i29.SyncingType.currentWalletOnly, + ) as _i29.SyncingType); @override - set syncType(_i30.SyncingType? syncType) => super.noSuchMethod( + set syncType(_i29.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( #syncType, syncType, @@ -2326,12 +2307,12 @@ class MockPrefs extends _i1.Mock implements _i23.Prefs { returnValueForMissingStub: null, ); @override - _i31.ExchangeRateType get exchangeRateType => (super.noSuchMethod( + _i30.ExchangeRateType get exchangeRateType => (super.noSuchMethod( Invocation.getter(#exchangeRateType), - returnValue: _i31.ExchangeRateType.estimated, - ) as _i31.ExchangeRateType); + returnValue: _i30.ExchangeRateType.estimated, + ) as _i30.ExchangeRateType); @override - set exchangeRateType(_i31.ExchangeRateType? exchangeRateType) => + set exchangeRateType(_i30.ExchangeRateType? exchangeRateType) => super.noSuchMethod( Invocation.setter( #exchangeRateType, @@ -2413,12 +2394,12 @@ class MockPrefs extends _i1.Mock implements _i23.Prefs { returnValueForMissingStub: null, ); @override - _i32.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( + _i31.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), - returnValue: _i32.BackupFrequencyType.everyTenMinutes, - ) as _i32.BackupFrequencyType); + returnValue: _i31.BackupFrequencyType.everyTenMinutes, + ) as _i31.BackupFrequencyType); @override - set backupFrequencyType(_i32.BackupFrequencyType? backupFrequencyType) => + set backupFrequencyType(_i31.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( Invocation.setter( #backupFrequencyType, @@ -2488,51 +2469,51 @@ class MockPrefs extends _i1.Mock implements _i23.Prefs { returnValue: false, ) as bool); @override - _i22.Future init() => (super.noSuchMethod( + _i21.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( + _i21.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( #incrementCurrentNotificationIndex, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future isExternalCallsSet() => (super.noSuchMethod( + _i21.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( #isExternalCallsSet, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future saveUserID(String? userId) => (super.noSuchMethod( + _i21.Future saveUserID(String? userId) => (super.noSuchMethod( Invocation.method( #saveUserID, [userId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( + _i21.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( Invocation.method( #saveSignupEpoch, [signupEpoch], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2540,7 +2521,7 @@ class MockPrefs extends _i1.Mock implements _i23.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2583,23 +2564,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i19.CoinServiceAPI get wallet => (super.noSuchMethod( + _i18.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_17( + returnValue: _FakeCoinServiceAPI_16( this, Invocation.getter(#wallet), ), - ) as _i19.CoinServiceAPI); + ) as _i18.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i21.Coin get coin => (super.noSuchMethod( + _i20.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i20.Coin.bitcoin, + ) as _i20.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2632,23 +2613,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i22.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i21.Future<_i9.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i21.Future<_i9.FeeObject>.value(_FakeFeeObject_6( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i9.FeeObject>); + ) as _i21.Future<_i9.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i21.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i21.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override _i12.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2658,16 +2639,16 @@ class MockManager extends _i1.Mock implements _i6.Manager { ), ) as _i12.Balance); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i21.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i16.Transaction>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i16.Transaction>[]), + ) as _i21.Future>); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i21.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i16.UTXO>[]), - ) as _i22.Future>); + returnValue: _i21.Future>.value(<_i16.UTXO>[]), + ) as _i21.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2687,10 +2668,15 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i21.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); + @override + _i21.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i21.Future.value(), + ) as _i21.Future); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -2712,14 +2698,14 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -2729,7 +2715,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i22.Future> prepareSend({ + _i21.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2745,27 +2731,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i21.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i21.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2775,34 +2761,35 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i21.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i21.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i21.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future recoverFromMnemonic({ + _i21.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -2813,25 +2800,26 @@ class MockManager extends _i1.Mock implements _i6.Manager { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future exitCurrentWallet() => (super.noSuchMethod( + _i21.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future fullRescan( + _i21.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2843,11 +2831,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future estimateFeeFor( + _i21.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2859,18 +2847,18 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i21.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2878,7 +2866,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2898,7 +2886,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -2909,10 +2897,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i21.Coin get coin => (super.noSuchMethod( + _i20.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i20.Coin.bitcoin, + ) as _i20.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2945,23 +2933,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i22.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i21.Future<_i9.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i21.Future<_i9.FeeObject>.value(_FakeFeeObject_6( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i9.FeeObject>); + ) as _i21.Future<_i9.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i21.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i21.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override _i12.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2971,16 +2959,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { ), ) as _i12.Balance); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i21.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i16.Transaction>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i16.Transaction>[]), + ) as _i21.Future>); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i21.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i16.UTXO>[]), - ) as _i22.Future>); + returnValue: _i21.Future>.value(<_i16.UTXO>[]), + ) as _i21.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -3000,10 +2988,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: '', ) as String); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i21.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); + @override + _i21.Future get mnemonicString => (super.noSuchMethod( + Invocation.getter(#mnemonicString), + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override + _i21.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i21.Future.value(), + ) as _i21.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -3020,7 +3018,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: 0, ) as int); @override - _i22.Future> prepareSend({ + _i21.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -3036,36 +3034,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i21.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i21.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -3075,16 +3073,17 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: false, ) as bool); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i21.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future recoverFromMnemonic({ + _i21.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -3095,43 +3094,44 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i21.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i21.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future exit() => (super.noSuchMethod( + _i21.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future fullRescan( + _i21.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -3143,11 +3143,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future estimateFeeFor( + _i21.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -3159,24 +3159,24 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { feeRate, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i21.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future updateSentCachedTxData(Map? txData) => + _i21.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); } diff --git a/test/widget_tests/managed_favorite_test.mocks.dart b/test/widget_tests/managed_favorite_test.mocks.dart index af879a800..89d6ae344 100644 --- a/test/widget_tests/managed_favorite_test.mocks.dart +++ b/test/widget_tests/managed_favorite_test.mocks.dart @@ -3,12 +3,11 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i22; -import 'dart:typed_data' as _i27; -import 'dart:ui' as _i24; +import 'dart:async' as _i21; +import 'dart:typed_data' as _i26; +import 'dart:ui' as _i23; -import 'package:bip32/bip32.dart' as _i16; -import 'package:bip47/bip47.dart' as _i17; +import 'package:bip47/bip47.dart' as _i16; import 'package:bitcoindart/bitcoindart.dart' as _i13; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; @@ -18,22 +17,22 @@ import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i10; import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9; import 'package:stackwallet/models/balance.dart' as _i11; import 'package:stackwallet/models/isar/models/isar_models.dart' as _i15; -import 'package:stackwallet/models/node_model.dart' as _i29; +import 'package:stackwallet/models/node_model.dart' as _i28; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i25; -import 'package:stackwallet/services/coins/coin_service.dart' as _i19; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i24; +import 'package:stackwallet/services/coins/coin_service.dart' as _i18; import 'package:stackwallet/services/coins/manager.dart' as _i6; -import 'package:stackwallet/services/locale_service.dart' as _i28; +import 'package:stackwallet/services/locale_service.dart' as _i27; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i7; -import 'package:stackwallet/services/wallets.dart' as _i20; +import 'package:stackwallet/services/wallets.dart' as _i19; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i21; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i26; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i20; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i25; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i18; -import 'package:stackwallet/utilities/prefs.dart' as _i23; + as _i17; +import 'package:stackwallet/utilities/prefs.dart' as _i22; import 'package:tuple/tuple.dart' as _i14; // ignore_for_file: type=lint @@ -171,9 +170,9 @@ class _FakeElectrumXNode_11 extends _i1.SmartFake implements _i9.ElectrumXNode { ); } -class _FakeTuple4_12 extends _i1.SmartFake - implements _i14.Tuple4 { - _FakeTuple4_12( +class _FakeTuple2_12 extends _i1.SmartFake + implements _i14.Tuple2 { + _FakeTuple2_12( Object parent, Invocation parentInvocation, ) : super( @@ -192,8 +191,8 @@ class _FakeAddress_13 extends _i1.SmartFake implements _i15.Address { ); } -class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { - _FakeBIP32_14( +class _FakePaymentCode_14 extends _i1.SmartFake implements _i16.PaymentCode { + _FakePaymentCode_14( Object parent, Invocation parentInvocation, ) : super( @@ -202,8 +201,9 @@ class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { ); } -class _FakePaymentCode_15 extends _i1.SmartFake implements _i17.PaymentCode { - _FakePaymentCode_15( +class _FakeSecureStorageInterface_15 extends _i1.SmartFake + implements _i17.SecureStorageInterface { + _FakeSecureStorageInterface_15( Object parent, Invocation parentInvocation, ) : super( @@ -212,20 +212,9 @@ class _FakePaymentCode_15 extends _i1.SmartFake implements _i17.PaymentCode { ); } -class _FakeSecureStorageInterface_16 extends _i1.SmartFake - implements _i18.SecureStorageInterface { - _FakeSecureStorageInterface_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeCoinServiceAPI_17 extends _i1.SmartFake - implements _i19.CoinServiceAPI { - _FakeCoinServiceAPI_17( +class _FakeCoinServiceAPI_16 extends _i1.SmartFake + implements _i18.CoinServiceAPI { + _FakeCoinServiceAPI_16( Object parent, Invocation parentInvocation, ) : super( @@ -237,7 +226,7 @@ class _FakeCoinServiceAPI_17 extends _i1.SmartFake /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i20.Wallets { +class MockWallets extends _i1.Mock implements _i19.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -304,7 +293,7 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i21.Coin? coin}) => + List getWalletIdsFor({required _i20.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -314,18 +303,18 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValue: [], ) as List); @override - Map<_i21.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> + Map<_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i21.Coin, + returnValue: <_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>{}, - ) as Map<_i21.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); + ) as Map<_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i21.Coin? coin) => + _i20.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -389,17 +378,17 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - _i22.Future load(_i23.Prefs? prefs) => (super.noSuchMethod( + _i21.Future load(_i22.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future loadAfterStackRestore( - _i23.Prefs? prefs, + _i21.Future loadAfterStackRestore( + _i22.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -410,11 +399,11 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { managers, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -422,7 +411,7 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -448,19 +437,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i22.Future> get walletNames => + _i21.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i22.Future>.value( + returnValue: _i21.Future>.value( {}), - ) as _i22.Future>); + ) as _i21.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i22.Future renameWallet({ + _i21.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -475,13 +464,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future addExistingStackWallet({ + _i21.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i21.Coin? coin, + required _i20.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -495,13 +484,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future addNewWallet({ + _i21.Future addNewWallet({ required String? name, - required _i21.Coin? coin, + required _i20.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -514,46 +503,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i21.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); @override - _i22.Future saveFavoriteWalletIds(List? walletIds) => + _i21.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i21.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i21.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future moveFavorite({ + _i21.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -566,48 +555,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i21.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i21.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future isMnemonicVerified({required String? walletId}) => + _i21.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future setMnemonicVerified({required String? walletId}) => + _i21.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future deleteWallet( + _i21.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -619,20 +608,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future refreshWallets(bool? shouldNotifyListeners) => + _i21.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -640,7 +629,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -668,13 +657,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { /// A class which mocks [BitcoinWallet]. /// /// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i22.Timer? _timer) => super.noSuchMethod( + set timer(_i21.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -751,64 +740,74 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: false, ) as bool); @override - _i21.Coin get coin => (super.noSuchMethod( + _i20.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i20.Coin.bitcoin, + ) as _i20.Coin); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i21.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i15.UTXO>[]), - ) as _i22.Future>); + returnValue: _i21.Future>.value(<_i15.UTXO>[]), + ) as _i21.Future>); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i21.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i15.Transaction>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i15.Transaction>[]), + ) as _i21.Future>); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i21.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future get currentChangeAddress => (super.noSuchMethod( + _i21.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future get currentChangeAddressP2PKH => (super.noSuchMethod( + _i21.Future get currentChangeAddressP2PKH => (super.noSuchMethod( Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i22.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i21.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i21.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i8.FeeObject>); + ) as _i21.Future<_i8.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i21.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i21.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); @override - _i22.Future get chainHeight => (super.noSuchMethod( + _i21.Future get mnemonicString => (super.noSuchMethod( + Invocation.getter(#mnemonicString), + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override + _i21.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override + _i21.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -905,27 +904,28 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { ), ) as _i13.NetworkType); @override - _i22.Future exit() => (super.noSuchMethod( + _i21.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i26.DerivePathType addressType({required String? address}) => + _i25.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i26.DerivePathType.bip44, - ) as _i26.DerivePathType); + returnValue: _i25.DerivePathType.bip44, + ) as _i25.DerivePathType); @override - _i22.Future recoverFromMnemonic({ + _i21.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -936,52 +936,53 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future getTransactionCacheEarly(List? allAddresses) => + _i21.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i21.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future getAllTxsToWatch() => (super.noSuchMethod( + _i21.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i21.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future> prepareSend({ + _i21.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -997,26 +998,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i21.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i21.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -1034,33 +1035,33 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i21.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i21.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future updateSentCachedTxData(Map? txData) => + _i21.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1070,35 +1071,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: false, ) as bool); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i21.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), - returnValue: _i22.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( + returnValue: _i21.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i22.Future<_i9.ElectrumXNode>); + ) as _i21.Future<_i9.ElectrumXNode>); @override - _i22.Future addDerivation({ + _i21.Future addDerivation({ required int? chain, required String? address, required String? pubKey, required String? wif, - required _i26.DerivePathType? derivePathType, + required _i25.DerivePathType? derivePathType, }) => (super.noSuchMethod( Invocation.method( @@ -1112,13 +1113,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #derivePathType: derivePathType, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future addDerivations({ + _i21.Future addDerivations({ required int? chain, - required _i26.DerivePathType? derivePathType, + required _i25.DerivePathType? derivePathType, required Map? derivationsToAdd, }) => (super.noSuchMethod( @@ -1131,50 +1132,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #derivationsToAdd: derivationsToAdd, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future>> fastFetch( + _i21.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i22.Future>>.value( + returnValue: _i21.Future>>.value( >[]), - ) as _i22.Future>>); + ) as _i21.Future>>); @override - _i22.Future getTxCount({required String? address}) => + _i21.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future checkCurrentReceivingAddressesForTransactions() => + _i21.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future checkCurrentChangeAddressesForTransactions() => + _i21.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override int estimateTxFee({ required int? vSize, @@ -1214,7 +1215,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, )); @override - _i22.Future> fetchBuildTxData( + _i21.Future> fetchBuildTxData( List<_i15.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( @@ -1222,10 +1223,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { [utxosToUse], ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future> buildTransaction({ + _i21.Future> buildTransaction({ required List<_i15.UTXO>? utxosToUse, required Map? utxoSigningData, required List? recipients, @@ -1243,10 +1244,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future fullRescan( + _i21.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1258,11 +1259,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future estimateFeeFor( + _i21.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1274,8 +1275,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { feeRate, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override int roughFeeEstimate( int? inputCount, @@ -1294,25 +1295,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: 0, ) as int); @override - _i22.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( + _i21.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i21.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override void initCache( String? walletId, - _i21.Coin? coin, + _i20.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1325,14 +1326,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future updateCachedId(String? id) => (super.noSuchMethod( + _i21.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1342,14 +1343,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: 0, ) as int); @override - _i22.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i21.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1359,15 +1360,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: false, ) as bool); @override - _i22.Future updateCachedIsFavorite(bool? isFavorite) => + _i21.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override _i11.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1383,15 +1384,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { ), ) as _i11.Balance); @override - _i22.Future updateCachedBalance(_i11.Balance? balance) => + _i21.Future updateCachedBalance(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1407,15 +1408,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { ), ) as _i11.Balance); @override - _i22.Future updateCachedBalanceSecondary(_i11.Balance? balance) => + _i21.Future updateCachedBalanceSecondary(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1426,13 +1427,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>> parseTransaction( + _i21.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>> parseTransaction( Map? txData, dynamic electrumxClient, List<_i15.Address>? myAddresses, - _i21.Coin? coin, + _i20.Coin? coin, int? minConfirms, String? walletId, ) => @@ -1448,10 +1447,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { walletId, ], ), - returnValue: _i22.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>>.value(_FakeTuple4_12<_i15.Transaction, - List<_i15.Output>, List<_i15.Input>, _i15.Address>( + returnValue: + _i21.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>>.value( + _FakeTuple2_12<_i15.Transaction, _i15.Address>( this, Invocation.method( #parseTransaction, @@ -1465,53 +1463,46 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { ], ), )), - ) as _i22.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>>); + ) as _i21.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>>); @override void initPaynymWalletInterface({ required String? walletId, required String? walletName, required _i13.NetworkType? network, - required _i21.Coin? coin, + required _i20.Coin? coin, required _i12.MainDB? db, required _i9.ElectrumX? electrumXClient, - required _i18.SecureStorageInterface? secureStorage, + required _i17.SecureStorageInterface? secureStorage, required int? dustLimitP2PKH, required int? minConfirms, - required _i22.Future> Function()? getMnemonic, - required _i22.Future Function()? getChainHeight, - required _i22.Future Function()? getCurrentChangeAddress, + required _i21.Future Function()? getMnemonicString, + required _i21.Future Function()? getMnemonicPassphrase, + required _i21.Future Function()? getChainHeight, + required _i21.Future Function()? getCurrentChangeAddress, required int Function({ required int feeRatePerKB, required int vSize, })? estimateTxFee, - required _i22.Future> Function({ + required _i21.Future> Function({ required String address, required int satoshiAmount, Map? args, })? prepareSend, - required _i22.Future Function({required String address})? getTxCount, - required _i22.Future> Function(List<_i15.UTXO>)? + required _i21.Future Function({required String address})? getTxCount, + required _i21.Future> Function(List<_i15.UTXO>)? fetchBuildTxData, - required _i22.Future Function()? refresh, - required _i22.Future Function()? checkChangeAddressForTransactions, - required _i22.Future Function({ + required _i21.Future Function()? refresh, + required _i21.Future Function()? checkChangeAddressForTransactions, + required _i21.Future Function({ required String address, required int chain, - required _i26.DerivePathType derivePathType, + required _i25.DerivePathType derivePathType, required String pubKey, required String wif, })? addDerivation, - required _i22.Future Function({ - required int chain, - required Map derivationsToAdd, - required _i26.DerivePathType derivePathType, - })? - addDerivations, }) => super.noSuchMethod( Invocation.method( @@ -1527,7 +1518,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #secureStorage: secureStorage, #dustLimitP2PKH: dustLimitP2PKH, #minConfirms: minConfirms, - #getMnemonic: getMnemonic, + #getMnemonicString: getMnemonicString, + #getMnemonicPassphrase: getMnemonicPassphrase, #getChainHeight: getChainHeight, #getCurrentChangeAddress: getCurrentChangeAddress, #estimateTxFee: estimateTxFee, @@ -1538,79 +1530,67 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #checkChangeAddressForTransactions: checkChangeAddressForTransactions, #addDerivation: addDerivation, - #addDerivations: addDerivations, }, ), returnValueForMissingStub: null, ); @override - _i22.Future<_i15.Address> currentReceivingPaynymAddress( - _i17.PaymentCode? sender) => + _i21.Future<_i15.Address> currentReceivingPaynymAddress( + _i16.PaymentCode? sender) => (super.noSuchMethod( Invocation.method( #currentReceivingPaynymAddress, [sender], ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #currentReceivingPaynymAddress, [sender], ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future checkCurrentPaynymReceivingAddressForTransactions( - _i17.PaymentCode? sender) => + _i21.Future checkCurrentPaynymReceivingAddressForTransactions( + _i16.PaymentCode? sender) => (super.noSuchMethod( Invocation.method( #checkCurrentPaynymReceivingAddressForTransactions, [sender], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => + _i21.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkAllCurrentReceivingPaynymAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future<_i16.BIP32> getRootNode({required List? mnemonic}) => - (super.noSuchMethod( - Invocation.method( - #getRootNode, - [], - {#mnemonic: mnemonic}, - ), - returnValue: _i22.Future<_i16.BIP32>.value(_FakeBIP32_14( - this, - Invocation.method( - #getRootNode, - [], - {#mnemonic: mnemonic}, - ), - )), - ) as _i22.Future<_i16.BIP32>); - @override - _i22.Future<_i27.Uint8List> deriveNotificationPrivateKey( - {required List? mnemonic}) => + _i21.Future<_i26.Uint8List> deriveNotificationPrivateKey({ + required String? mnemonic, + required String? mnemonicPassphrase, + }) => (super.noSuchMethod( Invocation.method( #deriveNotificationPrivateKey, [], - {#mnemonic: mnemonic}, + { + #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, + }, ), - returnValue: _i22.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i22.Future<_i27.Uint8List>); + returnValue: _i21.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), + ) as _i21.Future<_i26.Uint8List>); @override - _i22.Future<_i27.Uint8List> deriveReceivingPrivateKey({ - required List? mnemonic, + _i21.Future<_i26.Uint8List> deriveReceivingPrivateKey({ + required String? mnemonic, + required String? mnemonicPassphrase, required int? index, }) => (super.noSuchMethod( @@ -1619,48 +1599,49 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #index: index, }, ), - returnValue: _i22.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i22.Future<_i27.Uint8List>); + returnValue: _i21.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), + ) as _i21.Future<_i26.Uint8List>); @override - _i22.Future<_i17.PaymentCode> getPaymentCode( - _i26.DerivePathType? derivePathType) => + _i21.Future<_i16.PaymentCode> getPaymentCode( + _i25.DerivePathType? derivePathType) => (super.noSuchMethod( Invocation.method( #getPaymentCode, [derivePathType], ), - returnValue: _i22.Future<_i17.PaymentCode>.value(_FakePaymentCode_15( + returnValue: _i21.Future<_i16.PaymentCode>.value(_FakePaymentCode_14( this, Invocation.method( #getPaymentCode, [derivePathType], ), )), - ) as _i22.Future<_i17.PaymentCode>); + ) as _i21.Future<_i16.PaymentCode>); @override - _i22.Future<_i27.Uint8List> signWithNotificationKey(_i27.Uint8List? data) => + _i21.Future<_i26.Uint8List> signWithNotificationKey(_i26.Uint8List? data) => (super.noSuchMethod( Invocation.method( #signWithNotificationKey, [data], ), - returnValue: _i22.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i22.Future<_i27.Uint8List>); + returnValue: _i21.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), + ) as _i21.Future<_i26.Uint8List>); @override - _i22.Future signStringWithNotificationKey(String? data) => + _i21.Future signStringWithNotificationKey(String? data) => (super.noSuchMethod( Invocation.method( #signStringWithNotificationKey, [data], ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future> preparePaymentCodeSend({ - required _i17.PaymentCode? paymentCode, + _i21.Future> preparePaymentCodeSend({ + required _i16.PaymentCode? paymentCode, required int? satoshiAmount, Map? args, }) => @@ -1675,12 +1656,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future<_i15.Address> nextUnusedSendAddressFrom({ - required _i17.PaymentCode? pCode, - required _i27.Uint8List? privateKey, + _i21.Future<_i15.Address> nextUnusedSendAddressFrom({ + required _i16.PaymentCode? pCode, + required _i26.Uint8List? privateKey, int? startIndex = 0, }) => (super.noSuchMethod( @@ -1693,7 +1674,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #startIndex: startIndex, }, ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #nextUnusedSendAddressFrom, @@ -1705,9 +1686,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future> prepareNotificationTx({ + _i21.Future> prepareNotificationTx({ required int? selectedTxFeeRate, required String? targetPaymentCodeString, int? additionalOutputs = 0, @@ -1725,10 +1706,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future broadcastNotificationTx( + _i21.Future broadcastNotificationTx( {required Map? preparedTx}) => (super.noSuchMethod( Invocation.method( @@ -1736,19 +1717,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { [], {#preparedTx: preparedTx}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future hasConnected(String? paymentCodeString) => + _i21.Future hasConnected(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #hasConnected, [paymentCodeString], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future<_i17.PaymentCode?> unBlindedPaymentCodeFromTransaction({ + _i21.Future<_i16.PaymentCode?> unBlindedPaymentCodeFromTransaction({ required _i15.Transaction? transaction, required _i15.Address? myNotificationAddress, }) => @@ -1761,31 +1742,31 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #myNotificationAddress: myNotificationAddress, }, ), - returnValue: _i22.Future<_i17.PaymentCode?>.value(), - ) as _i22.Future<_i17.PaymentCode?>); + returnValue: _i21.Future<_i16.PaymentCode?>.value(), + ) as _i21.Future<_i16.PaymentCode?>); @override - _i22.Future> + _i21.Future> getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( Invocation.method( #getAllPaymentCodesFromNotificationTransactions, [], ), returnValue: - _i22.Future>.value(<_i17.PaymentCode>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i16.PaymentCode>[]), + ) as _i21.Future>); @override - _i22.Future checkForNotificationTransactionsTo( + _i21.Future checkForNotificationTransactionsTo( Set? otherCodeStrings) => (super.noSuchMethod( Invocation.method( #checkForNotificationTransactionsTo, [otherCodeStrings], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future restoreAllHistory({ + _i21.Future restoreAllHistory({ required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required Set? paymentCodeStrings, @@ -1800,12 +1781,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #paymentCodeStrings: paymentCodeStrings, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future restoreHistoryWith( - _i17.PaymentCode? other, + _i21.Future restoreHistoryWith( + _i16.PaymentCode? other, int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1818,15 +1799,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future<_i15.Address> generatePaynymSendAddressFromKeyPair({ + _i21.Future<_i15.Address> generatePaynymSendAddressFromKeyPair({ required _i13.ECPair? pair, required int? derivationIndex, - required _i26.DerivePathType? derivePathType, - required _i17.PaymentCode? toPaymentCode, + required _i25.DerivePathType? derivePathType, + required _i16.PaymentCode? toPaymentCode, }) => (super.noSuchMethod( Invocation.method( @@ -1839,7 +1820,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #toPaymentCode: toPaymentCode, }, ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #generatePaynymSendAddressFromKeyPair, @@ -1852,13 +1833,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future<_i15.Address> generatePaynymReceivingAddressFromKeyPair({ + _i21.Future<_i15.Address> generatePaynymReceivingAddressFromKeyPair({ required _i13.ECPair? pair, required int? derivationIndex, - required _i26.DerivePathType? derivePathType, - required _i17.PaymentCode? fromPaymentCode, + required _i25.DerivePathType? derivePathType, + required _i16.PaymentCode? fromPaymentCode, }) => (super.noSuchMethod( Invocation.method( @@ -1871,7 +1852,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #fromPaymentCode: fromPaymentCode, }, ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #generatePaynymReceivingAddressFromKeyPair, @@ -1884,56 +1865,56 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future<_i15.Address> getMyNotificationAddress( - _i26.DerivePathType? derivePathType) => + _i21.Future<_i15.Address> getMyNotificationAddress( + _i25.DerivePathType? derivePathType) => (super.noSuchMethod( Invocation.method( #getMyNotificationAddress, [derivePathType], ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #getMyNotificationAddress, [derivePathType], ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future> lookupKey(String? paymentCodeString) => + _i21.Future> lookupKey(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #lookupKey, [paymentCodeString], ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); @override - _i22.Future paymentCodeStringByKey(String? key) => + _i21.Future paymentCodeStringByKey(String? key) => (super.noSuchMethod( Invocation.method( #paymentCodeStringByKey, [key], ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future storeCode(String? paymentCodeString) => + _i21.Future storeCode(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #storeCode, [paymentCodeString], ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); } /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i28.LocaleService { +class MockLocaleService extends _i1.Mock implements _i27.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -1949,17 +1930,17 @@ class MockLocaleService extends _i1.Mock implements _i28.LocaleService { returnValue: false, ) as bool); @override - _i22.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i21.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1967,7 +1948,7 @@ class MockLocaleService extends _i1.Mock implements _i28.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1997,41 +1978,41 @@ class MockLocaleService extends _i1.Mock implements _i28.LocaleService { /// See the documentation for Mockito's code generation for more information. class MockNodeService extends _i1.Mock implements _i3.NodeService { @override - _i18.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( + _i17.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( Invocation.getter(#secureStorageInterface), - returnValue: _FakeSecureStorageInterface_16( + returnValue: _FakeSecureStorageInterface_15( this, Invocation.getter(#secureStorageInterface), ), - ) as _i18.SecureStorageInterface); + ) as _i17.SecureStorageInterface); @override - List<_i29.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i28.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i29.NodeModel>[], - ) as List<_i29.NodeModel>); + returnValue: <_i28.NodeModel>[], + ) as List<_i28.NodeModel>); @override - List<_i29.NodeModel> get nodes => (super.noSuchMethod( + List<_i28.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i29.NodeModel>[], - ) as List<_i29.NodeModel>); + returnValue: <_i28.NodeModel>[], + ) as List<_i28.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i22.Future updateDefaults() => (super.noSuchMethod( + _i21.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future setPrimaryNodeFor({ - required _i21.Coin? coin, - required _i29.NodeModel? node, + _i21.Future setPrimaryNodeFor({ + required _i20.Coin? coin, + required _i28.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -2044,44 +2025,44 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i29.NodeModel? getPrimaryNodeFor({required _i21.Coin? coin}) => + _i28.NodeModel? getPrimaryNodeFor({required _i20.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i29.NodeModel?); + )) as _i28.NodeModel?); @override - List<_i29.NodeModel> getNodesFor(_i21.Coin? coin) => (super.noSuchMethod( + List<_i28.NodeModel> getNodesFor(_i20.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i29.NodeModel>[], - ) as List<_i29.NodeModel>); + returnValue: <_i28.NodeModel>[], + ) as List<_i28.NodeModel>); @override - _i29.NodeModel? getNodeById({required String? id}) => + _i28.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i29.NodeModel?); + )) as _i28.NodeModel?); @override - List<_i29.NodeModel> failoverNodesFor({required _i21.Coin? coin}) => + List<_i28.NodeModel> failoverNodesFor({required _i20.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i29.NodeModel>[], - ) as List<_i29.NodeModel>); + returnValue: <_i28.NodeModel>[], + ) as List<_i28.NodeModel>); @override - _i22.Future add( - _i29.NodeModel? node, + _i21.Future add( + _i28.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -2094,11 +2075,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future delete( + _i21.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -2110,11 +2091,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future setEnabledState( + _i21.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -2128,12 +2109,12 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future edit( - _i29.NodeModel? editedNode, + _i21.Future edit( + _i28.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -2146,20 +2127,20 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future updateCommunityNodes() => (super.noSuchMethod( + _i21.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2167,7 +2148,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2210,23 +2191,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i19.CoinServiceAPI get wallet => (super.noSuchMethod( + _i18.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_17( + returnValue: _FakeCoinServiceAPI_16( this, Invocation.getter(#wallet), ), - ) as _i19.CoinServiceAPI); + ) as _i18.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i21.Coin get coin => (super.noSuchMethod( + _i20.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i20.Coin.bitcoin, + ) as _i20.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2259,23 +2240,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i22.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i21.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i21.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i8.FeeObject>); + ) as _i21.Future<_i8.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i21.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i21.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2285,16 +2266,16 @@ class MockManager extends _i1.Mock implements _i6.Manager { ), ) as _i11.Balance); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i21.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i15.Transaction>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i15.Transaction>[]), + ) as _i21.Future>); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i21.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i15.UTXO>[]), - ) as _i22.Future>); + returnValue: _i21.Future>.value(<_i15.UTXO>[]), + ) as _i21.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2314,10 +2295,15 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i21.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); + @override + _i21.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i21.Future.value(), + ) as _i21.Future); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -2339,14 +2325,14 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -2356,7 +2342,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i22.Future> prepareSend({ + _i21.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2372,27 +2358,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i21.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i21.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2402,34 +2388,35 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i21.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i21.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i21.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future recoverFromMnemonic({ + _i21.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -2440,25 +2427,26 @@ class MockManager extends _i1.Mock implements _i6.Manager { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future exitCurrentWallet() => (super.noSuchMethod( + _i21.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future fullRescan( + _i21.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2470,11 +2458,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future estimateFeeFor( + _i21.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2486,18 +2474,18 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i21.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2505,7 +2493,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2525,7 +2513,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -2536,10 +2524,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i21.Coin get coin => (super.noSuchMethod( + _i20.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i20.Coin.bitcoin, + ) as _i20.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2572,23 +2560,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i22.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i21.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i21.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i8.FeeObject>); + ) as _i21.Future<_i8.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i21.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i21.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2598,16 +2586,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { ), ) as _i11.Balance); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i21.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i15.Transaction>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i15.Transaction>[]), + ) as _i21.Future>); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i21.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i15.UTXO>[]), - ) as _i22.Future>); + returnValue: _i21.Future>.value(<_i15.UTXO>[]), + ) as _i21.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2627,10 +2615,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: '', ) as String); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i21.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); + @override + _i21.Future get mnemonicString => (super.noSuchMethod( + Invocation.getter(#mnemonicString), + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override + _i21.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i21.Future.value(), + ) as _i21.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2647,7 +2645,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: 0, ) as int); @override - _i22.Future> prepareSend({ + _i21.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2663,36 +2661,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i21.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i21.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2702,16 +2700,17 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: false, ) as bool); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i21.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future recoverFromMnemonic({ + _i21.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -2722,43 +2721,44 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i21.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i21.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future exit() => (super.noSuchMethod( + _i21.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future fullRescan( + _i21.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2770,11 +2770,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future estimateFeeFor( + _i21.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2786,24 +2786,24 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { feeRate, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i21.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future updateSentCachedTxData(Map? txData) => + _i21.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); } diff --git a/test/widget_tests/table_view/table_view_row_test.mocks.dart b/test/widget_tests/table_view/table_view_row_test.mocks.dart index b5b252419..829d3a81b 100644 --- a/test/widget_tests/table_view/table_view_row_test.mocks.dart +++ b/test/widget_tests/table_view/table_view_row_test.mocks.dart @@ -3,12 +3,11 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i21; -import 'dart:typed_data' as _i27; -import 'dart:ui' as _i23; +import 'dart:async' as _i20; +import 'dart:typed_data' as _i26; +import 'dart:ui' as _i22; -import 'package:bip32/bip32.dart' as _i16; -import 'package:bip47/bip47.dart' as _i17; +import 'package:bip47/bip47.dart' as _i16; import 'package:bitcoindart/bitcoindart.dart' as _i13; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; @@ -19,19 +18,19 @@ import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9; import 'package:stackwallet/models/balance.dart' as _i11; import 'package:stackwallet/models/isar/models/isar_models.dart' as _i15; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i24; -import 'package:stackwallet/services/coins/coin_service.dart' as _i18; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i23; +import 'package:stackwallet/services/coins/coin_service.dart' as _i17; import 'package:stackwallet/services/coins/manager.dart' as _i6; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i7; -import 'package:stackwallet/services/wallets.dart' as _i19; +import 'package:stackwallet/services/wallets.dart' as _i18; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i20; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i25; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i19; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i24; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i26; -import 'package:stackwallet/utilities/prefs.dart' as _i22; + as _i25; +import 'package:stackwallet/utilities/prefs.dart' as _i21; import 'package:tuple/tuple.dart' as _i14; // ignore_for_file: type=lint @@ -169,9 +168,9 @@ class _FakeElectrumXNode_11 extends _i1.SmartFake implements _i9.ElectrumXNode { ); } -class _FakeTuple4_12 extends _i1.SmartFake - implements _i14.Tuple4 { - _FakeTuple4_12( +class _FakeTuple2_12 extends _i1.SmartFake + implements _i14.Tuple2 { + _FakeTuple2_12( Object parent, Invocation parentInvocation, ) : super( @@ -190,8 +189,8 @@ class _FakeAddress_13 extends _i1.SmartFake implements _i15.Address { ); } -class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { - _FakeBIP32_14( +class _FakePaymentCode_14 extends _i1.SmartFake implements _i16.PaymentCode { + _FakePaymentCode_14( Object parent, Invocation parentInvocation, ) : super( @@ -200,19 +199,9 @@ class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { ); } -class _FakePaymentCode_15 extends _i1.SmartFake implements _i17.PaymentCode { - _FakePaymentCode_15( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeCoinServiceAPI_16 extends _i1.SmartFake - implements _i18.CoinServiceAPI { - _FakeCoinServiceAPI_16( +class _FakeCoinServiceAPI_15 extends _i1.SmartFake + implements _i17.CoinServiceAPI { + _FakeCoinServiceAPI_15( Object parent, Invocation parentInvocation, ) : super( @@ -224,7 +213,7 @@ class _FakeCoinServiceAPI_16 extends _i1.SmartFake /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i19.Wallets { +class MockWallets extends _i1.Mock implements _i18.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -291,7 +280,7 @@ class MockWallets extends _i1.Mock implements _i19.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i20.Coin? coin}) => + List getWalletIdsFor({required _i19.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -301,18 +290,18 @@ class MockWallets extends _i1.Mock implements _i19.Wallets { returnValue: [], ) as List); @override - Map<_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> + Map<_i19.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i20.Coin, + returnValue: <_i19.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>{}, - ) as Map<_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); + ) as Map<_i19.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i20.Coin? coin) => + _i19.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -376,17 +365,17 @@ class MockWallets extends _i1.Mock implements _i19.Wallets { returnValueForMissingStub: null, ); @override - _i21.Future load(_i22.Prefs? prefs) => (super.noSuchMethod( + _i20.Future load(_i21.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future loadAfterStackRestore( - _i22.Prefs? prefs, + _i20.Future loadAfterStackRestore( + _i21.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -397,11 +386,11 @@ class MockWallets extends _i1.Mock implements _i19.Wallets { managers, ], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -409,7 +398,7 @@ class MockWallets extends _i1.Mock implements _i19.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -435,19 +424,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i21.Future> get walletNames => + _i20.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i21.Future>.value( + returnValue: _i20.Future>.value( {}), - ) as _i21.Future>); + ) as _i20.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i21.Future renameWallet({ + _i20.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -462,13 +451,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i21.Future addExistingStackWallet({ + _i20.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i20.Coin? coin, + required _i19.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -482,13 +471,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future addNewWallet({ + _i20.Future addNewWallet({ required String? name, - required _i20.Coin? coin, + required _i19.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -501,46 +490,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i20.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i21.Future>.value([]), - ) as _i21.Future>); + returnValue: _i20.Future>.value([]), + ) as _i20.Future>); @override - _i21.Future saveFavoriteWalletIds(List? walletIds) => + _i20.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i20.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i20.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future moveFavorite({ + _i20.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -553,48 +542,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i20.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i21.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i20.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future isMnemonicVerified({required String? walletId}) => + _i20.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i21.Future setMnemonicVerified({required String? walletId}) => + _i20.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future deleteWallet( + _i20.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -606,20 +595,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i21.Future.value(0), - ) as _i21.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i21.Future refreshWallets(bool? shouldNotifyListeners) => + _i20.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -627,7 +616,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -655,13 +644,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { /// A class which mocks [BitcoinWallet]. /// /// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i21.Timer? _timer) => super.noSuchMethod( + set timer(_i20.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -738,64 +727,74 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValue: false, ) as bool); @override - _i20.Coin get coin => (super.noSuchMethod( + _i19.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i20.Coin.bitcoin, - ) as _i20.Coin); + returnValue: _i19.Coin.bitcoin, + ) as _i19.Coin); @override - _i21.Future> get utxos => (super.noSuchMethod( + _i20.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i21.Future>.value(<_i15.UTXO>[]), - ) as _i21.Future>); + returnValue: _i20.Future>.value(<_i15.UTXO>[]), + ) as _i20.Future>); @override - _i21.Future> get transactions => (super.noSuchMethod( + _i20.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i21.Future>.value(<_i15.Transaction>[]), - ) as _i21.Future>); + _i20.Future>.value(<_i15.Transaction>[]), + ) as _i20.Future>); @override - _i21.Future get currentReceivingAddress => (super.noSuchMethod( + _i20.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override - _i21.Future get currentChangeAddress => (super.noSuchMethod( + _i20.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override - _i21.Future get currentChangeAddressP2PKH => (super.noSuchMethod( + _i20.Future get currentChangeAddressP2PKH => (super.noSuchMethod( Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i21.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i20.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i21.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i20.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i21.Future<_i8.FeeObject>); + ) as _i20.Future<_i8.FeeObject>); @override - _i21.Future get maxFee => (super.noSuchMethod( + _i20.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i21.Future.value(0), - ) as _i21.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i21.Future> get mnemonic => (super.noSuchMethod( + _i20.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i21.Future>.value([]), - ) as _i21.Future>); + returnValue: _i20.Future>.value([]), + ) as _i20.Future>); @override - _i21.Future get chainHeight => (super.noSuchMethod( + _i20.Future get mnemonicString => (super.noSuchMethod( + Invocation.getter(#mnemonicString), + returnValue: _i20.Future.value(), + ) as _i20.Future); + @override + _i20.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i20.Future.value(), + ) as _i20.Future); + @override + _i20.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i21.Future.value(0), - ) as _i21.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -892,27 +891,28 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { ), ) as _i13.NetworkType); @override - _i21.Future exit() => (super.noSuchMethod( + _i20.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i25.DerivePathType addressType({required String? address}) => + _i24.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i25.DerivePathType.bip44, - ) as _i25.DerivePathType); + returnValue: _i24.DerivePathType.bip44, + ) as _i24.DerivePathType); @override - _i21.Future recoverFromMnemonic({ + _i20.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -923,52 +923,53 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future getTransactionCacheEarly(List? allAddresses) => + _i20.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i20.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i21.Future getAllTxsToWatch() => (super.noSuchMethod( + _i20.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future refresh() => (super.noSuchMethod( + _i20.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future> prepareSend({ + _i20.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -984,26 +985,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, ), returnValue: - _i21.Future>.value({}), - ) as _i21.Future>); + _i20.Future>.value({}), + ) as _i20.Future>); @override - _i21.Future confirmSend({required Map? txData}) => + _i20.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override - _i21.Future testNetworkConnection() => (super.noSuchMethod( + _i20.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -1021,33 +1022,33 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i21.Future initializeNew() => (super.noSuchMethod( + _i20.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future initializeExisting() => (super.noSuchMethod( + _i20.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future updateSentCachedTxData(Map? txData) => + _i20.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1057,35 +1058,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValue: false, ) as bool); @override - _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i20.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i20.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), - returnValue: _i21.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( + returnValue: _i20.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i21.Future<_i9.ElectrumXNode>); + ) as _i20.Future<_i9.ElectrumXNode>); @override - _i21.Future addDerivation({ + _i20.Future addDerivation({ required int? chain, required String? address, required String? pubKey, required String? wif, - required _i25.DerivePathType? derivePathType, + required _i24.DerivePathType? derivePathType, }) => (super.noSuchMethod( Invocation.method( @@ -1099,13 +1100,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #derivePathType: derivePathType, }, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future addDerivations({ + _i20.Future addDerivations({ required int? chain, - required _i25.DerivePathType? derivePathType, + required _i24.DerivePathType? derivePathType, required Map? derivationsToAdd, }) => (super.noSuchMethod( @@ -1118,50 +1119,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #derivationsToAdd: derivationsToAdd, }, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future>> fastFetch( + _i20.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i21.Future>>.value( + returnValue: _i20.Future>>.value( >[]), - ) as _i21.Future>>); + ) as _i20.Future>>); @override - _i21.Future getTxCount({required String? address}) => + _i20.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i21.Future.value(0), - ) as _i21.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i21.Future checkCurrentReceivingAddressesForTransactions() => + _i20.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future checkCurrentChangeAddressesForTransactions() => + _i20.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override int estimateTxFee({ required int? vSize, @@ -1201,7 +1202,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, )); @override - _i21.Future> fetchBuildTxData( + _i20.Future> fetchBuildTxData( List<_i15.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( @@ -1209,10 +1210,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { [utxosToUse], ), returnValue: - _i21.Future>.value({}), - ) as _i21.Future>); + _i20.Future>.value({}), + ) as _i20.Future>); @override - _i21.Future> buildTransaction({ + _i20.Future> buildTransaction({ required List<_i15.UTXO>? utxosToUse, required Map? utxoSigningData, required List? recipients, @@ -1230,10 +1231,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, ), returnValue: - _i21.Future>.value({}), - ) as _i21.Future>); + _i20.Future>.value({}), + ) as _i20.Future>); @override - _i21.Future fullRescan( + _i20.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1245,11 +1246,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future estimateFeeFor( + _i20.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1261,8 +1262,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { feeRate, ], ), - returnValue: _i21.Future.value(0), - ) as _i21.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override int roughFeeEstimate( int? inputCount, @@ -1281,25 +1282,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValue: 0, ) as int); @override - _i21.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( + _i20.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i21.Future.value(0), - ) as _i21.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i21.Future generateNewAddress() => (super.noSuchMethod( + _i20.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override void initCache( String? walletId, - _i20.Coin? coin, + _i19.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1312,14 +1313,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i21.Future updateCachedId(String? id) => (super.noSuchMethod( + _i20.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1329,14 +1330,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValue: 0, ) as int); @override - _i21.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i20.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1346,15 +1347,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValue: false, ) as bool); @override - _i21.Future updateCachedIsFavorite(bool? isFavorite) => + _i20.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override _i11.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1370,15 +1371,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { ), ) as _i11.Balance); @override - _i21.Future updateCachedBalance(_i11.Balance? balance) => + _i20.Future updateCachedBalance(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1394,15 +1395,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { ), ) as _i11.Balance); @override - _i21.Future updateCachedBalanceSecondary(_i11.Balance? balance) => + _i20.Future updateCachedBalanceSecondary(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1413,13 +1414,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i21.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>> parseTransaction( + _i20.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>> parseTransaction( Map? txData, dynamic electrumxClient, List<_i15.Address>? myAddresses, - _i20.Coin? coin, + _i19.Coin? coin, int? minConfirms, String? walletId, ) => @@ -1435,10 +1434,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { walletId, ], ), - returnValue: _i21.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>>.value(_FakeTuple4_12<_i15.Transaction, - List<_i15.Output>, List<_i15.Input>, _i15.Address>( + returnValue: + _i20.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>>.value( + _FakeTuple2_12<_i15.Transaction, _i15.Address>( this, Invocation.method( #parseTransaction, @@ -1452,53 +1450,46 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { ], ), )), - ) as _i21.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>>); + ) as _i20.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>>); @override void initPaynymWalletInterface({ required String? walletId, required String? walletName, required _i13.NetworkType? network, - required _i20.Coin? coin, + required _i19.Coin? coin, required _i12.MainDB? db, required _i9.ElectrumX? electrumXClient, - required _i26.SecureStorageInterface? secureStorage, + required _i25.SecureStorageInterface? secureStorage, required int? dustLimitP2PKH, required int? minConfirms, - required _i21.Future> Function()? getMnemonic, - required _i21.Future Function()? getChainHeight, - required _i21.Future Function()? getCurrentChangeAddress, + required _i20.Future Function()? getMnemonicString, + required _i20.Future Function()? getMnemonicPassphrase, + required _i20.Future Function()? getChainHeight, + required _i20.Future Function()? getCurrentChangeAddress, required int Function({ required int feeRatePerKB, required int vSize, })? estimateTxFee, - required _i21.Future> Function({ + required _i20.Future> Function({ required String address, required int satoshiAmount, Map? args, })? prepareSend, - required _i21.Future Function({required String address})? getTxCount, - required _i21.Future> Function(List<_i15.UTXO>)? + required _i20.Future Function({required String address})? getTxCount, + required _i20.Future> Function(List<_i15.UTXO>)? fetchBuildTxData, - required _i21.Future Function()? refresh, - required _i21.Future Function()? checkChangeAddressForTransactions, - required _i21.Future Function({ + required _i20.Future Function()? refresh, + required _i20.Future Function()? checkChangeAddressForTransactions, + required _i20.Future Function({ required String address, required int chain, - required _i25.DerivePathType derivePathType, + required _i24.DerivePathType derivePathType, required String pubKey, required String wif, })? addDerivation, - required _i21.Future Function({ - required int chain, - required Map derivationsToAdd, - required _i25.DerivePathType derivePathType, - })? - addDerivations, }) => super.noSuchMethod( Invocation.method( @@ -1514,7 +1505,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #secureStorage: secureStorage, #dustLimitP2PKH: dustLimitP2PKH, #minConfirms: minConfirms, - #getMnemonic: getMnemonic, + #getMnemonicString: getMnemonicString, + #getMnemonicPassphrase: getMnemonicPassphrase, #getChainHeight: getChainHeight, #getCurrentChangeAddress: getCurrentChangeAddress, #estimateTxFee: estimateTxFee, @@ -1525,79 +1517,67 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #checkChangeAddressForTransactions: checkChangeAddressForTransactions, #addDerivation: addDerivation, - #addDerivations: addDerivations, }, ), returnValueForMissingStub: null, ); @override - _i21.Future<_i15.Address> currentReceivingPaynymAddress( - _i17.PaymentCode? sender) => + _i20.Future<_i15.Address> currentReceivingPaynymAddress( + _i16.PaymentCode? sender) => (super.noSuchMethod( Invocation.method( #currentReceivingPaynymAddress, [sender], ), - returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i20.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #currentReceivingPaynymAddress, [sender], ), )), - ) as _i21.Future<_i15.Address>); + ) as _i20.Future<_i15.Address>); @override - _i21.Future checkCurrentPaynymReceivingAddressForTransactions( - _i17.PaymentCode? sender) => + _i20.Future checkCurrentPaynymReceivingAddressForTransactions( + _i16.PaymentCode? sender) => (super.noSuchMethod( Invocation.method( #checkCurrentPaynymReceivingAddressForTransactions, [sender], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => + _i20.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkAllCurrentReceivingPaynymAddressesForTransactions, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future<_i16.BIP32> getRootNode({required List? mnemonic}) => - (super.noSuchMethod( - Invocation.method( - #getRootNode, - [], - {#mnemonic: mnemonic}, - ), - returnValue: _i21.Future<_i16.BIP32>.value(_FakeBIP32_14( - this, - Invocation.method( - #getRootNode, - [], - {#mnemonic: mnemonic}, - ), - )), - ) as _i21.Future<_i16.BIP32>); - @override - _i21.Future<_i27.Uint8List> deriveNotificationPrivateKey( - {required List? mnemonic}) => + _i20.Future<_i26.Uint8List> deriveNotificationPrivateKey({ + required String? mnemonic, + required String? mnemonicPassphrase, + }) => (super.noSuchMethod( Invocation.method( #deriveNotificationPrivateKey, [], - {#mnemonic: mnemonic}, + { + #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, + }, ), - returnValue: _i21.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i21.Future<_i27.Uint8List>); + returnValue: _i20.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), + ) as _i20.Future<_i26.Uint8List>); @override - _i21.Future<_i27.Uint8List> deriveReceivingPrivateKey({ - required List? mnemonic, + _i20.Future<_i26.Uint8List> deriveReceivingPrivateKey({ + required String? mnemonic, + required String? mnemonicPassphrase, required int? index, }) => (super.noSuchMethod( @@ -1606,48 +1586,49 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #index: index, }, ), - returnValue: _i21.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i21.Future<_i27.Uint8List>); + returnValue: _i20.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), + ) as _i20.Future<_i26.Uint8List>); @override - _i21.Future<_i17.PaymentCode> getPaymentCode( - _i25.DerivePathType? derivePathType) => + _i20.Future<_i16.PaymentCode> getPaymentCode( + _i24.DerivePathType? derivePathType) => (super.noSuchMethod( Invocation.method( #getPaymentCode, [derivePathType], ), - returnValue: _i21.Future<_i17.PaymentCode>.value(_FakePaymentCode_15( + returnValue: _i20.Future<_i16.PaymentCode>.value(_FakePaymentCode_14( this, Invocation.method( #getPaymentCode, [derivePathType], ), )), - ) as _i21.Future<_i17.PaymentCode>); + ) as _i20.Future<_i16.PaymentCode>); @override - _i21.Future<_i27.Uint8List> signWithNotificationKey(_i27.Uint8List? data) => + _i20.Future<_i26.Uint8List> signWithNotificationKey(_i26.Uint8List? data) => (super.noSuchMethod( Invocation.method( #signWithNotificationKey, [data], ), - returnValue: _i21.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i21.Future<_i27.Uint8List>); + returnValue: _i20.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), + ) as _i20.Future<_i26.Uint8List>); @override - _i21.Future signStringWithNotificationKey(String? data) => + _i20.Future signStringWithNotificationKey(String? data) => (super.noSuchMethod( Invocation.method( #signStringWithNotificationKey, [data], ), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override - _i21.Future> preparePaymentCodeSend({ - required _i17.PaymentCode? paymentCode, + _i20.Future> preparePaymentCodeSend({ + required _i16.PaymentCode? paymentCode, required int? satoshiAmount, Map? args, }) => @@ -1662,12 +1643,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, ), returnValue: - _i21.Future>.value({}), - ) as _i21.Future>); + _i20.Future>.value({}), + ) as _i20.Future>); @override - _i21.Future<_i15.Address> nextUnusedSendAddressFrom({ - required _i17.PaymentCode? pCode, - required _i27.Uint8List? privateKey, + _i20.Future<_i15.Address> nextUnusedSendAddressFrom({ + required _i16.PaymentCode? pCode, + required _i26.Uint8List? privateKey, int? startIndex = 0, }) => (super.noSuchMethod( @@ -1680,7 +1661,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #startIndex: startIndex, }, ), - returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i20.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #nextUnusedSendAddressFrom, @@ -1692,9 +1673,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, ), )), - ) as _i21.Future<_i15.Address>); + ) as _i20.Future<_i15.Address>); @override - _i21.Future> prepareNotificationTx({ + _i20.Future> prepareNotificationTx({ required int? selectedTxFeeRate, required String? targetPaymentCodeString, int? additionalOutputs = 0, @@ -1712,10 +1693,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, ), returnValue: - _i21.Future>.value({}), - ) as _i21.Future>); + _i20.Future>.value({}), + ) as _i20.Future>); @override - _i21.Future broadcastNotificationTx( + _i20.Future broadcastNotificationTx( {required Map? preparedTx}) => (super.noSuchMethod( Invocation.method( @@ -1723,19 +1704,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { [], {#preparedTx: preparedTx}, ), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override - _i21.Future hasConnected(String? paymentCodeString) => + _i20.Future hasConnected(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #hasConnected, [paymentCodeString], ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i21.Future<_i17.PaymentCode?> unBlindedPaymentCodeFromTransaction({ + _i20.Future<_i16.PaymentCode?> unBlindedPaymentCodeFromTransaction({ required _i15.Transaction? transaction, required _i15.Address? myNotificationAddress, }) => @@ -1748,31 +1729,31 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #myNotificationAddress: myNotificationAddress, }, ), - returnValue: _i21.Future<_i17.PaymentCode?>.value(), - ) as _i21.Future<_i17.PaymentCode?>); + returnValue: _i20.Future<_i16.PaymentCode?>.value(), + ) as _i20.Future<_i16.PaymentCode?>); @override - _i21.Future> + _i20.Future> getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( Invocation.method( #getAllPaymentCodesFromNotificationTransactions, [], ), returnValue: - _i21.Future>.value(<_i17.PaymentCode>[]), - ) as _i21.Future>); + _i20.Future>.value(<_i16.PaymentCode>[]), + ) as _i20.Future>); @override - _i21.Future checkForNotificationTransactionsTo( + _i20.Future checkForNotificationTransactionsTo( Set? otherCodeStrings) => (super.noSuchMethod( Invocation.method( #checkForNotificationTransactionsTo, [otherCodeStrings], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future restoreAllHistory({ + _i20.Future restoreAllHistory({ required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required Set? paymentCodeStrings, @@ -1787,12 +1768,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #paymentCodeStrings: paymentCodeStrings, }, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future restoreHistoryWith( - _i17.PaymentCode? other, + _i20.Future restoreHistoryWith( + _i16.PaymentCode? other, int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1805,15 +1786,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future<_i15.Address> generatePaynymSendAddressFromKeyPair({ + _i20.Future<_i15.Address> generatePaynymSendAddressFromKeyPair({ required _i13.ECPair? pair, required int? derivationIndex, - required _i25.DerivePathType? derivePathType, - required _i17.PaymentCode? toPaymentCode, + required _i24.DerivePathType? derivePathType, + required _i16.PaymentCode? toPaymentCode, }) => (super.noSuchMethod( Invocation.method( @@ -1826,7 +1807,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #toPaymentCode: toPaymentCode, }, ), - returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i20.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #generatePaynymSendAddressFromKeyPair, @@ -1839,13 +1820,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, ), )), - ) as _i21.Future<_i15.Address>); + ) as _i20.Future<_i15.Address>); @override - _i21.Future<_i15.Address> generatePaynymReceivingAddressFromKeyPair({ + _i20.Future<_i15.Address> generatePaynymReceivingAddressFromKeyPair({ required _i13.ECPair? pair, required int? derivationIndex, - required _i25.DerivePathType? derivePathType, - required _i17.PaymentCode? fromPaymentCode, + required _i24.DerivePathType? derivePathType, + required _i16.PaymentCode? fromPaymentCode, }) => (super.noSuchMethod( Invocation.method( @@ -1858,7 +1839,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #fromPaymentCode: fromPaymentCode, }, ), - returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i20.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #generatePaynymReceivingAddressFromKeyPair, @@ -1871,50 +1852,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, ), )), - ) as _i21.Future<_i15.Address>); + ) as _i20.Future<_i15.Address>); @override - _i21.Future<_i15.Address> getMyNotificationAddress( - _i25.DerivePathType? derivePathType) => + _i20.Future<_i15.Address> getMyNotificationAddress( + _i24.DerivePathType? derivePathType) => (super.noSuchMethod( Invocation.method( #getMyNotificationAddress, [derivePathType], ), - returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i20.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #getMyNotificationAddress, [derivePathType], ), )), - ) as _i21.Future<_i15.Address>); + ) as _i20.Future<_i15.Address>); @override - _i21.Future> lookupKey(String? paymentCodeString) => + _i20.Future> lookupKey(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #lookupKey, [paymentCodeString], ), - returnValue: _i21.Future>.value([]), - ) as _i21.Future>); + returnValue: _i20.Future>.value([]), + ) as _i20.Future>); @override - _i21.Future paymentCodeStringByKey(String? key) => + _i20.Future paymentCodeStringByKey(String? key) => (super.noSuchMethod( Invocation.method( #paymentCodeStringByKey, [key], ), - returnValue: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future storeCode(String? paymentCodeString) => + _i20.Future storeCode(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #storeCode, [paymentCodeString], ), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); } /// A class which mocks [Manager]. @@ -1935,23 +1916,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i18.CoinServiceAPI get wallet => (super.noSuchMethod( + _i17.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_16( + returnValue: _FakeCoinServiceAPI_15( this, Invocation.getter(#wallet), ), - ) as _i18.CoinServiceAPI); + ) as _i17.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i20.Coin get coin => (super.noSuchMethod( + _i19.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i20.Coin.bitcoin, - ) as _i20.Coin); + returnValue: _i19.Coin.bitcoin, + ) as _i19.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -1984,23 +1965,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i21.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i20.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i21.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i20.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i21.Future<_i8.FeeObject>); + ) as _i20.Future<_i8.FeeObject>); @override - _i21.Future get maxFee => (super.noSuchMethod( + _i20.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i21.Future.value(0), - ) as _i21.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i21.Future get currentReceivingAddress => (super.noSuchMethod( + _i20.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2010,16 +1991,16 @@ class MockManager extends _i1.Mock implements _i6.Manager { ), ) as _i11.Balance); @override - _i21.Future> get transactions => (super.noSuchMethod( + _i20.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i21.Future>.value(<_i15.Transaction>[]), - ) as _i21.Future>); + _i20.Future>.value(<_i15.Transaction>[]), + ) as _i20.Future>); @override - _i21.Future> get utxos => (super.noSuchMethod( + _i20.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i21.Future>.value(<_i15.UTXO>[]), - ) as _i21.Future>); + returnValue: _i20.Future>.value(<_i15.UTXO>[]), + ) as _i20.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2039,10 +2020,15 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i21.Future> get mnemonic => (super.noSuchMethod( + _i20.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i21.Future>.value([]), - ) as _i21.Future>); + returnValue: _i20.Future>.value([]), + ) as _i20.Future>); + @override + _i20.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i20.Future.value(), + ) as _i20.Future); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -2064,14 +2050,14 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i20.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -2081,7 +2067,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i21.Future> prepareSend({ + _i20.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2097,27 +2083,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i21.Future>.value({}), - ) as _i21.Future>); + _i20.Future>.value({}), + ) as _i20.Future>); @override - _i21.Future confirmSend({required Map? txData}) => + _i20.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override - _i21.Future refresh() => (super.noSuchMethod( + _i20.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2127,34 +2113,35 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i21.Future testNetworkConnection() => (super.noSuchMethod( + _i20.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i21.Future initializeNew() => (super.noSuchMethod( + _i20.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future initializeExisting() => (super.noSuchMethod( + _i20.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future recoverFromMnemonic({ + _i20.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -2165,25 +2152,26 @@ class MockManager extends _i1.Mock implements _i6.Manager { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future exitCurrentWallet() => (super.noSuchMethod( + _i20.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future fullRescan( + _i20.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2195,11 +2183,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future estimateFeeFor( + _i20.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2211,18 +2199,18 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i21.Future.value(0), - ) as _i21.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i21.Future generateNewAddress() => (super.noSuchMethod( + _i20.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2230,7 +2218,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2250,7 +2238,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -2261,10 +2249,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i20.Coin get coin => (super.noSuchMethod( + _i19.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i20.Coin.bitcoin, - ) as _i20.Coin); + returnValue: _i19.Coin.bitcoin, + ) as _i19.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2297,23 +2285,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i21.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i20.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i21.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i20.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i21.Future<_i8.FeeObject>); + ) as _i20.Future<_i8.FeeObject>); @override - _i21.Future get maxFee => (super.noSuchMethod( + _i20.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i21.Future.value(0), - ) as _i21.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i21.Future get currentReceivingAddress => (super.noSuchMethod( + _i20.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2323,16 +2311,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { ), ) as _i11.Balance); @override - _i21.Future> get transactions => (super.noSuchMethod( + _i20.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i21.Future>.value(<_i15.Transaction>[]), - ) as _i21.Future>); + _i20.Future>.value(<_i15.Transaction>[]), + ) as _i20.Future>); @override - _i21.Future> get utxos => (super.noSuchMethod( + _i20.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i21.Future>.value(<_i15.UTXO>[]), - ) as _i21.Future>); + returnValue: _i20.Future>.value(<_i15.UTXO>[]), + ) as _i20.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2352,10 +2340,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { returnValue: '', ) as String); @override - _i21.Future> get mnemonic => (super.noSuchMethod( + _i20.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i21.Future>.value([]), - ) as _i21.Future>); + returnValue: _i20.Future>.value([]), + ) as _i20.Future>); + @override + _i20.Future get mnemonicString => (super.noSuchMethod( + Invocation.getter(#mnemonicString), + returnValue: _i20.Future.value(), + ) as _i20.Future); + @override + _i20.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i20.Future.value(), + ) as _i20.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2372,7 +2370,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { returnValue: 0, ) as int); @override - _i21.Future> prepareSend({ + _i20.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2388,36 +2386,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { }, ), returnValue: - _i21.Future>.value({}), - ) as _i21.Future>); + _i20.Future>.value({}), + ) as _i20.Future>); @override - _i21.Future confirmSend({required Map? txData}) => + _i20.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override - _i21.Future refresh() => (super.noSuchMethod( + _i20.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i20.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2427,16 +2425,17 @@ class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { returnValue: false, ) as bool); @override - _i21.Future testNetworkConnection() => (super.noSuchMethod( + _i20.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i21.Future recoverFromMnemonic({ + _i20.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -2447,43 +2446,44 @@ class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future initializeNew() => (super.noSuchMethod( + _i20.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future initializeExisting() => (super.noSuchMethod( + _i20.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future exit() => (super.noSuchMethod( + _i20.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future fullRescan( + _i20.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2495,11 +2495,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i21.Future estimateFeeFor( + _i20.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2511,24 +2511,24 @@ class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { feeRate, ], ), - returnValue: _i21.Future.value(0), - ) as _i21.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i21.Future generateNewAddress() => (super.noSuchMethod( + _i20.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i21.Future updateSentCachedTxData(Map? txData) => + _i20.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); } diff --git a/test/widget_tests/wallet_card_test.mocks.dart b/test/widget_tests/wallet_card_test.mocks.dart index 6783c5f8b..6a48669ef 100644 --- a/test/widget_tests/wallet_card_test.mocks.dart +++ b/test/widget_tests/wallet_card_test.mocks.dart @@ -3,12 +3,11 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i20; -import 'dart:typed_data' as _i26; -import 'dart:ui' as _i22; +import 'dart:async' as _i19; +import 'dart:typed_data' as _i25; +import 'dart:ui' as _i21; -import 'package:bip32/bip32.dart' as _i16; -import 'package:bip47/bip47.dart' as _i17; +import 'package:bip47/bip47.dart' as _i16; import 'package:bitcoindart/bitcoindart.dart' as _i13; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; @@ -19,19 +18,19 @@ import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9; import 'package:stackwallet/models/balance.dart' as _i11; import 'package:stackwallet/models/isar/models/isar_models.dart' as _i15; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i23; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i22; import 'package:stackwallet/services/coins/manager.dart' as _i6; -import 'package:stackwallet/services/locale_service.dart' as _i27; +import 'package:stackwallet/services/locale_service.dart' as _i26; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i7; -import 'package:stackwallet/services/wallets.dart' as _i18; +import 'package:stackwallet/services/wallets.dart' as _i17; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i19; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i24; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i18; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i23; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i25; -import 'package:stackwallet/utilities/prefs.dart' as _i21; + as _i24; +import 'package:stackwallet/utilities/prefs.dart' as _i20; import 'package:tuple/tuple.dart' as _i14; // ignore_for_file: type=lint @@ -169,9 +168,9 @@ class _FakeElectrumXNode_11 extends _i1.SmartFake implements _i9.ElectrumXNode { ); } -class _FakeTuple4_12 extends _i1.SmartFake - implements _i14.Tuple4 { - _FakeTuple4_12( +class _FakeTuple2_12 extends _i1.SmartFake + implements _i14.Tuple2 { + _FakeTuple2_12( Object parent, Invocation parentInvocation, ) : super( @@ -190,18 +189,8 @@ class _FakeAddress_13 extends _i1.SmartFake implements _i15.Address { ); } -class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { - _FakeBIP32_14( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakePaymentCode_15 extends _i1.SmartFake implements _i17.PaymentCode { - _FakePaymentCode_15( +class _FakePaymentCode_14 extends _i1.SmartFake implements _i16.PaymentCode { + _FakePaymentCode_14( Object parent, Invocation parentInvocation, ) : super( @@ -213,7 +202,7 @@ class _FakePaymentCode_15 extends _i1.SmartFake implements _i17.PaymentCode { /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i18.Wallets { +class MockWallets extends _i1.Mock implements _i17.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -280,7 +269,7 @@ class MockWallets extends _i1.Mock implements _i18.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i19.Coin? coin}) => + List getWalletIdsFor({required _i18.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -290,18 +279,18 @@ class MockWallets extends _i1.Mock implements _i18.Wallets { returnValue: [], ) as List); @override - Map<_i19.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> + Map<_i18.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i19.Coin, + returnValue: <_i18.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>{}, - ) as Map<_i19.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); + ) as Map<_i18.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i19.Coin? coin) => + _i18.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -365,17 +354,17 @@ class MockWallets extends _i1.Mock implements _i18.Wallets { returnValueForMissingStub: null, ); @override - _i20.Future load(_i21.Prefs? prefs) => (super.noSuchMethod( + _i19.Future load(_i20.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future loadAfterStackRestore( - _i21.Prefs? prefs, + _i19.Future loadAfterStackRestore( + _i20.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -386,11 +375,11 @@ class MockWallets extends _i1.Mock implements _i18.Wallets { managers, ], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i21.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -398,7 +387,7 @@ class MockWallets extends _i1.Mock implements _i18.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i21.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -418,13 +407,13 @@ class MockWallets extends _i1.Mock implements _i18.Wallets { /// A class which mocks [BitcoinWallet]. /// /// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i22.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i20.Timer? _timer) => super.noSuchMethod( + set timer(_i19.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -501,64 +490,74 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { returnValue: false, ) as bool); @override - _i19.Coin get coin => (super.noSuchMethod( + _i18.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i19.Coin.bitcoin, - ) as _i19.Coin); + returnValue: _i18.Coin.bitcoin, + ) as _i18.Coin); @override - _i20.Future> get utxos => (super.noSuchMethod( + _i19.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i20.Future>.value(<_i15.UTXO>[]), - ) as _i20.Future>); + returnValue: _i19.Future>.value(<_i15.UTXO>[]), + ) as _i19.Future>); @override - _i20.Future> get transactions => (super.noSuchMethod( + _i19.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i20.Future>.value(<_i15.Transaction>[]), - ) as _i20.Future>); + _i19.Future>.value(<_i15.Transaction>[]), + ) as _i19.Future>); @override - _i20.Future get currentReceivingAddress => (super.noSuchMethod( + _i19.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i19.Future.value(''), + ) as _i19.Future); @override - _i20.Future get currentChangeAddress => (super.noSuchMethod( + _i19.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i19.Future.value(''), + ) as _i19.Future); @override - _i20.Future get currentChangeAddressP2PKH => (super.noSuchMethod( + _i19.Future get currentChangeAddressP2PKH => (super.noSuchMethod( Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i19.Future.value(''), + ) as _i19.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i20.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i19.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i20.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i19.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i20.Future<_i8.FeeObject>); + ) as _i19.Future<_i8.FeeObject>); @override - _i20.Future get maxFee => (super.noSuchMethod( + _i19.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i20.Future.value(0), - ) as _i20.Future); + returnValue: _i19.Future.value(0), + ) as _i19.Future); @override - _i20.Future> get mnemonic => (super.noSuchMethod( + _i19.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i20.Future>.value([]), - ) as _i20.Future>); + returnValue: _i19.Future>.value([]), + ) as _i19.Future>); @override - _i20.Future get chainHeight => (super.noSuchMethod( + _i19.Future get mnemonicString => (super.noSuchMethod( + Invocation.getter(#mnemonicString), + returnValue: _i19.Future.value(), + ) as _i19.Future); + @override + _i19.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i19.Future.value(), + ) as _i19.Future); + @override + _i19.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i20.Future.value(0), - ) as _i20.Future); + returnValue: _i19.Future.value(0), + ) as _i19.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -655,27 +654,28 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { ), ) as _i13.NetworkType); @override - _i20.Future exit() => (super.noSuchMethod( + _i19.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i24.DerivePathType addressType({required String? address}) => + _i23.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i24.DerivePathType.bip44, - ) as _i24.DerivePathType); + returnValue: _i23.DerivePathType.bip44, + ) as _i23.DerivePathType); @override - _i20.Future recoverFromMnemonic({ + _i19.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -686,52 +686,53 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future getTransactionCacheEarly(List? allAddresses) => + _i19.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i19.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i20.Future.value(false), - ) as _i20.Future); + returnValue: _i19.Future.value(false), + ) as _i19.Future); @override - _i20.Future getAllTxsToWatch() => (super.noSuchMethod( + _i19.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future refresh() => (super.noSuchMethod( + _i19.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future> prepareSend({ + _i19.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -747,26 +748,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { }, ), returnValue: - _i20.Future>.value({}), - ) as _i20.Future>); + _i19.Future>.value({}), + ) as _i19.Future>); @override - _i20.Future confirmSend({required Map? txData}) => + _i19.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i19.Future.value(''), + ) as _i19.Future); @override - _i20.Future testNetworkConnection() => (super.noSuchMethod( + _i19.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i20.Future.value(false), - ) as _i20.Future); + returnValue: _i19.Future.value(false), + ) as _i19.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -784,33 +785,33 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i20.Future initializeNew() => (super.noSuchMethod( + _i19.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future initializeExisting() => (super.noSuchMethod( + _i19.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future updateSentCachedTxData(Map? txData) => + _i19.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -820,35 +821,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { returnValue: false, ) as bool); @override - _i20.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i19.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i19.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), - returnValue: _i20.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( + returnValue: _i19.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i20.Future<_i9.ElectrumXNode>); + ) as _i19.Future<_i9.ElectrumXNode>); @override - _i20.Future addDerivation({ + _i19.Future addDerivation({ required int? chain, required String? address, required String? pubKey, required String? wif, - required _i24.DerivePathType? derivePathType, + required _i23.DerivePathType? derivePathType, }) => (super.noSuchMethod( Invocation.method( @@ -862,13 +863,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { #derivePathType: derivePathType, }, ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future addDerivations({ + _i19.Future addDerivations({ required int? chain, - required _i24.DerivePathType? derivePathType, + required _i23.DerivePathType? derivePathType, required Map? derivationsToAdd, }) => (super.noSuchMethod( @@ -881,50 +882,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { #derivationsToAdd: derivationsToAdd, }, ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future>> fastFetch( + _i19.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i20.Future>>.value( + returnValue: _i19.Future>>.value( >[]), - ) as _i20.Future>>); + ) as _i19.Future>>); @override - _i20.Future getTxCount({required String? address}) => + _i19.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i20.Future.value(0), - ) as _i20.Future); + returnValue: _i19.Future.value(0), + ) as _i19.Future); @override - _i20.Future checkCurrentReceivingAddressesForTransactions() => + _i19.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future checkCurrentChangeAddressesForTransactions() => + _i19.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override int estimateTxFee({ required int? vSize, @@ -964,7 +965,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { }, )); @override - _i20.Future> fetchBuildTxData( + _i19.Future> fetchBuildTxData( List<_i15.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( @@ -972,10 +973,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { [utxosToUse], ), returnValue: - _i20.Future>.value({}), - ) as _i20.Future>); + _i19.Future>.value({}), + ) as _i19.Future>); @override - _i20.Future> buildTransaction({ + _i19.Future> buildTransaction({ required List<_i15.UTXO>? utxosToUse, required Map? utxoSigningData, required List? recipients, @@ -993,10 +994,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { }, ), returnValue: - _i20.Future>.value({}), - ) as _i20.Future>); + _i19.Future>.value({}), + ) as _i19.Future>); @override - _i20.Future fullRescan( + _i19.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1008,11 +1009,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future estimateFeeFor( + _i19.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1024,8 +1025,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { feeRate, ], ), - returnValue: _i20.Future.value(0), - ) as _i20.Future); + returnValue: _i19.Future.value(0), + ) as _i19.Future); @override int roughFeeEstimate( int? inputCount, @@ -1044,25 +1045,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { returnValue: 0, ) as int); @override - _i20.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( + _i19.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i20.Future.value(0), - ) as _i20.Future); + returnValue: _i19.Future.value(0), + ) as _i19.Future); @override - _i20.Future generateNewAddress() => (super.noSuchMethod( + _i19.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i20.Future.value(false), - ) as _i20.Future); + returnValue: _i19.Future.value(false), + ) as _i19.Future); @override void initCache( String? walletId, - _i19.Coin? coin, + _i18.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1075,14 +1076,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i20.Future updateCachedId(String? id) => (super.noSuchMethod( + _i19.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1092,14 +1093,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { returnValue: 0, ) as int); @override - _i20.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i19.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1109,15 +1110,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { returnValue: false, ) as bool); @override - _i20.Future updateCachedIsFavorite(bool? isFavorite) => + _i19.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override _i11.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1133,15 +1134,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { ), ) as _i11.Balance); @override - _i20.Future updateCachedBalance(_i11.Balance? balance) => + _i19.Future updateCachedBalance(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1157,15 +1158,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { ), ) as _i11.Balance); @override - _i20.Future updateCachedBalanceSecondary(_i11.Balance? balance) => + _i19.Future updateCachedBalanceSecondary(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1176,13 +1177,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i20.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>> parseTransaction( + _i19.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>> parseTransaction( Map? txData, dynamic electrumxClient, List<_i15.Address>? myAddresses, - _i19.Coin? coin, + _i18.Coin? coin, int? minConfirms, String? walletId, ) => @@ -1198,10 +1197,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { walletId, ], ), - returnValue: _i20.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>>.value(_FakeTuple4_12<_i15.Transaction, - List<_i15.Output>, List<_i15.Input>, _i15.Address>( + returnValue: + _i19.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>>.value( + _FakeTuple2_12<_i15.Transaction, _i15.Address>( this, Invocation.method( #parseTransaction, @@ -1215,53 +1213,46 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { ], ), )), - ) as _i20.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>>); + ) as _i19.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>>); @override void initPaynymWalletInterface({ required String? walletId, required String? walletName, required _i13.NetworkType? network, - required _i19.Coin? coin, + required _i18.Coin? coin, required _i12.MainDB? db, required _i9.ElectrumX? electrumXClient, - required _i25.SecureStorageInterface? secureStorage, + required _i24.SecureStorageInterface? secureStorage, required int? dustLimitP2PKH, required int? minConfirms, - required _i20.Future> Function()? getMnemonic, - required _i20.Future Function()? getChainHeight, - required _i20.Future Function()? getCurrentChangeAddress, + required _i19.Future Function()? getMnemonicString, + required _i19.Future Function()? getMnemonicPassphrase, + required _i19.Future Function()? getChainHeight, + required _i19.Future Function()? getCurrentChangeAddress, required int Function({ required int feeRatePerKB, required int vSize, })? estimateTxFee, - required _i20.Future> Function({ + required _i19.Future> Function({ required String address, required int satoshiAmount, Map? args, })? prepareSend, - required _i20.Future Function({required String address})? getTxCount, - required _i20.Future> Function(List<_i15.UTXO>)? + required _i19.Future Function({required String address})? getTxCount, + required _i19.Future> Function(List<_i15.UTXO>)? fetchBuildTxData, - required _i20.Future Function()? refresh, - required _i20.Future Function()? checkChangeAddressForTransactions, - required _i20.Future Function({ + required _i19.Future Function()? refresh, + required _i19.Future Function()? checkChangeAddressForTransactions, + required _i19.Future Function({ required String address, required int chain, - required _i24.DerivePathType derivePathType, + required _i23.DerivePathType derivePathType, required String pubKey, required String wif, })? addDerivation, - required _i20.Future Function({ - required int chain, - required Map derivationsToAdd, - required _i24.DerivePathType derivePathType, - })? - addDerivations, }) => super.noSuchMethod( Invocation.method( @@ -1277,7 +1268,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { #secureStorage: secureStorage, #dustLimitP2PKH: dustLimitP2PKH, #minConfirms: minConfirms, - #getMnemonic: getMnemonic, + #getMnemonicString: getMnemonicString, + #getMnemonicPassphrase: getMnemonicPassphrase, #getChainHeight: getChainHeight, #getCurrentChangeAddress: getCurrentChangeAddress, #estimateTxFee: estimateTxFee, @@ -1288,79 +1280,67 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { #checkChangeAddressForTransactions: checkChangeAddressForTransactions, #addDerivation: addDerivation, - #addDerivations: addDerivations, }, ), returnValueForMissingStub: null, ); @override - _i20.Future<_i15.Address> currentReceivingPaynymAddress( - _i17.PaymentCode? sender) => + _i19.Future<_i15.Address> currentReceivingPaynymAddress( + _i16.PaymentCode? sender) => (super.noSuchMethod( Invocation.method( #currentReceivingPaynymAddress, [sender], ), - returnValue: _i20.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i19.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #currentReceivingPaynymAddress, [sender], ), )), - ) as _i20.Future<_i15.Address>); + ) as _i19.Future<_i15.Address>); @override - _i20.Future checkCurrentPaynymReceivingAddressForTransactions( - _i17.PaymentCode? sender) => + _i19.Future checkCurrentPaynymReceivingAddressForTransactions( + _i16.PaymentCode? sender) => (super.noSuchMethod( Invocation.method( #checkCurrentPaynymReceivingAddressForTransactions, [sender], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => + _i19.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkAllCurrentReceivingPaynymAddressesForTransactions, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future<_i16.BIP32> getRootNode({required List? mnemonic}) => - (super.noSuchMethod( - Invocation.method( - #getRootNode, - [], - {#mnemonic: mnemonic}, - ), - returnValue: _i20.Future<_i16.BIP32>.value(_FakeBIP32_14( - this, - Invocation.method( - #getRootNode, - [], - {#mnemonic: mnemonic}, - ), - )), - ) as _i20.Future<_i16.BIP32>); - @override - _i20.Future<_i26.Uint8List> deriveNotificationPrivateKey( - {required List? mnemonic}) => + _i19.Future<_i25.Uint8List> deriveNotificationPrivateKey({ + required String? mnemonic, + required String? mnemonicPassphrase, + }) => (super.noSuchMethod( Invocation.method( #deriveNotificationPrivateKey, [], - {#mnemonic: mnemonic}, + { + #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, + }, ), - returnValue: _i20.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), - ) as _i20.Future<_i26.Uint8List>); + returnValue: _i19.Future<_i25.Uint8List>.value(_i25.Uint8List(0)), + ) as _i19.Future<_i25.Uint8List>); @override - _i20.Future<_i26.Uint8List> deriveReceivingPrivateKey({ - required List? mnemonic, + _i19.Future<_i25.Uint8List> deriveReceivingPrivateKey({ + required String? mnemonic, + required String? mnemonicPassphrase, required int? index, }) => (super.noSuchMethod( @@ -1369,48 +1349,49 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #index: index, }, ), - returnValue: _i20.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), - ) as _i20.Future<_i26.Uint8List>); + returnValue: _i19.Future<_i25.Uint8List>.value(_i25.Uint8List(0)), + ) as _i19.Future<_i25.Uint8List>); @override - _i20.Future<_i17.PaymentCode> getPaymentCode( - _i24.DerivePathType? derivePathType) => + _i19.Future<_i16.PaymentCode> getPaymentCode( + _i23.DerivePathType? derivePathType) => (super.noSuchMethod( Invocation.method( #getPaymentCode, [derivePathType], ), - returnValue: _i20.Future<_i17.PaymentCode>.value(_FakePaymentCode_15( + returnValue: _i19.Future<_i16.PaymentCode>.value(_FakePaymentCode_14( this, Invocation.method( #getPaymentCode, [derivePathType], ), )), - ) as _i20.Future<_i17.PaymentCode>); + ) as _i19.Future<_i16.PaymentCode>); @override - _i20.Future<_i26.Uint8List> signWithNotificationKey(_i26.Uint8List? data) => + _i19.Future<_i25.Uint8List> signWithNotificationKey(_i25.Uint8List? data) => (super.noSuchMethod( Invocation.method( #signWithNotificationKey, [data], ), - returnValue: _i20.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), - ) as _i20.Future<_i26.Uint8List>); + returnValue: _i19.Future<_i25.Uint8List>.value(_i25.Uint8List(0)), + ) as _i19.Future<_i25.Uint8List>); @override - _i20.Future signStringWithNotificationKey(String? data) => + _i19.Future signStringWithNotificationKey(String? data) => (super.noSuchMethod( Invocation.method( #signStringWithNotificationKey, [data], ), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i19.Future.value(''), + ) as _i19.Future); @override - _i20.Future> preparePaymentCodeSend({ - required _i17.PaymentCode? paymentCode, + _i19.Future> preparePaymentCodeSend({ + required _i16.PaymentCode? paymentCode, required int? satoshiAmount, Map? args, }) => @@ -1425,12 +1406,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { }, ), returnValue: - _i20.Future>.value({}), - ) as _i20.Future>); + _i19.Future>.value({}), + ) as _i19.Future>); @override - _i20.Future<_i15.Address> nextUnusedSendAddressFrom({ - required _i17.PaymentCode? pCode, - required _i26.Uint8List? privateKey, + _i19.Future<_i15.Address> nextUnusedSendAddressFrom({ + required _i16.PaymentCode? pCode, + required _i25.Uint8List? privateKey, int? startIndex = 0, }) => (super.noSuchMethod( @@ -1443,7 +1424,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { #startIndex: startIndex, }, ), - returnValue: _i20.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i19.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #nextUnusedSendAddressFrom, @@ -1455,9 +1436,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { }, ), )), - ) as _i20.Future<_i15.Address>); + ) as _i19.Future<_i15.Address>); @override - _i20.Future> prepareNotificationTx({ + _i19.Future> prepareNotificationTx({ required int? selectedTxFeeRate, required String? targetPaymentCodeString, int? additionalOutputs = 0, @@ -1475,10 +1456,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { }, ), returnValue: - _i20.Future>.value({}), - ) as _i20.Future>); + _i19.Future>.value({}), + ) as _i19.Future>); @override - _i20.Future broadcastNotificationTx( + _i19.Future broadcastNotificationTx( {required Map? preparedTx}) => (super.noSuchMethod( Invocation.method( @@ -1486,19 +1467,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { [], {#preparedTx: preparedTx}, ), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i19.Future.value(''), + ) as _i19.Future); @override - _i20.Future hasConnected(String? paymentCodeString) => + _i19.Future hasConnected(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #hasConnected, [paymentCodeString], ), - returnValue: _i20.Future.value(false), - ) as _i20.Future); + returnValue: _i19.Future.value(false), + ) as _i19.Future); @override - _i20.Future<_i17.PaymentCode?> unBlindedPaymentCodeFromTransaction({ + _i19.Future<_i16.PaymentCode?> unBlindedPaymentCodeFromTransaction({ required _i15.Transaction? transaction, required _i15.Address? myNotificationAddress, }) => @@ -1511,31 +1492,31 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { #myNotificationAddress: myNotificationAddress, }, ), - returnValue: _i20.Future<_i17.PaymentCode?>.value(), - ) as _i20.Future<_i17.PaymentCode?>); + returnValue: _i19.Future<_i16.PaymentCode?>.value(), + ) as _i19.Future<_i16.PaymentCode?>); @override - _i20.Future> + _i19.Future> getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( Invocation.method( #getAllPaymentCodesFromNotificationTransactions, [], ), returnValue: - _i20.Future>.value(<_i17.PaymentCode>[]), - ) as _i20.Future>); + _i19.Future>.value(<_i16.PaymentCode>[]), + ) as _i19.Future>); @override - _i20.Future checkForNotificationTransactionsTo( + _i19.Future checkForNotificationTransactionsTo( Set? otherCodeStrings) => (super.noSuchMethod( Invocation.method( #checkForNotificationTransactionsTo, [otherCodeStrings], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future restoreAllHistory({ + _i19.Future restoreAllHistory({ required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required Set? paymentCodeStrings, @@ -1550,12 +1531,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { #paymentCodeStrings: paymentCodeStrings, }, ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future restoreHistoryWith( - _i17.PaymentCode? other, + _i19.Future restoreHistoryWith( + _i16.PaymentCode? other, int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1568,15 +1549,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future<_i15.Address> generatePaynymSendAddressFromKeyPair({ + _i19.Future<_i15.Address> generatePaynymSendAddressFromKeyPair({ required _i13.ECPair? pair, required int? derivationIndex, - required _i24.DerivePathType? derivePathType, - required _i17.PaymentCode? toPaymentCode, + required _i23.DerivePathType? derivePathType, + required _i16.PaymentCode? toPaymentCode, }) => (super.noSuchMethod( Invocation.method( @@ -1589,7 +1570,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { #toPaymentCode: toPaymentCode, }, ), - returnValue: _i20.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i19.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #generatePaynymSendAddressFromKeyPair, @@ -1602,13 +1583,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { }, ), )), - ) as _i20.Future<_i15.Address>); + ) as _i19.Future<_i15.Address>); @override - _i20.Future<_i15.Address> generatePaynymReceivingAddressFromKeyPair({ + _i19.Future<_i15.Address> generatePaynymReceivingAddressFromKeyPair({ required _i13.ECPair? pair, required int? derivationIndex, - required _i24.DerivePathType? derivePathType, - required _i17.PaymentCode? fromPaymentCode, + required _i23.DerivePathType? derivePathType, + required _i16.PaymentCode? fromPaymentCode, }) => (super.noSuchMethod( Invocation.method( @@ -1621,7 +1602,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { #fromPaymentCode: fromPaymentCode, }, ), - returnValue: _i20.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i19.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #generatePaynymReceivingAddressFromKeyPair, @@ -1634,56 +1615,56 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet { }, ), )), - ) as _i20.Future<_i15.Address>); + ) as _i19.Future<_i15.Address>); @override - _i20.Future<_i15.Address> getMyNotificationAddress( - _i24.DerivePathType? derivePathType) => + _i19.Future<_i15.Address> getMyNotificationAddress( + _i23.DerivePathType? derivePathType) => (super.noSuchMethod( Invocation.method( #getMyNotificationAddress, [derivePathType], ), - returnValue: _i20.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i19.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #getMyNotificationAddress, [derivePathType], ), )), - ) as _i20.Future<_i15.Address>); + ) as _i19.Future<_i15.Address>); @override - _i20.Future> lookupKey(String? paymentCodeString) => + _i19.Future> lookupKey(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #lookupKey, [paymentCodeString], ), - returnValue: _i20.Future>.value([]), - ) as _i20.Future>); + returnValue: _i19.Future>.value([]), + ) as _i19.Future>); @override - _i20.Future paymentCodeStringByKey(String? key) => + _i19.Future paymentCodeStringByKey(String? key) => (super.noSuchMethod( Invocation.method( #paymentCodeStringByKey, [key], ), - returnValue: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + ) as _i19.Future); @override - _i20.Future storeCode(String? paymentCodeString) => + _i19.Future storeCode(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #storeCode, [paymentCodeString], ), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i19.Future.value(''), + ) as _i19.Future); } /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i27.LocaleService { +class MockLocaleService extends _i1.Mock implements _i26.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -1699,17 +1680,17 @@ class MockLocaleService extends _i1.Mock implements _i27.LocaleService { returnValue: false, ) as bool); @override - _i20.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i19.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); @override - void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i21.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1717,7 +1698,7 @@ class MockLocaleService extends _i1.Mock implements _i27.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i21.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], diff --git a/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart b/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart index 97c97c181..aaa0a2baf 100644 --- a/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart +++ b/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart @@ -3,12 +3,11 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i22; -import 'dart:typed_data' as _i27; -import 'dart:ui' as _i24; +import 'dart:async' as _i21; +import 'dart:typed_data' as _i26; +import 'dart:ui' as _i23; -import 'package:bip32/bip32.dart' as _i16; -import 'package:bip47/bip47.dart' as _i17; +import 'package:bip47/bip47.dart' as _i16; import 'package:bitcoindart/bitcoindart.dart' as _i13; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; @@ -18,21 +17,21 @@ import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i10; import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9; import 'package:stackwallet/models/balance.dart' as _i11; import 'package:stackwallet/models/isar/models/isar_models.dart' as _i15; -import 'package:stackwallet/models/node_model.dart' as _i28; +import 'package:stackwallet/models/node_model.dart' as _i27; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i25; -import 'package:stackwallet/services/coins/coin_service.dart' as _i19; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i24; +import 'package:stackwallet/services/coins/coin_service.dart' as _i18; import 'package:stackwallet/services/coins/manager.dart' as _i6; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i7; -import 'package:stackwallet/services/wallets.dart' as _i20; +import 'package:stackwallet/services/wallets.dart' as _i19; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i21; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i26; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i20; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i25; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i18; -import 'package:stackwallet/utilities/prefs.dart' as _i23; + as _i17; +import 'package:stackwallet/utilities/prefs.dart' as _i22; import 'package:tuple/tuple.dart' as _i14; // ignore_for_file: type=lint @@ -170,9 +169,9 @@ class _FakeElectrumXNode_11 extends _i1.SmartFake implements _i9.ElectrumXNode { ); } -class _FakeTuple4_12 extends _i1.SmartFake - implements _i14.Tuple4 { - _FakeTuple4_12( +class _FakeTuple2_12 extends _i1.SmartFake + implements _i14.Tuple2 { + _FakeTuple2_12( Object parent, Invocation parentInvocation, ) : super( @@ -191,8 +190,8 @@ class _FakeAddress_13 extends _i1.SmartFake implements _i15.Address { ); } -class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { - _FakeBIP32_14( +class _FakePaymentCode_14 extends _i1.SmartFake implements _i16.PaymentCode { + _FakePaymentCode_14( Object parent, Invocation parentInvocation, ) : super( @@ -201,8 +200,9 @@ class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { ); } -class _FakePaymentCode_15 extends _i1.SmartFake implements _i17.PaymentCode { - _FakePaymentCode_15( +class _FakeSecureStorageInterface_15 extends _i1.SmartFake + implements _i17.SecureStorageInterface { + _FakeSecureStorageInterface_15( Object parent, Invocation parentInvocation, ) : super( @@ -211,20 +211,9 @@ class _FakePaymentCode_15 extends _i1.SmartFake implements _i17.PaymentCode { ); } -class _FakeSecureStorageInterface_16 extends _i1.SmartFake - implements _i18.SecureStorageInterface { - _FakeSecureStorageInterface_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeCoinServiceAPI_17 extends _i1.SmartFake - implements _i19.CoinServiceAPI { - _FakeCoinServiceAPI_17( +class _FakeCoinServiceAPI_16 extends _i1.SmartFake + implements _i18.CoinServiceAPI { + _FakeCoinServiceAPI_16( Object parent, Invocation parentInvocation, ) : super( @@ -236,7 +225,7 @@ class _FakeCoinServiceAPI_17 extends _i1.SmartFake /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i20.Wallets { +class MockWallets extends _i1.Mock implements _i19.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -303,7 +292,7 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i21.Coin? coin}) => + List getWalletIdsFor({required _i20.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -313,18 +302,18 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValue: [], ) as List); @override - Map<_i21.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> + Map<_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i21.Coin, + returnValue: <_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>{}, - ) as Map<_i21.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); + ) as Map<_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i21.Coin? coin) => + _i20.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -388,17 +377,17 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - _i22.Future load(_i23.Prefs? prefs) => (super.noSuchMethod( + _i21.Future load(_i22.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future loadAfterStackRestore( - _i23.Prefs? prefs, + _i21.Future loadAfterStackRestore( + _i22.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -409,11 +398,11 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { managers, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -421,7 +410,7 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -447,19 +436,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i22.Future> get walletNames => + _i21.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i22.Future>.value( + returnValue: _i21.Future>.value( {}), - ) as _i22.Future>); + ) as _i21.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i22.Future renameWallet({ + _i21.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -474,13 +463,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future addExistingStackWallet({ + _i21.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i21.Coin? coin, + required _i20.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -494,13 +483,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future addNewWallet({ + _i21.Future addNewWallet({ required String? name, - required _i21.Coin? coin, + required _i20.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -513,46 +502,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i21.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); @override - _i22.Future saveFavoriteWalletIds(List? walletIds) => + _i21.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i21.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i21.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future moveFavorite({ + _i21.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -565,48 +554,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i21.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i21.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future isMnemonicVerified({required String? walletId}) => + _i21.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future setMnemonicVerified({required String? walletId}) => + _i21.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future deleteWallet( + _i21.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -618,20 +607,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future refreshWallets(bool? shouldNotifyListeners) => + _i21.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -639,7 +628,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -667,13 +656,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { /// A class which mocks [BitcoinWallet]. /// /// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i22.Timer? _timer) => super.noSuchMethod( + set timer(_i21.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -750,64 +739,74 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: false, ) as bool); @override - _i21.Coin get coin => (super.noSuchMethod( + _i20.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i20.Coin.bitcoin, + ) as _i20.Coin); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i21.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i15.UTXO>[]), - ) as _i22.Future>); + returnValue: _i21.Future>.value(<_i15.UTXO>[]), + ) as _i21.Future>); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i21.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i15.Transaction>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i15.Transaction>[]), + ) as _i21.Future>); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i21.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future get currentChangeAddress => (super.noSuchMethod( + _i21.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future get currentChangeAddressP2PKH => (super.noSuchMethod( + _i21.Future get currentChangeAddressP2PKH => (super.noSuchMethod( Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i22.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i21.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i21.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i8.FeeObject>); + ) as _i21.Future<_i8.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i21.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i21.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); @override - _i22.Future get chainHeight => (super.noSuchMethod( + _i21.Future get mnemonicString => (super.noSuchMethod( + Invocation.getter(#mnemonicString), + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override + _i21.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override + _i21.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -904,27 +903,28 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { ), ) as _i13.NetworkType); @override - _i22.Future exit() => (super.noSuchMethod( + _i21.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i26.DerivePathType addressType({required String? address}) => + _i25.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i26.DerivePathType.bip44, - ) as _i26.DerivePathType); + returnValue: _i25.DerivePathType.bip44, + ) as _i25.DerivePathType); @override - _i22.Future recoverFromMnemonic({ + _i21.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -935,52 +935,53 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future getTransactionCacheEarly(List? allAddresses) => + _i21.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i21.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future getAllTxsToWatch() => (super.noSuchMethod( + _i21.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i21.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future> prepareSend({ + _i21.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -996,26 +997,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i21.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i21.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -1033,33 +1034,33 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i21.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i21.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future updateSentCachedTxData(Map? txData) => + _i21.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1069,35 +1070,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: false, ) as bool); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i21.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), - returnValue: _i22.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( + returnValue: _i21.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i22.Future<_i9.ElectrumXNode>); + ) as _i21.Future<_i9.ElectrumXNode>); @override - _i22.Future addDerivation({ + _i21.Future addDerivation({ required int? chain, required String? address, required String? pubKey, required String? wif, - required _i26.DerivePathType? derivePathType, + required _i25.DerivePathType? derivePathType, }) => (super.noSuchMethod( Invocation.method( @@ -1111,13 +1112,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #derivePathType: derivePathType, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future addDerivations({ + _i21.Future addDerivations({ required int? chain, - required _i26.DerivePathType? derivePathType, + required _i25.DerivePathType? derivePathType, required Map? derivationsToAdd, }) => (super.noSuchMethod( @@ -1130,50 +1131,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #derivationsToAdd: derivationsToAdd, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future>> fastFetch( + _i21.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i22.Future>>.value( + returnValue: _i21.Future>>.value( >[]), - ) as _i22.Future>>); + ) as _i21.Future>>); @override - _i22.Future getTxCount({required String? address}) => + _i21.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future checkCurrentReceivingAddressesForTransactions() => + _i21.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future checkCurrentChangeAddressesForTransactions() => + _i21.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override int estimateTxFee({ required int? vSize, @@ -1213,7 +1214,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, )); @override - _i22.Future> fetchBuildTxData( + _i21.Future> fetchBuildTxData( List<_i15.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( @@ -1221,10 +1222,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { [utxosToUse], ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future> buildTransaction({ + _i21.Future> buildTransaction({ required List<_i15.UTXO>? utxosToUse, required Map? utxoSigningData, required List? recipients, @@ -1242,10 +1243,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future fullRescan( + _i21.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1257,11 +1258,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future estimateFeeFor( + _i21.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1273,8 +1274,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { feeRate, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override int roughFeeEstimate( int? inputCount, @@ -1293,25 +1294,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: 0, ) as int); @override - _i22.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( + _i21.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i21.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override void initCache( String? walletId, - _i21.Coin? coin, + _i20.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1324,14 +1325,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future updateCachedId(String? id) => (super.noSuchMethod( + _i21.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1341,14 +1342,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: 0, ) as int); @override - _i22.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i21.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1358,15 +1359,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: false, ) as bool); @override - _i22.Future updateCachedIsFavorite(bool? isFavorite) => + _i21.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override _i11.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1382,15 +1383,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { ), ) as _i11.Balance); @override - _i22.Future updateCachedBalance(_i11.Balance? balance) => + _i21.Future updateCachedBalance(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1406,15 +1407,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { ), ) as _i11.Balance); @override - _i22.Future updateCachedBalanceSecondary(_i11.Balance? balance) => + _i21.Future updateCachedBalanceSecondary(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1425,13 +1426,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>> parseTransaction( + _i21.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>> parseTransaction( Map? txData, dynamic electrumxClient, List<_i15.Address>? myAddresses, - _i21.Coin? coin, + _i20.Coin? coin, int? minConfirms, String? walletId, ) => @@ -1447,10 +1446,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { walletId, ], ), - returnValue: _i22.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>>.value(_FakeTuple4_12<_i15.Transaction, - List<_i15.Output>, List<_i15.Input>, _i15.Address>( + returnValue: + _i21.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>>.value( + _FakeTuple2_12<_i15.Transaction, _i15.Address>( this, Invocation.method( #parseTransaction, @@ -1464,53 +1462,46 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { ], ), )), - ) as _i22.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>>); + ) as _i21.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>>); @override void initPaynymWalletInterface({ required String? walletId, required String? walletName, required _i13.NetworkType? network, - required _i21.Coin? coin, + required _i20.Coin? coin, required _i12.MainDB? db, required _i9.ElectrumX? electrumXClient, - required _i18.SecureStorageInterface? secureStorage, + required _i17.SecureStorageInterface? secureStorage, required int? dustLimitP2PKH, required int? minConfirms, - required _i22.Future> Function()? getMnemonic, - required _i22.Future Function()? getChainHeight, - required _i22.Future Function()? getCurrentChangeAddress, + required _i21.Future Function()? getMnemonicString, + required _i21.Future Function()? getMnemonicPassphrase, + required _i21.Future Function()? getChainHeight, + required _i21.Future Function()? getCurrentChangeAddress, required int Function({ required int feeRatePerKB, required int vSize, })? estimateTxFee, - required _i22.Future> Function({ + required _i21.Future> Function({ required String address, required int satoshiAmount, Map? args, })? prepareSend, - required _i22.Future Function({required String address})? getTxCount, - required _i22.Future> Function(List<_i15.UTXO>)? + required _i21.Future Function({required String address})? getTxCount, + required _i21.Future> Function(List<_i15.UTXO>)? fetchBuildTxData, - required _i22.Future Function()? refresh, - required _i22.Future Function()? checkChangeAddressForTransactions, - required _i22.Future Function({ + required _i21.Future Function()? refresh, + required _i21.Future Function()? checkChangeAddressForTransactions, + required _i21.Future Function({ required String address, required int chain, - required _i26.DerivePathType derivePathType, + required _i25.DerivePathType derivePathType, required String pubKey, required String wif, })? addDerivation, - required _i22.Future Function({ - required int chain, - required Map derivationsToAdd, - required _i26.DerivePathType derivePathType, - })? - addDerivations, }) => super.noSuchMethod( Invocation.method( @@ -1526,7 +1517,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #secureStorage: secureStorage, #dustLimitP2PKH: dustLimitP2PKH, #minConfirms: minConfirms, - #getMnemonic: getMnemonic, + #getMnemonicString: getMnemonicString, + #getMnemonicPassphrase: getMnemonicPassphrase, #getChainHeight: getChainHeight, #getCurrentChangeAddress: getCurrentChangeAddress, #estimateTxFee: estimateTxFee, @@ -1537,79 +1529,67 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #checkChangeAddressForTransactions: checkChangeAddressForTransactions, #addDerivation: addDerivation, - #addDerivations: addDerivations, }, ), returnValueForMissingStub: null, ); @override - _i22.Future<_i15.Address> currentReceivingPaynymAddress( - _i17.PaymentCode? sender) => + _i21.Future<_i15.Address> currentReceivingPaynymAddress( + _i16.PaymentCode? sender) => (super.noSuchMethod( Invocation.method( #currentReceivingPaynymAddress, [sender], ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #currentReceivingPaynymAddress, [sender], ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future checkCurrentPaynymReceivingAddressForTransactions( - _i17.PaymentCode? sender) => + _i21.Future checkCurrentPaynymReceivingAddressForTransactions( + _i16.PaymentCode? sender) => (super.noSuchMethod( Invocation.method( #checkCurrentPaynymReceivingAddressForTransactions, [sender], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => + _i21.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkAllCurrentReceivingPaynymAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future<_i16.BIP32> getRootNode({required List? mnemonic}) => - (super.noSuchMethod( - Invocation.method( - #getRootNode, - [], - {#mnemonic: mnemonic}, - ), - returnValue: _i22.Future<_i16.BIP32>.value(_FakeBIP32_14( - this, - Invocation.method( - #getRootNode, - [], - {#mnemonic: mnemonic}, - ), - )), - ) as _i22.Future<_i16.BIP32>); - @override - _i22.Future<_i27.Uint8List> deriveNotificationPrivateKey( - {required List? mnemonic}) => + _i21.Future<_i26.Uint8List> deriveNotificationPrivateKey({ + required String? mnemonic, + required String? mnemonicPassphrase, + }) => (super.noSuchMethod( Invocation.method( #deriveNotificationPrivateKey, [], - {#mnemonic: mnemonic}, + { + #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, + }, ), - returnValue: _i22.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i22.Future<_i27.Uint8List>); + returnValue: _i21.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), + ) as _i21.Future<_i26.Uint8List>); @override - _i22.Future<_i27.Uint8List> deriveReceivingPrivateKey({ - required List? mnemonic, + _i21.Future<_i26.Uint8List> deriveReceivingPrivateKey({ + required String? mnemonic, + required String? mnemonicPassphrase, required int? index, }) => (super.noSuchMethod( @@ -1618,48 +1598,49 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #index: index, }, ), - returnValue: _i22.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i22.Future<_i27.Uint8List>); + returnValue: _i21.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), + ) as _i21.Future<_i26.Uint8List>); @override - _i22.Future<_i17.PaymentCode> getPaymentCode( - _i26.DerivePathType? derivePathType) => + _i21.Future<_i16.PaymentCode> getPaymentCode( + _i25.DerivePathType? derivePathType) => (super.noSuchMethod( Invocation.method( #getPaymentCode, [derivePathType], ), - returnValue: _i22.Future<_i17.PaymentCode>.value(_FakePaymentCode_15( + returnValue: _i21.Future<_i16.PaymentCode>.value(_FakePaymentCode_14( this, Invocation.method( #getPaymentCode, [derivePathType], ), )), - ) as _i22.Future<_i17.PaymentCode>); + ) as _i21.Future<_i16.PaymentCode>); @override - _i22.Future<_i27.Uint8List> signWithNotificationKey(_i27.Uint8List? data) => + _i21.Future<_i26.Uint8List> signWithNotificationKey(_i26.Uint8List? data) => (super.noSuchMethod( Invocation.method( #signWithNotificationKey, [data], ), - returnValue: _i22.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i22.Future<_i27.Uint8List>); + returnValue: _i21.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), + ) as _i21.Future<_i26.Uint8List>); @override - _i22.Future signStringWithNotificationKey(String? data) => + _i21.Future signStringWithNotificationKey(String? data) => (super.noSuchMethod( Invocation.method( #signStringWithNotificationKey, [data], ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future> preparePaymentCodeSend({ - required _i17.PaymentCode? paymentCode, + _i21.Future> preparePaymentCodeSend({ + required _i16.PaymentCode? paymentCode, required int? satoshiAmount, Map? args, }) => @@ -1674,12 +1655,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future<_i15.Address> nextUnusedSendAddressFrom({ - required _i17.PaymentCode? pCode, - required _i27.Uint8List? privateKey, + _i21.Future<_i15.Address> nextUnusedSendAddressFrom({ + required _i16.PaymentCode? pCode, + required _i26.Uint8List? privateKey, int? startIndex = 0, }) => (super.noSuchMethod( @@ -1692,7 +1673,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #startIndex: startIndex, }, ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #nextUnusedSendAddressFrom, @@ -1704,9 +1685,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future> prepareNotificationTx({ + _i21.Future> prepareNotificationTx({ required int? selectedTxFeeRate, required String? targetPaymentCodeString, int? additionalOutputs = 0, @@ -1724,10 +1705,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future broadcastNotificationTx( + _i21.Future broadcastNotificationTx( {required Map? preparedTx}) => (super.noSuchMethod( Invocation.method( @@ -1735,19 +1716,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { [], {#preparedTx: preparedTx}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future hasConnected(String? paymentCodeString) => + _i21.Future hasConnected(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #hasConnected, [paymentCodeString], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future<_i17.PaymentCode?> unBlindedPaymentCodeFromTransaction({ + _i21.Future<_i16.PaymentCode?> unBlindedPaymentCodeFromTransaction({ required _i15.Transaction? transaction, required _i15.Address? myNotificationAddress, }) => @@ -1760,31 +1741,31 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #myNotificationAddress: myNotificationAddress, }, ), - returnValue: _i22.Future<_i17.PaymentCode?>.value(), - ) as _i22.Future<_i17.PaymentCode?>); + returnValue: _i21.Future<_i16.PaymentCode?>.value(), + ) as _i21.Future<_i16.PaymentCode?>); @override - _i22.Future> + _i21.Future> getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( Invocation.method( #getAllPaymentCodesFromNotificationTransactions, [], ), returnValue: - _i22.Future>.value(<_i17.PaymentCode>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i16.PaymentCode>[]), + ) as _i21.Future>); @override - _i22.Future checkForNotificationTransactionsTo( + _i21.Future checkForNotificationTransactionsTo( Set? otherCodeStrings) => (super.noSuchMethod( Invocation.method( #checkForNotificationTransactionsTo, [otherCodeStrings], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future restoreAllHistory({ + _i21.Future restoreAllHistory({ required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required Set? paymentCodeStrings, @@ -1799,12 +1780,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #paymentCodeStrings: paymentCodeStrings, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future restoreHistoryWith( - _i17.PaymentCode? other, + _i21.Future restoreHistoryWith( + _i16.PaymentCode? other, int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1817,15 +1798,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future<_i15.Address> generatePaynymSendAddressFromKeyPair({ + _i21.Future<_i15.Address> generatePaynymSendAddressFromKeyPair({ required _i13.ECPair? pair, required int? derivationIndex, - required _i26.DerivePathType? derivePathType, - required _i17.PaymentCode? toPaymentCode, + required _i25.DerivePathType? derivePathType, + required _i16.PaymentCode? toPaymentCode, }) => (super.noSuchMethod( Invocation.method( @@ -1838,7 +1819,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #toPaymentCode: toPaymentCode, }, ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #generatePaynymSendAddressFromKeyPair, @@ -1851,13 +1832,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future<_i15.Address> generatePaynymReceivingAddressFromKeyPair({ + _i21.Future<_i15.Address> generatePaynymReceivingAddressFromKeyPair({ required _i13.ECPair? pair, required int? derivationIndex, - required _i26.DerivePathType? derivePathType, - required _i17.PaymentCode? fromPaymentCode, + required _i25.DerivePathType? derivePathType, + required _i16.PaymentCode? fromPaymentCode, }) => (super.noSuchMethod( Invocation.method( @@ -1870,7 +1851,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #fromPaymentCode: fromPaymentCode, }, ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #generatePaynymReceivingAddressFromKeyPair, @@ -1883,50 +1864,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future<_i15.Address> getMyNotificationAddress( - _i26.DerivePathType? derivePathType) => + _i21.Future<_i15.Address> getMyNotificationAddress( + _i25.DerivePathType? derivePathType) => (super.noSuchMethod( Invocation.method( #getMyNotificationAddress, [derivePathType], ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #getMyNotificationAddress, [derivePathType], ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future> lookupKey(String? paymentCodeString) => + _i21.Future> lookupKey(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #lookupKey, [paymentCodeString], ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); @override - _i22.Future paymentCodeStringByKey(String? key) => + _i21.Future paymentCodeStringByKey(String? key) => (super.noSuchMethod( Invocation.method( #paymentCodeStringByKey, [key], ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future storeCode(String? paymentCodeString) => + _i21.Future storeCode(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #storeCode, [paymentCodeString], ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); } /// A class which mocks [NodeService]. @@ -1934,41 +1915,41 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { /// See the documentation for Mockito's code generation for more information. class MockNodeService extends _i1.Mock implements _i3.NodeService { @override - _i18.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( + _i17.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( Invocation.getter(#secureStorageInterface), - returnValue: _FakeSecureStorageInterface_16( + returnValue: _FakeSecureStorageInterface_15( this, Invocation.getter(#secureStorageInterface), ), - ) as _i18.SecureStorageInterface); + ) as _i17.SecureStorageInterface); @override - List<_i28.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i27.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i28.NodeModel>[], - ) as List<_i28.NodeModel>); + returnValue: <_i27.NodeModel>[], + ) as List<_i27.NodeModel>); @override - List<_i28.NodeModel> get nodes => (super.noSuchMethod( + List<_i27.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i28.NodeModel>[], - ) as List<_i28.NodeModel>); + returnValue: <_i27.NodeModel>[], + ) as List<_i27.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i22.Future updateDefaults() => (super.noSuchMethod( + _i21.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future setPrimaryNodeFor({ - required _i21.Coin? coin, - required _i28.NodeModel? node, + _i21.Future setPrimaryNodeFor({ + required _i20.Coin? coin, + required _i27.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -1981,44 +1962,44 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i28.NodeModel? getPrimaryNodeFor({required _i21.Coin? coin}) => + _i27.NodeModel? getPrimaryNodeFor({required _i20.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i28.NodeModel?); + )) as _i27.NodeModel?); @override - List<_i28.NodeModel> getNodesFor(_i21.Coin? coin) => (super.noSuchMethod( + List<_i27.NodeModel> getNodesFor(_i20.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i28.NodeModel>[], - ) as List<_i28.NodeModel>); + returnValue: <_i27.NodeModel>[], + ) as List<_i27.NodeModel>); @override - _i28.NodeModel? getNodeById({required String? id}) => + _i27.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i28.NodeModel?); + )) as _i27.NodeModel?); @override - List<_i28.NodeModel> failoverNodesFor({required _i21.Coin? coin}) => + List<_i27.NodeModel> failoverNodesFor({required _i20.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i28.NodeModel>[], - ) as List<_i28.NodeModel>); + returnValue: <_i27.NodeModel>[], + ) as List<_i27.NodeModel>); @override - _i22.Future add( - _i28.NodeModel? node, + _i21.Future add( + _i27.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -2031,11 +2012,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future delete( + _i21.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -2047,11 +2028,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future setEnabledState( + _i21.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -2065,12 +2046,12 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future edit( - _i28.NodeModel? editedNode, + _i21.Future edit( + _i27.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -2083,20 +2064,20 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future updateCommunityNodes() => (super.noSuchMethod( + _i21.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2104,7 +2085,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2147,23 +2128,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i19.CoinServiceAPI get wallet => (super.noSuchMethod( + _i18.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_17( + returnValue: _FakeCoinServiceAPI_16( this, Invocation.getter(#wallet), ), - ) as _i19.CoinServiceAPI); + ) as _i18.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i21.Coin get coin => (super.noSuchMethod( + _i20.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i20.Coin.bitcoin, + ) as _i20.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2196,23 +2177,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i22.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i21.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i21.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i8.FeeObject>); + ) as _i21.Future<_i8.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i21.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i21.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2222,16 +2203,16 @@ class MockManager extends _i1.Mock implements _i6.Manager { ), ) as _i11.Balance); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i21.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i15.Transaction>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i15.Transaction>[]), + ) as _i21.Future>); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i21.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i15.UTXO>[]), - ) as _i22.Future>); + returnValue: _i21.Future>.value(<_i15.UTXO>[]), + ) as _i21.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2251,10 +2232,15 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i21.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); + @override + _i21.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i21.Future.value(), + ) as _i21.Future); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -2276,14 +2262,14 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -2293,7 +2279,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i22.Future> prepareSend({ + _i21.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2309,27 +2295,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i21.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i21.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2339,34 +2325,35 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i21.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i21.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i21.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future recoverFromMnemonic({ + _i21.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -2377,25 +2364,26 @@ class MockManager extends _i1.Mock implements _i6.Manager { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future exitCurrentWallet() => (super.noSuchMethod( + _i21.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future fullRescan( + _i21.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2407,11 +2395,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future estimateFeeFor( + _i21.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2423,18 +2411,18 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i21.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2442,7 +2430,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2462,7 +2450,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -2473,10 +2461,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i21.Coin get coin => (super.noSuchMethod( + _i20.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i20.Coin.bitcoin, + ) as _i20.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2509,23 +2497,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i22.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i21.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i21.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i8.FeeObject>); + ) as _i21.Future<_i8.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i21.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i21.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2535,16 +2523,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { ), ) as _i11.Balance); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i21.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i15.Transaction>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i15.Transaction>[]), + ) as _i21.Future>); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i21.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i15.UTXO>[]), - ) as _i22.Future>); + returnValue: _i21.Future>.value(<_i15.UTXO>[]), + ) as _i21.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2564,10 +2552,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: '', ) as String); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i21.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); + @override + _i21.Future get mnemonicString => (super.noSuchMethod( + Invocation.getter(#mnemonicString), + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override + _i21.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i21.Future.value(), + ) as _i21.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2584,7 +2582,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: 0, ) as int); @override - _i22.Future> prepareSend({ + _i21.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2600,36 +2598,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i21.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i21.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2639,16 +2637,17 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: false, ) as bool); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i21.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future recoverFromMnemonic({ + _i21.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -2659,43 +2658,44 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i21.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i21.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future exit() => (super.noSuchMethod( + _i21.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future fullRescan( + _i21.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2707,11 +2707,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future estimateFeeFor( + _i21.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2723,24 +2723,24 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { feeRate, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i21.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future updateSentCachedTxData(Map? txData) => + _i21.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); } diff --git a/test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart b/test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart index a9ec4e231..2f252b0a8 100644 --- a/test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart +++ b/test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart @@ -3,12 +3,11 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i22; -import 'dart:typed_data' as _i27; -import 'dart:ui' as _i24; +import 'dart:async' as _i21; +import 'dart:typed_data' as _i26; +import 'dart:ui' as _i23; -import 'package:bip32/bip32.dart' as _i16; -import 'package:bip47/bip47.dart' as _i17; +import 'package:bip47/bip47.dart' as _i16; import 'package:bitcoindart/bitcoindart.dart' as _i13; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; @@ -18,21 +17,21 @@ import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i10; import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9; import 'package:stackwallet/models/balance.dart' as _i11; import 'package:stackwallet/models/isar/models/isar_models.dart' as _i15; -import 'package:stackwallet/models/node_model.dart' as _i28; +import 'package:stackwallet/models/node_model.dart' as _i27; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i25; -import 'package:stackwallet/services/coins/coin_service.dart' as _i19; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i24; +import 'package:stackwallet/services/coins/coin_service.dart' as _i18; import 'package:stackwallet/services/coins/manager.dart' as _i6; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i7; -import 'package:stackwallet/services/wallets.dart' as _i20; +import 'package:stackwallet/services/wallets.dart' as _i19; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i21; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i26; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i20; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i25; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i18; -import 'package:stackwallet/utilities/prefs.dart' as _i23; + as _i17; +import 'package:stackwallet/utilities/prefs.dart' as _i22; import 'package:tuple/tuple.dart' as _i14; // ignore_for_file: type=lint @@ -170,9 +169,9 @@ class _FakeElectrumXNode_11 extends _i1.SmartFake implements _i9.ElectrumXNode { ); } -class _FakeTuple4_12 extends _i1.SmartFake - implements _i14.Tuple4 { - _FakeTuple4_12( +class _FakeTuple2_12 extends _i1.SmartFake + implements _i14.Tuple2 { + _FakeTuple2_12( Object parent, Invocation parentInvocation, ) : super( @@ -191,8 +190,8 @@ class _FakeAddress_13 extends _i1.SmartFake implements _i15.Address { ); } -class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { - _FakeBIP32_14( +class _FakePaymentCode_14 extends _i1.SmartFake implements _i16.PaymentCode { + _FakePaymentCode_14( Object parent, Invocation parentInvocation, ) : super( @@ -201,8 +200,9 @@ class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { ); } -class _FakePaymentCode_15 extends _i1.SmartFake implements _i17.PaymentCode { - _FakePaymentCode_15( +class _FakeSecureStorageInterface_15 extends _i1.SmartFake + implements _i17.SecureStorageInterface { + _FakeSecureStorageInterface_15( Object parent, Invocation parentInvocation, ) : super( @@ -211,20 +211,9 @@ class _FakePaymentCode_15 extends _i1.SmartFake implements _i17.PaymentCode { ); } -class _FakeSecureStorageInterface_16 extends _i1.SmartFake - implements _i18.SecureStorageInterface { - _FakeSecureStorageInterface_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeCoinServiceAPI_17 extends _i1.SmartFake - implements _i19.CoinServiceAPI { - _FakeCoinServiceAPI_17( +class _FakeCoinServiceAPI_16 extends _i1.SmartFake + implements _i18.CoinServiceAPI { + _FakeCoinServiceAPI_16( Object parent, Invocation parentInvocation, ) : super( @@ -236,7 +225,7 @@ class _FakeCoinServiceAPI_17 extends _i1.SmartFake /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i20.Wallets { +class MockWallets extends _i1.Mock implements _i19.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -303,7 +292,7 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i21.Coin? coin}) => + List getWalletIdsFor({required _i20.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -313,18 +302,18 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValue: [], ) as List); @override - Map<_i21.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> + Map<_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i21.Coin, + returnValue: <_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>{}, - ) as Map<_i21.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); + ) as Map<_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i21.Coin? coin) => + _i20.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -388,17 +377,17 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - _i22.Future load(_i23.Prefs? prefs) => (super.noSuchMethod( + _i21.Future load(_i22.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future loadAfterStackRestore( - _i23.Prefs? prefs, + _i21.Future loadAfterStackRestore( + _i22.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -409,11 +398,11 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { managers, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -421,7 +410,7 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -447,19 +436,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i22.Future> get walletNames => + _i21.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i22.Future>.value( + returnValue: _i21.Future>.value( {}), - ) as _i22.Future>); + ) as _i21.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i22.Future renameWallet({ + _i21.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -474,13 +463,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future addExistingStackWallet({ + _i21.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i21.Coin? coin, + required _i20.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -494,13 +483,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future addNewWallet({ + _i21.Future addNewWallet({ required String? name, - required _i21.Coin? coin, + required _i20.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -513,46 +502,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i21.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); @override - _i22.Future saveFavoriteWalletIds(List? walletIds) => + _i21.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i21.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i21.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future moveFavorite({ + _i21.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -565,48 +554,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i21.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i21.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future isMnemonicVerified({required String? walletId}) => + _i21.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future setMnemonicVerified({required String? walletId}) => + _i21.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future deleteWallet( + _i21.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -618,20 +607,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future refreshWallets(bool? shouldNotifyListeners) => + _i21.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -639,7 +628,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -667,13 +656,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { /// A class which mocks [BitcoinWallet]. /// /// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i22.Timer? _timer) => super.noSuchMethod( + set timer(_i21.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -750,64 +739,74 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: false, ) as bool); @override - _i21.Coin get coin => (super.noSuchMethod( + _i20.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i20.Coin.bitcoin, + ) as _i20.Coin); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i21.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i15.UTXO>[]), - ) as _i22.Future>); + returnValue: _i21.Future>.value(<_i15.UTXO>[]), + ) as _i21.Future>); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i21.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i15.Transaction>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i15.Transaction>[]), + ) as _i21.Future>); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i21.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future get currentChangeAddress => (super.noSuchMethod( + _i21.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future get currentChangeAddressP2PKH => (super.noSuchMethod( + _i21.Future get currentChangeAddressP2PKH => (super.noSuchMethod( Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i22.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i21.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i21.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i8.FeeObject>); + ) as _i21.Future<_i8.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i21.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i21.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); @override - _i22.Future get chainHeight => (super.noSuchMethod( + _i21.Future get mnemonicString => (super.noSuchMethod( + Invocation.getter(#mnemonicString), + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override + _i21.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override + _i21.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -904,27 +903,28 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { ), ) as _i13.NetworkType); @override - _i22.Future exit() => (super.noSuchMethod( + _i21.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i26.DerivePathType addressType({required String? address}) => + _i25.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i26.DerivePathType.bip44, - ) as _i26.DerivePathType); + returnValue: _i25.DerivePathType.bip44, + ) as _i25.DerivePathType); @override - _i22.Future recoverFromMnemonic({ + _i21.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -935,52 +935,53 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future getTransactionCacheEarly(List? allAddresses) => + _i21.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i21.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future getAllTxsToWatch() => (super.noSuchMethod( + _i21.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i21.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future> prepareSend({ + _i21.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -996,26 +997,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i21.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i21.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -1033,33 +1034,33 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i21.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i21.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future updateSentCachedTxData(Map? txData) => + _i21.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1069,35 +1070,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: false, ) as bool); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i21.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), - returnValue: _i22.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( + returnValue: _i21.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i22.Future<_i9.ElectrumXNode>); + ) as _i21.Future<_i9.ElectrumXNode>); @override - _i22.Future addDerivation({ + _i21.Future addDerivation({ required int? chain, required String? address, required String? pubKey, required String? wif, - required _i26.DerivePathType? derivePathType, + required _i25.DerivePathType? derivePathType, }) => (super.noSuchMethod( Invocation.method( @@ -1111,13 +1112,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #derivePathType: derivePathType, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future addDerivations({ + _i21.Future addDerivations({ required int? chain, - required _i26.DerivePathType? derivePathType, + required _i25.DerivePathType? derivePathType, required Map? derivationsToAdd, }) => (super.noSuchMethod( @@ -1130,50 +1131,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #derivationsToAdd: derivationsToAdd, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future>> fastFetch( + _i21.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i22.Future>>.value( + returnValue: _i21.Future>>.value( >[]), - ) as _i22.Future>>); + ) as _i21.Future>>); @override - _i22.Future getTxCount({required String? address}) => + _i21.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future checkCurrentReceivingAddressesForTransactions() => + _i21.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future checkCurrentChangeAddressesForTransactions() => + _i21.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override int estimateTxFee({ required int? vSize, @@ -1213,7 +1214,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, )); @override - _i22.Future> fetchBuildTxData( + _i21.Future> fetchBuildTxData( List<_i15.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( @@ -1221,10 +1222,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { [utxosToUse], ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future> buildTransaction({ + _i21.Future> buildTransaction({ required List<_i15.UTXO>? utxosToUse, required Map? utxoSigningData, required List? recipients, @@ -1242,10 +1243,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future fullRescan( + _i21.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1257,11 +1258,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future estimateFeeFor( + _i21.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1273,8 +1274,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { feeRate, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override int roughFeeEstimate( int? inputCount, @@ -1293,25 +1294,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: 0, ) as int); @override - _i22.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( + _i21.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i21.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override void initCache( String? walletId, - _i21.Coin? coin, + _i20.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1324,14 +1325,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future updateCachedId(String? id) => (super.noSuchMethod( + _i21.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1341,14 +1342,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: 0, ) as int); @override - _i22.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i21.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1358,15 +1359,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValue: false, ) as bool); @override - _i22.Future updateCachedIsFavorite(bool? isFavorite) => + _i21.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override _i11.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1382,15 +1383,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { ), ) as _i11.Balance); @override - _i22.Future updateCachedBalance(_i11.Balance? balance) => + _i21.Future updateCachedBalance(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1406,15 +1407,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { ), ) as _i11.Balance); @override - _i22.Future updateCachedBalanceSecondary(_i11.Balance? balance) => + _i21.Future updateCachedBalanceSecondary(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1425,13 +1426,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>> parseTransaction( + _i21.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>> parseTransaction( Map? txData, dynamic electrumxClient, List<_i15.Address>? myAddresses, - _i21.Coin? coin, + _i20.Coin? coin, int? minConfirms, String? walletId, ) => @@ -1447,10 +1446,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { walletId, ], ), - returnValue: _i22.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>>.value(_FakeTuple4_12<_i15.Transaction, - List<_i15.Output>, List<_i15.Input>, _i15.Address>( + returnValue: + _i21.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>>.value( + _FakeTuple2_12<_i15.Transaction, _i15.Address>( this, Invocation.method( #parseTransaction, @@ -1464,53 +1462,46 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { ], ), )), - ) as _i22.Future< - _i14.Tuple4<_i15.Transaction, List<_i15.Output>, List<_i15.Input>, - _i15.Address>>); + ) as _i21.Future<_i14.Tuple2<_i15.Transaction, _i15.Address>>); @override void initPaynymWalletInterface({ required String? walletId, required String? walletName, required _i13.NetworkType? network, - required _i21.Coin? coin, + required _i20.Coin? coin, required _i12.MainDB? db, required _i9.ElectrumX? electrumXClient, - required _i18.SecureStorageInterface? secureStorage, + required _i17.SecureStorageInterface? secureStorage, required int? dustLimitP2PKH, required int? minConfirms, - required _i22.Future> Function()? getMnemonic, - required _i22.Future Function()? getChainHeight, - required _i22.Future Function()? getCurrentChangeAddress, + required _i21.Future Function()? getMnemonicString, + required _i21.Future Function()? getMnemonicPassphrase, + required _i21.Future Function()? getChainHeight, + required _i21.Future Function()? getCurrentChangeAddress, required int Function({ required int feeRatePerKB, required int vSize, })? estimateTxFee, - required _i22.Future> Function({ + required _i21.Future> Function({ required String address, required int satoshiAmount, Map? args, })? prepareSend, - required _i22.Future Function({required String address})? getTxCount, - required _i22.Future> Function(List<_i15.UTXO>)? + required _i21.Future Function({required String address})? getTxCount, + required _i21.Future> Function(List<_i15.UTXO>)? fetchBuildTxData, - required _i22.Future Function()? refresh, - required _i22.Future Function()? checkChangeAddressForTransactions, - required _i22.Future Function({ + required _i21.Future Function()? refresh, + required _i21.Future Function()? checkChangeAddressForTransactions, + required _i21.Future Function({ required String address, required int chain, - required _i26.DerivePathType derivePathType, + required _i25.DerivePathType derivePathType, required String pubKey, required String wif, })? addDerivation, - required _i22.Future Function({ - required int chain, - required Map derivationsToAdd, - required _i26.DerivePathType derivePathType, - })? - addDerivations, }) => super.noSuchMethod( Invocation.method( @@ -1526,7 +1517,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #secureStorage: secureStorage, #dustLimitP2PKH: dustLimitP2PKH, #minConfirms: minConfirms, - #getMnemonic: getMnemonic, + #getMnemonicString: getMnemonicString, + #getMnemonicPassphrase: getMnemonicPassphrase, #getChainHeight: getChainHeight, #getCurrentChangeAddress: getCurrentChangeAddress, #estimateTxFee: estimateTxFee, @@ -1537,79 +1529,67 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #checkChangeAddressForTransactions: checkChangeAddressForTransactions, #addDerivation: addDerivation, - #addDerivations: addDerivations, }, ), returnValueForMissingStub: null, ); @override - _i22.Future<_i15.Address> currentReceivingPaynymAddress( - _i17.PaymentCode? sender) => + _i21.Future<_i15.Address> currentReceivingPaynymAddress( + _i16.PaymentCode? sender) => (super.noSuchMethod( Invocation.method( #currentReceivingPaynymAddress, [sender], ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #currentReceivingPaynymAddress, [sender], ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future checkCurrentPaynymReceivingAddressForTransactions( - _i17.PaymentCode? sender) => + _i21.Future checkCurrentPaynymReceivingAddressForTransactions( + _i16.PaymentCode? sender) => (super.noSuchMethod( Invocation.method( #checkCurrentPaynymReceivingAddressForTransactions, [sender], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => + _i21.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkAllCurrentReceivingPaynymAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future<_i16.BIP32> getRootNode({required List? mnemonic}) => - (super.noSuchMethod( - Invocation.method( - #getRootNode, - [], - {#mnemonic: mnemonic}, - ), - returnValue: _i22.Future<_i16.BIP32>.value(_FakeBIP32_14( - this, - Invocation.method( - #getRootNode, - [], - {#mnemonic: mnemonic}, - ), - )), - ) as _i22.Future<_i16.BIP32>); - @override - _i22.Future<_i27.Uint8List> deriveNotificationPrivateKey( - {required List? mnemonic}) => + _i21.Future<_i26.Uint8List> deriveNotificationPrivateKey({ + required String? mnemonic, + required String? mnemonicPassphrase, + }) => (super.noSuchMethod( Invocation.method( #deriveNotificationPrivateKey, [], - {#mnemonic: mnemonic}, + { + #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, + }, ), - returnValue: _i22.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i22.Future<_i27.Uint8List>); + returnValue: _i21.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), + ) as _i21.Future<_i26.Uint8List>); @override - _i22.Future<_i27.Uint8List> deriveReceivingPrivateKey({ - required List? mnemonic, + _i21.Future<_i26.Uint8List> deriveReceivingPrivateKey({ + required String? mnemonic, + required String? mnemonicPassphrase, required int? index, }) => (super.noSuchMethod( @@ -1618,48 +1598,49 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #index: index, }, ), - returnValue: _i22.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i22.Future<_i27.Uint8List>); + returnValue: _i21.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), + ) as _i21.Future<_i26.Uint8List>); @override - _i22.Future<_i17.PaymentCode> getPaymentCode( - _i26.DerivePathType? derivePathType) => + _i21.Future<_i16.PaymentCode> getPaymentCode( + _i25.DerivePathType? derivePathType) => (super.noSuchMethod( Invocation.method( #getPaymentCode, [derivePathType], ), - returnValue: _i22.Future<_i17.PaymentCode>.value(_FakePaymentCode_15( + returnValue: _i21.Future<_i16.PaymentCode>.value(_FakePaymentCode_14( this, Invocation.method( #getPaymentCode, [derivePathType], ), )), - ) as _i22.Future<_i17.PaymentCode>); + ) as _i21.Future<_i16.PaymentCode>); @override - _i22.Future<_i27.Uint8List> signWithNotificationKey(_i27.Uint8List? data) => + _i21.Future<_i26.Uint8List> signWithNotificationKey(_i26.Uint8List? data) => (super.noSuchMethod( Invocation.method( #signWithNotificationKey, [data], ), - returnValue: _i22.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i22.Future<_i27.Uint8List>); + returnValue: _i21.Future<_i26.Uint8List>.value(_i26.Uint8List(0)), + ) as _i21.Future<_i26.Uint8List>); @override - _i22.Future signStringWithNotificationKey(String? data) => + _i21.Future signStringWithNotificationKey(String? data) => (super.noSuchMethod( Invocation.method( #signStringWithNotificationKey, [data], ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future> preparePaymentCodeSend({ - required _i17.PaymentCode? paymentCode, + _i21.Future> preparePaymentCodeSend({ + required _i16.PaymentCode? paymentCode, required int? satoshiAmount, Map? args, }) => @@ -1674,12 +1655,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future<_i15.Address> nextUnusedSendAddressFrom({ - required _i17.PaymentCode? pCode, - required _i27.Uint8List? privateKey, + _i21.Future<_i15.Address> nextUnusedSendAddressFrom({ + required _i16.PaymentCode? pCode, + required _i26.Uint8List? privateKey, int? startIndex = 0, }) => (super.noSuchMethod( @@ -1692,7 +1673,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #startIndex: startIndex, }, ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #nextUnusedSendAddressFrom, @@ -1704,9 +1685,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future> prepareNotificationTx({ + _i21.Future> prepareNotificationTx({ required int? selectedTxFeeRate, required String? targetPaymentCodeString, int? additionalOutputs = 0, @@ -1724,10 +1705,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future broadcastNotificationTx( + _i21.Future broadcastNotificationTx( {required Map? preparedTx}) => (super.noSuchMethod( Invocation.method( @@ -1735,19 +1716,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { [], {#preparedTx: preparedTx}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future hasConnected(String? paymentCodeString) => + _i21.Future hasConnected(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #hasConnected, [paymentCodeString], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future<_i17.PaymentCode?> unBlindedPaymentCodeFromTransaction({ + _i21.Future<_i16.PaymentCode?> unBlindedPaymentCodeFromTransaction({ required _i15.Transaction? transaction, required _i15.Address? myNotificationAddress, }) => @@ -1760,31 +1741,31 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #myNotificationAddress: myNotificationAddress, }, ), - returnValue: _i22.Future<_i17.PaymentCode?>.value(), - ) as _i22.Future<_i17.PaymentCode?>); + returnValue: _i21.Future<_i16.PaymentCode?>.value(), + ) as _i21.Future<_i16.PaymentCode?>); @override - _i22.Future> + _i21.Future> getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( Invocation.method( #getAllPaymentCodesFromNotificationTransactions, [], ), returnValue: - _i22.Future>.value(<_i17.PaymentCode>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i16.PaymentCode>[]), + ) as _i21.Future>); @override - _i22.Future checkForNotificationTransactionsTo( + _i21.Future checkForNotificationTransactionsTo( Set? otherCodeStrings) => (super.noSuchMethod( Invocation.method( #checkForNotificationTransactionsTo, [otherCodeStrings], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future restoreAllHistory({ + _i21.Future restoreAllHistory({ required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required Set? paymentCodeStrings, @@ -1799,12 +1780,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #paymentCodeStrings: paymentCodeStrings, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future restoreHistoryWith( - _i17.PaymentCode? other, + _i21.Future restoreHistoryWith( + _i16.PaymentCode? other, int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1817,15 +1798,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future<_i15.Address> generatePaynymSendAddressFromKeyPair({ + _i21.Future<_i15.Address> generatePaynymSendAddressFromKeyPair({ required _i13.ECPair? pair, required int? derivationIndex, - required _i26.DerivePathType? derivePathType, - required _i17.PaymentCode? toPaymentCode, + required _i25.DerivePathType? derivePathType, + required _i16.PaymentCode? toPaymentCode, }) => (super.noSuchMethod( Invocation.method( @@ -1838,7 +1819,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #toPaymentCode: toPaymentCode, }, ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #generatePaynymSendAddressFromKeyPair, @@ -1851,13 +1832,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future<_i15.Address> generatePaynymReceivingAddressFromKeyPair({ + _i21.Future<_i15.Address> generatePaynymReceivingAddressFromKeyPair({ required _i13.ECPair? pair, required int? derivationIndex, - required _i26.DerivePathType? derivePathType, - required _i17.PaymentCode? fromPaymentCode, + required _i25.DerivePathType? derivePathType, + required _i16.PaymentCode? fromPaymentCode, }) => (super.noSuchMethod( Invocation.method( @@ -1870,7 +1851,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { #fromPaymentCode: fromPaymentCode, }, ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #generatePaynymReceivingAddressFromKeyPair, @@ -1883,50 +1864,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { }, ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future<_i15.Address> getMyNotificationAddress( - _i26.DerivePathType? derivePathType) => + _i21.Future<_i15.Address> getMyNotificationAddress( + _i25.DerivePathType? derivePathType) => (super.noSuchMethod( Invocation.method( #getMyNotificationAddress, [derivePathType], ), - returnValue: _i22.Future<_i15.Address>.value(_FakeAddress_13( + returnValue: _i21.Future<_i15.Address>.value(_FakeAddress_13( this, Invocation.method( #getMyNotificationAddress, [derivePathType], ), )), - ) as _i22.Future<_i15.Address>); + ) as _i21.Future<_i15.Address>); @override - _i22.Future> lookupKey(String? paymentCodeString) => + _i21.Future> lookupKey(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #lookupKey, [paymentCodeString], ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); @override - _i22.Future paymentCodeStringByKey(String? key) => + _i21.Future paymentCodeStringByKey(String? key) => (super.noSuchMethod( Invocation.method( #paymentCodeStringByKey, [key], ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future storeCode(String? paymentCodeString) => + _i21.Future storeCode(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #storeCode, [paymentCodeString], ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); } /// A class which mocks [NodeService]. @@ -1934,41 +1915,41 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { /// See the documentation for Mockito's code generation for more information. class MockNodeService extends _i1.Mock implements _i3.NodeService { @override - _i18.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( + _i17.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( Invocation.getter(#secureStorageInterface), - returnValue: _FakeSecureStorageInterface_16( + returnValue: _FakeSecureStorageInterface_15( this, Invocation.getter(#secureStorageInterface), ), - ) as _i18.SecureStorageInterface); + ) as _i17.SecureStorageInterface); @override - List<_i28.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i27.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i28.NodeModel>[], - ) as List<_i28.NodeModel>); + returnValue: <_i27.NodeModel>[], + ) as List<_i27.NodeModel>); @override - List<_i28.NodeModel> get nodes => (super.noSuchMethod( + List<_i27.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i28.NodeModel>[], - ) as List<_i28.NodeModel>); + returnValue: <_i27.NodeModel>[], + ) as List<_i27.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i22.Future updateDefaults() => (super.noSuchMethod( + _i21.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future setPrimaryNodeFor({ - required _i21.Coin? coin, - required _i28.NodeModel? node, + _i21.Future setPrimaryNodeFor({ + required _i20.Coin? coin, + required _i27.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -1981,44 +1962,44 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i28.NodeModel? getPrimaryNodeFor({required _i21.Coin? coin}) => + _i27.NodeModel? getPrimaryNodeFor({required _i20.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i28.NodeModel?); + )) as _i27.NodeModel?); @override - List<_i28.NodeModel> getNodesFor(_i21.Coin? coin) => (super.noSuchMethod( + List<_i27.NodeModel> getNodesFor(_i20.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i28.NodeModel>[], - ) as List<_i28.NodeModel>); + returnValue: <_i27.NodeModel>[], + ) as List<_i27.NodeModel>); @override - _i28.NodeModel? getNodeById({required String? id}) => + _i27.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i28.NodeModel?); + )) as _i27.NodeModel?); @override - List<_i28.NodeModel> failoverNodesFor({required _i21.Coin? coin}) => + List<_i27.NodeModel> failoverNodesFor({required _i20.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i28.NodeModel>[], - ) as List<_i28.NodeModel>); + returnValue: <_i27.NodeModel>[], + ) as List<_i27.NodeModel>); @override - _i22.Future add( - _i28.NodeModel? node, + _i21.Future add( + _i27.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -2031,11 +2012,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future delete( + _i21.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -2047,11 +2028,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future setEnabledState( + _i21.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -2065,12 +2046,12 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future edit( - _i28.NodeModel? editedNode, + _i21.Future edit( + _i27.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -2083,20 +2064,20 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future updateCommunityNodes() => (super.noSuchMethod( + _i21.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2104,7 +2085,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2147,23 +2128,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i19.CoinServiceAPI get wallet => (super.noSuchMethod( + _i18.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_17( + returnValue: _FakeCoinServiceAPI_16( this, Invocation.getter(#wallet), ), - ) as _i19.CoinServiceAPI); + ) as _i18.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i21.Coin get coin => (super.noSuchMethod( + _i20.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i20.Coin.bitcoin, + ) as _i20.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2196,23 +2177,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i22.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i21.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i21.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i8.FeeObject>); + ) as _i21.Future<_i8.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i21.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i21.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2222,16 +2203,16 @@ class MockManager extends _i1.Mock implements _i6.Manager { ), ) as _i11.Balance); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i21.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i15.Transaction>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i15.Transaction>[]), + ) as _i21.Future>); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i21.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i15.UTXO>[]), - ) as _i22.Future>); + returnValue: _i21.Future>.value(<_i15.UTXO>[]), + ) as _i21.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2251,10 +2232,15 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i21.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); + @override + _i21.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i21.Future.value(), + ) as _i21.Future); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -2276,14 +2262,14 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -2293,7 +2279,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i22.Future> prepareSend({ + _i21.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2309,27 +2295,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i21.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i21.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2339,34 +2325,35 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i21.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i21.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i21.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future recoverFromMnemonic({ + _i21.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -2377,25 +2364,26 @@ class MockManager extends _i1.Mock implements _i6.Manager { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future exitCurrentWallet() => (super.noSuchMethod( + _i21.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future fullRescan( + _i21.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2407,11 +2395,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future estimateFeeFor( + _i21.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2423,18 +2411,18 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i21.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2442,7 +2430,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2462,7 +2450,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -2473,10 +2461,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i21.Coin get coin => (super.noSuchMethod( + _i20.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i20.Coin.bitcoin, + ) as _i20.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2509,23 +2497,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i22.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i21.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i21.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i8.FeeObject>); + ) as _i21.Future<_i8.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i21.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i21.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2535,16 +2523,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { ), ) as _i11.Balance); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i21.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i15.Transaction>[]), - ) as _i22.Future>); + _i21.Future>.value(<_i15.Transaction>[]), + ) as _i21.Future>); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i21.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i15.UTXO>[]), - ) as _i22.Future>); + returnValue: _i21.Future>.value(<_i15.UTXO>[]), + ) as _i21.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2564,10 +2552,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: '', ) as String); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i21.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i21.Future>.value([]), + ) as _i21.Future>); + @override + _i21.Future get mnemonicString => (super.noSuchMethod( + Invocation.getter(#mnemonicString), + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override + _i21.Future get mnemonicPassphrase => (super.noSuchMethod( + Invocation.getter(#mnemonicPassphrase), + returnValue: _i21.Future.value(), + ) as _i21.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2584,7 +2582,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: 0, ) as int); @override - _i22.Future> prepareSend({ + _i21.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2600,36 +2598,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i21.Future>.value({}), + ) as _i21.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i21.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i21.Future.value(''), + ) as _i21.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i21.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2639,16 +2637,17 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: false, ) as bool); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i21.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future recoverFromMnemonic({ + _i21.Future recoverFromMnemonic({ required String? mnemonic, + String? mnemonicPassphrase, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required int? height, @@ -2659,43 +2658,44 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { [], { #mnemonic: mnemonic, + #mnemonicPassphrase: mnemonicPassphrase, #maxUnusedAddressGap: maxUnusedAddressGap, #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i21.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i21.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future exit() => (super.noSuchMethod( + _i21.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future fullRescan( + _i21.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2707,11 +2707,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); @override - _i22.Future estimateFeeFor( + _i21.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2723,24 +2723,24 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { feeRate, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i21.Future.value(0), + ) as _i21.Future); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i21.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i21.Future.value(false), + ) as _i21.Future); @override - _i22.Future updateSentCachedTxData(Map? txData) => + _i21.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); }