From 8cd34fc228b14a72a6dbf751e4a4affb19acb8e5 Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 25 Jan 2023 16:16:20 -0600 Subject: [PATCH] build runner update mocks --- .../pages/send_view/send_view_test.mocks.dart | 981 ++++++++++-------- ...d_address_book_view_screen_test.mocks.dart | 5 + ..._entry_details_view_screen_test.mocks.dart | 5 + ...ess_book_entry_view_screen_test.mocks.dart | 5 + .../lockscreen_view_screen_test.mocks.dart | 5 + .../main_view_screen_testA_test.mocks.dart | 5 + .../main_view_screen_testB_test.mocks.dart | 5 + .../main_view_screen_testC_test.mocks.dart | 5 + .../backup_key_view_screen_test.mocks.dart | 5 + ...up_key_warning_view_screen_test.mocks.dart | 5 + .../create_pin_view_screen_test.mocks.dart | 5 + ...restore_wallet_view_screen_test.mocks.dart | 5 + ...ify_backup_key_view_screen_test.mocks.dart | 5 + .../currency_view_screen_test.mocks.dart | 5 + ...dd_custom_node_view_screen_test.mocks.dart | 5 + .../node_details_view_screen_test.mocks.dart | 5 + .../wallet_backup_view_screen_test.mocks.dart | 5 + ...rescan_warning_view_screen_test.mocks.dart | 5 + ...elete_mnemonic_view_screen_test.mocks.dart | 5 + ...allet_settings_view_screen_test.mocks.dart | 5 + .../settings_view_screen_test.mocks.dart | 5 + ...search_results_view_screen_test.mocks.dart | 5 + .../confirm_send_view_screen_test.mocks.dart | 5 + .../receive_view_screen_test.mocks.dart | 5 + .../send_view_screen_test.mocks.dart | 5 + .../wallet_view_screen_test.mocks.dart | 5 + .../managed_favorite_test.mocks.dart | 937 +++++++++-------- .../table_view/table_view_row_test.mocks.dart | 805 +++++++------- .../transaction_card_test.mocks.dart | 5 + test/widget_tests/wallet_card_test.mocks.dart | 420 ++++---- ...et_info_row_balance_future_test.mocks.dart | 921 ++++++++-------- .../wallet_info_row_test.mocks.dart | 921 ++++++++-------- 32 files changed, 2803 insertions(+), 2312 deletions(-) diff --git a/test/pages/send_view/send_view_test.mocks.dart b/test/pages/send_view/send_view_test.mocks.dart index bcd5f44fc..12548c513 100644 --- a/test/pages/send_view/send_view_test.mocks.dart +++ b/test/pages/send_view/send_view_test.mocks.dart @@ -3,8 +3,8 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i17; -import 'dart:ui' as _i19; +import 'dart:async' as _i18; +import 'dart:ui' as _i20; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; @@ -13,26 +13,28 @@ import 'package:stackwallet/db/main_db.dart' as _i13; 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 _i22; -import 'package:stackwallet/models/node_model.dart' as _i20; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i23; +import 'package:stackwallet/models/node_model.dart' as _i21; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9; import 'package:stackwallet/pages/exchange_view/sub_widgets/exchange_rate_sheet.dart' - as _i25; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i21; -import 'package:stackwallet/services/coins/coin_service.dart' as _i14; + as _i27; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i22; +import 'package:stackwallet/services/coins/coin_service.dart' as _i15; import 'package:stackwallet/services/coins/manager.dart' as _i6; -import 'package:stackwallet/services/locale_service.dart' as _i23; +import 'package:stackwallet/services/locale_service.dart' as _i25; 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 _i15; +import 'package:stackwallet/services/wallets.dart' as _i16; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i26; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16; -import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i24; +import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i28; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i17; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i24; +import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i26; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i7; -import 'package:stackwallet/utilities/prefs.dart' as _i18; +import 'package:stackwallet/utilities/prefs.dart' as _i19; +import 'package:tuple/tuple.dart' as _i14; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -171,9 +173,20 @@ class _FakeElectrumXNode_11 extends _i1.SmartFake ); } -class _FakeCoinServiceAPI_12 extends _i1.SmartFake - implements _i14.CoinServiceAPI { - _FakeCoinServiceAPI_12( +class _FakeTuple4_12 extends _i1.SmartFake + implements _i14.Tuple4 { + _FakeTuple4_12( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeCoinServiceAPI_13 extends _i1.SmartFake + implements _i15.CoinServiceAPI { + _FakeCoinServiceAPI_13( Object parent, Invocation parentInvocation, ) : super( @@ -185,7 +198,7 @@ class _FakeCoinServiceAPI_12 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 _i15.Wallets { +class MockWallets extends _i1.Mock implements _i16.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -252,7 +265,7 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i16.Coin? coin}) => + List getWalletIdsFor({required _i17.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -262,18 +275,18 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValue: [], ) as List); @override - Map<_i16.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> + Map<_i17.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i16.Coin, + returnValue: <_i17.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>{}, - ) as Map<_i16.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); + ) as Map<_i17.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i16.Coin? coin) => + _i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -337,17 +350,17 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValueForMissingStub: null, ); @override - _i17.Future load(_i18.Prefs? prefs) => (super.noSuchMethod( + _i18.Future load(_i19.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future loadAfterStackRestore( - _i18.Prefs? prefs, + _i18.Future loadAfterStackRestore( + _i19.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -358,11 +371,11 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { managers, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -370,7 +383,7 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -396,19 +409,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i17.Future> get walletNames => + _i18.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i17.Future>.value( + returnValue: _i18.Future>.value( {}), - ) as _i17.Future>); + ) as _i18.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i17.Future renameWallet({ + _i18.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -423,13 +436,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future addExistingStackWallet({ + _i18.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i16.Coin? coin, + required _i17.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -443,13 +456,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future addNewWallet({ + _i18.Future addNewWallet({ required String? name, - required _i16.Coin? coin, + required _i17.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -462,46 +475,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i18.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override - _i17.Future saveFavoriteWalletIds(List? walletIds) => + _i18.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i18.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i18.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future moveFavorite({ + _i18.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -514,48 +527,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i18.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i18.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future isMnemonicVerified({required String? walletId}) => + _i18.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future setMnemonicVerified({required String? walletId}) => + _i18.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future deleteWallet( + _i18.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -567,20 +580,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future refreshWallets(bool? shouldNotifyListeners) => + _i18.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -588,7 +601,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -630,33 +643,33 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), ) as _i7.SecureStorageInterface); @override - List<_i20.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i21.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i20.NodeModel>[], - ) as List<_i20.NodeModel>); + returnValue: <_i21.NodeModel>[], + ) as List<_i21.NodeModel>); @override - List<_i20.NodeModel> get nodes => (super.noSuchMethod( + List<_i21.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i20.NodeModel>[], - ) as List<_i20.NodeModel>); + returnValue: <_i21.NodeModel>[], + ) as List<_i21.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i17.Future updateDefaults() => (super.noSuchMethod( + _i18.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future setPrimaryNodeFor({ - required _i16.Coin? coin, - required _i20.NodeModel? node, + _i18.Future setPrimaryNodeFor({ + required _i17.Coin? coin, + required _i21.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -669,44 +682,44 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i20.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) => + _i21.NodeModel? getPrimaryNodeFor({required _i17.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i20.NodeModel?); + )) as _i21.NodeModel?); @override - List<_i20.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod( + List<_i21.NodeModel> getNodesFor(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i20.NodeModel>[], - ) as List<_i20.NodeModel>); + returnValue: <_i21.NodeModel>[], + ) as List<_i21.NodeModel>); @override - _i20.NodeModel? getNodeById({required String? id}) => + _i21.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i20.NodeModel?); + )) as _i21.NodeModel?); @override - List<_i20.NodeModel> failoverNodesFor({required _i16.Coin? coin}) => + List<_i21.NodeModel> failoverNodesFor({required _i17.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i20.NodeModel>[], - ) as List<_i20.NodeModel>); + returnValue: <_i21.NodeModel>[], + ) as List<_i21.NodeModel>); @override - _i17.Future add( - _i20.NodeModel? node, + _i18.Future add( + _i21.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -719,11 +732,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future delete( + _i18.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -735,11 +748,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future setEnabledState( + _i18.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -753,12 +766,12 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future edit( - _i20.NodeModel? editedNode, + _i18.Future edit( + _i21.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -771,20 +784,20 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future updateCommunityNodes() => (super.noSuchMethod( + _i18.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -792,7 +805,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -820,13 +833,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 _i21.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i22.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i17.Timer? _timer) => super.noSuchMethod( + set timer(_i18.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -903,59 +916,59 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { returnValue: false, ) as bool); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override - _i17.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i22.UTXO>[]), - ) as _i17.Future>); + returnValue: _i18.Future>.value(<_i23.UTXO>[]), + ) as _i18.Future>); @override - _i17.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i17.Future>.value(<_i22.Transaction>[]), - ) as _i17.Future>); + _i18.Future>.value(<_i23.Transaction>[]), + ) as _i18.Future>); @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( + _i18.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future get currentChangeAddress => (super.noSuchMethod( + _i18.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i17.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i18.Future<_i9.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i17.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i18.Future<_i9.FeeObject>.value(_FakeFeeObject_6( this, Invocation.getter(#fees), )), - ) as _i17.Future<_i9.FeeObject>); + ) as _i18.Future<_i9.FeeObject>); @override - _i17.Future get maxFee => (super.noSuchMethod( + _i18.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future> get mnemonic => (super.noSuchMethod( + _i18.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override - _i17.Future get chainHeight => (super.noSuchMethod( + _i18.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -1044,26 +1057,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { ), ) as _i13.MainDB); @override - _i17.Future exit() => (super.noSuchMethod( + _i18.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i21.DerivePathType addressType({required String? address}) => + _i24.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i21.DerivePathType.bip44, - ) as _i21.DerivePathType); + returnValue: _i24.DerivePathType.bip44, + ) as _i24.DerivePathType); @override - _i17.Future recoverFromMnemonic({ + _i18.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -1080,47 +1093,47 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { #height: height, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future getTransactionCacheEarly(List? allAddresses) => + _i18.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i18.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future getAllTxsToWatch() => (super.noSuchMethod( + _i18.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future refresh() => (super.noSuchMethod( + _i18.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future> prepareSend({ + _i18.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -1136,26 +1149,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future confirmSend({required Map? txData}) => + _i18.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( + _i18.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -1173,33 +1186,33 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i17.Future initializeNew() => (super.noSuchMethod( + _i18.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeExisting() => (super.noSuchMethod( + _i18.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future updateSentCachedTxData(Map? txData) => + _i18.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1209,36 +1222,36 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { returnValue: false, ) as bool); @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i18.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future<_i10.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i18.Future<_i10.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), returnValue: - _i17.Future<_i10.ElectrumXNode>.value(_FakeElectrumXNode_11( + _i18.Future<_i10.ElectrumXNode>.value(_FakeElectrumXNode_11( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i17.Future<_i10.ElectrumXNode>); + ) as _i18.Future<_i10.ElectrumXNode>); @override - _i17.Future addDerivation({ + _i18.Future addDerivation({ required int? chain, required String? address, required String? pubKey, required String? wif, - required _i21.DerivePathType? derivePathType, + required _i24.DerivePathType? derivePathType, }) => (super.noSuchMethod( Invocation.method( @@ -1252,13 +1265,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { #derivePathType: derivePathType, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future addDerivations({ + _i18.Future addDerivations({ required int? chain, - required _i21.DerivePathType? derivePathType, + required _i24.DerivePathType? derivePathType, required Map? derivationsToAdd, }) => (super.noSuchMethod( @@ -1271,50 +1284,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { #derivationsToAdd: derivationsToAdd, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future>> fastFetch( + _i18.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i17.Future>>.value( + returnValue: _i18.Future>>.value( >[]), - ) as _i17.Future>>); + ) as _i18.Future>>); @override - _i17.Future getTxCount({required String? address}) => + _i18.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future checkCurrentReceivingAddressesForTransactions() => + _i18.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future checkCurrentChangeAddressesForTransactions() => + _i18.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override int estimateTxFee({ required int? vSize, @@ -1338,7 +1351,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { String? _recipientAddress, bool? isSendAll, { int? additionalOutputs = 0, - List<_i22.UTXO>? utxos, + List<_i23.UTXO>? utxos, }) => super.noSuchMethod(Invocation.method( #coinSelection, @@ -1354,19 +1367,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { }, )); @override - _i17.Future> fetchBuildTxData( - List<_i22.UTXO>? utxosToUse) => + _i18.Future> fetchBuildTxData( + List<_i23.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( #fetchBuildTxData, [utxosToUse], ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future> buildTransaction({ - required List<_i22.UTXO>? utxosToUse, + _i18.Future> buildTransaction({ + required List<_i23.UTXO>? utxosToUse, required Map? utxoSigningData, required List? recipients, required List? satoshiAmounts, @@ -1383,10 +1396,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future fullRescan( + _i18.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1398,11 +1411,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future estimateFeeFor( + _i18.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1414,8 +1427,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { feeRate, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override int roughFeeEstimate( int? inputCount, @@ -1434,25 +1447,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { returnValue: 0, ) as int); @override - _i17.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( + _i18.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future generateNewAddress() => (super.noSuchMethod( + _i18.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override void initCache( String? walletId, - _i16.Coin? coin, + _i17.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1465,14 +1478,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i17.Future updateCachedId(String? id) => (super.noSuchMethod( + _i18.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1482,14 +1495,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { returnValue: 0, ) as int); @override - _i17.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i18.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1499,15 +1512,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { returnValue: false, ) as bool); @override - _i17.Future updateCachedIsFavorite(bool? isFavorite) => + _i18.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override _i12.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1523,15 +1536,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { ), ) as _i12.Balance); @override - _i17.Future updateCachedBalance(_i12.Balance? balance) => + _i18.Future updateCachedBalance(_i12.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override _i12.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1547,15 +1560,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { ), ) as _i12.Balance); @override - _i17.Future updateCachedBalanceSecondary(_i12.Balance? balance) => + _i18.Future updateCachedBalanceSecondary(_i12.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override void initWalletDB({_i13.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1565,12 +1578,55 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { ), returnValueForMissingStub: null, ); + @override + _i18.Future< + _i14.Tuple4<_i23.Transaction, List<_i23.Output>, List<_i23.Input>, + _i23.Address>> parseTransaction( + Map? txData, + dynamic electrumxClient, + List<_i23.Address>? myAddresses, + _i17.Coin? coin, + int? minConfirms, + String? walletId, + ) => + (super.noSuchMethod( + Invocation.method( + #parseTransaction, + [ + txData, + electrumxClient, + myAddresses, + coin, + minConfirms, + walletId, + ], + ), + returnValue: _i18.Future< + _i14.Tuple4<_i23.Transaction, List<_i23.Output>, List<_i23.Input>, + _i23.Address>>.value(_FakeTuple4_12<_i23.Transaction, + List<_i23.Output>, List<_i23.Input>, _i23.Address>( + this, + Invocation.method( + #parseTransaction, + [ + txData, + electrumxClient, + myAddresses, + coin, + minConfirms, + walletId, + ], + ), + )), + ) as _i18.Future< + _i14.Tuple4<_i23.Transaction, List<_i23.Output>, List<_i23.Input>, + _i23.Address>>); } /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i23.LocaleService { +class MockLocaleService extends _i1.Mock implements _i25.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -1586,17 +1642,17 @@ class MockLocaleService extends _i1.Mock implements _i23.LocaleService { returnValue: false, ) as bool); @override - _i17.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i18.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1604,7 +1660,7 @@ class MockLocaleService extends _i1.Mock implements _i23.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1632,7 +1688,7 @@ class MockLocaleService extends _i1.Mock implements _i23.LocaleService { /// A class which mocks [Prefs]. /// /// See the documentation for Mockito's code generation for more information. -class MockPrefs extends _i1.Mock implements _i18.Prefs { +class MockPrefs extends _i1.Mock implements _i19.Prefs { MockPrefs() { _i1.throwOnMissingStub(this); } @@ -1688,12 +1744,12 @@ class MockPrefs extends _i1.Mock implements _i18.Prefs { returnValueForMissingStub: null, ); @override - _i24.SyncingType get syncType => (super.noSuchMethod( + _i26.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), - returnValue: _i24.SyncingType.currentWalletOnly, - ) as _i24.SyncingType); + returnValue: _i26.SyncingType.currentWalletOnly, + ) as _i26.SyncingType); @override - set syncType(_i24.SyncingType? syncType) => super.noSuchMethod( + set syncType(_i26.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( #syncType, syncType, @@ -1753,12 +1809,12 @@ class MockPrefs extends _i1.Mock implements _i18.Prefs { returnValueForMissingStub: null, ); @override - _i25.ExchangeRateType get exchangeRateType => (super.noSuchMethod( + _i27.ExchangeRateType get exchangeRateType => (super.noSuchMethod( Invocation.getter(#exchangeRateType), - returnValue: _i25.ExchangeRateType.estimated, - ) as _i25.ExchangeRateType); + returnValue: _i27.ExchangeRateType.estimated, + ) as _i27.ExchangeRateType); @override - set exchangeRateType(_i25.ExchangeRateType? exchangeRateType) => + set exchangeRateType(_i27.ExchangeRateType? exchangeRateType) => super.noSuchMethod( Invocation.setter( #exchangeRateType, @@ -1840,12 +1896,12 @@ class MockPrefs extends _i1.Mock implements _i18.Prefs { returnValueForMissingStub: null, ); @override - _i26.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( + _i28.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), - returnValue: _i26.BackupFrequencyType.everyTenMinutes, - ) as _i26.BackupFrequencyType); + returnValue: _i28.BackupFrequencyType.everyTenMinutes, + ) as _i28.BackupFrequencyType); @override - set backupFrequencyType(_i26.BackupFrequencyType? backupFrequencyType) => + set backupFrequencyType(_i28.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( Invocation.setter( #backupFrequencyType, @@ -1915,33 +1971,33 @@ class MockPrefs extends _i1.Mock implements _i18.Prefs { returnValue: false, ) as bool); @override - _i17.Future init() => (super.noSuchMethod( + _i18.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( + _i18.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( #incrementCurrentNotificationIndex, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future isExternalCallsSet() => (super.noSuchMethod( + _i18.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( #isExternalCallsSet, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1949,7 +2005,7 @@ class MockPrefs extends _i1.Mock implements _i18.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1992,23 +2048,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i14.CoinServiceAPI get wallet => (super.noSuchMethod( + _i15.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_12( + returnValue: _FakeCoinServiceAPI_13( this, Invocation.getter(#wallet), ), - ) as _i14.CoinServiceAPI); + ) as _i15.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2041,23 +2097,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i17.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i18.Future<_i9.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i17.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i18.Future<_i9.FeeObject>.value(_FakeFeeObject_6( this, Invocation.getter(#fees), )), - ) as _i17.Future<_i9.FeeObject>); + ) as _i18.Future<_i9.FeeObject>); @override - _i17.Future get maxFee => (super.noSuchMethod( + _i18.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( + _i18.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override _i12.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2067,16 +2123,16 @@ class MockManager extends _i1.Mock implements _i6.Manager { ), ) as _i12.Balance); @override - _i17.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i17.Future>.value(<_i22.Transaction>[]), - ) as _i17.Future>); + _i18.Future>.value(<_i23.Transaction>[]), + ) as _i18.Future>); @override - _i17.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i22.UTXO>[]), - ) as _i17.Future>); + returnValue: _i18.Future>.value(<_i23.UTXO>[]), + ) as _i18.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2096,10 +2152,10 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i17.Future> get mnemonic => (super.noSuchMethod( + _i18.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -2111,19 +2167,24 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i18.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -2133,7 +2194,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i17.Future> prepareSend({ + _i18.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2149,27 +2210,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future confirmSend({required Map? txData}) => + _i18.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future refresh() => (super.noSuchMethod( + _i18.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2179,33 +2240,33 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( + _i18.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future initializeNew() => (super.noSuchMethod( + _i18.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeExisting() => (super.noSuchMethod( + _i18.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future recoverFromMnemonic({ + _i18.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -2222,20 +2283,20 @@ class MockManager extends _i1.Mock implements _i6.Manager { #height: height, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future exitCurrentWallet() => (super.noSuchMethod( + _i18.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future fullRescan( + _i18.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2247,11 +2308,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future estimateFeeFor( + _i18.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2263,18 +2324,18 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future generateNewAddress() => (super.noSuchMethod( + _i18.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2282,7 +2343,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2302,7 +2363,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 _i14.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i15.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -2313,10 +2374,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2349,23 +2410,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i17.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i18.Future<_i9.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i17.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i18.Future<_i9.FeeObject>.value(_FakeFeeObject_6( this, Invocation.getter(#fees), )), - ) as _i17.Future<_i9.FeeObject>); + ) as _i18.Future<_i9.FeeObject>); @override - _i17.Future get maxFee => (super.noSuchMethod( + _i18.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( + _i18.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override _i12.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2375,16 +2436,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { ), ) as _i12.Balance); @override - _i17.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i17.Future>.value(<_i22.Transaction>[]), - ) as _i17.Future>); + _i18.Future>.value(<_i23.Transaction>[]), + ) as _i18.Future>); @override - _i17.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i22.UTXO>[]), - ) as _i17.Future>); + returnValue: _i18.Future>.value(<_i23.UTXO>[]), + ) as _i18.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2404,10 +2465,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValue: '', ) as String); @override - _i17.Future> get mnemonic => (super.noSuchMethod( + _i18.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2424,7 +2485,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValue: 0, ) as int); @override - _i17.Future> prepareSend({ + _i18.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2440,36 +2501,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future confirmSend({required Map? txData}) => + _i18.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future refresh() => (super.noSuchMethod( + _i18.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i18.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2479,15 +2540,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValue: false, ) as bool); @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( + _i18.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future recoverFromMnemonic({ + _i18.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -2504,38 +2565,38 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { #height: height, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeNew() => (super.noSuchMethod( + _i18.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeExisting() => (super.noSuchMethod( + _i18.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future exit() => (super.noSuchMethod( + _i18.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future fullRescan( + _i18.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2547,11 +2608,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future estimateFeeFor( + _i18.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2563,24 +2624,24 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { feeRate, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future generateNewAddress() => (super.noSuchMethod( + _i18.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future updateSentCachedTxData(Map? txData) => + _i18.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); } diff --git a/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.mocks.dart b/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.mocks.dart index bb5c5c408..54ade45c2 100644 --- a/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.mocks.dart +++ b/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.mocks.dart @@ -363,6 +363,11 @@ class MockManager extends _i1.Mock implements _i11.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.mocks.dart b/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.mocks.dart index f0c334e7e..84fc1bf4e 100644 --- a/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.mocks.dart +++ b/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.mocks.dart @@ -324,6 +324,11 @@ class MockManager extends _i1.Mock implements _i9.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.mocks.dart b/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.mocks.dart index f0c11b04a..7d23a2dd7 100644 --- a/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.mocks.dart +++ b/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.mocks.dart @@ -322,6 +322,11 @@ class MockManager extends _i1.Mock implements _i9.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/lockscreen_view_screen_test.mocks.dart b/test/screen_tests/lockscreen_view_screen_test.mocks.dart index 6328b6881..92518048b 100644 --- a/test/screen_tests/lockscreen_view_screen_test.mocks.dart +++ b/test/screen_tests/lockscreen_view_screen_test.mocks.dart @@ -631,6 +631,11 @@ class MockManager extends _i1.Mock implements _i12.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/main_view_tests/main_view_screen_testA_test.mocks.dart b/test/screen_tests/main_view_tests/main_view_screen_testA_test.mocks.dart index c0c6f6902..01f47579b 100644 --- a/test/screen_tests/main_view_tests/main_view_screen_testA_test.mocks.dart +++ b/test/screen_tests/main_view_tests/main_view_screen_testA_test.mocks.dart @@ -418,6 +418,11 @@ class MockManager extends _i1.Mock implements _i9.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/main_view_tests/main_view_screen_testB_test.mocks.dart b/test/screen_tests/main_view_tests/main_view_screen_testB_test.mocks.dart index aef163b0e..106485fdb 100644 --- a/test/screen_tests/main_view_tests/main_view_screen_testB_test.mocks.dart +++ b/test/screen_tests/main_view_tests/main_view_screen_testB_test.mocks.dart @@ -418,6 +418,11 @@ class MockManager extends _i1.Mock implements _i9.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/main_view_tests/main_view_screen_testC_test.mocks.dart b/test/screen_tests/main_view_tests/main_view_screen_testC_test.mocks.dart index 7f31b64c4..419b72e3f 100644 --- a/test/screen_tests/main_view_tests/main_view_screen_testC_test.mocks.dart +++ b/test/screen_tests/main_view_tests/main_view_screen_testC_test.mocks.dart @@ -418,6 +418,11 @@ class MockManager extends _i1.Mock implements _i9.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/onboarding/backup_key_view_screen_test.mocks.dart b/test/screen_tests/onboarding/backup_key_view_screen_test.mocks.dart index 56e72d944..50cd7afd8 100644 --- a/test/screen_tests/onboarding/backup_key_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/backup_key_view_screen_test.mocks.dart @@ -193,6 +193,11 @@ class MockManager extends _i1.Mock implements _i5.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/onboarding/backup_key_warning_view_screen_test.mocks.dart b/test/screen_tests/onboarding/backup_key_warning_view_screen_test.mocks.dart index a7467d9be..ba5f52688 100644 --- a/test/screen_tests/onboarding/backup_key_warning_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/backup_key_warning_view_screen_test.mocks.dart @@ -416,6 +416,11 @@ class MockManager extends _i1.Mock implements _i9.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart b/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart index 9267a9fba..7a1afa588 100644 --- a/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart @@ -631,6 +631,11 @@ class MockManager extends _i1.Mock implements _i12.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart b/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart index 13aa6edb8..31fb8546c 100644 --- a/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart @@ -472,6 +472,11 @@ class MockManager extends _i1.Mock implements _i12.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/onboarding/verify_backup_key_view_screen_test.mocks.dart b/test/screen_tests/onboarding/verify_backup_key_view_screen_test.mocks.dart index b8c7f3cbd..742498415 100644 --- a/test/screen_tests/onboarding/verify_backup_key_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/verify_backup_key_view_screen_test.mocks.dart @@ -193,6 +193,11 @@ class MockManager extends _i1.Mock implements _i5.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/settings_view/settings_subviews/currency_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/currency_view_screen_test.mocks.dart index 68f2eeb10..b4c96f70c 100644 --- a/test/screen_tests/settings_view/settings_subviews/currency_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/currency_view_screen_test.mocks.dart @@ -193,6 +193,11 @@ class MockManager extends _i1.Mock implements _i5.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart index 8b60863ab..9fe30a1cb 100644 --- a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart @@ -408,6 +408,11 @@ class MockManager extends _i1.Mock implements _i11.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart index 09d59deb2..f0b37d032 100644 --- a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart @@ -408,6 +408,11 @@ class MockManager extends _i1.Mock implements _i11.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_backup_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_backup_view_screen_test.mocks.dart index a958461b8..3711513b4 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_backup_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_backup_view_screen_test.mocks.dart @@ -193,6 +193,11 @@ class MockManager extends _i1.Mock implements _i5.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rescan_warning_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rescan_warning_view_screen_test.mocks.dart index 284065eba..fc733ad66 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rescan_warning_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rescan_warning_view_screen_test.mocks.dart @@ -193,6 +193,11 @@ class MockManager extends _i1.Mock implements _i5.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.mocks.dart index 24da7d388..b36f289d8 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.mocks.dart @@ -416,6 +416,11 @@ class MockManager extends _i1.Mock implements _i9.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart index 0bf926563..dc382ee73 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart @@ -673,6 +673,11 @@ class MockManager extends _i1.Mock implements _i15.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/settings_view/settings_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_view_screen_test.mocks.dart index 487f2f2bf..e469b8be4 100644 --- a/test/screen_tests/settings_view/settings_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_view_screen_test.mocks.dart @@ -416,6 +416,11 @@ class MockManager extends _i1.Mock implements _i9.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.mocks.dart b/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.mocks.dart index 31bda1f65..bd3520e44 100644 --- a/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.mocks.dart +++ b/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.mocks.dart @@ -195,6 +195,11 @@ class MockManager extends _i1.Mock implements _i5.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/wallet_view/confirm_send_view_screen_test.mocks.dart b/test/screen_tests/wallet_view/confirm_send_view_screen_test.mocks.dart index 161b63e1d..cbfc6644f 100644 --- a/test/screen_tests/wallet_view/confirm_send_view_screen_test.mocks.dart +++ b/test/screen_tests/wallet_view/confirm_send_view_screen_test.mocks.dart @@ -194,6 +194,11 @@ class MockManager extends _i1.Mock implements _i5.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/wallet_view/receive_view_screen_test.mocks.dart b/test/screen_tests/wallet_view/receive_view_screen_test.mocks.dart index 7172f3e29..a4936c793 100644 --- a/test/screen_tests/wallet_view/receive_view_screen_test.mocks.dart +++ b/test/screen_tests/wallet_view/receive_view_screen_test.mocks.dart @@ -193,6 +193,11 @@ class MockManager extends _i1.Mock implements _i5.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/wallet_view/send_view_screen_test.mocks.dart b/test/screen_tests/wallet_view/send_view_screen_test.mocks.dart index ba206a8c6..3126e4580 100644 --- a/test/screen_tests/wallet_view/send_view_screen_test.mocks.dart +++ b/test/screen_tests/wallet_view/send_view_screen_test.mocks.dart @@ -235,6 +235,11 @@ class MockManager extends _i1.Mock implements _i8.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/wallet_view/wallet_view_screen_test.mocks.dart b/test/screen_tests/wallet_view/wallet_view_screen_test.mocks.dart index ae6a2d1f9..135802891 100644 --- a/test/screen_tests/wallet_view/wallet_view_screen_test.mocks.dart +++ b/test/screen_tests/wallet_view/wallet_view_screen_test.mocks.dart @@ -195,6 +195,11 @@ class MockManager extends _i1.Mock implements _i5.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/widget_tests/managed_favorite_test.mocks.dart b/test/widget_tests/managed_favorite_test.mocks.dart index a5ee69930..a51988ce0 100644 --- a/test/widget_tests/managed_favorite_test.mocks.dart +++ b/test/widget_tests/managed_favorite_test.mocks.dart @@ -3,8 +3,8 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i17; -import 'dart:ui' as _i19; +import 'dart:async' as _i18; +import 'dart:ui' as _i20; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; @@ -13,22 +13,24 @@ import 'package:stackwallet/db/main_db.dart' as _i12; 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 _i21; -import 'package:stackwallet/models/node_model.dart' as _i23; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i22; +import 'package:stackwallet/models/node_model.dart' as _i25; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i20; -import 'package:stackwallet/services/coins/coin_service.dart' as _i14; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i21; +import 'package:stackwallet/services/coins/coin_service.dart' as _i15; import 'package:stackwallet/services/coins/manager.dart' as _i6; -import 'package:stackwallet/services/locale_service.dart' as _i22; +import 'package:stackwallet/services/locale_service.dart' as _i24; 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 _i15; +import 'package:stackwallet/services/wallets.dart' as _i16; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i17; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i23; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i13; -import 'package:stackwallet/utilities/prefs.dart' as _i18; + as _i14; +import 'package:stackwallet/utilities/prefs.dart' as _i19; +import 'package:tuple/tuple.dart' as _i13; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -155,9 +157,9 @@ class _FakeElectrumXNode_10 extends _i1.SmartFake implements _i9.ElectrumXNode { ); } -class _FakeSecureStorageInterface_11 extends _i1.SmartFake - implements _i13.SecureStorageInterface { - _FakeSecureStorageInterface_11( +class _FakeTuple4_11 extends _i1.SmartFake + implements _i13.Tuple4 { + _FakeTuple4_11( Object parent, Invocation parentInvocation, ) : super( @@ -166,9 +168,20 @@ class _FakeSecureStorageInterface_11 extends _i1.SmartFake ); } -class _FakeCoinServiceAPI_12 extends _i1.SmartFake - implements _i14.CoinServiceAPI { - _FakeCoinServiceAPI_12( +class _FakeSecureStorageInterface_12 extends _i1.SmartFake + implements _i14.SecureStorageInterface { + _FakeSecureStorageInterface_12( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeCoinServiceAPI_13 extends _i1.SmartFake + implements _i15.CoinServiceAPI { + _FakeCoinServiceAPI_13( Object parent, Invocation parentInvocation, ) : super( @@ -180,7 +193,7 @@ class _FakeCoinServiceAPI_12 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 _i15.Wallets { +class MockWallets extends _i1.Mock implements _i16.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -247,7 +260,7 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i16.Coin? coin}) => + List getWalletIdsFor({required _i17.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -257,18 +270,18 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValue: [], ) as List); @override - Map<_i16.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> + Map<_i17.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i16.Coin, + returnValue: <_i17.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>{}, - ) as Map<_i16.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); + ) as Map<_i17.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i16.Coin? coin) => + _i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -332,17 +345,17 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValueForMissingStub: null, ); @override - _i17.Future load(_i18.Prefs? prefs) => (super.noSuchMethod( + _i18.Future load(_i19.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future loadAfterStackRestore( - _i18.Prefs? prefs, + _i18.Future loadAfterStackRestore( + _i19.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -353,11 +366,11 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { managers, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -365,7 +378,7 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -391,19 +404,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i17.Future> get walletNames => + _i18.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i17.Future>.value( + returnValue: _i18.Future>.value( {}), - ) as _i17.Future>); + ) as _i18.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i17.Future renameWallet({ + _i18.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -418,13 +431,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future addExistingStackWallet({ + _i18.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i16.Coin? coin, + required _i17.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -438,13 +451,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future addNewWallet({ + _i18.Future addNewWallet({ required String? name, - required _i16.Coin? coin, + required _i17.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -457,46 +470,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i18.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override - _i17.Future saveFavoriteWalletIds(List? walletIds) => + _i18.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i18.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i18.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future moveFavorite({ + _i18.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -509,48 +522,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i18.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i18.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future isMnemonicVerified({required String? walletId}) => + _i18.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future setMnemonicVerified({required String? walletId}) => + _i18.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future deleteWallet( + _i18.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -562,20 +575,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future refreshWallets(bool? shouldNotifyListeners) => + _i18.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -583,7 +596,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -611,13 +624,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 _i20.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i17.Timer? _timer) => super.noSuchMethod( + set timer(_i18.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -694,59 +707,59 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: false, ) as bool); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override - _i17.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i21.UTXO>[]), - ) as _i17.Future>); + returnValue: _i18.Future>.value(<_i22.UTXO>[]), + ) as _i18.Future>); @override - _i17.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i17.Future>.value(<_i21.Transaction>[]), - ) as _i17.Future>); + _i18.Future>.value(<_i22.Transaction>[]), + ) as _i18.Future>); @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( + _i18.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future get currentChangeAddress => (super.noSuchMethod( + _i18.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i17.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i18.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i17.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i18.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i17.Future<_i8.FeeObject>); + ) as _i18.Future<_i8.FeeObject>); @override - _i17.Future get maxFee => (super.noSuchMethod( + _i18.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future> get mnemonic => (super.noSuchMethod( + _i18.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override - _i17.Future get chainHeight => (super.noSuchMethod( + _i18.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -835,26 +848,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { ), ) as _i12.MainDB); @override - _i17.Future exit() => (super.noSuchMethod( + _i18.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i20.DerivePathType addressType({required String? address}) => + _i23.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i20.DerivePathType.bip44, - ) as _i20.DerivePathType); + returnValue: _i23.DerivePathType.bip44, + ) as _i23.DerivePathType); @override - _i17.Future recoverFromMnemonic({ + _i18.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -871,47 +884,47 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { #height: height, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future getTransactionCacheEarly(List? allAddresses) => + _i18.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i18.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future getAllTxsToWatch() => (super.noSuchMethod( + _i18.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future refresh() => (super.noSuchMethod( + _i18.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future> prepareSend({ + _i18.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -927,26 +940,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future confirmSend({required Map? txData}) => + _i18.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( + _i18.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -964,33 +977,33 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i17.Future initializeNew() => (super.noSuchMethod( + _i18.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeExisting() => (super.noSuchMethod( + _i18.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future updateSentCachedTxData(Map? txData) => + _i18.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1000,35 +1013,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: false, ) as bool); @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i18.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i18.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), - returnValue: _i17.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_10( + returnValue: _i18.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_10( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i17.Future<_i9.ElectrumXNode>); + ) as _i18.Future<_i9.ElectrumXNode>); @override - _i17.Future addDerivation({ + _i18.Future addDerivation({ required int? chain, required String? address, required String? pubKey, required String? wif, - required _i20.DerivePathType? derivePathType, + required _i23.DerivePathType? derivePathType, }) => (super.noSuchMethod( Invocation.method( @@ -1042,13 +1055,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { #derivePathType: derivePathType, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future addDerivations({ + _i18.Future addDerivations({ required int? chain, - required _i20.DerivePathType? derivePathType, + required _i23.DerivePathType? derivePathType, required Map? derivationsToAdd, }) => (super.noSuchMethod( @@ -1061,50 +1074,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { #derivationsToAdd: derivationsToAdd, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future>> fastFetch( + _i18.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i17.Future>>.value( + returnValue: _i18.Future>>.value( >[]), - ) as _i17.Future>>); + ) as _i18.Future>>); @override - _i17.Future getTxCount({required String? address}) => + _i18.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future checkCurrentReceivingAddressesForTransactions() => + _i18.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future checkCurrentChangeAddressesForTransactions() => + _i18.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override int estimateTxFee({ required int? vSize, @@ -1128,7 +1141,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { String? _recipientAddress, bool? isSendAll, { int? additionalOutputs = 0, - List<_i21.UTXO>? utxos, + List<_i22.UTXO>? utxos, }) => super.noSuchMethod(Invocation.method( #coinSelection, @@ -1144,19 +1157,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { }, )); @override - _i17.Future> fetchBuildTxData( - List<_i21.UTXO>? utxosToUse) => + _i18.Future> fetchBuildTxData( + List<_i22.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( #fetchBuildTxData, [utxosToUse], ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future> buildTransaction({ - required List<_i21.UTXO>? utxosToUse, + _i18.Future> buildTransaction({ + required List<_i22.UTXO>? utxosToUse, required Map? utxoSigningData, required List? recipients, required List? satoshiAmounts, @@ -1173,10 +1186,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future fullRescan( + _i18.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1188,11 +1201,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future estimateFeeFor( + _i18.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1204,8 +1217,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { feeRate, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override int roughFeeEstimate( int? inputCount, @@ -1224,25 +1237,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: 0, ) as int); @override - _i17.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( + _i18.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future generateNewAddress() => (super.noSuchMethod( + _i18.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override void initCache( String? walletId, - _i16.Coin? coin, + _i17.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1255,14 +1268,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i17.Future updateCachedId(String? id) => (super.noSuchMethod( + _i18.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1272,14 +1285,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: 0, ) as int); @override - _i17.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i18.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1289,15 +1302,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: false, ) as bool); @override - _i17.Future updateCachedIsFavorite(bool? isFavorite) => + _i18.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override _i11.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1313,15 +1326,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { ), ) as _i11.Balance); @override - _i17.Future updateCachedBalance(_i11.Balance? balance) => + _i18.Future updateCachedBalance(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1337,15 +1350,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { ), ) as _i11.Balance); @override - _i17.Future updateCachedBalanceSecondary(_i11.Balance? balance) => + _i18.Future updateCachedBalanceSecondary(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1355,12 +1368,55 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { ), returnValueForMissingStub: null, ); + @override + _i18.Future< + _i13.Tuple4<_i22.Transaction, List<_i22.Output>, List<_i22.Input>, + _i22.Address>> parseTransaction( + Map? txData, + dynamic electrumxClient, + List<_i22.Address>? myAddresses, + _i17.Coin? coin, + int? minConfirms, + String? walletId, + ) => + (super.noSuchMethod( + Invocation.method( + #parseTransaction, + [ + txData, + electrumxClient, + myAddresses, + coin, + minConfirms, + walletId, + ], + ), + returnValue: _i18.Future< + _i13.Tuple4<_i22.Transaction, List<_i22.Output>, List<_i22.Input>, + _i22.Address>>.value(_FakeTuple4_11<_i22.Transaction, + List<_i22.Output>, List<_i22.Input>, _i22.Address>( + this, + Invocation.method( + #parseTransaction, + [ + txData, + electrumxClient, + myAddresses, + coin, + minConfirms, + walletId, + ], + ), + )), + ) as _i18.Future< + _i13.Tuple4<_i22.Transaction, List<_i22.Output>, List<_i22.Input>, + _i22.Address>>); } /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i22.LocaleService { +class MockLocaleService extends _i1.Mock implements _i24.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -1376,17 +1432,17 @@ class MockLocaleService extends _i1.Mock implements _i22.LocaleService { returnValue: false, ) as bool); @override - _i17.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i18.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1394,7 +1450,7 @@ class MockLocaleService extends _i1.Mock implements _i22.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1424,41 +1480,41 @@ class MockLocaleService extends _i1.Mock implements _i22.LocaleService { /// See the documentation for Mockito's code generation for more information. class MockNodeService extends _i1.Mock implements _i3.NodeService { @override - _i13.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( + _i14.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( Invocation.getter(#secureStorageInterface), - returnValue: _FakeSecureStorageInterface_11( + returnValue: _FakeSecureStorageInterface_12( this, Invocation.getter(#secureStorageInterface), ), - ) as _i13.SecureStorageInterface); + ) as _i14.SecureStorageInterface); @override - List<_i23.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i25.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i23.NodeModel>[], - ) as List<_i23.NodeModel>); + returnValue: <_i25.NodeModel>[], + ) as List<_i25.NodeModel>); @override - List<_i23.NodeModel> get nodes => (super.noSuchMethod( + List<_i25.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i23.NodeModel>[], - ) as List<_i23.NodeModel>); + returnValue: <_i25.NodeModel>[], + ) as List<_i25.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i17.Future updateDefaults() => (super.noSuchMethod( + _i18.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future setPrimaryNodeFor({ - required _i16.Coin? coin, - required _i23.NodeModel? node, + _i18.Future setPrimaryNodeFor({ + required _i17.Coin? coin, + required _i25.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -1471,44 +1527,44 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i23.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) => + _i25.NodeModel? getPrimaryNodeFor({required _i17.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i23.NodeModel?); + )) as _i25.NodeModel?); @override - List<_i23.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod( + List<_i25.NodeModel> getNodesFor(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i23.NodeModel>[], - ) as List<_i23.NodeModel>); + returnValue: <_i25.NodeModel>[], + ) as List<_i25.NodeModel>); @override - _i23.NodeModel? getNodeById({required String? id}) => + _i25.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i23.NodeModel?); + )) as _i25.NodeModel?); @override - List<_i23.NodeModel> failoverNodesFor({required _i16.Coin? coin}) => + List<_i25.NodeModel> failoverNodesFor({required _i17.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i23.NodeModel>[], - ) as List<_i23.NodeModel>); + returnValue: <_i25.NodeModel>[], + ) as List<_i25.NodeModel>); @override - _i17.Future add( - _i23.NodeModel? node, + _i18.Future add( + _i25.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -1521,11 +1577,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future delete( + _i18.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -1537,11 +1593,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future setEnabledState( + _i18.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -1555,12 +1611,12 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future edit( - _i23.NodeModel? editedNode, + _i18.Future edit( + _i25.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -1573,20 +1629,20 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future updateCommunityNodes() => (super.noSuchMethod( + _i18.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1594,7 +1650,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1637,23 +1693,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i14.CoinServiceAPI get wallet => (super.noSuchMethod( + _i15.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_12( + returnValue: _FakeCoinServiceAPI_13( this, Invocation.getter(#wallet), ), - ) as _i14.CoinServiceAPI); + ) as _i15.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -1686,23 +1742,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i17.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i18.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i17.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i18.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i17.Future<_i8.FeeObject>); + ) as _i18.Future<_i8.FeeObject>); @override - _i17.Future get maxFee => (super.noSuchMethod( + _i18.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( + _i18.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -1712,16 +1768,16 @@ class MockManager extends _i1.Mock implements _i6.Manager { ), ) as _i11.Balance); @override - _i17.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i17.Future>.value(<_i21.Transaction>[]), - ) as _i17.Future>); + _i18.Future>.value(<_i22.Transaction>[]), + ) as _i18.Future>); @override - _i17.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i21.UTXO>[]), - ) as _i17.Future>); + returnValue: _i18.Future>.value(<_i22.UTXO>[]), + ) as _i18.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -1741,10 +1797,10 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i17.Future> get mnemonic => (super.noSuchMethod( + _i18.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -1756,19 +1812,24 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i18.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -1778,7 +1839,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i17.Future> prepareSend({ + _i18.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -1794,27 +1855,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future confirmSend({required Map? txData}) => + _i18.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future refresh() => (super.noSuchMethod( + _i18.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1824,33 +1885,33 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( + _i18.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future initializeNew() => (super.noSuchMethod( + _i18.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeExisting() => (super.noSuchMethod( + _i18.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future recoverFromMnemonic({ + _i18.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -1867,20 +1928,20 @@ class MockManager extends _i1.Mock implements _i6.Manager { #height: height, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future exitCurrentWallet() => (super.noSuchMethod( + _i18.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future fullRescan( + _i18.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1892,11 +1953,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future estimateFeeFor( + _i18.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1908,18 +1969,18 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future generateNewAddress() => (super.noSuchMethod( + _i18.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1927,7 +1988,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1947,7 +2008,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 _i14.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i15.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -1958,10 +2019,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -1994,23 +2055,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i17.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i18.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i17.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i18.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i17.Future<_i8.FeeObject>); + ) as _i18.Future<_i8.FeeObject>); @override - _i17.Future get maxFee => (super.noSuchMethod( + _i18.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( + _i18.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2020,16 +2081,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { ), ) as _i11.Balance); @override - _i17.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i17.Future>.value(<_i21.Transaction>[]), - ) as _i17.Future>); + _i18.Future>.value(<_i22.Transaction>[]), + ) as _i18.Future>); @override - _i17.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i21.UTXO>[]), - ) as _i17.Future>); + returnValue: _i18.Future>.value(<_i22.UTXO>[]), + ) as _i18.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2049,10 +2110,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValue: '', ) as String); @override - _i17.Future> get mnemonic => (super.noSuchMethod( + _i18.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2069,7 +2130,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValue: 0, ) as int); @override - _i17.Future> prepareSend({ + _i18.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2085,36 +2146,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future confirmSend({required Map? txData}) => + _i18.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future refresh() => (super.noSuchMethod( + _i18.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i18.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2124,15 +2185,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValue: false, ) as bool); @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( + _i18.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future recoverFromMnemonic({ + _i18.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -2149,38 +2210,38 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { #height: height, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeNew() => (super.noSuchMethod( + _i18.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeExisting() => (super.noSuchMethod( + _i18.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future exit() => (super.noSuchMethod( + _i18.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future fullRescan( + _i18.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2192,11 +2253,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future estimateFeeFor( + _i18.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2208,24 +2269,24 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { feeRate, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future generateNewAddress() => (super.noSuchMethod( + _i18.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future updateSentCachedTxData(Map? txData) => + _i18.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.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 d31019d37..aeefa1a27 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,8 +3,8 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i16; -import 'dart:ui' as _i18; +import 'dart:async' as _i17; +import 'dart:ui' as _i19; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; @@ -13,18 +13,20 @@ import 'package:stackwallet/db/main_db.dart' as _i12; 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 _i20; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i21; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i19; -import 'package:stackwallet/services/coins/coin_service.dart' as _i13; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i20; +import 'package:stackwallet/services/coins/coin_service.dart' as _i14; 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 _i14; +import 'package:stackwallet/services/wallets.dart' as _i15; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15; -import 'package:stackwallet/utilities/prefs.dart' as _i17; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i22; +import 'package:stackwallet/utilities/prefs.dart' as _i18; +import 'package:tuple/tuple.dart' as _i13; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -151,9 +153,20 @@ class _FakeElectrumXNode_10 extends _i1.SmartFake implements _i9.ElectrumXNode { ); } -class _FakeCoinServiceAPI_11 extends _i1.SmartFake - implements _i13.CoinServiceAPI { - _FakeCoinServiceAPI_11( +class _FakeTuple4_11 extends _i1.SmartFake + implements _i13.Tuple4 { + _FakeTuple4_11( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeCoinServiceAPI_12 extends _i1.SmartFake + implements _i14.CoinServiceAPI { + _FakeCoinServiceAPI_12( Object parent, Invocation parentInvocation, ) : super( @@ -165,7 +178,7 @@ class _FakeCoinServiceAPI_11 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 _i14.Wallets { +class MockWallets extends _i1.Mock implements _i15.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -232,7 +245,7 @@ class MockWallets extends _i1.Mock implements _i14.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i15.Coin? coin}) => + List getWalletIdsFor({required _i16.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -242,18 +255,18 @@ class MockWallets extends _i1.Mock implements _i14.Wallets { returnValue: [], ) as List); @override - Map<_i15.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> + Map<_i16.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i15.Coin, + returnValue: <_i16.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>{}, - ) as Map<_i15.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); + ) as Map<_i16.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i15.Coin? coin) => + _i16.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -317,17 +330,17 @@ class MockWallets extends _i1.Mock implements _i14.Wallets { returnValueForMissingStub: null, ); @override - _i16.Future load(_i17.Prefs? prefs) => (super.noSuchMethod( + _i17.Future load(_i18.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future loadAfterStackRestore( - _i17.Prefs? prefs, + _i17.Future loadAfterStackRestore( + _i18.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -338,11 +351,11 @@ class MockWallets extends _i1.Mock implements _i14.Wallets { managers, ], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - void addListener(_i18.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -350,7 +363,7 @@ class MockWallets extends _i1.Mock implements _i14.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -376,19 +389,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i16.Future> get walletNames => + _i17.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i16.Future>.value( + returnValue: _i17.Future>.value( {}), - ) as _i16.Future>); + ) as _i17.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i16.Future renameWallet({ + _i17.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -403,13 +416,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i17.Future.value(false), + ) as _i17.Future); @override - _i16.Future addExistingStackWallet({ + _i17.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i15.Coin? coin, + required _i16.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -423,13 +436,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future addNewWallet({ + _i17.Future addNewWallet({ required String? name, - required _i15.Coin? coin, + required _i16.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -442,46 +455,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i17.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i16.Future>.value([]), - ) as _i16.Future>); + returnValue: _i17.Future>.value([]), + ) as _i17.Future>); @override - _i16.Future saveFavoriteWalletIds(List? walletIds) => + _i17.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i17.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i17.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future moveFavorite({ + _i17.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -494,48 +507,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i17.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i17.Future.value(false), + ) as _i17.Future); @override - _i16.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i17.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future isMnemonicVerified({required String? walletId}) => + _i17.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i17.Future.value(false), + ) as _i17.Future); @override - _i16.Future setMnemonicVerified({required String? walletId}) => + _i17.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future deleteWallet( + _i17.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -547,20 +560,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i16.Future.value(0), - ) as _i16.Future); + returnValue: _i17.Future.value(0), + ) as _i17.Future); @override - _i16.Future refreshWallets(bool? shouldNotifyListeners) => + _i17.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - void addListener(_i18.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -568,7 +581,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -596,13 +609,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 _i19.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i16.Timer? _timer) => super.noSuchMethod( + set timer(_i17.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -679,59 +692,59 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { returnValue: false, ) as bool); @override - _i15.Coin get coin => (super.noSuchMethod( + _i16.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i15.Coin.bitcoin, - ) as _i15.Coin); + returnValue: _i16.Coin.bitcoin, + ) as _i16.Coin); @override - _i16.Future> get utxos => (super.noSuchMethod( + _i17.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i16.Future>.value(<_i20.UTXO>[]), - ) as _i16.Future>); + returnValue: _i17.Future>.value(<_i21.UTXO>[]), + ) as _i17.Future>); @override - _i16.Future> get transactions => (super.noSuchMethod( + _i17.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i16.Future>.value(<_i20.Transaction>[]), - ) as _i16.Future>); + _i17.Future>.value(<_i21.Transaction>[]), + ) as _i17.Future>); @override - _i16.Future get currentReceivingAddress => (super.noSuchMethod( + _i17.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i16.Future.value(''), - ) as _i16.Future); + returnValue: _i17.Future.value(''), + ) as _i17.Future); @override - _i16.Future get currentChangeAddress => (super.noSuchMethod( + _i17.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i16.Future.value(''), - ) as _i16.Future); + returnValue: _i17.Future.value(''), + ) as _i17.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i16.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i17.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i16.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i17.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i16.Future<_i8.FeeObject>); + ) as _i17.Future<_i8.FeeObject>); @override - _i16.Future get maxFee => (super.noSuchMethod( + _i17.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i16.Future.value(0), - ) as _i16.Future); + returnValue: _i17.Future.value(0), + ) as _i17.Future); @override - _i16.Future> get mnemonic => (super.noSuchMethod( + _i17.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i16.Future>.value([]), - ) as _i16.Future>); + returnValue: _i17.Future>.value([]), + ) as _i17.Future>); @override - _i16.Future get chainHeight => (super.noSuchMethod( + _i17.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i16.Future.value(0), - ) as _i16.Future); + returnValue: _i17.Future.value(0), + ) as _i17.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -820,26 +833,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { ), ) as _i12.MainDB); @override - _i16.Future exit() => (super.noSuchMethod( + _i17.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i19.DerivePathType addressType({required String? address}) => + _i22.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i19.DerivePathType.bip44, - ) as _i19.DerivePathType); + returnValue: _i22.DerivePathType.bip44, + ) as _i22.DerivePathType); @override - _i16.Future recoverFromMnemonic({ + _i17.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -856,47 +869,47 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { #height: height, }, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future getTransactionCacheEarly(List? allAddresses) => + _i17.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i17.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i17.Future.value(false), + ) as _i17.Future); @override - _i16.Future getAllTxsToWatch() => (super.noSuchMethod( + _i17.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future refresh() => (super.noSuchMethod( + _i17.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future> prepareSend({ + _i17.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -912,26 +925,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { }, ), returnValue: - _i16.Future>.value({}), - ) as _i16.Future>); + _i17.Future>.value({}), + ) as _i17.Future>); @override - _i16.Future confirmSend({required Map? txData}) => + _i17.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i16.Future.value(''), - ) as _i16.Future); + returnValue: _i17.Future.value(''), + ) as _i17.Future); @override - _i16.Future testNetworkConnection() => (super.noSuchMethod( + _i17.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i17.Future.value(false), + ) as _i17.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -949,33 +962,33 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i16.Future initializeNew() => (super.noSuchMethod( + _i17.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future initializeExisting() => (super.noSuchMethod( + _i17.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future updateSentCachedTxData(Map? txData) => + _i17.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -985,35 +998,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { returnValue: false, ) as bool); @override - _i16.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i17.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), - returnValue: _i16.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_10( + returnValue: _i17.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_10( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i16.Future<_i9.ElectrumXNode>); + ) as _i17.Future<_i9.ElectrumXNode>); @override - _i16.Future addDerivation({ + _i17.Future addDerivation({ required int? chain, required String? address, required String? pubKey, required String? wif, - required _i19.DerivePathType? derivePathType, + required _i22.DerivePathType? derivePathType, }) => (super.noSuchMethod( Invocation.method( @@ -1027,13 +1040,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { #derivePathType: derivePathType, }, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future addDerivations({ + _i17.Future addDerivations({ required int? chain, - required _i19.DerivePathType? derivePathType, + required _i22.DerivePathType? derivePathType, required Map? derivationsToAdd, }) => (super.noSuchMethod( @@ -1046,50 +1059,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { #derivationsToAdd: derivationsToAdd, }, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future>> fastFetch( + _i17.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i16.Future>>.value( + returnValue: _i17.Future>>.value( >[]), - ) as _i16.Future>>); + ) as _i17.Future>>); @override - _i16.Future getTxCount({required String? address}) => + _i17.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i16.Future.value(0), - ) as _i16.Future); + returnValue: _i17.Future.value(0), + ) as _i17.Future); @override - _i16.Future checkCurrentReceivingAddressesForTransactions() => + _i17.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future checkCurrentChangeAddressesForTransactions() => + _i17.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override int estimateTxFee({ required int? vSize, @@ -1113,7 +1126,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { String? _recipientAddress, bool? isSendAll, { int? additionalOutputs = 0, - List<_i20.UTXO>? utxos, + List<_i21.UTXO>? utxos, }) => super.noSuchMethod(Invocation.method( #coinSelection, @@ -1129,19 +1142,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { }, )); @override - _i16.Future> fetchBuildTxData( - List<_i20.UTXO>? utxosToUse) => + _i17.Future> fetchBuildTxData( + List<_i21.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( #fetchBuildTxData, [utxosToUse], ), returnValue: - _i16.Future>.value({}), - ) as _i16.Future>); + _i17.Future>.value({}), + ) as _i17.Future>); @override - _i16.Future> buildTransaction({ - required List<_i20.UTXO>? utxosToUse, + _i17.Future> buildTransaction({ + required List<_i21.UTXO>? utxosToUse, required Map? utxoSigningData, required List? recipients, required List? satoshiAmounts, @@ -1158,10 +1171,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { }, ), returnValue: - _i16.Future>.value({}), - ) as _i16.Future>); + _i17.Future>.value({}), + ) as _i17.Future>); @override - _i16.Future fullRescan( + _i17.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1173,11 +1186,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future estimateFeeFor( + _i17.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1189,8 +1202,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { feeRate, ], ), - returnValue: _i16.Future.value(0), - ) as _i16.Future); + returnValue: _i17.Future.value(0), + ) as _i17.Future); @override int roughFeeEstimate( int? inputCount, @@ -1209,25 +1222,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { returnValue: 0, ) as int); @override - _i16.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( + _i17.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i16.Future.value(0), - ) as _i16.Future); + returnValue: _i17.Future.value(0), + ) as _i17.Future); @override - _i16.Future generateNewAddress() => (super.noSuchMethod( + _i17.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i17.Future.value(false), + ) as _i17.Future); @override void initCache( String? walletId, - _i15.Coin? coin, + _i16.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1240,14 +1253,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i16.Future updateCachedId(String? id) => (super.noSuchMethod( + _i17.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1257,14 +1270,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { returnValue: 0, ) as int); @override - _i16.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i17.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1274,15 +1287,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { returnValue: false, ) as bool); @override - _i16.Future updateCachedIsFavorite(bool? isFavorite) => + _i17.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override _i11.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1298,15 +1311,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { ), ) as _i11.Balance); @override - _i16.Future updateCachedBalance(_i11.Balance? balance) => + _i17.Future updateCachedBalance(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1322,15 +1335,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { ), ) as _i11.Balance); @override - _i16.Future updateCachedBalanceSecondary(_i11.Balance? balance) => + _i17.Future updateCachedBalanceSecondary(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1340,6 +1353,49 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { ), returnValueForMissingStub: null, ); + @override + _i17.Future< + _i13.Tuple4<_i21.Transaction, List<_i21.Output>, List<_i21.Input>, + _i21.Address>> parseTransaction( + Map? txData, + dynamic electrumxClient, + List<_i21.Address>? myAddresses, + _i16.Coin? coin, + int? minConfirms, + String? walletId, + ) => + (super.noSuchMethod( + Invocation.method( + #parseTransaction, + [ + txData, + electrumxClient, + myAddresses, + coin, + minConfirms, + walletId, + ], + ), + returnValue: _i17.Future< + _i13.Tuple4<_i21.Transaction, List<_i21.Output>, List<_i21.Input>, + _i21.Address>>.value(_FakeTuple4_11<_i21.Transaction, + List<_i21.Output>, List<_i21.Input>, _i21.Address>( + this, + Invocation.method( + #parseTransaction, + [ + txData, + electrumxClient, + myAddresses, + coin, + minConfirms, + walletId, + ], + ), + )), + ) as _i17.Future< + _i13.Tuple4<_i21.Transaction, List<_i21.Output>, List<_i21.Input>, + _i21.Address>>); } /// A class which mocks [Manager]. @@ -1360,23 +1416,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i13.CoinServiceAPI get wallet => (super.noSuchMethod( + _i14.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_11( + returnValue: _FakeCoinServiceAPI_12( this, Invocation.getter(#wallet), ), - ) as _i13.CoinServiceAPI); + ) as _i14.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i15.Coin get coin => (super.noSuchMethod( + _i16.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i15.Coin.bitcoin, - ) as _i15.Coin); + returnValue: _i16.Coin.bitcoin, + ) as _i16.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -1409,23 +1465,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i16.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i17.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i16.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i17.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i16.Future<_i8.FeeObject>); + ) as _i17.Future<_i8.FeeObject>); @override - _i16.Future get maxFee => (super.noSuchMethod( + _i17.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i16.Future.value(0), - ) as _i16.Future); + returnValue: _i17.Future.value(0), + ) as _i17.Future); @override - _i16.Future get currentReceivingAddress => (super.noSuchMethod( + _i17.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i16.Future.value(''), - ) as _i16.Future); + returnValue: _i17.Future.value(''), + ) as _i17.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -1435,16 +1491,16 @@ class MockManager extends _i1.Mock implements _i6.Manager { ), ) as _i11.Balance); @override - _i16.Future> get transactions => (super.noSuchMethod( + _i17.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i16.Future>.value(<_i20.Transaction>[]), - ) as _i16.Future>); + _i17.Future>.value(<_i21.Transaction>[]), + ) as _i17.Future>); @override - _i16.Future> get utxos => (super.noSuchMethod( + _i17.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i16.Future>.value(<_i20.UTXO>[]), - ) as _i16.Future>); + returnValue: _i17.Future>.value(<_i21.UTXO>[]), + ) as _i17.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -1464,10 +1520,10 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i16.Future> get mnemonic => (super.noSuchMethod( + _i17.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i16.Future>.value([]), - ) as _i16.Future>); + returnValue: _i17.Future>.value([]), + ) as _i17.Future>); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -1479,19 +1535,24 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i16.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -1501,7 +1562,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i16.Future> prepareSend({ + _i17.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -1517,27 +1578,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i16.Future>.value({}), - ) as _i16.Future>); + _i17.Future>.value({}), + ) as _i17.Future>); @override - _i16.Future confirmSend({required Map? txData}) => + _i17.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i16.Future.value(''), - ) as _i16.Future); + returnValue: _i17.Future.value(''), + ) as _i17.Future); @override - _i16.Future refresh() => (super.noSuchMethod( + _i17.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1547,33 +1608,33 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i16.Future testNetworkConnection() => (super.noSuchMethod( + _i17.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i17.Future.value(false), + ) as _i17.Future); @override - _i16.Future initializeNew() => (super.noSuchMethod( + _i17.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future initializeExisting() => (super.noSuchMethod( + _i17.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future recoverFromMnemonic({ + _i17.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -1590,20 +1651,20 @@ class MockManager extends _i1.Mock implements _i6.Manager { #height: height, }, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future exitCurrentWallet() => (super.noSuchMethod( + _i17.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future fullRescan( + _i17.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1615,11 +1676,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future estimateFeeFor( + _i17.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1631,18 +1692,18 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i16.Future.value(0), - ) as _i16.Future); + returnValue: _i17.Future.value(0), + ) as _i17.Future); @override - _i16.Future generateNewAddress() => (super.noSuchMethod( + _i17.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i17.Future.value(false), + ) as _i17.Future); @override - void addListener(_i18.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1650,7 +1711,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1670,7 +1731,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 _i13.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -1681,10 +1742,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i13.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i15.Coin get coin => (super.noSuchMethod( + _i16.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i15.Coin.bitcoin, - ) as _i15.Coin); + returnValue: _i16.Coin.bitcoin, + ) as _i16.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -1717,23 +1778,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i13.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i16.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i17.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i16.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i17.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i16.Future<_i8.FeeObject>); + ) as _i17.Future<_i8.FeeObject>); @override - _i16.Future get maxFee => (super.noSuchMethod( + _i17.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i16.Future.value(0), - ) as _i16.Future); + returnValue: _i17.Future.value(0), + ) as _i17.Future); @override - _i16.Future get currentReceivingAddress => (super.noSuchMethod( + _i17.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i16.Future.value(''), - ) as _i16.Future); + returnValue: _i17.Future.value(''), + ) as _i17.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -1743,16 +1804,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i13.CoinServiceAPI { ), ) as _i11.Balance); @override - _i16.Future> get transactions => (super.noSuchMethod( + _i17.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i16.Future>.value(<_i20.Transaction>[]), - ) as _i16.Future>); + _i17.Future>.value(<_i21.Transaction>[]), + ) as _i17.Future>); @override - _i16.Future> get utxos => (super.noSuchMethod( + _i17.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i16.Future>.value(<_i20.UTXO>[]), - ) as _i16.Future>); + returnValue: _i17.Future>.value(<_i21.UTXO>[]), + ) as _i17.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -1772,10 +1833,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i13.CoinServiceAPI { returnValue: '', ) as String); @override - _i16.Future> get mnemonic => (super.noSuchMethod( + _i17.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i16.Future>.value([]), - ) as _i16.Future>); + returnValue: _i17.Future>.value([]), + ) as _i17.Future>); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -1792,7 +1853,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i13.CoinServiceAPI { returnValue: 0, ) as int); @override - _i16.Future> prepareSend({ + _i17.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -1808,36 +1869,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i13.CoinServiceAPI { }, ), returnValue: - _i16.Future>.value({}), - ) as _i16.Future>); + _i17.Future>.value({}), + ) as _i17.Future>); @override - _i16.Future confirmSend({required Map? txData}) => + _i17.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i16.Future.value(''), - ) as _i16.Future); + returnValue: _i17.Future.value(''), + ) as _i17.Future); @override - _i16.Future refresh() => (super.noSuchMethod( + _i17.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1847,15 +1908,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i13.CoinServiceAPI { returnValue: false, ) as bool); @override - _i16.Future testNetworkConnection() => (super.noSuchMethod( + _i17.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i17.Future.value(false), + ) as _i17.Future); @override - _i16.Future recoverFromMnemonic({ + _i17.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -1872,38 +1933,38 @@ class MockCoinServiceAPI extends _i1.Mock implements _i13.CoinServiceAPI { #height: height, }, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future initializeNew() => (super.noSuchMethod( + _i17.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future initializeExisting() => (super.noSuchMethod( + _i17.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future exit() => (super.noSuchMethod( + _i17.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future fullRescan( + _i17.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1915,11 +1976,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i13.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); @override - _i16.Future estimateFeeFor( + _i17.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1931,24 +1992,24 @@ class MockCoinServiceAPI extends _i1.Mock implements _i13.CoinServiceAPI { feeRate, ], ), - returnValue: _i16.Future.value(0), - ) as _i16.Future); + returnValue: _i17.Future.value(0), + ) as _i17.Future); @override - _i16.Future generateNewAddress() => (super.noSuchMethod( + _i17.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i17.Future.value(false), + ) as _i17.Future); @override - _i16.Future updateSentCachedTxData(Map? txData) => + _i17.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i17.Future.value(), + returnValueForMissingStub: _i17.Future.value(), + ) as _i17.Future); } diff --git a/test/widget_tests/transaction_card_test.mocks.dart b/test/widget_tests/transaction_card_test.mocks.dart index c3b2cce4b..1ef218b2d 100644 --- a/test/widget_tests/transaction_card_test.mocks.dart +++ b/test/widget_tests/transaction_card_test.mocks.dart @@ -538,6 +538,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/widget_tests/wallet_card_test.mocks.dart b/test/widget_tests/wallet_card_test.mocks.dart index 5a5d048b3..2bffe7a06 100644 --- a/test/widget_tests/wallet_card_test.mocks.dart +++ b/test/widget_tests/wallet_card_test.mocks.dart @@ -3,8 +3,8 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i15; -import 'dart:ui' as _i17; +import 'dart:async' as _i16; +import 'dart:ui' as _i18; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; @@ -13,18 +13,20 @@ import 'package:stackwallet/db/main_db.dart' as _i12; 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 _i19; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i20; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i18; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i19; import 'package:stackwallet/services/coins/manager.dart' as _i6; -import 'package:stackwallet/services/locale_service.dart' as _i20; +import 'package:stackwallet/services/locale_service.dart' as _i22; 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 _i13; +import 'package:stackwallet/services/wallets.dart' as _i14; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i14; -import 'package:stackwallet/utilities/prefs.dart' as _i16; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i21; +import 'package:stackwallet/utilities/prefs.dart' as _i17; +import 'package:tuple/tuple.dart' as _i13; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -151,10 +153,21 @@ class _FakeElectrumXNode_10 extends _i1.SmartFake implements _i9.ElectrumXNode { ); } +class _FakeTuple4_11 extends _i1.SmartFake + implements _i13.Tuple4 { + _FakeTuple4_11( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i13.Wallets { +class MockWallets extends _i1.Mock implements _i14.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -221,7 +234,7 @@ class MockWallets extends _i1.Mock implements _i13.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i14.Coin? coin}) => + List getWalletIdsFor({required _i15.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -231,18 +244,18 @@ class MockWallets extends _i1.Mock implements _i13.Wallets { returnValue: [], ) as List); @override - Map<_i14.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> + Map<_i15.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i14.Coin, + returnValue: <_i15.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>{}, - ) as Map<_i14.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); + ) as Map<_i15.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i14.Coin? coin) => + _i15.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -306,17 +319,17 @@ class MockWallets extends _i1.Mock implements _i13.Wallets { returnValueForMissingStub: null, ); @override - _i15.Future load(_i16.Prefs? prefs) => (super.noSuchMethod( + _i16.Future load(_i17.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - _i15.Future loadAfterStackRestore( - _i16.Prefs? prefs, + _i16.Future loadAfterStackRestore( + _i17.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -327,11 +340,11 @@ class MockWallets extends _i1.Mock implements _i13.Wallets { managers, ], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -339,7 +352,7 @@ class MockWallets extends _i1.Mock implements _i13.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -359,13 +372,13 @@ class MockWallets extends _i1.Mock implements _i13.Wallets { /// A class which mocks [BitcoinWallet]. /// /// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i15.Timer? _timer) => super.noSuchMethod( + set timer(_i16.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -442,59 +455,59 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { returnValue: false, ) as bool); @override - _i14.Coin get coin => (super.noSuchMethod( + _i15.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i14.Coin.bitcoin, - ) as _i14.Coin); + returnValue: _i15.Coin.bitcoin, + ) as _i15.Coin); @override - _i15.Future> get utxos => (super.noSuchMethod( + _i16.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i15.Future>.value(<_i19.UTXO>[]), - ) as _i15.Future>); + returnValue: _i16.Future>.value(<_i20.UTXO>[]), + ) as _i16.Future>); @override - _i15.Future> get transactions => (super.noSuchMethod( + _i16.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i15.Future>.value(<_i19.Transaction>[]), - ) as _i15.Future>); + _i16.Future>.value(<_i20.Transaction>[]), + ) as _i16.Future>); @override - _i15.Future get currentReceivingAddress => (super.noSuchMethod( + _i16.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i15.Future.value(''), - ) as _i15.Future); + returnValue: _i16.Future.value(''), + ) as _i16.Future); @override - _i15.Future get currentChangeAddress => (super.noSuchMethod( + _i16.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i15.Future.value(''), - ) as _i15.Future); + returnValue: _i16.Future.value(''), + ) as _i16.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i15.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i16.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i15.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i16.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i15.Future<_i8.FeeObject>); + ) as _i16.Future<_i8.FeeObject>); @override - _i15.Future get maxFee => (super.noSuchMethod( + _i16.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i15.Future.value(0), - ) as _i15.Future); + returnValue: _i16.Future.value(0), + ) as _i16.Future); @override - _i15.Future> get mnemonic => (super.noSuchMethod( + _i16.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i15.Future>.value([]), - ) as _i15.Future>); + returnValue: _i16.Future>.value([]), + ) as _i16.Future>); @override - _i15.Future get chainHeight => (super.noSuchMethod( + _i16.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i15.Future.value(0), - ) as _i15.Future); + returnValue: _i16.Future.value(0), + ) as _i16.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -583,26 +596,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { ), ) as _i12.MainDB); @override - _i15.Future exit() => (super.noSuchMethod( + _i16.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - _i18.DerivePathType addressType({required String? address}) => + _i21.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i18.DerivePathType.bip44, - ) as _i18.DerivePathType); + returnValue: _i21.DerivePathType.bip44, + ) as _i21.DerivePathType); @override - _i15.Future recoverFromMnemonic({ + _i16.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -619,47 +632,47 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { #height: height, }, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - _i15.Future getTransactionCacheEarly(List? allAddresses) => + _i16.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - _i15.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i16.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i15.Future.value(false), - ) as _i15.Future); + returnValue: _i16.Future.value(false), + ) as _i16.Future); @override - _i15.Future getAllTxsToWatch() => (super.noSuchMethod( + _i16.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - _i15.Future refresh() => (super.noSuchMethod( + _i16.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - _i15.Future> prepareSend({ + _i16.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -675,26 +688,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { }, ), returnValue: - _i15.Future>.value({}), - ) as _i15.Future>); + _i16.Future>.value({}), + ) as _i16.Future>); @override - _i15.Future confirmSend({required Map? txData}) => + _i16.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i15.Future.value(''), - ) as _i15.Future); + returnValue: _i16.Future.value(''), + ) as _i16.Future); @override - _i15.Future testNetworkConnection() => (super.noSuchMethod( + _i16.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i15.Future.value(false), - ) as _i15.Future); + returnValue: _i16.Future.value(false), + ) as _i16.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -712,33 +725,33 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i15.Future initializeNew() => (super.noSuchMethod( + _i16.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - _i15.Future initializeExisting() => (super.noSuchMethod( + _i16.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - _i15.Future updateSentCachedTxData(Map? txData) => + _i16.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -748,35 +761,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { returnValue: false, ) as bool); @override - _i15.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i16.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - _i15.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i16.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), - returnValue: _i15.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_10( + returnValue: _i16.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_10( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i15.Future<_i9.ElectrumXNode>); + ) as _i16.Future<_i9.ElectrumXNode>); @override - _i15.Future addDerivation({ + _i16.Future addDerivation({ required int? chain, required String? address, required String? pubKey, required String? wif, - required _i18.DerivePathType? derivePathType, + required _i21.DerivePathType? derivePathType, }) => (super.noSuchMethod( Invocation.method( @@ -790,13 +803,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { #derivePathType: derivePathType, }, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - _i15.Future addDerivations({ + _i16.Future addDerivations({ required int? chain, - required _i18.DerivePathType? derivePathType, + required _i21.DerivePathType? derivePathType, required Map? derivationsToAdd, }) => (super.noSuchMethod( @@ -809,50 +822,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { #derivationsToAdd: derivationsToAdd, }, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - _i15.Future>> fastFetch( + _i16.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i15.Future>>.value( + returnValue: _i16.Future>>.value( >[]), - ) as _i15.Future>>); + ) as _i16.Future>>); @override - _i15.Future getTxCount({required String? address}) => + _i16.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i15.Future.value(0), - ) as _i15.Future); + returnValue: _i16.Future.value(0), + ) as _i16.Future); @override - _i15.Future checkCurrentReceivingAddressesForTransactions() => + _i16.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - _i15.Future checkCurrentChangeAddressesForTransactions() => + _i16.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override int estimateTxFee({ required int? vSize, @@ -876,7 +889,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { String? _recipientAddress, bool? isSendAll, { int? additionalOutputs = 0, - List<_i19.UTXO>? utxos, + List<_i20.UTXO>? utxos, }) => super.noSuchMethod(Invocation.method( #coinSelection, @@ -892,19 +905,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { }, )); @override - _i15.Future> fetchBuildTxData( - List<_i19.UTXO>? utxosToUse) => + _i16.Future> fetchBuildTxData( + List<_i20.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( #fetchBuildTxData, [utxosToUse], ), returnValue: - _i15.Future>.value({}), - ) as _i15.Future>); + _i16.Future>.value({}), + ) as _i16.Future>); @override - _i15.Future> buildTransaction({ - required List<_i19.UTXO>? utxosToUse, + _i16.Future> buildTransaction({ + required List<_i20.UTXO>? utxosToUse, required Map? utxoSigningData, required List? recipients, required List? satoshiAmounts, @@ -921,10 +934,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { }, ), returnValue: - _i15.Future>.value({}), - ) as _i15.Future>); + _i16.Future>.value({}), + ) as _i16.Future>); @override - _i15.Future fullRescan( + _i16.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -936,11 +949,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - _i15.Future estimateFeeFor( + _i16.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -952,8 +965,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { feeRate, ], ), - returnValue: _i15.Future.value(0), - ) as _i15.Future); + returnValue: _i16.Future.value(0), + ) as _i16.Future); @override int roughFeeEstimate( int? inputCount, @@ -972,25 +985,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { returnValue: 0, ) as int); @override - _i15.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( + _i16.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i15.Future.value(0), - ) as _i15.Future); + returnValue: _i16.Future.value(0), + ) as _i16.Future); @override - _i15.Future generateNewAddress() => (super.noSuchMethod( + _i16.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i15.Future.value(false), - ) as _i15.Future); + returnValue: _i16.Future.value(false), + ) as _i16.Future); @override void initCache( String? walletId, - _i14.Coin? coin, + _i15.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1003,14 +1016,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i15.Future updateCachedId(String? id) => (super.noSuchMethod( + _i16.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1020,14 +1033,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { returnValue: 0, ) as int); @override - _i15.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i16.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1037,15 +1050,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { returnValue: false, ) as bool); @override - _i15.Future updateCachedIsFavorite(bool? isFavorite) => + _i16.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override _i11.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1061,15 +1074,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { ), ) as _i11.Balance); @override - _i15.Future updateCachedBalance(_i11.Balance? balance) => + _i16.Future updateCachedBalance(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1085,15 +1098,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { ), ) as _i11.Balance); @override - _i15.Future updateCachedBalanceSecondary(_i11.Balance? balance) => + _i16.Future updateCachedBalanceSecondary(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1103,12 +1116,55 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { ), returnValueForMissingStub: null, ); + @override + _i16.Future< + _i13.Tuple4<_i20.Transaction, List<_i20.Output>, List<_i20.Input>, + _i20.Address>> parseTransaction( + Map? txData, + dynamic electrumxClient, + List<_i20.Address>? myAddresses, + _i15.Coin? coin, + int? minConfirms, + String? walletId, + ) => + (super.noSuchMethod( + Invocation.method( + #parseTransaction, + [ + txData, + electrumxClient, + myAddresses, + coin, + minConfirms, + walletId, + ], + ), + returnValue: _i16.Future< + _i13.Tuple4<_i20.Transaction, List<_i20.Output>, List<_i20.Input>, + _i20.Address>>.value(_FakeTuple4_11<_i20.Transaction, + List<_i20.Output>, List<_i20.Input>, _i20.Address>( + this, + Invocation.method( + #parseTransaction, + [ + txData, + electrumxClient, + myAddresses, + coin, + minConfirms, + walletId, + ], + ), + )), + ) as _i16.Future< + _i13.Tuple4<_i20.Transaction, List<_i20.Output>, List<_i20.Input>, + _i20.Address>>); } /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i20.LocaleService { +class MockLocaleService extends _i1.Mock implements _i22.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -1124,17 +1180,17 @@ class MockLocaleService extends _i1.Mock implements _i20.LocaleService { returnValue: false, ) as bool); @override - _i15.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i16.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); @override - void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1142,7 +1198,7 @@ class MockLocaleService extends _i1.Mock implements _i20.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i18.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 41f874146..5f2b9b7f5 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,8 +3,8 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i17; -import 'dart:ui' as _i19; +import 'dart:async' as _i18; +import 'dart:ui' as _i20; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; @@ -13,21 +13,23 @@ import 'package:stackwallet/db/main_db.dart' as _i12; 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 _i21; -import 'package:stackwallet/models/node_model.dart' as _i22; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i22; +import 'package:stackwallet/models/node_model.dart' as _i24; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i20; -import 'package:stackwallet/services/coins/coin_service.dart' as _i14; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i21; +import 'package:stackwallet/services/coins/coin_service.dart' as _i15; 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 _i15; +import 'package:stackwallet/services/wallets.dart' as _i16; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i17; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i23; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i13; -import 'package:stackwallet/utilities/prefs.dart' as _i18; + as _i14; +import 'package:stackwallet/utilities/prefs.dart' as _i19; +import 'package:tuple/tuple.dart' as _i13; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -154,9 +156,9 @@ class _FakeElectrumXNode_10 extends _i1.SmartFake implements _i9.ElectrumXNode { ); } -class _FakeSecureStorageInterface_11 extends _i1.SmartFake - implements _i13.SecureStorageInterface { - _FakeSecureStorageInterface_11( +class _FakeTuple4_11 extends _i1.SmartFake + implements _i13.Tuple4 { + _FakeTuple4_11( Object parent, Invocation parentInvocation, ) : super( @@ -165,9 +167,20 @@ class _FakeSecureStorageInterface_11 extends _i1.SmartFake ); } -class _FakeCoinServiceAPI_12 extends _i1.SmartFake - implements _i14.CoinServiceAPI { - _FakeCoinServiceAPI_12( +class _FakeSecureStorageInterface_12 extends _i1.SmartFake + implements _i14.SecureStorageInterface { + _FakeSecureStorageInterface_12( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeCoinServiceAPI_13 extends _i1.SmartFake + implements _i15.CoinServiceAPI { + _FakeCoinServiceAPI_13( Object parent, Invocation parentInvocation, ) : super( @@ -179,7 +192,7 @@ class _FakeCoinServiceAPI_12 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 _i15.Wallets { +class MockWallets extends _i1.Mock implements _i16.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -246,7 +259,7 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i16.Coin? coin}) => + List getWalletIdsFor({required _i17.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -256,18 +269,18 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValue: [], ) as List); @override - Map<_i16.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> + Map<_i17.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i16.Coin, + returnValue: <_i17.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>{}, - ) as Map<_i16.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); + ) as Map<_i17.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i16.Coin? coin) => + _i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -331,17 +344,17 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValueForMissingStub: null, ); @override - _i17.Future load(_i18.Prefs? prefs) => (super.noSuchMethod( + _i18.Future load(_i19.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future loadAfterStackRestore( - _i18.Prefs? prefs, + _i18.Future loadAfterStackRestore( + _i19.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -352,11 +365,11 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { managers, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -364,7 +377,7 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -390,19 +403,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i17.Future> get walletNames => + _i18.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i17.Future>.value( + returnValue: _i18.Future>.value( {}), - ) as _i17.Future>); + ) as _i18.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i17.Future renameWallet({ + _i18.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -417,13 +430,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future addExistingStackWallet({ + _i18.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i16.Coin? coin, + required _i17.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -437,13 +450,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future addNewWallet({ + _i18.Future addNewWallet({ required String? name, - required _i16.Coin? coin, + required _i17.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -456,46 +469,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i18.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override - _i17.Future saveFavoriteWalletIds(List? walletIds) => + _i18.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i18.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i18.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future moveFavorite({ + _i18.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -508,48 +521,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i18.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i18.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future isMnemonicVerified({required String? walletId}) => + _i18.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future setMnemonicVerified({required String? walletId}) => + _i18.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future deleteWallet( + _i18.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -561,20 +574,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future refreshWallets(bool? shouldNotifyListeners) => + _i18.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -582,7 +595,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -610,13 +623,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 _i20.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i17.Timer? _timer) => super.noSuchMethod( + set timer(_i18.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -693,59 +706,59 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: false, ) as bool); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override - _i17.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i21.UTXO>[]), - ) as _i17.Future>); + returnValue: _i18.Future>.value(<_i22.UTXO>[]), + ) as _i18.Future>); @override - _i17.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i17.Future>.value(<_i21.Transaction>[]), - ) as _i17.Future>); + _i18.Future>.value(<_i22.Transaction>[]), + ) as _i18.Future>); @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( + _i18.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future get currentChangeAddress => (super.noSuchMethod( + _i18.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i17.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i18.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i17.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i18.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i17.Future<_i8.FeeObject>); + ) as _i18.Future<_i8.FeeObject>); @override - _i17.Future get maxFee => (super.noSuchMethod( + _i18.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future> get mnemonic => (super.noSuchMethod( + _i18.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override - _i17.Future get chainHeight => (super.noSuchMethod( + _i18.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -834,26 +847,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { ), ) as _i12.MainDB); @override - _i17.Future exit() => (super.noSuchMethod( + _i18.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i20.DerivePathType addressType({required String? address}) => + _i23.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i20.DerivePathType.bip44, - ) as _i20.DerivePathType); + returnValue: _i23.DerivePathType.bip44, + ) as _i23.DerivePathType); @override - _i17.Future recoverFromMnemonic({ + _i18.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -870,47 +883,47 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { #height: height, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future getTransactionCacheEarly(List? allAddresses) => + _i18.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i18.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future getAllTxsToWatch() => (super.noSuchMethod( + _i18.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future refresh() => (super.noSuchMethod( + _i18.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future> prepareSend({ + _i18.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -926,26 +939,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future confirmSend({required Map? txData}) => + _i18.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( + _i18.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -963,33 +976,33 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i17.Future initializeNew() => (super.noSuchMethod( + _i18.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeExisting() => (super.noSuchMethod( + _i18.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future updateSentCachedTxData(Map? txData) => + _i18.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -999,35 +1012,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: false, ) as bool); @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i18.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i18.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), - returnValue: _i17.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_10( + returnValue: _i18.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_10( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i17.Future<_i9.ElectrumXNode>); + ) as _i18.Future<_i9.ElectrumXNode>); @override - _i17.Future addDerivation({ + _i18.Future addDerivation({ required int? chain, required String? address, required String? pubKey, required String? wif, - required _i20.DerivePathType? derivePathType, + required _i23.DerivePathType? derivePathType, }) => (super.noSuchMethod( Invocation.method( @@ -1041,13 +1054,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { #derivePathType: derivePathType, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future addDerivations({ + _i18.Future addDerivations({ required int? chain, - required _i20.DerivePathType? derivePathType, + required _i23.DerivePathType? derivePathType, required Map? derivationsToAdd, }) => (super.noSuchMethod( @@ -1060,50 +1073,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { #derivationsToAdd: derivationsToAdd, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future>> fastFetch( + _i18.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i17.Future>>.value( + returnValue: _i18.Future>>.value( >[]), - ) as _i17.Future>>); + ) as _i18.Future>>); @override - _i17.Future getTxCount({required String? address}) => + _i18.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future checkCurrentReceivingAddressesForTransactions() => + _i18.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future checkCurrentChangeAddressesForTransactions() => + _i18.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override int estimateTxFee({ required int? vSize, @@ -1127,7 +1140,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { String? _recipientAddress, bool? isSendAll, { int? additionalOutputs = 0, - List<_i21.UTXO>? utxos, + List<_i22.UTXO>? utxos, }) => super.noSuchMethod(Invocation.method( #coinSelection, @@ -1143,19 +1156,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { }, )); @override - _i17.Future> fetchBuildTxData( - List<_i21.UTXO>? utxosToUse) => + _i18.Future> fetchBuildTxData( + List<_i22.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( #fetchBuildTxData, [utxosToUse], ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future> buildTransaction({ - required List<_i21.UTXO>? utxosToUse, + _i18.Future> buildTransaction({ + required List<_i22.UTXO>? utxosToUse, required Map? utxoSigningData, required List? recipients, required List? satoshiAmounts, @@ -1172,10 +1185,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future fullRescan( + _i18.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1187,11 +1200,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future estimateFeeFor( + _i18.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1203,8 +1216,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { feeRate, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override int roughFeeEstimate( int? inputCount, @@ -1223,25 +1236,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: 0, ) as int); @override - _i17.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( + _i18.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future generateNewAddress() => (super.noSuchMethod( + _i18.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override void initCache( String? walletId, - _i16.Coin? coin, + _i17.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1254,14 +1267,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i17.Future updateCachedId(String? id) => (super.noSuchMethod( + _i18.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1271,14 +1284,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: 0, ) as int); @override - _i17.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i18.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1288,15 +1301,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: false, ) as bool); @override - _i17.Future updateCachedIsFavorite(bool? isFavorite) => + _i18.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override _i11.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1312,15 +1325,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { ), ) as _i11.Balance); @override - _i17.Future updateCachedBalance(_i11.Balance? balance) => + _i18.Future updateCachedBalance(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1336,15 +1349,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { ), ) as _i11.Balance); @override - _i17.Future updateCachedBalanceSecondary(_i11.Balance? balance) => + _i18.Future updateCachedBalanceSecondary(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1354,6 +1367,49 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { ), returnValueForMissingStub: null, ); + @override + _i18.Future< + _i13.Tuple4<_i22.Transaction, List<_i22.Output>, List<_i22.Input>, + _i22.Address>> parseTransaction( + Map? txData, + dynamic electrumxClient, + List<_i22.Address>? myAddresses, + _i17.Coin? coin, + int? minConfirms, + String? walletId, + ) => + (super.noSuchMethod( + Invocation.method( + #parseTransaction, + [ + txData, + electrumxClient, + myAddresses, + coin, + minConfirms, + walletId, + ], + ), + returnValue: _i18.Future< + _i13.Tuple4<_i22.Transaction, List<_i22.Output>, List<_i22.Input>, + _i22.Address>>.value(_FakeTuple4_11<_i22.Transaction, + List<_i22.Output>, List<_i22.Input>, _i22.Address>( + this, + Invocation.method( + #parseTransaction, + [ + txData, + electrumxClient, + myAddresses, + coin, + minConfirms, + walletId, + ], + ), + )), + ) as _i18.Future< + _i13.Tuple4<_i22.Transaction, List<_i22.Output>, List<_i22.Input>, + _i22.Address>>); } /// A class which mocks [NodeService]. @@ -1361,41 +1417,41 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { /// See the documentation for Mockito's code generation for more information. class MockNodeService extends _i1.Mock implements _i3.NodeService { @override - _i13.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( + _i14.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( Invocation.getter(#secureStorageInterface), - returnValue: _FakeSecureStorageInterface_11( + returnValue: _FakeSecureStorageInterface_12( this, Invocation.getter(#secureStorageInterface), ), - ) as _i13.SecureStorageInterface); + ) as _i14.SecureStorageInterface); @override - List<_i22.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i24.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i22.NodeModel>[], - ) as List<_i22.NodeModel>); + returnValue: <_i24.NodeModel>[], + ) as List<_i24.NodeModel>); @override - List<_i22.NodeModel> get nodes => (super.noSuchMethod( + List<_i24.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i22.NodeModel>[], - ) as List<_i22.NodeModel>); + returnValue: <_i24.NodeModel>[], + ) as List<_i24.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i17.Future updateDefaults() => (super.noSuchMethod( + _i18.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future setPrimaryNodeFor({ - required _i16.Coin? coin, - required _i22.NodeModel? node, + _i18.Future setPrimaryNodeFor({ + required _i17.Coin? coin, + required _i24.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -1408,44 +1464,44 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i22.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) => + _i24.NodeModel? getPrimaryNodeFor({required _i17.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i22.NodeModel?); + )) as _i24.NodeModel?); @override - List<_i22.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod( + List<_i24.NodeModel> getNodesFor(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i22.NodeModel>[], - ) as List<_i22.NodeModel>); + returnValue: <_i24.NodeModel>[], + ) as List<_i24.NodeModel>); @override - _i22.NodeModel? getNodeById({required String? id}) => + _i24.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i22.NodeModel?); + )) as _i24.NodeModel?); @override - List<_i22.NodeModel> failoverNodesFor({required _i16.Coin? coin}) => + List<_i24.NodeModel> failoverNodesFor({required _i17.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i22.NodeModel>[], - ) as List<_i22.NodeModel>); + returnValue: <_i24.NodeModel>[], + ) as List<_i24.NodeModel>); @override - _i17.Future add( - _i22.NodeModel? node, + _i18.Future add( + _i24.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -1458,11 +1514,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future delete( + _i18.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -1474,11 +1530,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future setEnabledState( + _i18.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -1492,12 +1548,12 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future edit( - _i22.NodeModel? editedNode, + _i18.Future edit( + _i24.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -1510,20 +1566,20 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future updateCommunityNodes() => (super.noSuchMethod( + _i18.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1531,7 +1587,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1574,23 +1630,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i14.CoinServiceAPI get wallet => (super.noSuchMethod( + _i15.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_12( + returnValue: _FakeCoinServiceAPI_13( this, Invocation.getter(#wallet), ), - ) as _i14.CoinServiceAPI); + ) as _i15.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -1623,23 +1679,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i17.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i18.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i17.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i18.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i17.Future<_i8.FeeObject>); + ) as _i18.Future<_i8.FeeObject>); @override - _i17.Future get maxFee => (super.noSuchMethod( + _i18.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( + _i18.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -1649,16 +1705,16 @@ class MockManager extends _i1.Mock implements _i6.Manager { ), ) as _i11.Balance); @override - _i17.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i17.Future>.value(<_i21.Transaction>[]), - ) as _i17.Future>); + _i18.Future>.value(<_i22.Transaction>[]), + ) as _i18.Future>); @override - _i17.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i21.UTXO>[]), - ) as _i17.Future>); + returnValue: _i18.Future>.value(<_i22.UTXO>[]), + ) as _i18.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -1678,10 +1734,10 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i17.Future> get mnemonic => (super.noSuchMethod( + _i18.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -1693,19 +1749,24 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i18.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -1715,7 +1776,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i17.Future> prepareSend({ + _i18.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -1731,27 +1792,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future confirmSend({required Map? txData}) => + _i18.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future refresh() => (super.noSuchMethod( + _i18.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1761,33 +1822,33 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( + _i18.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future initializeNew() => (super.noSuchMethod( + _i18.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeExisting() => (super.noSuchMethod( + _i18.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future recoverFromMnemonic({ + _i18.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -1804,20 +1865,20 @@ class MockManager extends _i1.Mock implements _i6.Manager { #height: height, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future exitCurrentWallet() => (super.noSuchMethod( + _i18.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future fullRescan( + _i18.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1829,11 +1890,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future estimateFeeFor( + _i18.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1845,18 +1906,18 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future generateNewAddress() => (super.noSuchMethod( + _i18.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1864,7 +1925,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1884,7 +1945,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 _i14.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i15.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -1895,10 +1956,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -1931,23 +1992,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i17.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i18.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i17.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i18.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i17.Future<_i8.FeeObject>); + ) as _i18.Future<_i8.FeeObject>); @override - _i17.Future get maxFee => (super.noSuchMethod( + _i18.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( + _i18.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -1957,16 +2018,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { ), ) as _i11.Balance); @override - _i17.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i17.Future>.value(<_i21.Transaction>[]), - ) as _i17.Future>); + _i18.Future>.value(<_i22.Transaction>[]), + ) as _i18.Future>); @override - _i17.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i21.UTXO>[]), - ) as _i17.Future>); + returnValue: _i18.Future>.value(<_i22.UTXO>[]), + ) as _i18.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -1986,10 +2047,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValue: '', ) as String); @override - _i17.Future> get mnemonic => (super.noSuchMethod( + _i18.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2006,7 +2067,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValue: 0, ) as int); @override - _i17.Future> prepareSend({ + _i18.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2022,36 +2083,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future confirmSend({required Map? txData}) => + _i18.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future refresh() => (super.noSuchMethod( + _i18.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i18.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2061,15 +2122,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValue: false, ) as bool); @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( + _i18.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future recoverFromMnemonic({ + _i18.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -2086,38 +2147,38 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { #height: height, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeNew() => (super.noSuchMethod( + _i18.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeExisting() => (super.noSuchMethod( + _i18.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future exit() => (super.noSuchMethod( + _i18.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future fullRescan( + _i18.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2129,11 +2190,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future estimateFeeFor( + _i18.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2145,24 +2206,24 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { feeRate, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future generateNewAddress() => (super.noSuchMethod( + _i18.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future updateSentCachedTxData(Map? txData) => + _i18.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.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 3e88ef129..f510bde29 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,8 +3,8 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i17; -import 'dart:ui' as _i19; +import 'dart:async' as _i18; +import 'dart:ui' as _i20; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; @@ -13,21 +13,23 @@ import 'package:stackwallet/db/main_db.dart' as _i12; 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 _i21; -import 'package:stackwallet/models/node_model.dart' as _i22; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i22; +import 'package:stackwallet/models/node_model.dart' as _i24; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i20; -import 'package:stackwallet/services/coins/coin_service.dart' as _i14; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i21; +import 'package:stackwallet/services/coins/coin_service.dart' as _i15; 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 _i15; +import 'package:stackwallet/services/wallets.dart' as _i16; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i17; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i23; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i13; -import 'package:stackwallet/utilities/prefs.dart' as _i18; + as _i14; +import 'package:stackwallet/utilities/prefs.dart' as _i19; +import 'package:tuple/tuple.dart' as _i13; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -154,9 +156,9 @@ class _FakeElectrumXNode_10 extends _i1.SmartFake implements _i9.ElectrumXNode { ); } -class _FakeSecureStorageInterface_11 extends _i1.SmartFake - implements _i13.SecureStorageInterface { - _FakeSecureStorageInterface_11( +class _FakeTuple4_11 extends _i1.SmartFake + implements _i13.Tuple4 { + _FakeTuple4_11( Object parent, Invocation parentInvocation, ) : super( @@ -165,9 +167,20 @@ class _FakeSecureStorageInterface_11 extends _i1.SmartFake ); } -class _FakeCoinServiceAPI_12 extends _i1.SmartFake - implements _i14.CoinServiceAPI { - _FakeCoinServiceAPI_12( +class _FakeSecureStorageInterface_12 extends _i1.SmartFake + implements _i14.SecureStorageInterface { + _FakeSecureStorageInterface_12( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeCoinServiceAPI_13 extends _i1.SmartFake + implements _i15.CoinServiceAPI { + _FakeCoinServiceAPI_13( Object parent, Invocation parentInvocation, ) : super( @@ -179,7 +192,7 @@ class _FakeCoinServiceAPI_12 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 _i15.Wallets { +class MockWallets extends _i1.Mock implements _i16.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -246,7 +259,7 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i16.Coin? coin}) => + List getWalletIdsFor({required _i17.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -256,18 +269,18 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValue: [], ) as List); @override - Map<_i16.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> + Map<_i17.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i16.Coin, + returnValue: <_i17.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>{}, - ) as Map<_i16.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); + ) as Map<_i17.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i16.Coin? coin) => + _i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -331,17 +344,17 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValueForMissingStub: null, ); @override - _i17.Future load(_i18.Prefs? prefs) => (super.noSuchMethod( + _i18.Future load(_i19.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future loadAfterStackRestore( - _i18.Prefs? prefs, + _i18.Future loadAfterStackRestore( + _i19.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -352,11 +365,11 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { managers, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -364,7 +377,7 @@ class MockWallets extends _i1.Mock implements _i15.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -390,19 +403,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i17.Future> get walletNames => + _i18.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i17.Future>.value( + returnValue: _i18.Future>.value( {}), - ) as _i17.Future>); + ) as _i18.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i17.Future renameWallet({ + _i18.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -417,13 +430,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future addExistingStackWallet({ + _i18.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i16.Coin? coin, + required _i17.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -437,13 +450,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future addNewWallet({ + _i18.Future addNewWallet({ required String? name, - required _i16.Coin? coin, + required _i17.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -456,46 +469,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i18.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override - _i17.Future saveFavoriteWalletIds(List? walletIds) => + _i18.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i18.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i18.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future moveFavorite({ + _i18.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -508,48 +521,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i18.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i18.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future isMnemonicVerified({required String? walletId}) => + _i18.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future setMnemonicVerified({required String? walletId}) => + _i18.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future deleteWallet( + _i18.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -561,20 +574,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future refreshWallets(bool? shouldNotifyListeners) => + _i18.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -582,7 +595,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -610,13 +623,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 _i20.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i17.Timer? _timer) => super.noSuchMethod( + set timer(_i18.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -693,59 +706,59 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: false, ) as bool); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override - _i17.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i21.UTXO>[]), - ) as _i17.Future>); + returnValue: _i18.Future>.value(<_i22.UTXO>[]), + ) as _i18.Future>); @override - _i17.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i17.Future>.value(<_i21.Transaction>[]), - ) as _i17.Future>); + _i18.Future>.value(<_i22.Transaction>[]), + ) as _i18.Future>); @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( + _i18.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future get currentChangeAddress => (super.noSuchMethod( + _i18.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i17.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i18.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i17.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i18.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i17.Future<_i8.FeeObject>); + ) as _i18.Future<_i8.FeeObject>); @override - _i17.Future get maxFee => (super.noSuchMethod( + _i18.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future> get mnemonic => (super.noSuchMethod( + _i18.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override - _i17.Future get chainHeight => (super.noSuchMethod( + _i18.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -834,26 +847,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { ), ) as _i12.MainDB); @override - _i17.Future exit() => (super.noSuchMethod( + _i18.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i20.DerivePathType addressType({required String? address}) => + _i23.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i20.DerivePathType.bip44, - ) as _i20.DerivePathType); + returnValue: _i23.DerivePathType.bip44, + ) as _i23.DerivePathType); @override - _i17.Future recoverFromMnemonic({ + _i18.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -870,47 +883,47 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { #height: height, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future getTransactionCacheEarly(List? allAddresses) => + _i18.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i18.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future getAllTxsToWatch() => (super.noSuchMethod( + _i18.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future refresh() => (super.noSuchMethod( + _i18.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future> prepareSend({ + _i18.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -926,26 +939,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future confirmSend({required Map? txData}) => + _i18.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( + _i18.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -963,33 +976,33 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i17.Future initializeNew() => (super.noSuchMethod( + _i18.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeExisting() => (super.noSuchMethod( + _i18.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future updateSentCachedTxData(Map? txData) => + _i18.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -999,35 +1012,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: false, ) as bool); @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i18.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i18.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), - returnValue: _i17.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_10( + returnValue: _i18.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_10( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i17.Future<_i9.ElectrumXNode>); + ) as _i18.Future<_i9.ElectrumXNode>); @override - _i17.Future addDerivation({ + _i18.Future addDerivation({ required int? chain, required String? address, required String? pubKey, required String? wif, - required _i20.DerivePathType? derivePathType, + required _i23.DerivePathType? derivePathType, }) => (super.noSuchMethod( Invocation.method( @@ -1041,13 +1054,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { #derivePathType: derivePathType, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future addDerivations({ + _i18.Future addDerivations({ required int? chain, - required _i20.DerivePathType? derivePathType, + required _i23.DerivePathType? derivePathType, required Map? derivationsToAdd, }) => (super.noSuchMethod( @@ -1060,50 +1073,50 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { #derivationsToAdd: derivationsToAdd, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future>> fastFetch( + _i18.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i17.Future>>.value( + returnValue: _i18.Future>>.value( >[]), - ) as _i17.Future>>); + ) as _i18.Future>>); @override - _i17.Future getTxCount({required String? address}) => + _i18.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future checkCurrentReceivingAddressesForTransactions() => + _i18.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future checkCurrentChangeAddressesForTransactions() => + _i18.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override int estimateTxFee({ required int? vSize, @@ -1127,7 +1140,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { String? _recipientAddress, bool? isSendAll, { int? additionalOutputs = 0, - List<_i21.UTXO>? utxos, + List<_i22.UTXO>? utxos, }) => super.noSuchMethod(Invocation.method( #coinSelection, @@ -1143,19 +1156,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { }, )); @override - _i17.Future> fetchBuildTxData( - List<_i21.UTXO>? utxosToUse) => + _i18.Future> fetchBuildTxData( + List<_i22.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( #fetchBuildTxData, [utxosToUse], ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future> buildTransaction({ - required List<_i21.UTXO>? utxosToUse, + _i18.Future> buildTransaction({ + required List<_i22.UTXO>? utxosToUse, required Map? utxoSigningData, required List? recipients, required List? satoshiAmounts, @@ -1172,10 +1185,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future fullRescan( + _i18.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1187,11 +1200,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future estimateFeeFor( + _i18.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1203,8 +1216,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { feeRate, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override int roughFeeEstimate( int? inputCount, @@ -1223,25 +1236,25 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: 0, ) as int); @override - _i17.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( + _i18.Future sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future generateNewAddress() => (super.noSuchMethod( + _i18.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override void initCache( String? walletId, - _i16.Coin? coin, + _i17.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1254,14 +1267,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i17.Future updateCachedId(String? id) => (super.noSuchMethod( + _i18.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1271,14 +1284,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: 0, ) as int); @override - _i17.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i18.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1288,15 +1301,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValue: false, ) as bool); @override - _i17.Future updateCachedIsFavorite(bool? isFavorite) => + _i18.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override _i11.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1312,15 +1325,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { ), ) as _i11.Balance); @override - _i17.Future updateCachedBalance(_i11.Balance? balance) => + _i18.Future updateCachedBalance(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1336,15 +1349,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { ), ) as _i11.Balance); @override - _i17.Future updateCachedBalanceSecondary(_i11.Balance? balance) => + _i18.Future updateCachedBalanceSecondary(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1354,6 +1367,49 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { ), returnValueForMissingStub: null, ); + @override + _i18.Future< + _i13.Tuple4<_i22.Transaction, List<_i22.Output>, List<_i22.Input>, + _i22.Address>> parseTransaction( + Map? txData, + dynamic electrumxClient, + List<_i22.Address>? myAddresses, + _i17.Coin? coin, + int? minConfirms, + String? walletId, + ) => + (super.noSuchMethod( + Invocation.method( + #parseTransaction, + [ + txData, + electrumxClient, + myAddresses, + coin, + minConfirms, + walletId, + ], + ), + returnValue: _i18.Future< + _i13.Tuple4<_i22.Transaction, List<_i22.Output>, List<_i22.Input>, + _i22.Address>>.value(_FakeTuple4_11<_i22.Transaction, + List<_i22.Output>, List<_i22.Input>, _i22.Address>( + this, + Invocation.method( + #parseTransaction, + [ + txData, + electrumxClient, + myAddresses, + coin, + minConfirms, + walletId, + ], + ), + )), + ) as _i18.Future< + _i13.Tuple4<_i22.Transaction, List<_i22.Output>, List<_i22.Input>, + _i22.Address>>); } /// A class which mocks [NodeService]. @@ -1361,41 +1417,41 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { /// See the documentation for Mockito's code generation for more information. class MockNodeService extends _i1.Mock implements _i3.NodeService { @override - _i13.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( + _i14.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( Invocation.getter(#secureStorageInterface), - returnValue: _FakeSecureStorageInterface_11( + returnValue: _FakeSecureStorageInterface_12( this, Invocation.getter(#secureStorageInterface), ), - ) as _i13.SecureStorageInterface); + ) as _i14.SecureStorageInterface); @override - List<_i22.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i24.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i22.NodeModel>[], - ) as List<_i22.NodeModel>); + returnValue: <_i24.NodeModel>[], + ) as List<_i24.NodeModel>); @override - List<_i22.NodeModel> get nodes => (super.noSuchMethod( + List<_i24.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i22.NodeModel>[], - ) as List<_i22.NodeModel>); + returnValue: <_i24.NodeModel>[], + ) as List<_i24.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i17.Future updateDefaults() => (super.noSuchMethod( + _i18.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future setPrimaryNodeFor({ - required _i16.Coin? coin, - required _i22.NodeModel? node, + _i18.Future setPrimaryNodeFor({ + required _i17.Coin? coin, + required _i24.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -1408,44 +1464,44 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i22.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) => + _i24.NodeModel? getPrimaryNodeFor({required _i17.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i22.NodeModel?); + )) as _i24.NodeModel?); @override - List<_i22.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod( + List<_i24.NodeModel> getNodesFor(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i22.NodeModel>[], - ) as List<_i22.NodeModel>); + returnValue: <_i24.NodeModel>[], + ) as List<_i24.NodeModel>); @override - _i22.NodeModel? getNodeById({required String? id}) => + _i24.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i22.NodeModel?); + )) as _i24.NodeModel?); @override - List<_i22.NodeModel> failoverNodesFor({required _i16.Coin? coin}) => + List<_i24.NodeModel> failoverNodesFor({required _i17.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i22.NodeModel>[], - ) as List<_i22.NodeModel>); + returnValue: <_i24.NodeModel>[], + ) as List<_i24.NodeModel>); @override - _i17.Future add( - _i22.NodeModel? node, + _i18.Future add( + _i24.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -1458,11 +1514,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future delete( + _i18.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -1474,11 +1530,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future setEnabledState( + _i18.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -1492,12 +1548,12 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future edit( - _i22.NodeModel? editedNode, + _i18.Future edit( + _i24.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -1510,20 +1566,20 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future updateCommunityNodes() => (super.noSuchMethod( + _i18.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1531,7 +1587,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1574,23 +1630,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i14.CoinServiceAPI get wallet => (super.noSuchMethod( + _i15.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_12( + returnValue: _FakeCoinServiceAPI_13( this, Invocation.getter(#wallet), ), - ) as _i14.CoinServiceAPI); + ) as _i15.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -1623,23 +1679,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i17.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i18.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i17.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i18.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i17.Future<_i8.FeeObject>); + ) as _i18.Future<_i8.FeeObject>); @override - _i17.Future get maxFee => (super.noSuchMethod( + _i18.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( + _i18.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -1649,16 +1705,16 @@ class MockManager extends _i1.Mock implements _i6.Manager { ), ) as _i11.Balance); @override - _i17.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i17.Future>.value(<_i21.Transaction>[]), - ) as _i17.Future>); + _i18.Future>.value(<_i22.Transaction>[]), + ) as _i18.Future>); @override - _i17.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i21.UTXO>[]), - ) as _i17.Future>); + returnValue: _i18.Future>.value(<_i22.UTXO>[]), + ) as _i18.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -1678,10 +1734,10 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i17.Future> get mnemonic => (super.noSuchMethod( + _i18.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -1693,19 +1749,24 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: 0, ) as int); @override + bool get hasPaynymSupport => (super.noSuchMethod( + Invocation.getter(#hasPaynymSupport), + returnValue: false, + ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i18.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -1715,7 +1776,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i17.Future> prepareSend({ + _i18.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -1731,27 +1792,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future confirmSend({required Map? txData}) => + _i18.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future refresh() => (super.noSuchMethod( + _i18.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1761,33 +1822,33 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( + _i18.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future initializeNew() => (super.noSuchMethod( + _i18.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeExisting() => (super.noSuchMethod( + _i18.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future recoverFromMnemonic({ + _i18.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -1804,20 +1865,20 @@ class MockManager extends _i1.Mock implements _i6.Manager { #height: height, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future exitCurrentWallet() => (super.noSuchMethod( + _i18.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future fullRescan( + _i18.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1829,11 +1890,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future estimateFeeFor( + _i18.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -1845,18 +1906,18 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future generateNewAddress() => (super.noSuchMethod( + _i18.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1864,7 +1925,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1884,7 +1945,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 _i14.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i15.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -1895,10 +1956,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -1931,23 +1992,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i17.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i18.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i17.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i18.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i17.Future<_i8.FeeObject>); + ) as _i18.Future<_i8.FeeObject>); @override - _i17.Future get maxFee => (super.noSuchMethod( + _i18.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( + _i18.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -1957,16 +2018,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { ), ) as _i11.Balance); @override - _i17.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i17.Future>.value(<_i21.Transaction>[]), - ) as _i17.Future>); + _i18.Future>.value(<_i22.Transaction>[]), + ) as _i18.Future>); @override - _i17.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i21.UTXO>[]), - ) as _i17.Future>); + returnValue: _i18.Future>.value(<_i22.UTXO>[]), + ) as _i18.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -1986,10 +2047,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValue: '', ) as String); @override - _i17.Future> get mnemonic => (super.noSuchMethod( + _i18.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i18.Future>.value([]), + ) as _i18.Future>); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2006,7 +2067,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValue: 0, ) as int); @override - _i17.Future> prepareSend({ + _i18.Future> prepareSend({ required String? address, required int? satoshiAmount, Map? args, @@ -2022,36 +2083,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i18.Future>.value({}), + ) as _i18.Future>); @override - _i17.Future confirmSend({required Map? txData}) => + _i18.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i18.Future.value(''), + ) as _i18.Future); @override - _i17.Future refresh() => (super.noSuchMethod( + _i18.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i18.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2061,15 +2122,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { returnValue: false, ) as bool); @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( + _i18.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future recoverFromMnemonic({ + _i18.Future recoverFromMnemonic({ required String? mnemonic, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -2086,38 +2147,38 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { #height: height, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeNew() => (super.noSuchMethod( + _i18.Future initializeNew() => (super.noSuchMethod( Invocation.method( #initializeNew, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future initializeExisting() => (super.noSuchMethod( + _i18.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future exit() => (super.noSuchMethod( + _i18.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future fullRescan( + _i18.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2129,11 +2190,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); @override - _i17.Future estimateFeeFor( + _i18.Future estimateFeeFor( int? satoshiAmount, int? feeRate, ) => @@ -2145,24 +2206,24 @@ class MockCoinServiceAPI extends _i1.Mock implements _i14.CoinServiceAPI { feeRate, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i18.Future.value(0), + ) as _i18.Future); @override - _i17.Future generateNewAddress() => (super.noSuchMethod( + _i18.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i18.Future.value(false), + ) as _i18.Future); @override - _i17.Future updateSentCachedTxData(Map? txData) => + _i18.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i18.Future.value(), + returnValueForMissingStub: _i18.Future.value(), + ) as _i18.Future); }