From 62146887689fc1aa3eb808ae1b04e6cae08f59de Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 13 Sep 2023 10:58:02 -0600 Subject: [PATCH] fix price test and update mocks --- lib/services/price.dart | 3 +- test/cached_electrumx_test.mocks.dart | 8 +- test/electrumx_test.dart | 20 +- test/electrumx_test.mocks.dart | 18 +- .../notification_card_test.mocks.dart | 107 +- .../pages/send_view/send_view_test.mocks.dart | 1279 +++++++-------- test/price_test.dart | 378 ++--- test/price_test.mocks.dart | 219 +-- .../exchange/exchange_view_test.mocks.dart | 8 +- .../favorite_toggle_test.mocks.dart | 107 +- .../custom_loading_overlay_test.mocks.dart | 107 +- .../desktop/desktop_scaffold_test.mocks.dart | 107 +- .../managed_favorite_test.mocks.dart | 1295 +++++++-------- .../node_options_sheet_test.mocks.dart | 18 +- .../table_view/table_view_row_test.mocks.dart | 1289 +++++++-------- test/widget_tests/trade_card_test.mocks.dart | 109 +- .../transaction_card_test.mocks.dart | 1361 ++++++++-------- test/widget_tests/wallet_card_test.mocks.dart | 665 ++++---- .../wallet_info_row_test.mocks.dart | 1403 +++++++++-------- 19 files changed, 4335 insertions(+), 4166 deletions(-) diff --git a/lib/services/price.dart b/lib/services/price.dart index 91e9b1db8..a4ffff961 100644 --- a/lib/services/price.dart +++ b/lib/services/price.dart @@ -33,8 +33,7 @@ class PriceAPI { static const Duration refreshIntervalDuration = Duration(seconds: refreshInterval); - // final Client client; - HTTP client = HTTP(); + final HTTP client; PriceAPI(this.client); diff --git a/test/cached_electrumx_test.mocks.dart b/test/cached_electrumx_test.mocks.dart index 8a40e9349..e44d745d9 100644 --- a/test/cached_electrumx_test.mocks.dart +++ b/test/cached_electrumx_test.mocks.dart @@ -582,14 +582,14 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { returnValueForMissingStub: null, ); @override - bool get torKillswitch => (super.noSuchMethod( - Invocation.getter(#torKillswitch), + bool get torKillSwitch => (super.noSuchMethod( + Invocation.getter(#torKillSwitch), returnValue: false, ) as bool); @override - set torKillswitch(bool? torKillswitch) => super.noSuchMethod( + set torKillSwitch(bool? torKillswitch) => super.noSuchMethod( Invocation.setter( - #torKillswitch, + #torKillSwitch, torKillswitch, ), returnValueForMissingStub: null, diff --git a/test/electrumx_test.dart b/test/electrumx_test.dart index c71b7549a..0d8bb93d1 100644 --- a/test/electrumx_test.dart +++ b/test/electrumx_test.dart @@ -1524,7 +1524,7 @@ void main() { final mockPrefs = MockPrefs(); when(mockPrefs.useTor).thenAnswer((_) => false); - when(mockPrefs.torKillswitch) + when(mockPrefs.torKillSwitch) .thenAnswer((_) => false); // Or true, shouldn't matter. when(mockPrefs.wifiOnly).thenAnswer((_) => false); final mockTorService = MockTorService(); @@ -1549,7 +1549,7 @@ void main() { verify(mockPrefs.wifiOnly).called(1); verify(mockPrefs.useTor).called(1); - verifyNever(mockPrefs.torKillswitch); + verifyNever(mockPrefs.torKillSwitch); verifyNoMoreInteractions(mockPrefs); verifyNever(mockTorService.enabled); verifyNoMoreInteractions(mockTorService); @@ -1571,7 +1571,7 @@ void main() { final mockPrefs = MockPrefs(); when(mockPrefs.useTor).thenAnswer((_) => true); - when(mockPrefs.torKillswitch).thenAnswer((_) => false); + when(mockPrefs.torKillSwitch).thenAnswer((_) => false); when(mockPrefs.wifiOnly).thenAnswer((_) => false); final mockTorService = MockTorService(); @@ -1599,7 +1599,7 @@ void main() { verify(mockPrefs.wifiOnly).called(1); verify(mockPrefs.useTor).called(1); - verify(mockPrefs.torKillswitch).called(1); + verify(mockPrefs.torKillSwitch).called(1); verifyNoMoreInteractions(mockPrefs); verify(mockTorService.enabled).called(1); verifyNever(mockTorService.proxyInfo); @@ -1624,7 +1624,7 @@ void main() { final mockPrefs = MockPrefs(); when(mockPrefs.useTor).thenAnswer((_) => true); - when(mockPrefs.torKillswitch).thenAnswer((_) => false); // Or true. + when(mockPrefs.torKillSwitch).thenAnswer((_) => false); // Or true. when(mockPrefs.wifiOnly).thenAnswer((_) => false); final mockTorService = MockTorService(); @@ -1651,7 +1651,7 @@ void main() { verify(mockClient.proxyInfo).called(1); verify(mockPrefs.wifiOnly).called(1); verify(mockPrefs.useTor).called(1); - verifyNever(mockPrefs.torKillswitch); + verifyNever(mockPrefs.torKillSwitch); verifyNoMoreInteractions(mockPrefs); verify(mockTorService.enabled).called(1); verify(mockTorService.proxyInfo).called(1); @@ -1682,7 +1682,7 @@ void main() { final mockPrefs = MockPrefs(); when(mockPrefs.useTor).thenAnswer((_) => true); - when(mockPrefs.torKillswitch).thenAnswer((_) => true); + when(mockPrefs.torKillSwitch).thenAnswer((_) => true); when(mockPrefs.wifiOnly).thenAnswer((_) => false); final mockTorService = MockTorService(); when(mockTorService.enabled).thenAnswer((_) => false); @@ -1710,7 +1710,7 @@ void main() { verify(mockPrefs.wifiOnly).called(1); verify(mockPrefs.useTor).called(1); - verify(mockPrefs.torKillswitch).called(1); + verify(mockPrefs.torKillSwitch).called(1); verifyNoMoreInteractions(mockPrefs); verify(mockTorService.enabled).called(1); verifyNoMoreInteractions(mockTorService); @@ -1737,7 +1737,7 @@ void main() { final mockPrefs = MockPrefs(); when(mockPrefs.useTor).thenAnswer((_) => true); - when(mockPrefs.torKillswitch).thenAnswer((_) => false); + when(mockPrefs.torKillSwitch).thenAnswer((_) => false); when(mockPrefs.wifiOnly).thenAnswer((_) => false); final mockTorService = MockTorService(); when(mockTorService.enabled).thenAnswer((_) => false); @@ -1761,7 +1761,7 @@ void main() { verify(mockPrefs.wifiOnly).called(1); verify(mockPrefs.useTor).called(1); - verify(mockPrefs.torKillswitch).called(1); + verify(mockPrefs.torKillSwitch).called(1); verifyNoMoreInteractions(mockPrefs); verify(mockTorService.enabled).called(1); verifyNoMoreInteractions(mockTorService); diff --git a/test/electrumx_test.mocks.dart b/test/electrumx_test.mocks.dart index 3069a2f5f..d77c3e76d 100644 --- a/test/electrumx_test.mocks.dart +++ b/test/electrumx_test.mocks.dart @@ -15,6 +15,7 @@ import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i7; import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i9; import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i6; import 'package:stackwallet/utilities/prefs.dart' as _i5; +import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i12; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -321,14 +322,14 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { returnValueForMissingStub: null, ); @override - bool get torKillswitch => (super.noSuchMethod( - Invocation.getter(#torKillswitch), + bool get torKillSwitch => (super.noSuchMethod( + Invocation.getter(#torKillSwitch), returnValue: false, ) as bool); @override - set torKillswitch(bool? torKillswitch) => super.noSuchMethod( + set torKillSwitch(bool? torKillswitch) => super.noSuchMethod( Invocation.setter( - #torKillswitch, + #torKillSwitch, torKillswitch, ), returnValueForMissingStub: null, @@ -674,6 +675,15 @@ class MockTorService extends _i1.Mock implements _i11.TorService { ), ) as ({_i3.InternetAddress host, int port})); @override + void init({_i12.Tor? mockableOverride}) => super.noSuchMethod( + Invocation.method( + #init, + [], + {#mockableOverride: mockableOverride}, + ), + returnValueForMissingStub: null, + ); + @override _i4.Future start() => (super.noSuchMethod( Invocation.method( #start, diff --git a/test/notifications/notification_card_test.mocks.dart b/test/notifications/notification_card_test.mocks.dart index 3f1f4b29c..e325b3056 100644 --- a/test/notifications/notification_card_test.mocks.dart +++ b/test/notifications/notification_card_test.mocks.dart @@ -3,13 +3,14 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:typed_data' as _i6; +import 'dart:async' as _i6; +import 'dart:typed_data' as _i7; import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/db/isar/main_db.dart' as _i2; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i4; -import 'package:stackwallet/themes/theme_service.dart' as _i3; +import 'package:stackwallet/db/isar/main_db.dart' as _i3; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i5; +import 'package:stackwallet/networking/http.dart' as _i2; +import 'package:stackwallet/themes/theme_service.dart' as _i4; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -22,8 +23,18 @@ import 'package:stackwallet/themes/theme_service.dart' as _i3; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeMainDB_0 extends _i1.SmartFake implements _i2.MainDB { - _FakeMainDB_0( +class _FakeHTTP_0 extends _i1.SmartFake implements _i2.HTTP { + _FakeHTTP_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeMainDB_1 extends _i1.SmartFake implements _i3.MainDB { + _FakeMainDB_1( Object parent, Invocation parentInvocation, ) : super( @@ -35,26 +46,42 @@ class _FakeMainDB_0 extends _i1.SmartFake implements _i2.MainDB { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i3.ThemeService { +class MockThemeService extends _i1.Mock implements _i4.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @override - _i2.MainDB get db => (super.noSuchMethod( + _i2.HTTP get client => (super.noSuchMethod( + Invocation.getter(#client), + returnValue: _FakeHTTP_0( + this, + Invocation.getter(#client), + ), + ) as _i2.HTTP); + @override + set client(_i2.HTTP? _client) => super.noSuchMethod( + Invocation.setter( + #client, + _client, + ), + returnValueForMissingStub: null, + ); + @override + _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeMainDB_0( + returnValue: _FakeMainDB_1( this, Invocation.getter(#db), ), - ) as _i2.MainDB); + ) as _i3.MainDB); @override - List<_i4.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i5.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i4.StackTheme>[], - ) as List<_i4.StackTheme>); + returnValue: <_i5.StackTheme>[], + ) as List<_i5.StackTheme>); @override - void init(_i2.MainDB? db) => super.noSuchMethod( + void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( #init, [db], @@ -62,70 +89,70 @@ class MockThemeService extends _i1.Mock implements _i3.ThemeService { returnValueForMissingStub: null, ); @override - _i5.Future install({required _i6.Uint8List? themeArchiveData}) => + _i6.Future install({required _i7.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future remove({required String? themeId}) => (super.noSuchMethod( + _i6.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i6.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future verifyInstalled({required String? themeId}) => + _i6.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); + returnValue: _i6.Future.value(false), + ) as _i6.Future); @override - _i5.Future> fetchThemes() => (super.noSuchMethod( + _i6.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i5.Future>.value( - <_i3.StackThemeMetaData>[]), - ) as _i5.Future>); + returnValue: _i6.Future>.value( + <_i4.StackThemeMetaData>[]), + ) as _i6.Future>); @override - _i5.Future<_i6.Uint8List> fetchTheme( - {required _i3.StackThemeMetaData? themeMetaData}) => + _i6.Future<_i7.Uint8List> fetchTheme( + {required _i4.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i5.Future<_i6.Uint8List>.value(_i6.Uint8List(0)), - ) as _i5.Future<_i6.Uint8List>); + returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), + ) as _i6.Future<_i7.Uint8List>); @override - _i4.StackTheme? getTheme({required String? themeId}) => + _i5.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i4.StackTheme?); + )) as _i5.StackTheme?); } diff --git a/test/pages/send_view/send_view_test.mocks.dart b/test/pages/send_view/send_view_test.mocks.dart index 3ebe98c2e..d2d5de661 100644 --- a/test/pages/send_view/send_view_test.mocks.dart +++ b/test/pages/send_view/send_view_test.mocks.dart @@ -3,9 +3,9 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i23; -import 'dart:typed_data' as _i30; -import 'dart:ui' as _i25; +import 'dart:async' as _i24; +import 'dart:typed_data' as _i31; +import 'dart:ui' as _i26; import 'package:bip32/bip32.dart' as _i17; import 'package:bip47/bip47.dart' as _i19; @@ -18,29 +18,30 @@ 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 _i18; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i33; -import 'package:stackwallet/models/node_model.dart' as _i26; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i34; +import 'package:stackwallet/models/node_model.dart' as _i27; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9; -import 'package:stackwallet/models/signing_data.dart' as _i29; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i27; -import 'package:stackwallet/services/coins/coin_service.dart' as _i20; +import 'package:stackwallet/models/signing_data.dart' as _i30; +import 'package:stackwallet/networking/http.dart' as _i20; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i28; +import 'package:stackwallet/services/coins/coin_service.dart' as _i21; import 'package:stackwallet/services/coins/manager.dart' as _i6; -import 'package:stackwallet/services/locale_service.dart' as _i31; +import 'package:stackwallet/services/locale_service.dart' as _i32; 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 _i21; +import 'package:stackwallet/services/wallets.dart' as _i22; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/themes/theme_service.dart' as _i32; +import 'package:stackwallet/themes/theme_service.dart' as _i33; import 'package:stackwallet/utilities/amount/amount.dart' as _i15; -import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i36; -import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i35; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i22; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i28; -import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i34; +import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i37; +import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i36; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i23; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i29; +import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i35; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i7; -import 'package:stackwallet/utilities/prefs.dart' as _i24; +import 'package:stackwallet/utilities/prefs.dart' as _i25; import 'package:tuple/tuple.dart' as _i16; // ignore_for_file: type=lint @@ -241,9 +242,19 @@ class _FakePaymentCode_17 extends _i1.SmartFake implements _i19.PaymentCode { ); } -class _FakeCoinServiceAPI_18 extends _i1.SmartFake - implements _i20.CoinServiceAPI { - _FakeCoinServiceAPI_18( +class _FakeHTTP_18 extends _i1.SmartFake implements _i20.HTTP { + _FakeHTTP_18( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeCoinServiceAPI_19 extends _i1.SmartFake + implements _i21.CoinServiceAPI { + _FakeCoinServiceAPI_19( Object parent, Invocation parentInvocation, ) : super( @@ -255,7 +266,7 @@ class _FakeCoinServiceAPI_18 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 _i21.Wallets { +class MockWallets extends _i1.Mock implements _i22.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -322,7 +333,7 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i22.Coin? coin}) => + List getWalletIdsFor({required _i23.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -332,20 +343,20 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValue: [], ) as List); @override - List<_i16.Tuple2<_i22.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>> + List<_i16.Tuple2<_i23.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i16.Tuple2<_i22.Coin, + returnValue: <_i16.Tuple2<_i23.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>[], ) as List< - _i16.Tuple2<_i22.Coin, + _i16.Tuple2<_i23.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i22.Coin? coin) => + _i23.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -409,17 +420,17 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValueForMissingStub: null, ); @override - _i23.Future load(_i24.Prefs? prefs) => (super.noSuchMethod( + _i24.Future load(_i25.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future loadAfterStackRestore( - _i24.Prefs? prefs, + _i24.Future loadAfterStackRestore( + _i25.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -430,11 +441,11 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { managers, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -442,7 +453,7 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -468,19 +479,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i23.Future> get walletNames => + _i24.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i23.Future>.value( + returnValue: _i24.Future>.value( {}), - ) as _i23.Future>); + ) as _i24.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i23.Future renameWallet({ + _i24.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -495,8 +506,8 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( @@ -506,10 +517,10 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValue: {}, ) as Map); @override - _i23.Future addExistingStackWallet({ + _i24.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i22.Coin? coin, + required _i23.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -523,13 +534,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future addNewWallet({ + _i24.Future addNewWallet({ required String? name, - required _i22.Coin? coin, + required _i23.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -542,46 +553,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i24.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future saveFavoriteWalletIds(List? walletIds) => + _i24.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i24.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i24.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future moveFavorite({ + _i24.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -594,48 +605,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i24.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i24.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future isMnemonicVerified({required String? walletId}) => + _i24.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future setMnemonicVerified({required String? walletId}) => + _i24.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future deleteWallet( + _i24.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -647,20 +658,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future refreshWallets(bool? shouldNotifyListeners) => + _i24.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -668,7 +679,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -710,33 +721,33 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ), ) as _i7.SecureStorageInterface); @override - List<_i26.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i27.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i26.NodeModel>[], - ) as List<_i26.NodeModel>); + returnValue: <_i27.NodeModel>[], + ) as List<_i27.NodeModel>); @override - List<_i26.NodeModel> get nodes => (super.noSuchMethod( + List<_i27.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i26.NodeModel>[], - ) as List<_i26.NodeModel>); + returnValue: <_i27.NodeModel>[], + ) as List<_i27.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i23.Future updateDefaults() => (super.noSuchMethod( + _i24.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future setPrimaryNodeFor({ - required _i22.Coin? coin, - required _i26.NodeModel? node, + _i24.Future setPrimaryNodeFor({ + required _i23.Coin? coin, + required _i27.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -749,44 +760,44 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i26.NodeModel? getPrimaryNodeFor({required _i22.Coin? coin}) => + _i27.NodeModel? getPrimaryNodeFor({required _i23.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i26.NodeModel?); + )) as _i27.NodeModel?); @override - List<_i26.NodeModel> getNodesFor(_i22.Coin? coin) => (super.noSuchMethod( + List<_i27.NodeModel> getNodesFor(_i23.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i26.NodeModel>[], - ) as List<_i26.NodeModel>); + returnValue: <_i27.NodeModel>[], + ) as List<_i27.NodeModel>); @override - _i26.NodeModel? getNodeById({required String? id}) => + _i27.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i26.NodeModel?); + )) as _i27.NodeModel?); @override - List<_i26.NodeModel> failoverNodesFor({required _i22.Coin? coin}) => + List<_i27.NodeModel> failoverNodesFor({required _i23.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i26.NodeModel>[], - ) as List<_i26.NodeModel>); + returnValue: <_i27.NodeModel>[], + ) as List<_i27.NodeModel>); @override - _i23.Future add( - _i26.NodeModel? node, + _i24.Future add( + _i27.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -799,11 +810,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future delete( + _i24.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -815,11 +826,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future setEnabledState( + _i24.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -833,12 +844,12 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future edit( - _i26.NodeModel? editedNode, + _i24.Future edit( + _i27.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -851,20 +862,20 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future updateCommunityNodes() => (super.noSuchMethod( + _i24.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -872,7 +883,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -900,13 +911,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 _i27.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i23.Timer? _timer) => super.noSuchMethod( + set timer(_i24.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -983,74 +994,74 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { returnValue: false, ) as bool); @override - _i22.Coin get coin => (super.noSuchMethod( + _i23.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i22.Coin.bitcoin, - ) as _i22.Coin); + returnValue: _i23.Coin.bitcoin, + ) as _i23.Coin); @override - _i23.Future> get utxos => (super.noSuchMethod( + _i24.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i23.Future>.value(<_i18.UTXO>[]), - ) as _i23.Future>); + returnValue: _i24.Future>.value(<_i18.UTXO>[]), + ) as _i24.Future>); @override - _i23.Future> get transactions => (super.noSuchMethod( + _i24.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i23.Future>.value(<_i18.Transaction>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i18.Transaction>[]), + ) as _i24.Future>); @override - _i23.Future get currentReceivingAddress => (super.noSuchMethod( + _i24.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future get currentChangeAddress => (super.noSuchMethod( + _i24.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future get currentChangeAddressP2PKH => (super.noSuchMethod( + _i24.Future get currentChangeAddressP2PKH => (super.noSuchMethod( Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i23.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i24.Future<_i9.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i23.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i24.Future<_i9.FeeObject>.value(_FakeFeeObject_6( this, Invocation.getter(#fees), )), - ) as _i23.Future<_i9.FeeObject>); + ) as _i24.Future<_i9.FeeObject>); @override - _i23.Future get maxFee => (super.noSuchMethod( + _i24.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future> get mnemonic => (super.noSuchMethod( + _i24.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future get mnemonicString => (super.noSuchMethod( + _i24.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future get mnemonicPassphrase => (super.noSuchMethod( + _i24.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future get chainHeight => (super.noSuchMethod( + _i24.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -1122,10 +1133,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { ), ) as _i12.Balance); @override - _i23.Future get xpub => (super.noSuchMethod( + _i24.Future get xpub => (super.noSuchMethod( Invocation.getter(#xpub), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -1152,26 +1163,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { ), ) as _i14.NetworkType); @override - _i23.Future exit() => (super.noSuchMethod( + _i24.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i28.DerivePathType addressType({required String? address}) => + _i29.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i28.DerivePathType.bip44, - ) as _i28.DerivePathType); + returnValue: _i29.DerivePathType.bip44, + ) as _i29.DerivePathType); @override - _i23.Future recoverFromMnemonic({ + _i24.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -1190,47 +1201,47 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { #height: height, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future getTransactionCacheEarly(List? allAddresses) => + _i24.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i24.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future getAllTxsToWatch() => (super.noSuchMethod( + _i24.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future refresh() => (super.noSuchMethod( + _i24.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future> prepareSend({ + _i24.Future> prepareSend({ required String? address, required _i15.Amount? amount, Map? args, @@ -1246,26 +1257,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future confirmSend({required Map? txData}) => + _i24.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future testNetworkConnection() => (super.noSuchMethod( + _i24.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -1283,35 +1294,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future initializeNew( + _i24.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future initializeExisting() => (super.noSuchMethod( + _i24.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future updateSentCachedTxData(Map? txData) => + _i24.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1321,70 +1332,70 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { returnValue: false, ) as bool); @override - _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i24.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i10.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i24.Future<_i10.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), returnValue: - _i23.Future<_i10.ElectrumXNode>.value(_FakeElectrumXNode_12( + _i24.Future<_i10.ElectrumXNode>.value(_FakeElectrumXNode_12( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i23.Future<_i10.ElectrumXNode>); + ) as _i24.Future<_i10.ElectrumXNode>); @override - _i23.Future>> fastFetch( + _i24.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i23.Future>>.value( + returnValue: _i24.Future>>.value( >[]), - ) as _i23.Future>>); + ) as _i24.Future>>); @override - _i23.Future getTxCount({required String? address}) => + _i24.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future checkCurrentReceivingAddressesForTransactions() => + _i24.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future checkCurrentChangeAddressesForTransactions() => + _i24.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override int estimateTxFee({ required int? vSize, @@ -1427,7 +1438,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { }, )); @override - _i23.Future> fetchBuildTxData( + _i24.Future> fetchBuildTxData( List<_i18.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( @@ -1435,11 +1446,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { [utxosToUse], ), returnValue: - _i23.Future>.value(<_i29.SigningData>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i30.SigningData>[]), + ) as _i24.Future>); @override - _i23.Future> buildTransaction({ - required List<_i29.SigningData>? utxoSigningData, + _i24.Future> buildTransaction({ + required List<_i30.SigningData>? utxoSigningData, required List? recipients, required List? satoshiAmounts, }) => @@ -1454,10 +1465,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future fullRescan( + _i24.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1469,11 +1480,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i15.Amount> estimateFeeFor( + _i24.Future<_i15.Amount> estimateFeeFor( _i15.Amount? amount, int? feeRate, ) => @@ -1485,7 +1496,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { feeRate, ], ), - returnValue: _i23.Future<_i15.Amount>.value(_FakeAmount_13( + returnValue: _i24.Future<_i15.Amount>.value(_FakeAmount_13( this, Invocation.method( #estimateFeeFor, @@ -1495,7 +1506,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { ], ), )), - ) as _i23.Future<_i15.Amount>); + ) as _i24.Future<_i15.Amount>); @override _i15.Amount roughFeeEstimate( int? inputCount, @@ -1524,32 +1535,32 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { ), ) as _i15.Amount); @override - _i23.Future<_i15.Amount> sweepAllEstimate(int? feeRate) => + _i24.Future<_i15.Amount> sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i23.Future<_i15.Amount>.value(_FakeAmount_13( + returnValue: _i24.Future<_i15.Amount>.value(_FakeAmount_13( this, Invocation.method( #sweepAllEstimate, [feeRate], ), )), - ) as _i23.Future<_i15.Amount>); + ) as _i24.Future<_i15.Amount>); @override - _i23.Future generateNewAddress() => (super.noSuchMethod( + _i24.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override void initCache( String? walletId, - _i22.Coin? coin, + _i23.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1562,14 +1573,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future updateCachedId(String? id) => (super.noSuchMethod( + _i24.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1579,14 +1590,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { returnValue: 0, ) as int); @override - _i23.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i24.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1596,15 +1607,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { returnValue: false, ) as bool); @override - _i23.Future updateCachedIsFavorite(bool? isFavorite) => + _i24.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override _i12.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1620,15 +1631,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { ), ) as _i12.Balance); @override - _i23.Future updateCachedBalance(_i12.Balance? balance) => + _i24.Future updateCachedBalance(_i12.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override _i12.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1644,15 +1655,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { ), ) as _i12.Balance); @override - _i23.Future updateCachedBalanceSecondary(_i12.Balance? balance) => + _i24.Future updateCachedBalanceSecondary(_i12.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override List getWalletTokenContractAddresses() => (super.noSuchMethod( Invocation.method( @@ -1662,16 +1673,16 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { returnValue: [], ) as List); @override - _i23.Future updateWalletTokenContractAddresses( + _i24.Future updateWalletTokenContractAddresses( List? contractAddresses) => (super.noSuchMethod( Invocation.method( #updateWalletTokenContractAddresses, [contractAddresses], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override void initWalletDB({_i13.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1682,11 +1693,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future<_i16.Tuple2<_i18.Transaction, _i18.Address>> parseTransaction( + _i24.Future<_i16.Tuple2<_i18.Transaction, _i18.Address>> parseTransaction( Map? txData, dynamic electrumxClient, List<_i18.Address>? myAddresses, - _i22.Coin? coin, + _i23.Coin? coin, int? minConfirms, String? walletId, ) => @@ -1703,7 +1714,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { ], ), returnValue: - _i23.Future<_i16.Tuple2<_i18.Transaction, _i18.Address>>.value( + _i24.Future<_i16.Tuple2<_i18.Transaction, _i18.Address>>.value( _FakeTuple2_14<_i18.Transaction, _i18.Address>( this, Invocation.method( @@ -1718,37 +1729,37 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { ], ), )), - ) as _i23.Future<_i16.Tuple2<_i18.Transaction, _i18.Address>>); + ) as _i24.Future<_i16.Tuple2<_i18.Transaction, _i18.Address>>); @override void initPaynymWalletInterface({ required String? walletId, required String? walletName, required _i14.NetworkType? network, - required _i22.Coin? coin, + required _i23.Coin? coin, required _i13.MainDB? db, required _i10.ElectrumX? electrumXClient, required _i7.SecureStorageInterface? secureStorage, required int? dustLimit, required int? dustLimitP2PKH, required int? minConfirms, - required _i23.Future Function()? getMnemonicString, - required _i23.Future Function()? getMnemonicPassphrase, - required _i23.Future Function()? getChainHeight, - required _i23.Future Function()? getCurrentChangeAddress, + required _i24.Future Function()? getMnemonicString, + required _i24.Future Function()? getMnemonicPassphrase, + required _i24.Future Function()? getChainHeight, + required _i24.Future Function()? getCurrentChangeAddress, required int Function({ required int feeRatePerKB, required int vSize, })? estimateTxFee, - required _i23.Future> Function({ + required _i24.Future> Function({ required String address, required _i15.Amount amount, Map? args, })? prepareSend, - required _i23.Future Function({required String address})? getTxCount, - required _i23.Future> Function(List<_i18.UTXO>)? + required _i24.Future Function({required String address})? getTxCount, + required _i24.Future> Function(List<_i18.UTXO>)? fetchBuildTxData, - required _i23.Future Function()? refresh, - required _i23.Future Function()? checkChangeAddressForTransactions, + required _i24.Future Function()? refresh, + required _i24.Future Function()? checkChangeAddressForTransactions, }) => super.noSuchMethod( Invocation.method( @@ -1781,21 +1792,21 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future<_i17.BIP32> getBip47BaseNode() => (super.noSuchMethod( + _i24.Future<_i17.BIP32> getBip47BaseNode() => (super.noSuchMethod( Invocation.method( #getBip47BaseNode, [], ), - returnValue: _i23.Future<_i17.BIP32>.value(_FakeBIP32_15( + returnValue: _i24.Future<_i17.BIP32>.value(_FakeBIP32_15( this, Invocation.method( #getBip47BaseNode, [], ), )), - ) as _i23.Future<_i17.BIP32>); + ) as _i24.Future<_i17.BIP32>); @override - _i23.Future<_i30.Uint8List> getPrivateKeyForPaynymReceivingAddress({ + _i24.Future<_i31.Uint8List> getPrivateKeyForPaynymReceivingAddress({ required String? paymentCodeString, required int? index, }) => @@ -1808,10 +1819,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { #index: index, }, ), - returnValue: _i23.Future<_i30.Uint8List>.value(_i30.Uint8List(0)), - ) as _i23.Future<_i30.Uint8List>); + returnValue: _i24.Future<_i31.Uint8List>.value(_i31.Uint8List(0)), + ) as _i24.Future<_i31.Uint8List>); @override - _i23.Future<_i18.Address> currentReceivingPaynymAddress({ + _i24.Future<_i18.Address> currentReceivingPaynymAddress({ required _i19.PaymentCode? sender, required bool? isSegwit, }) => @@ -1824,7 +1835,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { #isSegwit: isSegwit, }, ), - returnValue: _i23.Future<_i18.Address>.value(_FakeAddress_16( + returnValue: _i24.Future<_i18.Address>.value(_FakeAddress_16( this, Invocation.method( #currentReceivingPaynymAddress, @@ -1835,9 +1846,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { }, ), )), - ) as _i23.Future<_i18.Address>); + ) as _i24.Future<_i18.Address>); @override - _i23.Future checkCurrentPaynymReceivingAddressForTransactions({ + _i24.Future checkCurrentPaynymReceivingAddressForTransactions({ required _i19.PaymentCode? sender, required bool? isSegwit, }) => @@ -1850,42 +1861,42 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { #isSegwit: isSegwit, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => + _i24.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkAllCurrentReceivingPaynymAddressesForTransactions, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i17.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( + _i24.Future<_i17.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( Invocation.method( #deriveNotificationBip32Node, [], ), - returnValue: _i23.Future<_i17.BIP32>.value(_FakeBIP32_15( + returnValue: _i24.Future<_i17.BIP32>.value(_FakeBIP32_15( this, Invocation.method( #deriveNotificationBip32Node, [], ), )), - ) as _i23.Future<_i17.BIP32>); + ) as _i24.Future<_i17.BIP32>); @override - _i23.Future<_i19.PaymentCode> getPaymentCode({required bool? isSegwit}) => + _i24.Future<_i19.PaymentCode> getPaymentCode({required bool? isSegwit}) => (super.noSuchMethod( Invocation.method( #getPaymentCode, [], {#isSegwit: isSegwit}, ), - returnValue: _i23.Future<_i19.PaymentCode>.value(_FakePaymentCode_17( + returnValue: _i24.Future<_i19.PaymentCode>.value(_FakePaymentCode_17( this, Invocation.method( #getPaymentCode, @@ -1893,27 +1904,27 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { {#isSegwit: isSegwit}, ), )), - ) as _i23.Future<_i19.PaymentCode>); + ) as _i24.Future<_i19.PaymentCode>); @override - _i23.Future<_i30.Uint8List> signWithNotificationKey(_i30.Uint8List? data) => + _i24.Future<_i31.Uint8List> signWithNotificationKey(_i31.Uint8List? data) => (super.noSuchMethod( Invocation.method( #signWithNotificationKey, [data], ), - returnValue: _i23.Future<_i30.Uint8List>.value(_i30.Uint8List(0)), - ) as _i23.Future<_i30.Uint8List>); + returnValue: _i24.Future<_i31.Uint8List>.value(_i31.Uint8List(0)), + ) as _i24.Future<_i31.Uint8List>); @override - _i23.Future signStringWithNotificationKey(String? data) => + _i24.Future signStringWithNotificationKey(String? data) => (super.noSuchMethod( Invocation.method( #signStringWithNotificationKey, [data], ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future> preparePaymentCodeSend({ + _i24.Future> preparePaymentCodeSend({ required _i19.PaymentCode? paymentCode, required bool? isSegwit, required _i15.Amount? amount, @@ -1931,10 +1942,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future<_i18.Address> nextUnusedSendAddressFrom({ + _i24.Future<_i18.Address> nextUnusedSendAddressFrom({ required _i19.PaymentCode? pCode, required bool? isSegwit, required _i17.BIP32? privateKeyNode, @@ -1951,7 +1962,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { #startIndex: startIndex, }, ), - returnValue: _i23.Future<_i18.Address>.value(_FakeAddress_16( + returnValue: _i24.Future<_i18.Address>.value(_FakeAddress_16( this, Invocation.method( #nextUnusedSendAddressFrom, @@ -1964,9 +1975,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { }, ), )), - ) as _i23.Future<_i18.Address>); + ) as _i24.Future<_i18.Address>); @override - _i23.Future> prepareNotificationTx({ + _i24.Future> prepareNotificationTx({ required int? selectedTxFeeRate, required String? targetPaymentCodeString, int? additionalOutputs = 0, @@ -1984,10 +1995,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future broadcastNotificationTx( + _i24.Future broadcastNotificationTx( {required Map? preparedTx}) => (super.noSuchMethod( Invocation.method( @@ -1995,19 +2006,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { [], {#preparedTx: preparedTx}, ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future hasConnected(String? paymentCodeString) => + _i24.Future hasConnected(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #hasConnected, [paymentCodeString], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future<_i19.PaymentCode?> unBlindedPaymentCodeFromTransaction( + _i24.Future<_i19.PaymentCode?> unBlindedPaymentCodeFromTransaction( {required _i18.Transaction? transaction}) => (super.noSuchMethod( Invocation.method( @@ -2015,10 +2026,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { [], {#transaction: transaction}, ), - returnValue: _i23.Future<_i19.PaymentCode?>.value(), - ) as _i23.Future<_i19.PaymentCode?>); + returnValue: _i24.Future<_i19.PaymentCode?>.value(), + ) as _i24.Future<_i19.PaymentCode?>); @override - _i23.Future<_i19.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( + _i24.Future<_i19.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( {required _i18.Transaction? transaction}) => (super.noSuchMethod( Invocation.method( @@ -2026,31 +2037,31 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { [], {#transaction: transaction}, ), - returnValue: _i23.Future<_i19.PaymentCode?>.value(), - ) as _i23.Future<_i19.PaymentCode?>); + returnValue: _i24.Future<_i19.PaymentCode?>.value(), + ) as _i24.Future<_i19.PaymentCode?>); @override - _i23.Future> + _i24.Future> getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( Invocation.method( #getAllPaymentCodesFromNotificationTransactions, [], ), returnValue: - _i23.Future>.value(<_i19.PaymentCode>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i19.PaymentCode>[]), + ) as _i24.Future>); @override - _i23.Future checkForNotificationTransactionsTo( + _i24.Future checkForNotificationTransactionsTo( Set? otherCodeStrings) => (super.noSuchMethod( Invocation.method( #checkForNotificationTransactionsTo, [otherCodeStrings], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future restoreAllHistory({ + _i24.Future restoreAllHistory({ required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required Set? paymentCodeStrings, @@ -2065,11 +2076,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { #paymentCodeStrings: paymentCodeStrings, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future restoreHistoryWith({ + _i24.Future restoreHistoryWith({ required _i19.PaymentCode? other, required bool? checkSegwitAsWell, required int? maxUnusedAddressGap, @@ -2086,58 +2097,58 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i18.Address> getMyNotificationAddress() => (super.noSuchMethod( + _i24.Future<_i18.Address> getMyNotificationAddress() => (super.noSuchMethod( Invocation.method( #getMyNotificationAddress, [], ), - returnValue: _i23.Future<_i18.Address>.value(_FakeAddress_16( + returnValue: _i24.Future<_i18.Address>.value(_FakeAddress_16( this, Invocation.method( #getMyNotificationAddress, [], ), )), - ) as _i23.Future<_i18.Address>); + ) as _i24.Future<_i18.Address>); @override - _i23.Future> lookupKey(String? paymentCodeString) => + _i24.Future> lookupKey(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #lookupKey, [paymentCodeString], ), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future paymentCodeStringByKey(String? key) => + _i24.Future paymentCodeStringByKey(String? key) => (super.noSuchMethod( Invocation.method( #paymentCodeStringByKey, [key], ), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future storeCode(String? paymentCodeString) => + _i24.Future storeCode(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #storeCode, [paymentCodeString], ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override void initCoinControlInterface({ required String? walletId, required String? walletName, - required _i22.Coin? coin, + required _i23.Coin? coin, required _i13.MainDB? db, - required _i23.Future Function()? getChainHeight, - required _i23.Future Function(_i12.Balance)? refreshedBalanceCallback, + required _i24.Future Function()? getChainHeight, + required _i24.Future Function(_i12.Balance)? refreshedBalanceCallback, }) => super.noSuchMethod( Invocation.method( @@ -2155,22 +2166,22 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future refreshBalance({bool? notify = false}) => + _i24.Future refreshBalance({bool? notify = false}) => (super.noSuchMethod( Invocation.method( #refreshBalance, [], {#notify: notify}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); } /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i31.LocaleService { +class MockLocaleService extends _i1.Mock implements _i32.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -2186,17 +2197,17 @@ class MockLocaleService extends _i1.Mock implements _i31.LocaleService { returnValue: false, ) as bool); @override - _i23.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i24.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2204,7 +2215,7 @@ class MockLocaleService extends _i1.Mock implements _i31.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2232,11 +2243,27 @@ class MockLocaleService extends _i1.Mock implements _i31.LocaleService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i32.ThemeService { +class MockThemeService extends _i1.Mock implements _i33.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } + @override + _i20.HTTP get client => (super.noSuchMethod( + Invocation.getter(#client), + returnValue: _FakeHTTP_18( + this, + Invocation.getter(#client), + ), + ) as _i20.HTTP); + @override + set client(_i20.HTTP? _client) => super.noSuchMethod( + Invocation.setter( + #client, + _client, + ), + returnValueForMissingStub: null, + ); @override _i13.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -2246,10 +2273,10 @@ class MockThemeService extends _i1.Mock implements _i32.ThemeService { ), ) as _i13.MainDB); @override - List<_i33.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i34.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i33.StackTheme>[], - ) as List<_i33.StackTheme>); + returnValue: <_i34.StackTheme>[], + ) as List<_i34.StackTheme>); @override void init(_i13.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -2259,79 +2286,79 @@ class MockThemeService extends _i1.Mock implements _i32.ThemeService { returnValueForMissingStub: null, ); @override - _i23.Future install({required _i30.Uint8List? themeArchiveData}) => + _i24.Future install({required _i31.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future remove({required String? themeId}) => (super.noSuchMethod( + _i24.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i24.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future verifyInstalled({required String? themeId}) => + _i24.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future> fetchThemes() => + _i24.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i23.Future>.value( - <_i32.StackThemeMetaData>[]), - ) as _i23.Future>); + returnValue: _i24.Future>.value( + <_i33.StackThemeMetaData>[]), + ) as _i24.Future>); @override - _i23.Future<_i30.Uint8List> fetchTheme( - {required _i32.StackThemeMetaData? themeMetaData}) => + _i24.Future<_i31.Uint8List> fetchTheme( + {required _i33.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i23.Future<_i30.Uint8List>.value(_i30.Uint8List(0)), - ) as _i23.Future<_i30.Uint8List>); + returnValue: _i24.Future<_i31.Uint8List>.value(_i31.Uint8List(0)), + ) as _i24.Future<_i31.Uint8List>); @override - _i33.StackTheme? getTheme({required String? themeId}) => + _i34.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i33.StackTheme?); + )) as _i34.StackTheme?); } /// A class which mocks [Prefs]. /// /// See the documentation for Mockito's code generation for more information. -class MockPrefs extends _i1.Mock implements _i24.Prefs { +class MockPrefs extends _i1.Mock implements _i25.Prefs { MockPrefs() { _i1.throwOnMissingStub(this); } @@ -2387,12 +2414,12 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValueForMissingStub: null, ); @override - _i34.SyncingType get syncType => (super.noSuchMethod( + _i35.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), - returnValue: _i34.SyncingType.currentWalletOnly, - ) as _i34.SyncingType); + returnValue: _i35.SyncingType.currentWalletOnly, + ) as _i35.SyncingType); @override - set syncType(_i34.SyncingType? syncType) => super.noSuchMethod( + set syncType(_i35.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( #syncType, syncType, @@ -2504,14 +2531,14 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValueForMissingStub: null, ); @override - bool get torKillswitch => (super.noSuchMethod( - Invocation.getter(#torKillswitch), + bool get torKillSwitch => (super.noSuchMethod( + Invocation.getter(#torKillSwitch), returnValue: false, ) as bool); @override - set torKillswitch(bool? torKillswitch) => super.noSuchMethod( + set torKillSwitch(bool? torKillswitch) => super.noSuchMethod( Invocation.setter( - #torKillswitch, + #torKillSwitch, torKillswitch, ), returnValueForMissingStub: null, @@ -2551,12 +2578,12 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValueForMissingStub: null, ); @override - _i35.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( + _i36.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), - returnValue: _i35.BackupFrequencyType.everyTenMinutes, - ) as _i35.BackupFrequencyType); + returnValue: _i36.BackupFrequencyType.everyTenMinutes, + ) as _i36.BackupFrequencyType); @override - set backupFrequencyType(_i35.BackupFrequencyType? backupFrequencyType) => + set backupFrequencyType(_i36.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( Invocation.setter( #backupFrequencyType, @@ -2707,61 +2734,61 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValue: false, ) as bool); @override - _i23.Future init() => (super.noSuchMethod( + _i24.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( + _i24.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( #incrementCurrentNotificationIndex, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future isExternalCallsSet() => (super.noSuchMethod( + _i24.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( #isExternalCallsSet, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future saveUserID(String? userId) => (super.noSuchMethod( + _i24.Future saveUserID(String? userId) => (super.noSuchMethod( Invocation.method( #saveUserID, [userId], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( + _i24.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( Invocation.method( #saveSignupEpoch, [signupEpoch], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i36.AmountUnit amountUnit(_i22.Coin? coin) => (super.noSuchMethod( + _i37.AmountUnit amountUnit(_i23.Coin? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], ), - returnValue: _i36.AmountUnit.normal, - ) as _i36.AmountUnit); + returnValue: _i37.AmountUnit.normal, + ) as _i37.AmountUnit); @override void updateAmountUnit({ - required _i22.Coin? coin, - required _i36.AmountUnit? amountUnit, + required _i23.Coin? coin, + required _i37.AmountUnit? amountUnit, }) => super.noSuchMethod( Invocation.method( @@ -2775,7 +2802,7 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i22.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i23.Coin? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -2784,7 +2811,7 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { ) as int); @override void updateMaxDecimals({ - required _i22.Coin? coin, + required _i23.Coin? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -2799,7 +2826,7 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2807,7 +2834,7 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2850,23 +2877,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i20.CoinServiceAPI get wallet => (super.noSuchMethod( + _i21.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_18( + returnValue: _FakeCoinServiceAPI_19( this, Invocation.getter(#wallet), ), - ) as _i20.CoinServiceAPI); + ) as _i21.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i22.Coin get coin => (super.noSuchMethod( + _i23.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i22.Coin.bitcoin, - ) as _i22.Coin); + returnValue: _i23.Coin.bitcoin, + ) as _i23.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2899,23 +2926,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i23.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i24.Future<_i9.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i23.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i24.Future<_i9.FeeObject>.value(_FakeFeeObject_6( this, Invocation.getter(#fees), )), - ) as _i23.Future<_i9.FeeObject>); + ) as _i24.Future<_i9.FeeObject>); @override - _i23.Future get maxFee => (super.noSuchMethod( + _i24.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future get currentReceivingAddress => (super.noSuchMethod( + _i24.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override _i12.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2925,16 +2952,16 @@ class MockManager extends _i1.Mock implements _i6.Manager { ), ) as _i12.Balance); @override - _i23.Future> get transactions => (super.noSuchMethod( + _i24.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i23.Future>.value(<_i18.Transaction>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i18.Transaction>[]), + ) as _i24.Future>); @override - _i23.Future> get utxos => (super.noSuchMethod( + _i24.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i23.Future>.value(<_i18.UTXO>[]), - ) as _i23.Future>); + returnValue: _i24.Future>.value(<_i18.UTXO>[]), + ) as _i24.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2954,15 +2981,15 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i23.Future> get mnemonic => (super.noSuchMethod( + _i24.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future get mnemonicPassphrase => (super.noSuchMethod( + _i24.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -3009,24 +3036,24 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i23.Future get xpub => (super.noSuchMethod( + _i24.Future get xpub => (super.noSuchMethod( Invocation.getter(#xpub), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i24.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -3036,7 +3063,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i23.Future> prepareSend({ + _i24.Future> prepareSend({ required String? address, required _i15.Amount? amount, Map? args, @@ -3052,27 +3079,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future confirmSend({required Map? txData}) => + _i24.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future refresh() => (super.noSuchMethod( + _i24.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -3082,35 +3109,35 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i23.Future testNetworkConnection() => (super.noSuchMethod( + _i24.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future initializeNew( + _i24.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future initializeExisting() => (super.noSuchMethod( + _i24.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future recoverFromMnemonic({ + _i24.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -3129,20 +3156,20 @@ class MockManager extends _i1.Mock implements _i6.Manager { #height: height, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future exitCurrentWallet() => (super.noSuchMethod( + _i24.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future fullRescan( + _i24.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -3154,11 +3181,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i15.Amount> estimateFeeFor( + _i24.Future<_i15.Amount> estimateFeeFor( _i15.Amount? amount, int? feeRate, ) => @@ -3170,7 +3197,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i23.Future<_i15.Amount>.value(_FakeAmount_13( + returnValue: _i24.Future<_i15.Amount>.value(_FakeAmount_13( this, Invocation.method( #estimateFeeFor, @@ -3180,26 +3207,26 @@ class MockManager extends _i1.Mock implements _i6.Manager { ], ), )), - ) as _i23.Future<_i15.Amount>); + ) as _i24.Future<_i15.Amount>); @override - _i23.Future generateNewAddress() => (super.noSuchMethod( + _i24.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future resetRescanOnOpen() => (super.noSuchMethod( + _i24.Future resetRescanOnOpen() => (super.noSuchMethod( Invocation.method( #resetRescanOnOpen, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -3207,7 +3234,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -3227,7 +3254,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 _i20.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -3238,10 +3265,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i22.Coin get coin => (super.noSuchMethod( + _i23.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i22.Coin.bitcoin, - ) as _i22.Coin); + returnValue: _i23.Coin.bitcoin, + ) as _i23.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -3274,23 +3301,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i23.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i24.Future<_i9.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i23.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i24.Future<_i9.FeeObject>.value(_FakeFeeObject_6( this, Invocation.getter(#fees), )), - ) as _i23.Future<_i9.FeeObject>); + ) as _i24.Future<_i9.FeeObject>); @override - _i23.Future get maxFee => (super.noSuchMethod( + _i24.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future get currentReceivingAddress => (super.noSuchMethod( + _i24.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override _i12.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -3300,16 +3327,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { ), ) as _i12.Balance); @override - _i23.Future> get transactions => (super.noSuchMethod( + _i24.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i23.Future>.value(<_i18.Transaction>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i18.Transaction>[]), + ) as _i24.Future>); @override - _i23.Future> get utxos => (super.noSuchMethod( + _i24.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i23.Future>.value(<_i18.UTXO>[]), - ) as _i23.Future>); + returnValue: _i24.Future>.value(<_i18.UTXO>[]), + ) as _i24.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -3329,20 +3356,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValue: '', ) as String); @override - _i23.Future> get mnemonic => (super.noSuchMethod( + _i24.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future get mnemonicString => (super.noSuchMethod( + _i24.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future get mnemonicPassphrase => (super.noSuchMethod( + _i24.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -3359,7 +3386,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValue: 0, ) as int); @override - _i23.Future> prepareSend({ + _i24.Future> prepareSend({ required String? address, required _i15.Amount? amount, Map? args, @@ -3375,36 +3402,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future confirmSend({required Map? txData}) => + _i24.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future refresh() => (super.noSuchMethod( + _i24.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i24.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -3414,15 +3441,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValue: false, ) as bool); @override - _i23.Future testNetworkConnection() => (super.noSuchMethod( + _i24.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future recoverFromMnemonic({ + _i24.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -3441,40 +3468,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { #height: height, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future initializeNew( + _i24.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future initializeExisting() => (super.noSuchMethod( + _i24.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future exit() => (super.noSuchMethod( + _i24.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future fullRescan( + _i24.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -3486,11 +3513,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i15.Amount> estimateFeeFor( + _i24.Future<_i15.Amount> estimateFeeFor( _i15.Amount? amount, int? feeRate, ) => @@ -3502,7 +3529,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { feeRate, ], ), - returnValue: _i23.Future<_i15.Amount>.value(_FakeAmount_13( + returnValue: _i24.Future<_i15.Amount>.value(_FakeAmount_13( this, Invocation.method( #estimateFeeFor, @@ -3512,23 +3539,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { ], ), )), - ) as _i23.Future<_i15.Amount>); + ) as _i24.Future<_i15.Amount>); @override - _i23.Future generateNewAddress() => (super.noSuchMethod( + _i24.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future updateSentCachedTxData(Map? txData) => + _i24.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); } diff --git a/test/price_test.dart b/test/price_test.dart index e5383bef8..dc7aaeb9e 100644 --- a/test/price_test.dart +++ b/test/price_test.dart @@ -1,17 +1,18 @@ +import 'dart:convert'; import 'dart:io'; import 'package:flutter_test/flutter_test.dart'; import 'package:hive/hive.dart'; import 'package:hive_test/hive_test.dart'; -import 'package:http/http.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; import 'package:stackwallet/db/hive/db.dart'; +import 'package:stackwallet/networking/http.dart'; import 'package:stackwallet/services/price.dart'; import 'price_test.mocks.dart'; -@GenerateMocks([Client]) +@GenerateMocks([HTTP]) void main() { setUp(() async { await setUpTestHive(); @@ -22,10 +23,11 @@ void main() { }); test("getPricesAnd24hChange fetch", () async { - final client = MockClient(); + final client = MockHTTP(); when(client.get( - Uri.parse( + proxyInfo: null, + url: Uri.parse( "https://api.coingecko.com/api/v3/coins/markets?vs_currency=btc&ids" "=monero,bitcoin,litecoin,ecash,epic-cash,zcoin,dogecoin,bitcoin-cash" ",namecoin,wownero,ethereum,particl,nano,banano,stellar,tezos" @@ -34,63 +36,64 @@ void main() { headers: { 'Content-Type': 'application/json' })).thenAnswer((_) async => Response( - '[{"id":"bitcoin","symbol":"btc","name":"Bitcoin","image":"https://asse' - 'ts.coingecko.com/coins/images/1/large/bitcoin.png?1547033579","curr' - 'ent_price":1.0,"market_cap":19128800,"market_cap_rank":1,"fully_dil' - 'uted_valuation":21000000,"total_volume":1272132,"high_24h":1.0,"low' - '_24h":1.0,"price_change_24h":0.0,"price_change_percentage_24h":0.0,' - '"market_cap_change_24h":950.0,"market_cap_change_percentage_24h":0.0' - '0497,"circulating_supply":19128800.0,"total_supply":21000000.0,"max' - '_supply":21000000.0,"ath":1.003301,"ath_change_percentage":-0.32896' - ',"ath_date":"2019-10-15T16:00:56.136Z","atl":0.99895134,"atl_change_' - 'percentage":0.10498,"atl_date":"2019-10-21T00:00:00.000Z","roi":nul' - 'l,"last_updated":"2022-08-22T16:37:59.237Z"},{"id":"dogecoin","symb' - 'ol":"doge","name":"Dogecoin","image":"https://assets.coingecko.com/' - 'coins/images/5/large/dogecoin.png?1547792256","current_price":3.15e' - '-06,"market_cap":417916,"market_cap_rank":10,"fully_diluted_valuati' - 'on":null,"total_volume":27498,"high_24h":3.26e-06,"low_24h":3.13e-0' - '6,"price_change_24h":-8.6889947714e-08,"price_change_percentage_24h' - '":-2.68533,"market_cap_change_24h":-11370.894861206936,"market_cap_c' - 'hange_percentage_24h":-2.64879,"circulating_supply":132670764299.89' - '4,"total_supply":null,"max_supply":null,"ath":1.264e-05,"ath_change' - '_percentage":-75.05046,"ath_date":"2021-05-07T23:04:53.026Z","atl":' - '1.50936e-07,"atl_change_percentage":1989.69346,"atl_date":"2020-12-' - '17T09:18:05.654Z","roi":null,"last_updated":"2022-08-22T16:38:15.11' - '3Z"},{"id":"monero","symbol":"xmr","name":"Monero","image":"https:/' - '/assets.coingecko.com/coins/images/69/large/monero_logo.png?1547033' - '729","current_price":0.00717236,"market_cap":130002,"market_cap_ran' - 'k":29,"fully_diluted_valuation":null,"total_volume":4901,"high_24h":' - '0.00731999,"low_24h":0.00707511,"price_change_24h":-5.6133543212467' - 'e-05,"price_change_percentage_24h":-0.77656,"market_cap_change_24h"' - ':-1007.8447677436197,"market_cap_change_percentage_24h":-0.76929,"c' - 'irculating_supply":18147820.3764146,"total_supply":null,"max_supply' - '":null,"ath":0.03475393,"ath_change_percentage":-79.32037,"ath_date' - '":"2018-01-09T00:00:00.000Z","atl":0.00101492,"atl_change_percentag' - 'e":608.13327,"atl_date":"2014-12-18T00:00:00.000Z","roi":null,"las' - 't_updated":"2022-08-22T16:38:26.347Z"},{"id":"zcoin","symbol":"firo' - '","name":"Firo","image":"https://assets.coingecko.com/coins/images/' - '479/large/firocoingecko.png?1636537544","current_price":0.0001096,"' - 'market_cap":1252,"market_cap_rank":604,"fully_diluted_valuation":234' - '9,"total_volume":90.573,"high_24h":0.00011148,"low_24h":0.00010834,' - '"price_change_24h":-9.87561775002e-07,"price_change_percentage_24h' - '":-0.89304,"market_cap_change_24h":-10.046635178462793,"market_cap_' - 'change_percentage_24h":-0.79578,"circulating_supply":11411043.83546' - '97,"total_supply":21400000.0,"max_supply":21400000.0,"ath":0.016162' - '72,"ath_change_percentage":-99.3208,"ath_date":"2018-04-04T16:04:48.' - '408Z","atl":4.268e-05,"atl_change_percentage":157.22799,"atl_date":"' - '2022-05-12T07:28:47.088Z","roi":null,"last_updated":"2022-08-22T16' - ':38:47.229Z"},{"id":"epic-cash","symbol":"epic","name":"Epic Cash",' - '"image":"https://assets.coingecko.com/coins/images/9520/large/Epic_C' - 'oin_NO_drop_shadow.png?1620122642","current_price":2.803e-05,"marke' - 't_cap":415.109,"market_cap_rank":953,"fully_diluted_valuation":null' - ',"total_volume":0.2371557,"high_24h":3.053e-05,"low_24h":2.581e-05' - ',"price_change_24h":1.9e-06,"price_change_percentage_24h":7.27524,"' - 'market_cap_change_24h":28.26753,"market_cap_change_percentage_24h":' - '7.30726,"circulating_supply":14808052.0,"total_supply":21000000.0,"' - 'max_supply":null,"ath":0.00013848,"ath_change_percentage":-79.75864' - ',"ath_date":"2021-12-11T08:39:41.129Z","atl":5.74028e-07,"atl_chang' - 'e_percentage":4783.08078,"atl_date":"2020-03-13T16:55:01.177Z","roi' - '":null,"last_updated":"2022-08-22T16:38:32.826Z"}]', + utf8.encode( + '[{"id":"bitcoin","symbol":"btc","name":"Bitcoin","image":"https://asse' + 'ts.coingecko.com/coins/images/1/large/bitcoin.png?1547033579","curr' + 'ent_price":1.0,"market_cap":19128800,"market_cap_rank":1,"fully_dil' + 'uted_valuation":21000000,"total_volume":1272132,"high_24h":1.0,"low' + '_24h":1.0,"price_change_24h":0.0,"price_change_percentage_24h":0.0,' + '"market_cap_change_24h":950.0,"market_cap_change_percentage_24h":0.0' + '0497,"circulating_supply":19128800.0,"total_supply":21000000.0,"max' + '_supply":21000000.0,"ath":1.003301,"ath_change_percentage":-0.32896' + ',"ath_date":"2019-10-15T16:00:56.136Z","atl":0.99895134,"atl_change_' + 'percentage":0.10498,"atl_date":"2019-10-21T00:00:00.000Z","roi":nul' + 'l,"last_updated":"2022-08-22T16:37:59.237Z"},{"id":"dogecoin","symb' + 'ol":"doge","name":"Dogecoin","image":"https://assets.coingecko.com/' + 'coins/images/5/large/dogecoin.png?1547792256","current_price":3.15e' + '-06,"market_cap":417916,"market_cap_rank":10,"fully_diluted_valuati' + 'on":null,"total_volume":27498,"high_24h":3.26e-06,"low_24h":3.13e-0' + '6,"price_change_24h":-8.6889947714e-08,"price_change_percentage_24h' + '":-2.68533,"market_cap_change_24h":-11370.894861206936,"market_cap_c' + 'hange_percentage_24h":-2.64879,"circulating_supply":132670764299.89' + '4,"total_supply":null,"max_supply":null,"ath":1.264e-05,"ath_change' + '_percentage":-75.05046,"ath_date":"2021-05-07T23:04:53.026Z","atl":' + '1.50936e-07,"atl_change_percentage":1989.69346,"atl_date":"2020-12-' + '17T09:18:05.654Z","roi":null,"last_updated":"2022-08-22T16:38:15.11' + '3Z"},{"id":"monero","symbol":"xmr","name":"Monero","image":"https:/' + '/assets.coingecko.com/coins/images/69/large/monero_logo.png?1547033' + '729","current_price":0.00717236,"market_cap":130002,"market_cap_ran' + 'k":29,"fully_diluted_valuation":null,"total_volume":4901,"high_24h":' + '0.00731999,"low_24h":0.00707511,"price_change_24h":-5.6133543212467' + 'e-05,"price_change_percentage_24h":-0.77656,"market_cap_change_24h"' + ':-1007.8447677436197,"market_cap_change_percentage_24h":-0.76929,"c' + 'irculating_supply":18147820.3764146,"total_supply":null,"max_supply' + '":null,"ath":0.03475393,"ath_change_percentage":-79.32037,"ath_date' + '":"2018-01-09T00:00:00.000Z","atl":0.00101492,"atl_change_percentag' + 'e":608.13327,"atl_date":"2014-12-18T00:00:00.000Z","roi":null,"las' + 't_updated":"2022-08-22T16:38:26.347Z"},{"id":"zcoin","symbol":"firo' + '","name":"Firo","image":"https://assets.coingecko.com/coins/images/' + '479/large/firocoingecko.png?1636537544","current_price":0.0001096,"' + 'market_cap":1252,"market_cap_rank":604,"fully_diluted_valuation":234' + '9,"total_volume":90.573,"high_24h":0.00011148,"low_24h":0.00010834,' + '"price_change_24h":-9.87561775002e-07,"price_change_percentage_24h' + '":-0.89304,"market_cap_change_24h":-10.046635178462793,"market_cap_' + 'change_percentage_24h":-0.79578,"circulating_supply":11411043.83546' + '97,"total_supply":21400000.0,"max_supply":21400000.0,"ath":0.016162' + '72,"ath_change_percentage":-99.3208,"ath_date":"2018-04-04T16:04:48.' + '408Z","atl":4.268e-05,"atl_change_percentage":157.22799,"atl_date":"' + '2022-05-12T07:28:47.088Z","roi":null,"last_updated":"2022-08-22T16' + ':38:47.229Z"},{"id":"epic-cash","symbol":"epic","name":"Epic Cash",' + '"image":"https://assets.coingecko.com/coins/images/9520/large/Epic_C' + 'oin_NO_drop_shadow.png?1620122642","current_price":2.803e-05,"marke' + 't_cap":415.109,"market_cap_rank":953,"fully_diluted_valuation":null' + ',"total_volume":0.2371557,"high_24h":3.053e-05,"low_24h":2.581e-05' + ',"price_change_24h":1.9e-06,"price_change_percentage_24h":7.27524,"' + 'market_cap_change_24h":28.26753,"market_cap_change_percentage_24h":' + '7.30726,"circulating_supply":14808052.0,"total_supply":21000000.0,"' + 'max_supply":null,"ath":0.00013848,"ath_change_percentage":-79.75864' + ',"ath_date":"2021-12-11T08:39:41.129Z","atl":5.74028e-07,"atl_chang' + 'e_percentage":4783.08078,"atl_date":"2020-03-13T16:55:01.177Z","roi' + '":null,"last_updated":"2022-08-22T16:38:32.826Z"}]'), 200)); final priceAPI = PriceAPI(client); @@ -126,7 +129,8 @@ void main() { '}', ); verify(client.get( - Uri.parse( + proxyInfo: null, + url: Uri.parse( "https://api.coingecko.com/api/v3/coins/markets?vs_currency=btc" "&ids=monero,bitcoin,litecoin,ecash,epic-cash,zcoin,dogecoin," "bitcoin-cash,namecoin,wownero,ethereum,particl,nano,banano,stellar" @@ -139,10 +143,11 @@ void main() { }); test("cached price fetch", () async { - final client = MockClient(); + final client = MockHTTP(); when(client.get( - Uri.parse( + proxyInfo: null, + url: Uri.parse( "https://api.coingecko.com/api/v3/coins/markets?vs_currency=btc&" "ids=monero,bitcoin,litecoin,ecash,epic-cash,zcoin,dogecoin," "bitcoin-cash,namecoin,wownero,ethereum,particl,nano,banano,stellar" @@ -151,63 +156,64 @@ void main() { headers: { 'Content-Type': 'application/json' })).thenAnswer((_) async => Response( - '[{"id":"bitcoin","symbol":"btc","name":"Bitcoin","image":"https://a' - 'ssets.coingecko.com/coins/images/1/large/bitcoin.png?1547033579","c' - 'urrent_price":1.0,"market_cap":19128800,"market_cap_rank":1,"fully_' - 'diluted_valuation":21000000,"total_volume":1272132,"high_24h":1.0,"' - 'low_24h":1.0,"price_change_24h":0.0,"price_change_percentage_24h":0' - '.0,"market_cap_change_24h":950.0,"market_cap_change_percentage_24h"' - ':0.00497,"circulating_supply":19128800.0,"total_supply":21000000.0,"' - 'max_supply":21000000.0,"ath":1.003301,"ath_change_percentage":-0.32' - '896,"ath_date":"2019-10-15T16:00:56.136Z","atl":0.99895134,"atl_cha' - 'nge_percentage":0.10498,"atl_date":"2019-10-21T00:00:00.000Z","roi"' - ':null,"last_updated":"2022-08-22T16:37:59.237Z"},{"id":"dogecoin","' - 'symbol":"doge","name":"Dogecoin","image":"https://assets.coingecko.' - 'com/coins/images/5/large/dogecoin.png?1547792256","current_price":3' - '.15e-06,"market_cap":417916,"market_cap_rank":10,"fully_diluted_val' - 'uation":null,"total_volume":27498,"high_24h":3.26e-06,"low_24h":3.1' - '3e-06,"price_change_24h":-8.6889947714e-08,"price_change_percentage' - '_24h":-2.68533,"market_cap_change_24h":-11370.894861206936,"market_' - 'cap_change_percentage_24h":-2.64879,"circulating_supply":1326707642' - '99.894,"total_supply":null,"max_supply":null,"ath":1.264e-05,"ath_c' - 'hange_percentage":-75.05046,"ath_date":"2021-05-07T23:04:53.026Z","' - 'atl":1.50936e-07,"atl_change_percentage":1989.69346,"atl_date":"202' - '0-12-17T09:18:05.654Z","roi":null,"last_updated":"2022-08-22T16:38:' - '15.113Z"},{"id":"monero","symbol":"xmr","name":"Monero","image":"ht' - 'tps://assets.coingecko.com/coins/images/69/large/monero_logo.png?15' - '47033729","current_price":0.00717236,"market_cap":130002,"market_cap' - '_rank":29,"fully_diluted_valuation":null,"total_volume":4901,"high' - '_24h":0.00731999,"low_24h":0.00707511,"price_change_24h":-5.613354' - '3212467e-05,"price_change_percentage_24h":-0.77656,"market_cap_chan' - 'ge_24h":-1007.8447677436197,"market_cap_change_percentage_24h":-0.7' - '6929,"circulating_supply":18147820.3764146,"total_supply":null,"ma' - 'x_supply":null,"ath":0.03475393,"ath_change_percentage":-79.32037,"' - 'ath_date":"2018-01-09T00:00:00.000Z","atl":0.00101492,"atl_change_' - 'percentage":608.13327,"atl_date":"2014-12-18T00:00:00.000Z","roi":n' - 'ull,"last_updated":"2022-08-22T16:38:26.347Z"},{"id":"zcoin","symbo' - 'l":"firo","name":"Firo","image":"https://assets.coingecko.com/coins' - '/images/479/large/firocoingecko.png?1636537544","current_price":0.0' - '001096,"market_cap":1252,"market_cap_rank":604,"fully_diluted_valu' - 'ation":2349,"total_volume":90.573,"high_24h":0.00011148,"low_24h":0' - '.00010834,"price_change_24h":-9.87561775002e-07,"price_change_perce' - 'ntage_24h":-0.89304,"market_cap_change_24h":-10.046635178462793,"ma' - 'rket_cap_change_percentage_24h":-0.79578,"circulating_supply":11411' - '043.8354697,"total_supply":21400000.0,"max_supply":21400000.0,"ath"' - ':0.01616272,"ath_change_percentage":-99.3208,"ath_date":"2018-04-04' - 'T16:04:48.408Z","atl":4.268e-05,"atl_change_percentage":157.22799,' - '"atl_date":"2022-05-12T07:28:47.088Z","roi":null,"last_updated":"2' - '022-08-22T16:38:47.229Z"},{"id":"epic-cash","symbol":"epic","name":"' - 'Epic Cash","image":"https://assets.coingecko.com/coins/images/9520/' - 'large/Epic_Coin_NO_drop_shadow.png?1620122642","current_price":2.80' - '3e-05,"market_cap":415.109,"market_cap_rank":953,"fully_diluted_val' - 'uation":null,"total_volume":0.2371557,"high_24h":3.053e-05,"low_24h' - '":2.581e-05,"price_change_24h":1.9e-06,"price_change_percentage_24' - 'h":7.27524,"market_cap_change_24h":28.26753,"market_cap_change_perc' - 'entage_24h":7.30726,"circulating_supply":14808052.0,"total_supply":' - '21000000.0,"max_supply":null,"ath":0.00013848,"ath_change_percentag' - 'e":-79.75864,"ath_date":"2021-12-11T08:39:41.129Z","atl":5.74028e-0' - '7,"atl_change_percentage":4783.08078,"atl_date":"2020-03-13T16:55:01' - '.177Z","roi":null,"last_updated":"2022-08-22T16:38:32.826Z"}]', + utf8.encode( + '[{"id":"bitcoin","symbol":"btc","name":"Bitcoin","image":"https://a' + 'ssets.coingecko.com/coins/images/1/large/bitcoin.png?1547033579","c' + 'urrent_price":1.0,"market_cap":19128800,"market_cap_rank":1,"fully_' + 'diluted_valuation":21000000,"total_volume":1272132,"high_24h":1.0,"' + 'low_24h":1.0,"price_change_24h":0.0,"price_change_percentage_24h":0' + '.0,"market_cap_change_24h":950.0,"market_cap_change_percentage_24h"' + ':0.00497,"circulating_supply":19128800.0,"total_supply":21000000.0,"' + 'max_supply":21000000.0,"ath":1.003301,"ath_change_percentage":-0.32' + '896,"ath_date":"2019-10-15T16:00:56.136Z","atl":0.99895134,"atl_cha' + 'nge_percentage":0.10498,"atl_date":"2019-10-21T00:00:00.000Z","roi"' + ':null,"last_updated":"2022-08-22T16:37:59.237Z"},{"id":"dogecoin","' + 'symbol":"doge","name":"Dogecoin","image":"https://assets.coingecko.' + 'com/coins/images/5/large/dogecoin.png?1547792256","current_price":3' + '.15e-06,"market_cap":417916,"market_cap_rank":10,"fully_diluted_val' + 'uation":null,"total_volume":27498,"high_24h":3.26e-06,"low_24h":3.1' + '3e-06,"price_change_24h":-8.6889947714e-08,"price_change_percentage' + '_24h":-2.68533,"market_cap_change_24h":-11370.894861206936,"market_' + 'cap_change_percentage_24h":-2.64879,"circulating_supply":1326707642' + '99.894,"total_supply":null,"max_supply":null,"ath":1.264e-05,"ath_c' + 'hange_percentage":-75.05046,"ath_date":"2021-05-07T23:04:53.026Z","' + 'atl":1.50936e-07,"atl_change_percentage":1989.69346,"atl_date":"202' + '0-12-17T09:18:05.654Z","roi":null,"last_updated":"2022-08-22T16:38:' + '15.113Z"},{"id":"monero","symbol":"xmr","name":"Monero","image":"ht' + 'tps://assets.coingecko.com/coins/images/69/large/monero_logo.png?15' + '47033729","current_price":0.00717236,"market_cap":130002,"market_cap' + '_rank":29,"fully_diluted_valuation":null,"total_volume":4901,"high' + '_24h":0.00731999,"low_24h":0.00707511,"price_change_24h":-5.613354' + '3212467e-05,"price_change_percentage_24h":-0.77656,"market_cap_chan' + 'ge_24h":-1007.8447677436197,"market_cap_change_percentage_24h":-0.7' + '6929,"circulating_supply":18147820.3764146,"total_supply":null,"ma' + 'x_supply":null,"ath":0.03475393,"ath_change_percentage":-79.32037,"' + 'ath_date":"2018-01-09T00:00:00.000Z","atl":0.00101492,"atl_change_' + 'percentage":608.13327,"atl_date":"2014-12-18T00:00:00.000Z","roi":n' + 'ull,"last_updated":"2022-08-22T16:38:26.347Z"},{"id":"zcoin","symbo' + 'l":"firo","name":"Firo","image":"https://assets.coingecko.com/coins' + '/images/479/large/firocoingecko.png?1636537544","current_price":0.0' + '001096,"market_cap":1252,"market_cap_rank":604,"fully_diluted_valu' + 'ation":2349,"total_volume":90.573,"high_24h":0.00011148,"low_24h":0' + '.00010834,"price_change_24h":-9.87561775002e-07,"price_change_perce' + 'ntage_24h":-0.89304,"market_cap_change_24h":-10.046635178462793,"ma' + 'rket_cap_change_percentage_24h":-0.79578,"circulating_supply":11411' + '043.8354697,"total_supply":21400000.0,"max_supply":21400000.0,"ath"' + ':0.01616272,"ath_change_percentage":-99.3208,"ath_date":"2018-04-04' + 'T16:04:48.408Z","atl":4.268e-05,"atl_change_percentage":157.22799,' + '"atl_date":"2022-05-12T07:28:47.088Z","roi":null,"last_updated":"2' + '022-08-22T16:38:47.229Z"},{"id":"epic-cash","symbol":"epic","name":"' + 'Epic Cash","image":"https://assets.coingecko.com/coins/images/9520/' + 'large/Epic_Coin_NO_drop_shadow.png?1620122642","current_price":2.80' + '3e-05,"market_cap":415.109,"market_cap_rank":953,"fully_diluted_val' + 'uation":null,"total_volume":0.2371557,"high_24h":3.053e-05,"low_24h' + '":2.581e-05,"price_change_24h":1.9e-06,"price_change_percentage_24' + 'h":7.27524,"market_cap_change_24h":28.26753,"market_cap_change_perc' + 'entage_24h":7.30726,"circulating_supply":14808052.0,"total_supply":' + '21000000.0,"max_supply":null,"ath":0.00013848,"ath_change_percentag' + 'e":-79.75864,"ath_date":"2021-12-11T08:39:41.129Z","atl":5.74028e-0' + '7,"atl_change_percentage":4783.08078,"atl_date":"2020-03-13T16:55:01' + '.177Z","roi":null,"last_updated":"2022-08-22T16:38:32.826Z"}]'), 200)); final priceAPI = PriceAPI(client); @@ -247,7 +253,8 @@ void main() { // verify only called once during filling of cache verify(client.get( - Uri.parse( + proxyInfo: null, + url: Uri.parse( "https://api.coingecko.com/api/v3/coins/markets?vs_currency=btc&ids" "=monero,bitcoin,litecoin,ecash,epic-cash,zcoin,dogecoin," "bitcoin-cash,namecoin,wownero,ethereum,particl,nano,banano,stellar" @@ -259,10 +266,11 @@ void main() { }); test("response parse failure", () async { - final client = MockClient(); + final client = MockHTTP(); when(client.get( - Uri.parse( + proxyInfo: null, + url: Uri.parse( "https://api.coingecko.com/api/v3/coins/markets?vs_currency=btc" "&ids=monero,bitcoin,litecoin,ecash,epic-cash,zcoin,dogecoin," "bitcoin-cash,namecoin,wownero,ethereum,particl,nano,banano,stellar" @@ -271,64 +279,65 @@ void main() { headers: { 'Content-Type': 'application/json' })).thenAnswer((_) async => Response( - '[{"id":"bitcoin","symbol":"btc","name":com/coins/images/1/large/' - 'bitcoin.png?1547033579","current_price":1.0,"market_cap":19128800' - ',"market_cap_rank":1,"fully_diluted_valuation":21000000,"total_volum' - 'e":1272132,"high_24h":1.0,"low_24h":1.0,"price_change_24h":0.0,"pri' - 'ce_change_percentage_24h":0.0,"market_cap_change_24h":950.0,"market_' - 'cap_change_percentage_24h":0.00497,"circulating_supply":19128800.0,"t' - 'otal_supply":21000000.0,"max_supply":21000000.0,"ath":1.003301,"ath' - '_change_percentage":-0.32896,"ath_date":"2019-10-15T16:00:56.136Z",' - '"atl":0.99895134,"atl_change_percentage":0.10498,"atl_date":' - '"2019-10-21T00:00:00.000Z","roi":null,' - '"last_updated":"2022-08-22T16:37:59.237Z"},{"id":"dogecoin"' - ',"symbol":"doge","name":"Dogecoin","image":' - '"https://assets.coingecko.com/coins/images/5/large/dogecoin.png?1547792256",' - '"current_price":3.15e-06,"market_cap":417916,"market_cap_rank":10' - ',"fully_diluted_valuation":null,"total_volume":27498,"high_24h":3' - '.26e-06,"low_24h":3.13e-06,"price_change_24h":-8.6889947714e-08,"' - 'price_change_percentage_24h":-2.68533,"market_cap_change_24h":-11' - '370.894861206936,"market_cap_change_percentage_24h":-2.64879,"cir' - 'culating_supply":132670764299.894,"total_supply":null,"max_supply' - '":null,"ath":1.264e-05,"ath_change_percentage":-75.05046,"ath_date' - '":"2021-05-07T23:04:53.026Z","atl":1.50936e-07,"atl_change_percen' - 'tage":1989.69346,"atl_date":"2020-12-17T09:18:05.654Z","roi":null,' - '"last_updated":"2022-08-22T16:38:15.113Z"},{"id":"monero","symbol"' - ':"xmr","name":"Monero","image":"https://assets.coingecko.com/coins' - '/images/69/large/monero_logo.png?1547033729","current_price":0.007' - '17236,"market_cap":130002,"market_cap_rank":29,"fully_diluted_valu' - 'ation":null,"total_volume":4901,"high_24h":0.00731999,"low_24h":0.' - '00707511,"price_change_24h":-5.6133543212467e-05,"price_change_per' - 'centage_24h":-0.77656,"market_cap_change_24h":-1007.8447677436197' - ',"market_cap_change_percentage_24h":-0.76929,"circulating_supply":' - '18147820.3764146,"total_supply":null,"max_supply":null,"ath":0.034' - '75393,"ath_change_percentage":-79.32037,"ath_date":"2018-01-09T00:' - '00:00.000Z","atl":0.00101492,"atl_change_percentage":608.13327,"at' - 'l_date":"2014-12-18T00:00:00.000Z","roi":null,"last_updated":"2022' - '-08-22T16:38:26.347Z"},{"id":"zcoin","symbol":"firo","name":"Firo"' - ',"image":"https://assets.coingecko.com/coins/images/479/large/firo' - 'coingecko.png?1636537544","current_price":0.0001096,"market_cap":1' - '252,"market_cap_rank":604,"fully_diluted_valuation":2349,"total_vo' - 'lume":90.573,"high_24h":0.00011148,"low_24h":0.00010834,"price_chang' - 'e_24h":-9.87561775002e-07,"price_change_percentage_24h":-0.89304,' - '"market_cap_change_24h":-10.046635178462793,"market_cap_change_per' - 'centage_24h":-0.79578,"circulating_supply":11411043.8354697,"tota' - 'l_supply":21400000.0,"max_supply":21400000.0,"ath":0.01616272,"ath' - '_change_percentage":-99.3208,"ath_date":"2018-04-04T16:04:48.408Z"' - ',"atl":4.268e-05,"atl_change_percentage":157.22799,"atl_date":"202' - '2-05-12T07:28:47.088Z","roi":null,"last_updated":"2022-08-22T16:3' - '8:47.229Z"},{"id":"epic-cash","symbol":"epic","name":"Epic Cash",' - '"image":"https://assets.coingecko.com/coins/images/9520/large/' - 'Epic_Coin_NO_drop_shadow.png?1620122642","current_price":2.803e-0' - '5,"market_cap":415.109,"market_cap_rank":953,"fully_diluted_valuat' - 'ion":null,"total_volume":0.2371557,"high_24h":3.053e-05,"low_24h":' - '2.581e-05,"price_change_24h":1.9e-06,"price_change_percentage_24h"' - ':7.27524,"market_cap_change_24h":28.26753,"market_cap_change_per' - 'centage_24h":7.30726,"circulating_supply":14808052.0,"total_suppl' - 'y":21000000.0,"max_supply":null,"ath":0.00013848,"ath_change_perce' - 'ntage":-79.75864,"ath_date":"2021-12-11T08:39:41.129Z","atl":5.74' - '028e-07,"atl_change_percentage":4783.08078,"atl_date":"2020-03-13T' - '16:55:01.177Z","roi":null,"last_updated":"2022-08-22T16:38:32.826Z"}]', + utf8.encode( + '[{"id":"bitcoin","symbol":"btc","name":com/coins/images/1/large/' + 'bitcoin.png?1547033579","current_price":1.0,"market_cap":19128800' + ',"market_cap_rank":1,"fully_diluted_valuation":21000000,"total_volum' + 'e":1272132,"high_24h":1.0,"low_24h":1.0,"price_change_24h":0.0,"pri' + 'ce_change_percentage_24h":0.0,"market_cap_change_24h":950.0,"market_' + 'cap_change_percentage_24h":0.00497,"circulating_supply":19128800.0,"t' + 'otal_supply":21000000.0,"max_supply":21000000.0,"ath":1.003301,"ath' + '_change_percentage":-0.32896,"ath_date":"2019-10-15T16:00:56.136Z",' + '"atl":0.99895134,"atl_change_percentage":0.10498,"atl_date":' + '"2019-10-21T00:00:00.000Z","roi":null,' + '"last_updated":"2022-08-22T16:37:59.237Z"},{"id":"dogecoin"' + ',"symbol":"doge","name":"Dogecoin","image":' + '"https://assets.coingecko.com/coins/images/5/large/dogecoin.png?1547792256",' + '"current_price":3.15e-06,"market_cap":417916,"market_cap_rank":10' + ',"fully_diluted_valuation":null,"total_volume":27498,"high_24h":3' + '.26e-06,"low_24h":3.13e-06,"price_change_24h":-8.6889947714e-08,"' + 'price_change_percentage_24h":-2.68533,"market_cap_change_24h":-11' + '370.894861206936,"market_cap_change_percentage_24h":-2.64879,"cir' + 'culating_supply":132670764299.894,"total_supply":null,"max_supply' + '":null,"ath":1.264e-05,"ath_change_percentage":-75.05046,"ath_date' + '":"2021-05-07T23:04:53.026Z","atl":1.50936e-07,"atl_change_percen' + 'tage":1989.69346,"atl_date":"2020-12-17T09:18:05.654Z","roi":null,' + '"last_updated":"2022-08-22T16:38:15.113Z"},{"id":"monero","symbol"' + ':"xmr","name":"Monero","image":"https://assets.coingecko.com/coins' + '/images/69/large/monero_logo.png?1547033729","current_price":0.007' + '17236,"market_cap":130002,"market_cap_rank":29,"fully_diluted_valu' + 'ation":null,"total_volume":4901,"high_24h":0.00731999,"low_24h":0.' + '00707511,"price_change_24h":-5.6133543212467e-05,"price_change_per' + 'centage_24h":-0.77656,"market_cap_change_24h":-1007.8447677436197' + ',"market_cap_change_percentage_24h":-0.76929,"circulating_supply":' + '18147820.3764146,"total_supply":null,"max_supply":null,"ath":0.034' + '75393,"ath_change_percentage":-79.32037,"ath_date":"2018-01-09T00:' + '00:00.000Z","atl":0.00101492,"atl_change_percentage":608.13327,"at' + 'l_date":"2014-12-18T00:00:00.000Z","roi":null,"last_updated":"2022' + '-08-22T16:38:26.347Z"},{"id":"zcoin","symbol":"firo","name":"Firo"' + ',"image":"https://assets.coingecko.com/coins/images/479/large/firo' + 'coingecko.png?1636537544","current_price":0.0001096,"market_cap":1' + '252,"market_cap_rank":604,"fully_diluted_valuation":2349,"total_vo' + 'lume":90.573,"high_24h":0.00011148,"low_24h":0.00010834,"price_chang' + 'e_24h":-9.87561775002e-07,"price_change_percentage_24h":-0.89304,' + '"market_cap_change_24h":-10.046635178462793,"market_cap_change_per' + 'centage_24h":-0.79578,"circulating_supply":11411043.8354697,"tota' + 'l_supply":21400000.0,"max_supply":21400000.0,"ath":0.01616272,"ath' + '_change_percentage":-99.3208,"ath_date":"2018-04-04T16:04:48.408Z"' + ',"atl":4.268e-05,"atl_change_percentage":157.22799,"atl_date":"202' + '2-05-12T07:28:47.088Z","roi":null,"last_updated":"2022-08-22T16:3' + '8:47.229Z"},{"id":"epic-cash","symbol":"epic","name":"Epic Cash",' + '"image":"https://assets.coingecko.com/coins/images/9520/large/' + 'Epic_Coin_NO_drop_shadow.png?1620122642","current_price":2.803e-0' + '5,"market_cap":415.109,"market_cap_rank":953,"fully_diluted_valuat' + 'ion":null,"total_volume":0.2371557,"high_24h":3.053e-05,"low_24h":' + '2.581e-05,"price_change_24h":1.9e-06,"price_change_percentage_24h"' + ':7.27524,"market_cap_change_24h":28.26753,"market_cap_change_per' + 'centage_24h":7.30726,"circulating_supply":14808052.0,"total_suppl' + 'y":21000000.0,"max_supply":null,"ath":0.00013848,"ath_change_perce' + 'ntage":-79.75864,"ath_date":"2021-12-11T08:39:41.129Z","atl":5.74' + '028e-07,"atl_change_percentage":4783.08078,"atl_date":"2020-03-13T' + '16:55:01.177Z","roi":null,"last_updated":"2022-08-22T16:38:32.826Z"}]'), 200)); final priceAPI = PriceAPI(client); @@ -365,10 +374,11 @@ void main() { }); test("no internet available", () async { - final client = MockClient(); + final client = MockHTTP(); when(client.get( - Uri.parse( + proxyInfo: null, + url: Uri.parse( "https://api.coingecko.com/api/v3/coins/markets?vs_currency=btc" "&ids=monero,bitcoin,litecoin,ecash,epic-cash,zcoin,dogecoin," "bitcoin-cash,namecoin,wownero,ethereum,particl,nano,banano,stellar" diff --git a/test/price_test.mocks.dart b/test/price_test.mocks.dart index 8c38f59f9..59b90851e 100644 --- a/test/price_test.mocks.dart +++ b/test/price_test.mocks.dart @@ -4,11 +4,11 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i3; -import 'dart:convert' as _i4; -import 'dart:typed_data' as _i5; +import 'dart:convert' as _i5; +import 'dart:io' as _i4; -import 'package:http/http.dart' as _i2; import 'package:mockito/mockito.dart' as _i1; +import 'package:stackwallet/networking/http.dart' as _i2; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -31,233 +31,76 @@ class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response { ); } -class _FakeStreamedResponse_1 extends _i1.SmartFake - implements _i2.StreamedResponse { - _FakeStreamedResponse_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [Client]. +/// A class which mocks [HTTP]. /// /// See the documentation for Mockito's code generation for more information. -class MockClient extends _i1.Mock implements _i2.Client { - MockClient() { +class MockHTTP extends _i1.Mock implements _i2.HTTP { + MockHTTP() { _i1.throwOnMissingStub(this); } @override - _i3.Future<_i2.Response> head( - Uri? url, { - Map? headers, - }) => - (super.noSuchMethod( - Invocation.method( - #head, - [url], - {#headers: headers}, - ), - returnValue: _i3.Future<_i2.Response>.value(_FakeResponse_0( - this, - Invocation.method( - #head, - [url], - {#headers: headers}, - ), - )), - ) as _i3.Future<_i2.Response>); - @override - _i3.Future<_i2.Response> get( - Uri? url, { + _i3.Future<_i2.Response> get({ + required Uri? url, Map? headers, + required ({_i4.InternetAddress host, int port})? proxyInfo, }) => (super.noSuchMethod( Invocation.method( #get, - [url], - {#headers: headers}, + [], + { + #url: url, + #headers: headers, + #proxyInfo: proxyInfo, + }, ), returnValue: _i3.Future<_i2.Response>.value(_FakeResponse_0( this, Invocation.method( #get, - [url], - {#headers: headers}, + [], + { + #url: url, + #headers: headers, + #proxyInfo: proxyInfo, + }, ), )), ) as _i3.Future<_i2.Response>); @override - _i3.Future<_i2.Response> post( - Uri? url, { + _i3.Future<_i2.Response> post({ + required Uri? url, Map? headers, Object? body, - _i4.Encoding? encoding, + _i5.Encoding? encoding, + required ({_i4.InternetAddress host, int port})? proxyInfo, }) => (super.noSuchMethod( Invocation.method( #post, - [url], + [], { + #url: url, #headers: headers, #body: body, #encoding: encoding, + #proxyInfo: proxyInfo, }, ), returnValue: _i3.Future<_i2.Response>.value(_FakeResponse_0( this, Invocation.method( #post, - [url], + [], { + #url: url, #headers: headers, #body: body, #encoding: encoding, + #proxyInfo: proxyInfo, }, ), )), ) as _i3.Future<_i2.Response>); - @override - _i3.Future<_i2.Response> put( - Uri? url, { - Map? headers, - Object? body, - _i4.Encoding? encoding, - }) => - (super.noSuchMethod( - Invocation.method( - #put, - [url], - { - #headers: headers, - #body: body, - #encoding: encoding, - }, - ), - returnValue: _i3.Future<_i2.Response>.value(_FakeResponse_0( - this, - Invocation.method( - #put, - [url], - { - #headers: headers, - #body: body, - #encoding: encoding, - }, - ), - )), - ) as _i3.Future<_i2.Response>); - @override - _i3.Future<_i2.Response> patch( - Uri? url, { - Map? headers, - Object? body, - _i4.Encoding? encoding, - }) => - (super.noSuchMethod( - Invocation.method( - #patch, - [url], - { - #headers: headers, - #body: body, - #encoding: encoding, - }, - ), - returnValue: _i3.Future<_i2.Response>.value(_FakeResponse_0( - this, - Invocation.method( - #patch, - [url], - { - #headers: headers, - #body: body, - #encoding: encoding, - }, - ), - )), - ) as _i3.Future<_i2.Response>); - @override - _i3.Future<_i2.Response> delete( - Uri? url, { - Map? headers, - Object? body, - _i4.Encoding? encoding, - }) => - (super.noSuchMethod( - Invocation.method( - #delete, - [url], - { - #headers: headers, - #body: body, - #encoding: encoding, - }, - ), - returnValue: _i3.Future<_i2.Response>.value(_FakeResponse_0( - this, - Invocation.method( - #delete, - [url], - { - #headers: headers, - #body: body, - #encoding: encoding, - }, - ), - )), - ) as _i3.Future<_i2.Response>); - @override - _i3.Future read( - Uri? url, { - Map? headers, - }) => - (super.noSuchMethod( - Invocation.method( - #read, - [url], - {#headers: headers}, - ), - returnValue: _i3.Future.value(''), - ) as _i3.Future); - @override - _i3.Future<_i5.Uint8List> readBytes( - Uri? url, { - Map? headers, - }) => - (super.noSuchMethod( - Invocation.method( - #readBytes, - [url], - {#headers: headers}, - ), - returnValue: _i3.Future<_i5.Uint8List>.value(_i5.Uint8List(0)), - ) as _i3.Future<_i5.Uint8List>); - @override - _i3.Future<_i2.StreamedResponse> send(_i2.BaseRequest? request) => - (super.noSuchMethod( - Invocation.method( - #send, - [request], - ), - returnValue: - _i3.Future<_i2.StreamedResponse>.value(_FakeStreamedResponse_1( - this, - Invocation.method( - #send, - [request], - ), - )), - ) as _i3.Future<_i2.StreamedResponse>); - @override - void close() => super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValueForMissingStub: null, - ); } diff --git a/test/screen_tests/exchange/exchange_view_test.mocks.dart b/test/screen_tests/exchange/exchange_view_test.mocks.dart index 5263fad93..5e23da459 100644 --- a/test/screen_tests/exchange/exchange_view_test.mocks.dart +++ b/test/screen_tests/exchange/exchange_view_test.mocks.dart @@ -244,14 +244,14 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs { returnValueForMissingStub: null, ); @override - bool get torKillswitch => (super.noSuchMethod( - Invocation.getter(#torKillswitch), + bool get torKillSwitch => (super.noSuchMethod( + Invocation.getter(#torKillSwitch), returnValue: false, ) as bool); @override - set torKillswitch(bool? torKillswitch) => super.noSuchMethod( + set torKillSwitch(bool? torKillswitch) => super.noSuchMethod( Invocation.setter( - #torKillswitch, + #torKillSwitch, torKillswitch, ), returnValueForMissingStub: null, diff --git a/test/widget_tests/custom_buttons/favorite_toggle_test.mocks.dart b/test/widget_tests/custom_buttons/favorite_toggle_test.mocks.dart index 0abed1954..20727e854 100644 --- a/test/widget_tests/custom_buttons/favorite_toggle_test.mocks.dart +++ b/test/widget_tests/custom_buttons/favorite_toggle_test.mocks.dart @@ -3,13 +3,14 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:typed_data' as _i6; +import 'dart:async' as _i6; +import 'dart:typed_data' as _i7; import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/db/isar/main_db.dart' as _i2; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i4; -import 'package:stackwallet/themes/theme_service.dart' as _i3; +import 'package:stackwallet/db/isar/main_db.dart' as _i3; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i5; +import 'package:stackwallet/networking/http.dart' as _i2; +import 'package:stackwallet/themes/theme_service.dart' as _i4; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -22,8 +23,18 @@ import 'package:stackwallet/themes/theme_service.dart' as _i3; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeMainDB_0 extends _i1.SmartFake implements _i2.MainDB { - _FakeMainDB_0( +class _FakeHTTP_0 extends _i1.SmartFake implements _i2.HTTP { + _FakeHTTP_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeMainDB_1 extends _i1.SmartFake implements _i3.MainDB { + _FakeMainDB_1( Object parent, Invocation parentInvocation, ) : super( @@ -35,26 +46,42 @@ class _FakeMainDB_0 extends _i1.SmartFake implements _i2.MainDB { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i3.ThemeService { +class MockThemeService extends _i1.Mock implements _i4.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @override - _i2.MainDB get db => (super.noSuchMethod( + _i2.HTTP get client => (super.noSuchMethod( + Invocation.getter(#client), + returnValue: _FakeHTTP_0( + this, + Invocation.getter(#client), + ), + ) as _i2.HTTP); + @override + set client(_i2.HTTP? _client) => super.noSuchMethod( + Invocation.setter( + #client, + _client, + ), + returnValueForMissingStub: null, + ); + @override + _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeMainDB_0( + returnValue: _FakeMainDB_1( this, Invocation.getter(#db), ), - ) as _i2.MainDB); + ) as _i3.MainDB); @override - List<_i4.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i5.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i4.StackTheme>[], - ) as List<_i4.StackTheme>); + returnValue: <_i5.StackTheme>[], + ) as List<_i5.StackTheme>); @override - void init(_i2.MainDB? db) => super.noSuchMethod( + void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( #init, [db], @@ -62,70 +89,70 @@ class MockThemeService extends _i1.Mock implements _i3.ThemeService { returnValueForMissingStub: null, ); @override - _i5.Future install({required _i6.Uint8List? themeArchiveData}) => + _i6.Future install({required _i7.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future remove({required String? themeId}) => (super.noSuchMethod( + _i6.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i6.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future verifyInstalled({required String? themeId}) => + _i6.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); + returnValue: _i6.Future.value(false), + ) as _i6.Future); @override - _i5.Future> fetchThemes() => (super.noSuchMethod( + _i6.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i5.Future>.value( - <_i3.StackThemeMetaData>[]), - ) as _i5.Future>); + returnValue: _i6.Future>.value( + <_i4.StackThemeMetaData>[]), + ) as _i6.Future>); @override - _i5.Future<_i6.Uint8List> fetchTheme( - {required _i3.StackThemeMetaData? themeMetaData}) => + _i6.Future<_i7.Uint8List> fetchTheme( + {required _i4.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i5.Future<_i6.Uint8List>.value(_i6.Uint8List(0)), - ) as _i5.Future<_i6.Uint8List>); + returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), + ) as _i6.Future<_i7.Uint8List>); @override - _i4.StackTheme? getTheme({required String? themeId}) => + _i5.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i4.StackTheme?); + )) as _i5.StackTheme?); } diff --git a/test/widget_tests/custom_loading_overlay_test.mocks.dart b/test/widget_tests/custom_loading_overlay_test.mocks.dart index c96558898..142052fa2 100644 --- a/test/widget_tests/custom_loading_overlay_test.mocks.dart +++ b/test/widget_tests/custom_loading_overlay_test.mocks.dart @@ -3,13 +3,14 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:typed_data' as _i6; +import 'dart:async' as _i6; +import 'dart:typed_data' as _i7; import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/db/isar/main_db.dart' as _i2; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i4; -import 'package:stackwallet/themes/theme_service.dart' as _i3; +import 'package:stackwallet/db/isar/main_db.dart' as _i3; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i5; +import 'package:stackwallet/networking/http.dart' as _i2; +import 'package:stackwallet/themes/theme_service.dart' as _i4; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -22,8 +23,18 @@ import 'package:stackwallet/themes/theme_service.dart' as _i3; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeMainDB_0 extends _i1.SmartFake implements _i2.MainDB { - _FakeMainDB_0( +class _FakeHTTP_0 extends _i1.SmartFake implements _i2.HTTP { + _FakeHTTP_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeMainDB_1 extends _i1.SmartFake implements _i3.MainDB { + _FakeMainDB_1( Object parent, Invocation parentInvocation, ) : super( @@ -35,26 +46,42 @@ class _FakeMainDB_0 extends _i1.SmartFake implements _i2.MainDB { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i3.ThemeService { +class MockThemeService extends _i1.Mock implements _i4.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @override - _i2.MainDB get db => (super.noSuchMethod( + _i2.HTTP get client => (super.noSuchMethod( + Invocation.getter(#client), + returnValue: _FakeHTTP_0( + this, + Invocation.getter(#client), + ), + ) as _i2.HTTP); + @override + set client(_i2.HTTP? _client) => super.noSuchMethod( + Invocation.setter( + #client, + _client, + ), + returnValueForMissingStub: null, + ); + @override + _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeMainDB_0( + returnValue: _FakeMainDB_1( this, Invocation.getter(#db), ), - ) as _i2.MainDB); + ) as _i3.MainDB); @override - List<_i4.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i5.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i4.StackTheme>[], - ) as List<_i4.StackTheme>); + returnValue: <_i5.StackTheme>[], + ) as List<_i5.StackTheme>); @override - void init(_i2.MainDB? db) => super.noSuchMethod( + void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( #init, [db], @@ -62,70 +89,70 @@ class MockThemeService extends _i1.Mock implements _i3.ThemeService { returnValueForMissingStub: null, ); @override - _i5.Future install({required _i6.Uint8List? themeArchiveData}) => + _i6.Future install({required _i7.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future remove({required String? themeId}) => (super.noSuchMethod( + _i6.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i6.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future verifyInstalled({required String? themeId}) => + _i6.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); + returnValue: _i6.Future.value(false), + ) as _i6.Future); @override - _i5.Future> fetchThemes() => (super.noSuchMethod( + _i6.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i5.Future>.value( - <_i3.StackThemeMetaData>[]), - ) as _i5.Future>); + returnValue: _i6.Future>.value( + <_i4.StackThemeMetaData>[]), + ) as _i6.Future>); @override - _i5.Future<_i6.Uint8List> fetchTheme( - {required _i3.StackThemeMetaData? themeMetaData}) => + _i6.Future<_i7.Uint8List> fetchTheme( + {required _i4.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i5.Future<_i6.Uint8List>.value(_i6.Uint8List(0)), - ) as _i5.Future<_i6.Uint8List>); + returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), + ) as _i6.Future<_i7.Uint8List>); @override - _i4.StackTheme? getTheme({required String? themeId}) => + _i5.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i4.StackTheme?); + )) as _i5.StackTheme?); } diff --git a/test/widget_tests/desktop/desktop_scaffold_test.mocks.dart b/test/widget_tests/desktop/desktop_scaffold_test.mocks.dart index 37476e4c3..8507ace66 100644 --- a/test/widget_tests/desktop/desktop_scaffold_test.mocks.dart +++ b/test/widget_tests/desktop/desktop_scaffold_test.mocks.dart @@ -3,13 +3,14 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:typed_data' as _i6; +import 'dart:async' as _i6; +import 'dart:typed_data' as _i7; import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/db/isar/main_db.dart' as _i2; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i4; -import 'package:stackwallet/themes/theme_service.dart' as _i3; +import 'package:stackwallet/db/isar/main_db.dart' as _i3; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i5; +import 'package:stackwallet/networking/http.dart' as _i2; +import 'package:stackwallet/themes/theme_service.dart' as _i4; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -22,8 +23,18 @@ import 'package:stackwallet/themes/theme_service.dart' as _i3; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeMainDB_0 extends _i1.SmartFake implements _i2.MainDB { - _FakeMainDB_0( +class _FakeHTTP_0 extends _i1.SmartFake implements _i2.HTTP { + _FakeHTTP_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeMainDB_1 extends _i1.SmartFake implements _i3.MainDB { + _FakeMainDB_1( Object parent, Invocation parentInvocation, ) : super( @@ -35,26 +46,42 @@ class _FakeMainDB_0 extends _i1.SmartFake implements _i2.MainDB { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i3.ThemeService { +class MockThemeService extends _i1.Mock implements _i4.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @override - _i2.MainDB get db => (super.noSuchMethod( + _i2.HTTP get client => (super.noSuchMethod( + Invocation.getter(#client), + returnValue: _FakeHTTP_0( + this, + Invocation.getter(#client), + ), + ) as _i2.HTTP); + @override + set client(_i2.HTTP? _client) => super.noSuchMethod( + Invocation.setter( + #client, + _client, + ), + returnValueForMissingStub: null, + ); + @override + _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeMainDB_0( + returnValue: _FakeMainDB_1( this, Invocation.getter(#db), ), - ) as _i2.MainDB); + ) as _i3.MainDB); @override - List<_i4.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i5.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i4.StackTheme>[], - ) as List<_i4.StackTheme>); + returnValue: <_i5.StackTheme>[], + ) as List<_i5.StackTheme>); @override - void init(_i2.MainDB? db) => super.noSuchMethod( + void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( #init, [db], @@ -62,70 +89,70 @@ class MockThemeService extends _i1.Mock implements _i3.ThemeService { returnValueForMissingStub: null, ); @override - _i5.Future install({required _i6.Uint8List? themeArchiveData}) => + _i6.Future install({required _i7.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future remove({required String? themeId}) => (super.noSuchMethod( + _i6.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i6.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future verifyInstalled({required String? themeId}) => + _i6.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); + returnValue: _i6.Future.value(false), + ) as _i6.Future); @override - _i5.Future> fetchThemes() => (super.noSuchMethod( + _i6.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i5.Future>.value( - <_i3.StackThemeMetaData>[]), - ) as _i5.Future>); + returnValue: _i6.Future>.value( + <_i4.StackThemeMetaData>[]), + ) as _i6.Future>); @override - _i5.Future<_i6.Uint8List> fetchTheme( - {required _i3.StackThemeMetaData? themeMetaData}) => + _i6.Future<_i7.Uint8List> fetchTheme( + {required _i4.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i5.Future<_i6.Uint8List>.value(_i6.Uint8List(0)), - ) as _i5.Future<_i6.Uint8List>); + returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), + ) as _i6.Future<_i7.Uint8List>); @override - _i4.StackTheme? getTheme({required String? themeId}) => + _i5.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i4.StackTheme?); + )) as _i5.StackTheme?); } diff --git a/test/widget_tests/managed_favorite_test.mocks.dart b/test/widget_tests/managed_favorite_test.mocks.dart index 856a2c6f5..e2232e066 100644 --- a/test/widget_tests/managed_favorite_test.mocks.dart +++ b/test/widget_tests/managed_favorite_test.mocks.dart @@ -3,9 +3,9 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i23; -import 'dart:typed_data' as _i29; -import 'dart:ui' as _i25; +import 'dart:async' as _i24; +import 'dart:typed_data' as _i30; +import 'dart:ui' as _i26; import 'package:bip32/bip32.dart' as _i16; import 'package:bip47/bip47.dart' as _i18; @@ -18,29 +18,30 @@ 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 _i17; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i31; -import 'package:stackwallet/models/node_model.dart' as _i36; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i32; +import 'package:stackwallet/models/node_model.dart' as _i37; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/models/signing_data.dart' as _i28; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i26; -import 'package:stackwallet/services/coins/coin_service.dart' as _i20; +import 'package:stackwallet/models/signing_data.dart' as _i29; +import 'package:stackwallet/networking/http.dart' as _i19; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i27; +import 'package:stackwallet/services/coins/coin_service.dart' as _i21; import 'package:stackwallet/services/coins/manager.dart' as _i6; -import 'package:stackwallet/services/locale_service.dart' as _i35; +import 'package:stackwallet/services/locale_service.dart' as _i36; 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 _i21; +import 'package:stackwallet/services/wallets.dart' as _i22; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/themes/theme_service.dart' as _i30; +import 'package:stackwallet/themes/theme_service.dart' as _i31; import 'package:stackwallet/utilities/amount/amount.dart' as _i14; -import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i34; -import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i33; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i22; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i27; -import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i32; +import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i35; +import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i34; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i23; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i28; +import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i33; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i19; -import 'package:stackwallet/utilities/prefs.dart' as _i24; + as _i20; +import 'package:stackwallet/utilities/prefs.dart' as _i25; import 'package:tuple/tuple.dart' as _i15; // ignore_for_file: type=lint @@ -229,9 +230,8 @@ class _FakePaymentCode_16 extends _i1.SmartFake implements _i18.PaymentCode { ); } -class _FakeSecureStorageInterface_17 extends _i1.SmartFake - implements _i19.SecureStorageInterface { - _FakeSecureStorageInterface_17( +class _FakeHTTP_17 extends _i1.SmartFake implements _i19.HTTP { + _FakeHTTP_17( Object parent, Invocation parentInvocation, ) : super( @@ -240,9 +240,20 @@ class _FakeSecureStorageInterface_17 extends _i1.SmartFake ); } -class _FakeCoinServiceAPI_18 extends _i1.SmartFake - implements _i20.CoinServiceAPI { - _FakeCoinServiceAPI_18( +class _FakeSecureStorageInterface_18 extends _i1.SmartFake + implements _i20.SecureStorageInterface { + _FakeSecureStorageInterface_18( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeCoinServiceAPI_19 extends _i1.SmartFake + implements _i21.CoinServiceAPI { + _FakeCoinServiceAPI_19( Object parent, Invocation parentInvocation, ) : super( @@ -254,7 +265,7 @@ class _FakeCoinServiceAPI_18 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 _i21.Wallets { +class MockWallets extends _i1.Mock implements _i22.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -321,7 +332,7 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i22.Coin? coin}) => + List getWalletIdsFor({required _i23.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -331,20 +342,20 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValue: [], ) as List); @override - List<_i15.Tuple2<_i22.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>> + List<_i15.Tuple2<_i23.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i15.Tuple2<_i22.Coin, + returnValue: <_i15.Tuple2<_i23.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>[], ) as List< - _i15.Tuple2<_i22.Coin, + _i15.Tuple2<_i23.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i22.Coin? coin) => + _i23.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -408,17 +419,17 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValueForMissingStub: null, ); @override - _i23.Future load(_i24.Prefs? prefs) => (super.noSuchMethod( + _i24.Future load(_i25.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future loadAfterStackRestore( - _i24.Prefs? prefs, + _i24.Future loadAfterStackRestore( + _i25.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -429,11 +440,11 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { managers, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -441,7 +452,7 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -467,19 +478,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i23.Future> get walletNames => + _i24.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i23.Future>.value( + returnValue: _i24.Future>.value( {}), - ) as _i23.Future>); + ) as _i24.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i23.Future renameWallet({ + _i24.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -494,8 +505,8 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( @@ -505,10 +516,10 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValue: {}, ) as Map); @override - _i23.Future addExistingStackWallet({ + _i24.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i22.Coin? coin, + required _i23.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -522,13 +533,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future addNewWallet({ + _i24.Future addNewWallet({ required String? name, - required _i22.Coin? coin, + required _i23.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -541,46 +552,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i24.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future saveFavoriteWalletIds(List? walletIds) => + _i24.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i24.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i24.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future moveFavorite({ + _i24.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -593,48 +604,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i24.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i24.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future isMnemonicVerified({required String? walletId}) => + _i24.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future setMnemonicVerified({required String? walletId}) => + _i24.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future deleteWallet( + _i24.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -646,20 +657,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future refreshWallets(bool? shouldNotifyListeners) => + _i24.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -667,7 +678,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -695,13 +706,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 _i26.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i23.Timer? _timer) => super.noSuchMethod( + set timer(_i24.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -778,74 +789,74 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValue: false, ) as bool); @override - _i22.Coin get coin => (super.noSuchMethod( + _i23.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i22.Coin.bitcoin, - ) as _i22.Coin); + returnValue: _i23.Coin.bitcoin, + ) as _i23.Coin); @override - _i23.Future> get utxos => (super.noSuchMethod( + _i24.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i23.Future>.value(<_i17.UTXO>[]), - ) as _i23.Future>); + returnValue: _i24.Future>.value(<_i17.UTXO>[]), + ) as _i24.Future>); @override - _i23.Future> get transactions => (super.noSuchMethod( + _i24.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i23.Future>.value(<_i17.Transaction>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i17.Transaction>[]), + ) as _i24.Future>); @override - _i23.Future get currentReceivingAddress => (super.noSuchMethod( + _i24.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future get currentChangeAddress => (super.noSuchMethod( + _i24.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future get currentChangeAddressP2PKH => (super.noSuchMethod( + _i24.Future get currentChangeAddressP2PKH => (super.noSuchMethod( Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i23.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i24.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i23.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i24.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i23.Future<_i8.FeeObject>); + ) as _i24.Future<_i8.FeeObject>); @override - _i23.Future get maxFee => (super.noSuchMethod( + _i24.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future> get mnemonic => (super.noSuchMethod( + _i24.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future get mnemonicString => (super.noSuchMethod( + _i24.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future get mnemonicPassphrase => (super.noSuchMethod( + _i24.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future get chainHeight => (super.noSuchMethod( + _i24.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -917,10 +928,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { ), ) as _i11.Balance); @override - _i23.Future get xpub => (super.noSuchMethod( + _i24.Future get xpub => (super.noSuchMethod( Invocation.getter(#xpub), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -947,26 +958,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { ), ) as _i13.NetworkType); @override - _i23.Future exit() => (super.noSuchMethod( + _i24.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i27.DerivePathType addressType({required String? address}) => + _i28.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i27.DerivePathType.bip44, - ) as _i27.DerivePathType); + returnValue: _i28.DerivePathType.bip44, + ) as _i28.DerivePathType); @override - _i23.Future recoverFromMnemonic({ + _i24.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -985,47 +996,47 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #height: height, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future getTransactionCacheEarly(List? allAddresses) => + _i24.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i24.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future getAllTxsToWatch() => (super.noSuchMethod( + _i24.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future refresh() => (super.noSuchMethod( + _i24.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future> prepareSend({ + _i24.Future> prepareSend({ required String? address, required _i14.Amount? amount, Map? args, @@ -1041,26 +1052,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future confirmSend({required Map? txData}) => + _i24.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future testNetworkConnection() => (super.noSuchMethod( + _i24.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -1078,35 +1089,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future initializeNew( + _i24.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future initializeExisting() => (super.noSuchMethod( + _i24.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future updateSentCachedTxData(Map? txData) => + _i24.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1116,69 +1127,69 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValue: false, ) as bool); @override - _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i24.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i24.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), - returnValue: _i23.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( + returnValue: _i24.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i23.Future<_i9.ElectrumXNode>); + ) as _i24.Future<_i9.ElectrumXNode>); @override - _i23.Future>> fastFetch( + _i24.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i23.Future>>.value( + returnValue: _i24.Future>>.value( >[]), - ) as _i23.Future>>); + ) as _i24.Future>>); @override - _i23.Future getTxCount({required String? address}) => + _i24.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future checkCurrentReceivingAddressesForTransactions() => + _i24.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future checkCurrentChangeAddressesForTransactions() => + _i24.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override int estimateTxFee({ required int? vSize, @@ -1221,7 +1232,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, )); @override - _i23.Future> fetchBuildTxData( + _i24.Future> fetchBuildTxData( List<_i17.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( @@ -1229,11 +1240,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { [utxosToUse], ), returnValue: - _i23.Future>.value(<_i28.SigningData>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i29.SigningData>[]), + ) as _i24.Future>); @override - _i23.Future> buildTransaction({ - required List<_i28.SigningData>? utxoSigningData, + _i24.Future> buildTransaction({ + required List<_i29.SigningData>? utxoSigningData, required List? recipients, required List? satoshiAmounts, }) => @@ -1248,10 +1259,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future fullRescan( + _i24.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1263,11 +1274,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i14.Amount> estimateFeeFor( + _i24.Future<_i14.Amount> estimateFeeFor( _i14.Amount? amount, int? feeRate, ) => @@ -1279,7 +1290,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { feeRate, ], ), - returnValue: _i23.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i24.Future<_i14.Amount>.value(_FakeAmount_12( this, Invocation.method( #estimateFeeFor, @@ -1289,7 +1300,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { ], ), )), - ) as _i23.Future<_i14.Amount>); + ) as _i24.Future<_i14.Amount>); @override _i14.Amount roughFeeEstimate( int? inputCount, @@ -1318,32 +1329,32 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { ), ) as _i14.Amount); @override - _i23.Future<_i14.Amount> sweepAllEstimate(int? feeRate) => + _i24.Future<_i14.Amount> sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i23.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i24.Future<_i14.Amount>.value(_FakeAmount_12( this, Invocation.method( #sweepAllEstimate, [feeRate], ), )), - ) as _i23.Future<_i14.Amount>); + ) as _i24.Future<_i14.Amount>); @override - _i23.Future generateNewAddress() => (super.noSuchMethod( + _i24.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override void initCache( String? walletId, - _i22.Coin? coin, + _i23.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1356,14 +1367,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future updateCachedId(String? id) => (super.noSuchMethod( + _i24.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1373,14 +1384,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValue: 0, ) as int); @override - _i23.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i24.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1390,15 +1401,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValue: false, ) as bool); @override - _i23.Future updateCachedIsFavorite(bool? isFavorite) => + _i24.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override _i11.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1414,15 +1425,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { ), ) as _i11.Balance); @override - _i23.Future updateCachedBalance(_i11.Balance? balance) => + _i24.Future updateCachedBalance(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1438,15 +1449,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { ), ) as _i11.Balance); @override - _i23.Future updateCachedBalanceSecondary(_i11.Balance? balance) => + _i24.Future updateCachedBalanceSecondary(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override List getWalletTokenContractAddresses() => (super.noSuchMethod( Invocation.method( @@ -1456,16 +1467,16 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValue: [], ) as List); @override - _i23.Future updateWalletTokenContractAddresses( + _i24.Future updateWalletTokenContractAddresses( List? contractAddresses) => (super.noSuchMethod( Invocation.method( #updateWalletTokenContractAddresses, [contractAddresses], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1476,11 +1487,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>> parseTransaction( + _i24.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>> parseTransaction( Map? txData, dynamic electrumxClient, List<_i17.Address>? myAddresses, - _i22.Coin? coin, + _i23.Coin? coin, int? minConfirms, String? walletId, ) => @@ -1497,7 +1508,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { ], ), returnValue: - _i23.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>.value( + _i24.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>.value( _FakeTuple2_13<_i17.Transaction, _i17.Address>( this, Invocation.method( @@ -1512,37 +1523,37 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { ], ), )), - ) as _i23.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>); + ) as _i24.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>); @override void initPaynymWalletInterface({ required String? walletId, required String? walletName, required _i13.NetworkType? network, - required _i22.Coin? coin, + required _i23.Coin? coin, required _i12.MainDB? db, required _i9.ElectrumX? electrumXClient, - required _i19.SecureStorageInterface? secureStorage, + required _i20.SecureStorageInterface? secureStorage, required int? dustLimit, required int? dustLimitP2PKH, required int? minConfirms, - required _i23.Future Function()? getMnemonicString, - required _i23.Future Function()? getMnemonicPassphrase, - required _i23.Future Function()? getChainHeight, - required _i23.Future Function()? getCurrentChangeAddress, + required _i24.Future Function()? getMnemonicString, + required _i24.Future Function()? getMnemonicPassphrase, + required _i24.Future Function()? getChainHeight, + required _i24.Future Function()? getCurrentChangeAddress, required int Function({ required int feeRatePerKB, required int vSize, })? estimateTxFee, - required _i23.Future> Function({ + required _i24.Future> Function({ required String address, required _i14.Amount amount, Map? args, })? prepareSend, - required _i23.Future Function({required String address})? getTxCount, - required _i23.Future> Function(List<_i17.UTXO>)? + required _i24.Future Function({required String address})? getTxCount, + required _i24.Future> Function(List<_i17.UTXO>)? fetchBuildTxData, - required _i23.Future Function()? refresh, - required _i23.Future Function()? checkChangeAddressForTransactions, + required _i24.Future Function()? refresh, + required _i24.Future Function()? checkChangeAddressForTransactions, }) => super.noSuchMethod( Invocation.method( @@ -1575,21 +1586,21 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future<_i16.BIP32> getBip47BaseNode() => (super.noSuchMethod( + _i24.Future<_i16.BIP32> getBip47BaseNode() => (super.noSuchMethod( Invocation.method( #getBip47BaseNode, [], ), - returnValue: _i23.Future<_i16.BIP32>.value(_FakeBIP32_14( + returnValue: _i24.Future<_i16.BIP32>.value(_FakeBIP32_14( this, Invocation.method( #getBip47BaseNode, [], ), )), - ) as _i23.Future<_i16.BIP32>); + ) as _i24.Future<_i16.BIP32>); @override - _i23.Future<_i29.Uint8List> getPrivateKeyForPaynymReceivingAddress({ + _i24.Future<_i30.Uint8List> getPrivateKeyForPaynymReceivingAddress({ required String? paymentCodeString, required int? index, }) => @@ -1602,10 +1613,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #index: index, }, ), - returnValue: _i23.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), - ) as _i23.Future<_i29.Uint8List>); + returnValue: _i24.Future<_i30.Uint8List>.value(_i30.Uint8List(0)), + ) as _i24.Future<_i30.Uint8List>); @override - _i23.Future<_i17.Address> currentReceivingPaynymAddress({ + _i24.Future<_i17.Address> currentReceivingPaynymAddress({ required _i18.PaymentCode? sender, required bool? isSegwit, }) => @@ -1618,7 +1629,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #isSegwit: isSegwit, }, ), - returnValue: _i23.Future<_i17.Address>.value(_FakeAddress_15( + returnValue: _i24.Future<_i17.Address>.value(_FakeAddress_15( this, Invocation.method( #currentReceivingPaynymAddress, @@ -1629,9 +1640,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, ), )), - ) as _i23.Future<_i17.Address>); + ) as _i24.Future<_i17.Address>); @override - _i23.Future checkCurrentPaynymReceivingAddressForTransactions({ + _i24.Future checkCurrentPaynymReceivingAddressForTransactions({ required _i18.PaymentCode? sender, required bool? isSegwit, }) => @@ -1644,42 +1655,42 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #isSegwit: isSegwit, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => + _i24.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkAllCurrentReceivingPaynymAddressesForTransactions, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i16.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( + _i24.Future<_i16.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( Invocation.method( #deriveNotificationBip32Node, [], ), - returnValue: _i23.Future<_i16.BIP32>.value(_FakeBIP32_14( + returnValue: _i24.Future<_i16.BIP32>.value(_FakeBIP32_14( this, Invocation.method( #deriveNotificationBip32Node, [], ), )), - ) as _i23.Future<_i16.BIP32>); + ) as _i24.Future<_i16.BIP32>); @override - _i23.Future<_i18.PaymentCode> getPaymentCode({required bool? isSegwit}) => + _i24.Future<_i18.PaymentCode> getPaymentCode({required bool? isSegwit}) => (super.noSuchMethod( Invocation.method( #getPaymentCode, [], {#isSegwit: isSegwit}, ), - returnValue: _i23.Future<_i18.PaymentCode>.value(_FakePaymentCode_16( + returnValue: _i24.Future<_i18.PaymentCode>.value(_FakePaymentCode_16( this, Invocation.method( #getPaymentCode, @@ -1687,27 +1698,27 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { {#isSegwit: isSegwit}, ), )), - ) as _i23.Future<_i18.PaymentCode>); + ) as _i24.Future<_i18.PaymentCode>); @override - _i23.Future<_i29.Uint8List> signWithNotificationKey(_i29.Uint8List? data) => + _i24.Future<_i30.Uint8List> signWithNotificationKey(_i30.Uint8List? data) => (super.noSuchMethod( Invocation.method( #signWithNotificationKey, [data], ), - returnValue: _i23.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), - ) as _i23.Future<_i29.Uint8List>); + returnValue: _i24.Future<_i30.Uint8List>.value(_i30.Uint8List(0)), + ) as _i24.Future<_i30.Uint8List>); @override - _i23.Future signStringWithNotificationKey(String? data) => + _i24.Future signStringWithNotificationKey(String? data) => (super.noSuchMethod( Invocation.method( #signStringWithNotificationKey, [data], ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future> preparePaymentCodeSend({ + _i24.Future> preparePaymentCodeSend({ required _i18.PaymentCode? paymentCode, required bool? isSegwit, required _i14.Amount? amount, @@ -1725,10 +1736,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future<_i17.Address> nextUnusedSendAddressFrom({ + _i24.Future<_i17.Address> nextUnusedSendAddressFrom({ required _i18.PaymentCode? pCode, required bool? isSegwit, required _i16.BIP32? privateKeyNode, @@ -1745,7 +1756,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #startIndex: startIndex, }, ), - returnValue: _i23.Future<_i17.Address>.value(_FakeAddress_15( + returnValue: _i24.Future<_i17.Address>.value(_FakeAddress_15( this, Invocation.method( #nextUnusedSendAddressFrom, @@ -1758,9 +1769,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, ), )), - ) as _i23.Future<_i17.Address>); + ) as _i24.Future<_i17.Address>); @override - _i23.Future> prepareNotificationTx({ + _i24.Future> prepareNotificationTx({ required int? selectedTxFeeRate, required String? targetPaymentCodeString, int? additionalOutputs = 0, @@ -1778,10 +1789,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future broadcastNotificationTx( + _i24.Future broadcastNotificationTx( {required Map? preparedTx}) => (super.noSuchMethod( Invocation.method( @@ -1789,19 +1800,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { [], {#preparedTx: preparedTx}, ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future hasConnected(String? paymentCodeString) => + _i24.Future hasConnected(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #hasConnected, [paymentCodeString], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransaction( + _i24.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransaction( {required _i17.Transaction? transaction}) => (super.noSuchMethod( Invocation.method( @@ -1809,10 +1820,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { [], {#transaction: transaction}, ), - returnValue: _i23.Future<_i18.PaymentCode?>.value(), - ) as _i23.Future<_i18.PaymentCode?>); + returnValue: _i24.Future<_i18.PaymentCode?>.value(), + ) as _i24.Future<_i18.PaymentCode?>); @override - _i23.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( + _i24.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( {required _i17.Transaction? transaction}) => (super.noSuchMethod( Invocation.method( @@ -1820,31 +1831,31 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { [], {#transaction: transaction}, ), - returnValue: _i23.Future<_i18.PaymentCode?>.value(), - ) as _i23.Future<_i18.PaymentCode?>); + returnValue: _i24.Future<_i18.PaymentCode?>.value(), + ) as _i24.Future<_i18.PaymentCode?>); @override - _i23.Future> + _i24.Future> getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( Invocation.method( #getAllPaymentCodesFromNotificationTransactions, [], ), returnValue: - _i23.Future>.value(<_i18.PaymentCode>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i18.PaymentCode>[]), + ) as _i24.Future>); @override - _i23.Future checkForNotificationTransactionsTo( + _i24.Future checkForNotificationTransactionsTo( Set? otherCodeStrings) => (super.noSuchMethod( Invocation.method( #checkForNotificationTransactionsTo, [otherCodeStrings], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future restoreAllHistory({ + _i24.Future restoreAllHistory({ required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required Set? paymentCodeStrings, @@ -1859,11 +1870,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #paymentCodeStrings: paymentCodeStrings, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future restoreHistoryWith({ + _i24.Future restoreHistoryWith({ required _i18.PaymentCode? other, required bool? checkSegwitAsWell, required int? maxUnusedAddressGap, @@ -1880,58 +1891,58 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i17.Address> getMyNotificationAddress() => (super.noSuchMethod( + _i24.Future<_i17.Address> getMyNotificationAddress() => (super.noSuchMethod( Invocation.method( #getMyNotificationAddress, [], ), - returnValue: _i23.Future<_i17.Address>.value(_FakeAddress_15( + returnValue: _i24.Future<_i17.Address>.value(_FakeAddress_15( this, Invocation.method( #getMyNotificationAddress, [], ), )), - ) as _i23.Future<_i17.Address>); + ) as _i24.Future<_i17.Address>); @override - _i23.Future> lookupKey(String? paymentCodeString) => + _i24.Future> lookupKey(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #lookupKey, [paymentCodeString], ), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future paymentCodeStringByKey(String? key) => + _i24.Future paymentCodeStringByKey(String? key) => (super.noSuchMethod( Invocation.method( #paymentCodeStringByKey, [key], ), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future storeCode(String? paymentCodeString) => + _i24.Future storeCode(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #storeCode, [paymentCodeString], ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override void initCoinControlInterface({ required String? walletId, required String? walletName, - required _i22.Coin? coin, + required _i23.Coin? coin, required _i12.MainDB? db, - required _i23.Future Function()? getChainHeight, - required _i23.Future Function(_i11.Balance)? refreshedBalanceCallback, + required _i24.Future Function()? getChainHeight, + required _i24.Future Function(_i11.Balance)? refreshedBalanceCallback, }) => super.noSuchMethod( Invocation.method( @@ -1949,26 +1960,42 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future refreshBalance({bool? notify = false}) => + _i24.Future refreshBalance({bool? notify = false}) => (super.noSuchMethod( Invocation.method( #refreshBalance, [], {#notify: notify}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); } /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i30.ThemeService { +class MockThemeService extends _i1.Mock implements _i31.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } + @override + _i19.HTTP get client => (super.noSuchMethod( + Invocation.getter(#client), + returnValue: _FakeHTTP_17( + this, + Invocation.getter(#client), + ), + ) as _i19.HTTP); + @override + set client(_i19.HTTP? _client) => super.noSuchMethod( + Invocation.setter( + #client, + _client, + ), + returnValueForMissingStub: null, + ); @override _i12.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -1978,10 +2005,10 @@ class MockThemeService extends _i1.Mock implements _i30.ThemeService { ), ) as _i12.MainDB); @override - List<_i31.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i32.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i31.StackTheme>[], - ) as List<_i31.StackTheme>); + returnValue: <_i32.StackTheme>[], + ) as List<_i32.StackTheme>); @override void init(_i12.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -1991,79 +2018,79 @@ class MockThemeService extends _i1.Mock implements _i30.ThemeService { returnValueForMissingStub: null, ); @override - _i23.Future install({required _i29.Uint8List? themeArchiveData}) => + _i24.Future install({required _i30.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future remove({required String? themeId}) => (super.noSuchMethod( + _i24.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i24.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future verifyInstalled({required String? themeId}) => + _i24.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future> fetchThemes() => + _i24.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i23.Future>.value( - <_i30.StackThemeMetaData>[]), - ) as _i23.Future>); + returnValue: _i24.Future>.value( + <_i31.StackThemeMetaData>[]), + ) as _i24.Future>); @override - _i23.Future<_i29.Uint8List> fetchTheme( - {required _i30.StackThemeMetaData? themeMetaData}) => + _i24.Future<_i30.Uint8List> fetchTheme( + {required _i31.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i23.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), - ) as _i23.Future<_i29.Uint8List>); + returnValue: _i24.Future<_i30.Uint8List>.value(_i30.Uint8List(0)), + ) as _i24.Future<_i30.Uint8List>); @override - _i31.StackTheme? getTheme({required String? themeId}) => + _i32.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i31.StackTheme?); + )) as _i32.StackTheme?); } /// A class which mocks [Prefs]. /// /// See the documentation for Mockito's code generation for more information. -class MockPrefs extends _i1.Mock implements _i24.Prefs { +class MockPrefs extends _i1.Mock implements _i25.Prefs { MockPrefs() { _i1.throwOnMissingStub(this); } @@ -2119,12 +2146,12 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValueForMissingStub: null, ); @override - _i32.SyncingType get syncType => (super.noSuchMethod( + _i33.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), - returnValue: _i32.SyncingType.currentWalletOnly, - ) as _i32.SyncingType); + returnValue: _i33.SyncingType.currentWalletOnly, + ) as _i33.SyncingType); @override - set syncType(_i32.SyncingType? syncType) => super.noSuchMethod( + set syncType(_i33.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( #syncType, syncType, @@ -2236,14 +2263,14 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValueForMissingStub: null, ); @override - bool get torKillswitch => (super.noSuchMethod( - Invocation.getter(#torKillswitch), + bool get torKillSwitch => (super.noSuchMethod( + Invocation.getter(#torKillSwitch), returnValue: false, ) as bool); @override - set torKillswitch(bool? torKillswitch) => super.noSuchMethod( + set torKillSwitch(bool? torKillswitch) => super.noSuchMethod( Invocation.setter( - #torKillswitch, + #torKillSwitch, torKillswitch, ), returnValueForMissingStub: null, @@ -2283,12 +2310,12 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValueForMissingStub: null, ); @override - _i33.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( + _i34.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), - returnValue: _i33.BackupFrequencyType.everyTenMinutes, - ) as _i33.BackupFrequencyType); + returnValue: _i34.BackupFrequencyType.everyTenMinutes, + ) as _i34.BackupFrequencyType); @override - set backupFrequencyType(_i33.BackupFrequencyType? backupFrequencyType) => + set backupFrequencyType(_i34.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( Invocation.setter( #backupFrequencyType, @@ -2439,61 +2466,61 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValue: false, ) as bool); @override - _i23.Future init() => (super.noSuchMethod( + _i24.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( + _i24.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( #incrementCurrentNotificationIndex, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future isExternalCallsSet() => (super.noSuchMethod( + _i24.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( #isExternalCallsSet, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future saveUserID(String? userId) => (super.noSuchMethod( + _i24.Future saveUserID(String? userId) => (super.noSuchMethod( Invocation.method( #saveUserID, [userId], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( + _i24.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( Invocation.method( #saveSignupEpoch, [signupEpoch], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i34.AmountUnit amountUnit(_i22.Coin? coin) => (super.noSuchMethod( + _i35.AmountUnit amountUnit(_i23.Coin? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], ), - returnValue: _i34.AmountUnit.normal, - ) as _i34.AmountUnit); + returnValue: _i35.AmountUnit.normal, + ) as _i35.AmountUnit); @override void updateAmountUnit({ - required _i22.Coin? coin, - required _i34.AmountUnit? amountUnit, + required _i23.Coin? coin, + required _i35.AmountUnit? amountUnit, }) => super.noSuchMethod( Invocation.method( @@ -2507,7 +2534,7 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i22.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i23.Coin? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -2516,7 +2543,7 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { ) as int); @override void updateMaxDecimals({ - required _i22.Coin? coin, + required _i23.Coin? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -2531,7 +2558,7 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2539,7 +2566,7 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2567,7 +2594,7 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs { /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i35.LocaleService { +class MockLocaleService extends _i1.Mock implements _i36.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -2583,17 +2610,17 @@ class MockLocaleService extends _i1.Mock implements _i35.LocaleService { returnValue: false, ) as bool); @override - _i23.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i24.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2601,7 +2628,7 @@ class MockLocaleService extends _i1.Mock implements _i35.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2631,41 +2658,41 @@ class MockLocaleService extends _i1.Mock implements _i35.LocaleService { /// See the documentation for Mockito's code generation for more information. class MockNodeService extends _i1.Mock implements _i3.NodeService { @override - _i19.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( + _i20.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( Invocation.getter(#secureStorageInterface), - returnValue: _FakeSecureStorageInterface_17( + returnValue: _FakeSecureStorageInterface_18( this, Invocation.getter(#secureStorageInterface), ), - ) as _i19.SecureStorageInterface); + ) as _i20.SecureStorageInterface); @override - List<_i36.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i37.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i36.NodeModel>[], - ) as List<_i36.NodeModel>); + returnValue: <_i37.NodeModel>[], + ) as List<_i37.NodeModel>); @override - List<_i36.NodeModel> get nodes => (super.noSuchMethod( + List<_i37.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i36.NodeModel>[], - ) as List<_i36.NodeModel>); + returnValue: <_i37.NodeModel>[], + ) as List<_i37.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i23.Future updateDefaults() => (super.noSuchMethod( + _i24.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future setPrimaryNodeFor({ - required _i22.Coin? coin, - required _i36.NodeModel? node, + _i24.Future setPrimaryNodeFor({ + required _i23.Coin? coin, + required _i37.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -2678,44 +2705,44 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i36.NodeModel? getPrimaryNodeFor({required _i22.Coin? coin}) => + _i37.NodeModel? getPrimaryNodeFor({required _i23.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i36.NodeModel?); + )) as _i37.NodeModel?); @override - List<_i36.NodeModel> getNodesFor(_i22.Coin? coin) => (super.noSuchMethod( + List<_i37.NodeModel> getNodesFor(_i23.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i36.NodeModel>[], - ) as List<_i36.NodeModel>); + returnValue: <_i37.NodeModel>[], + ) as List<_i37.NodeModel>); @override - _i36.NodeModel? getNodeById({required String? id}) => + _i37.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i36.NodeModel?); + )) as _i37.NodeModel?); @override - List<_i36.NodeModel> failoverNodesFor({required _i22.Coin? coin}) => + List<_i37.NodeModel> failoverNodesFor({required _i23.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i36.NodeModel>[], - ) as List<_i36.NodeModel>); + returnValue: <_i37.NodeModel>[], + ) as List<_i37.NodeModel>); @override - _i23.Future add( - _i36.NodeModel? node, + _i24.Future add( + _i37.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -2728,11 +2755,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future delete( + _i24.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -2744,11 +2771,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future setEnabledState( + _i24.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -2762,12 +2789,12 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future edit( - _i36.NodeModel? editedNode, + _i24.Future edit( + _i37.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -2780,20 +2807,20 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future updateCommunityNodes() => (super.noSuchMethod( + _i24.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2801,7 +2828,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2844,23 +2871,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i20.CoinServiceAPI get wallet => (super.noSuchMethod( + _i21.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_18( + returnValue: _FakeCoinServiceAPI_19( this, Invocation.getter(#wallet), ), - ) as _i20.CoinServiceAPI); + ) as _i21.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i22.Coin get coin => (super.noSuchMethod( + _i23.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i22.Coin.bitcoin, - ) as _i22.Coin); + returnValue: _i23.Coin.bitcoin, + ) as _i23.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2893,23 +2920,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i23.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i24.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i23.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i24.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i23.Future<_i8.FeeObject>); + ) as _i24.Future<_i8.FeeObject>); @override - _i23.Future get maxFee => (super.noSuchMethod( + _i24.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future get currentReceivingAddress => (super.noSuchMethod( + _i24.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2919,16 +2946,16 @@ class MockManager extends _i1.Mock implements _i6.Manager { ), ) as _i11.Balance); @override - _i23.Future> get transactions => (super.noSuchMethod( + _i24.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i23.Future>.value(<_i17.Transaction>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i17.Transaction>[]), + ) as _i24.Future>); @override - _i23.Future> get utxos => (super.noSuchMethod( + _i24.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i23.Future>.value(<_i17.UTXO>[]), - ) as _i23.Future>); + returnValue: _i24.Future>.value(<_i17.UTXO>[]), + ) as _i24.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2948,15 +2975,15 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i23.Future> get mnemonic => (super.noSuchMethod( + _i24.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future get mnemonicPassphrase => (super.noSuchMethod( + _i24.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -3003,24 +3030,24 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i23.Future get xpub => (super.noSuchMethod( + _i24.Future get xpub => (super.noSuchMethod( Invocation.getter(#xpub), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i24.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -3030,7 +3057,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i23.Future> prepareSend({ + _i24.Future> prepareSend({ required String? address, required _i14.Amount? amount, Map? args, @@ -3046,27 +3073,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future confirmSend({required Map? txData}) => + _i24.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future refresh() => (super.noSuchMethod( + _i24.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -3076,35 +3103,35 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i23.Future testNetworkConnection() => (super.noSuchMethod( + _i24.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future initializeNew( + _i24.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future initializeExisting() => (super.noSuchMethod( + _i24.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future recoverFromMnemonic({ + _i24.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -3123,20 +3150,20 @@ class MockManager extends _i1.Mock implements _i6.Manager { #height: height, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future exitCurrentWallet() => (super.noSuchMethod( + _i24.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future fullRescan( + _i24.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -3148,11 +3175,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i14.Amount> estimateFeeFor( + _i24.Future<_i14.Amount> estimateFeeFor( _i14.Amount? amount, int? feeRate, ) => @@ -3164,7 +3191,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i23.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i24.Future<_i14.Amount>.value(_FakeAmount_12( this, Invocation.method( #estimateFeeFor, @@ -3174,26 +3201,26 @@ class MockManager extends _i1.Mock implements _i6.Manager { ], ), )), - ) as _i23.Future<_i14.Amount>); + ) as _i24.Future<_i14.Amount>); @override - _i23.Future generateNewAddress() => (super.noSuchMethod( + _i24.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future resetRescanOnOpen() => (super.noSuchMethod( + _i24.Future resetRescanOnOpen() => (super.noSuchMethod( Invocation.method( #resetRescanOnOpen, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -3201,7 +3228,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -3221,7 +3248,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 _i20.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -3232,10 +3259,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i22.Coin get coin => (super.noSuchMethod( + _i23.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i22.Coin.bitcoin, - ) as _i22.Coin); + returnValue: _i23.Coin.bitcoin, + ) as _i23.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -3268,23 +3295,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i23.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i24.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i23.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i24.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i23.Future<_i8.FeeObject>); + ) as _i24.Future<_i8.FeeObject>); @override - _i23.Future get maxFee => (super.noSuchMethod( + _i24.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future get currentReceivingAddress => (super.noSuchMethod( + _i24.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override _i11.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -3294,16 +3321,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { ), ) as _i11.Balance); @override - _i23.Future> get transactions => (super.noSuchMethod( + _i24.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i23.Future>.value(<_i17.Transaction>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i17.Transaction>[]), + ) as _i24.Future>); @override - _i23.Future> get utxos => (super.noSuchMethod( + _i24.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i23.Future>.value(<_i17.UTXO>[]), - ) as _i23.Future>); + returnValue: _i24.Future>.value(<_i17.UTXO>[]), + ) as _i24.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -3323,20 +3350,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValue: '', ) as String); @override - _i23.Future> get mnemonic => (super.noSuchMethod( + _i24.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future get mnemonicString => (super.noSuchMethod( + _i24.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future get mnemonicPassphrase => (super.noSuchMethod( + _i24.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -3353,7 +3380,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValue: 0, ) as int); @override - _i23.Future> prepareSend({ + _i24.Future> prepareSend({ required String? address, required _i14.Amount? amount, Map? args, @@ -3369,36 +3396,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future confirmSend({required Map? txData}) => + _i24.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future refresh() => (super.noSuchMethod( + _i24.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i24.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -3408,15 +3435,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValue: false, ) as bool); @override - _i23.Future testNetworkConnection() => (super.noSuchMethod( + _i24.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future recoverFromMnemonic({ + _i24.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -3435,40 +3462,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { #height: height, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future initializeNew( + _i24.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future initializeExisting() => (super.noSuchMethod( + _i24.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future exit() => (super.noSuchMethod( + _i24.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future fullRescan( + _i24.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -3480,11 +3507,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i14.Amount> estimateFeeFor( + _i24.Future<_i14.Amount> estimateFeeFor( _i14.Amount? amount, int? feeRate, ) => @@ -3496,7 +3523,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { feeRate, ], ), - returnValue: _i23.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i24.Future<_i14.Amount>.value(_FakeAmount_12( this, Invocation.method( #estimateFeeFor, @@ -3506,23 +3533,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { ], ), )), - ) as _i23.Future<_i14.Amount>); + ) as _i24.Future<_i14.Amount>); @override - _i23.Future generateNewAddress() => (super.noSuchMethod( + _i24.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future updateSentCachedTxData(Map? txData) => + _i24.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); } diff --git a/test/widget_tests/node_options_sheet_test.mocks.dart b/test/widget_tests/node_options_sheet_test.mocks.dart index 047792e59..203e196a0 100644 --- a/test/widget_tests/node_options_sheet_test.mocks.dart +++ b/test/widget_tests/node_options_sheet_test.mocks.dart @@ -23,6 +23,7 @@ import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i15; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i7; import 'package:stackwallet/utilities/prefs.dart' as _i13; +import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i20; import 'package:tuple/tuple.dart' as _i11; // ignore_for_file: type=lint @@ -483,14 +484,14 @@ class MockPrefs extends _i1.Mock implements _i13.Prefs { returnValueForMissingStub: null, ); @override - bool get torKillswitch => (super.noSuchMethod( - Invocation.getter(#torKillswitch), + bool get torKillSwitch => (super.noSuchMethod( + Invocation.getter(#torKillSwitch), returnValue: false, ) as bool); @override - set torKillswitch(bool? torKillswitch) => super.noSuchMethod( + set torKillSwitch(bool? torKillswitch) => super.noSuchMethod( Invocation.setter( - #torKillswitch, + #torKillSwitch, torKillswitch, ), returnValueForMissingStub: null, @@ -1040,6 +1041,15 @@ class MockTorService extends _i1.Mock implements _i19.TorService { ), ) as ({_i8.InternetAddress host, int port})); @override + void init({_i20.Tor? mockableOverride}) => super.noSuchMethod( + Invocation.method( + #init, + [], + {#mockableOverride: mockableOverride}, + ), + returnValueForMissingStub: null, + ); + @override _i12.Future start() => (super.noSuchMethod( Invocation.method( #start, 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 982bd16b1..afb3f48c9 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,40 +3,41 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i22; -import 'dart:typed_data' as _i27; -import 'dart:ui' as _i24; +import 'dart:async' as _i23; +import 'dart:typed_data' as _i28; +import 'dart:ui' as _i25; -import 'package:bip32/bip32.dart' as _i16; -import 'package:bip47/bip47.dart' as _i18; -import 'package:bitcoindart/bitcoindart.dart' as _i13; +import 'package:bip32/bip32.dart' as _i17; +import 'package:bip47/bip47.dart' as _i19; +import 'package:bitcoindart/bitcoindart.dart' as _i14; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/db/isar/main_db.dart' as _i7; -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 _i17; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i26; -import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9; -import 'package:stackwallet/models/signing_data.dart' as _i30; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i28; -import 'package:stackwallet/services/coins/coin_service.dart' as _i19; +import 'package:stackwallet/db/isar/main_db.dart' as _i8; +import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i12; +import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i11; +import 'package:stackwallet/models/balance.dart' as _i13; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i18; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i27; +import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i10; +import 'package:stackwallet/models/signing_data.dart' as _i31; +import 'package:stackwallet/networking/http.dart' as _i7; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i29; +import 'package:stackwallet/services/coins/coin_service.dart' as _i20; 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 _i8; -import 'package:stackwallet/services/wallets.dart' as _i20; + as _i9; +import 'package:stackwallet/services/wallets.dart' as _i21; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/themes/theme_service.dart' as _i25; -import 'package:stackwallet/utilities/amount/amount.dart' as _i14; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i21; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i29; +import 'package:stackwallet/themes/theme_service.dart' as _i26; +import 'package:stackwallet/utilities/amount/amount.dart' as _i15; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i22; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i30; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i31; -import 'package:stackwallet/utilities/prefs.dart' as _i23; -import 'package:tuple/tuple.dart' as _i15; + as _i32; +import 'package:stackwallet/utilities/prefs.dart' as _i24; +import 'package:tuple/tuple.dart' as _i16; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -91,8 +92,8 @@ class _FakeManager_3 extends _i1.SmartFake implements _i6.Manager { ); } -class _FakeMainDB_4 extends _i1.SmartFake implements _i7.MainDB { - _FakeMainDB_4( +class _FakeHTTP_4 extends _i1.SmartFake implements _i7.HTTP { + _FakeHTTP_4( Object parent, Invocation parentInvocation, ) : super( @@ -101,9 +102,8 @@ class _FakeMainDB_4 extends _i1.SmartFake implements _i7.MainDB { ); } -class _FakeTransactionNotificationTracker_5 extends _i1.SmartFake - implements _i8.TransactionNotificationTracker { - _FakeTransactionNotificationTracker_5( +class _FakeMainDB_5 extends _i1.SmartFake implements _i8.MainDB { + _FakeMainDB_5( Object parent, Invocation parentInvocation, ) : super( @@ -112,8 +112,9 @@ class _FakeTransactionNotificationTracker_5 extends _i1.SmartFake ); } -class _FakeFeeObject_6 extends _i1.SmartFake implements _i9.FeeObject { - _FakeFeeObject_6( +class _FakeTransactionNotificationTracker_6 extends _i1.SmartFake + implements _i9.TransactionNotificationTracker { + _FakeTransactionNotificationTracker_6( Object parent, Invocation parentInvocation, ) : super( @@ -122,8 +123,8 @@ class _FakeFeeObject_6 extends _i1.SmartFake implements _i9.FeeObject { ); } -class _FakeElectrumX_7 extends _i1.SmartFake implements _i10.ElectrumX { - _FakeElectrumX_7( +class _FakeFeeObject_7 extends _i1.SmartFake implements _i10.FeeObject { + _FakeFeeObject_7( Object parent, Invocation parentInvocation, ) : super( @@ -132,9 +133,8 @@ class _FakeElectrumX_7 extends _i1.SmartFake implements _i10.ElectrumX { ); } -class _FakeCachedElectrumX_8 extends _i1.SmartFake - implements _i11.CachedElectrumX { - _FakeCachedElectrumX_8( +class _FakeElectrumX_8 extends _i1.SmartFake implements _i11.ElectrumX { + _FakeElectrumX_8( Object parent, Invocation parentInvocation, ) : super( @@ -143,8 +143,9 @@ class _FakeCachedElectrumX_8 extends _i1.SmartFake ); } -class _FakeBalance_9 extends _i1.SmartFake implements _i12.Balance { - _FakeBalance_9( +class _FakeCachedElectrumX_9 extends _i1.SmartFake + implements _i12.CachedElectrumX { + _FakeCachedElectrumX_9( Object parent, Invocation parentInvocation, ) : super( @@ -153,8 +154,8 @@ class _FakeBalance_9 extends _i1.SmartFake implements _i12.Balance { ); } -class _FakeNetworkType_10 extends _i1.SmartFake implements _i13.NetworkType { - _FakeNetworkType_10( +class _FakeBalance_10 extends _i1.SmartFake implements _i13.Balance { + _FakeBalance_10( Object parent, Invocation parentInvocation, ) : super( @@ -163,9 +164,8 @@ class _FakeNetworkType_10 extends _i1.SmartFake implements _i13.NetworkType { ); } -class _FakeElectrumXNode_11 extends _i1.SmartFake - implements _i10.ElectrumXNode { - _FakeElectrumXNode_11( +class _FakeNetworkType_11 extends _i1.SmartFake implements _i14.NetworkType { + _FakeNetworkType_11( Object parent, Invocation parentInvocation, ) : super( @@ -174,8 +174,9 @@ class _FakeElectrumXNode_11 extends _i1.SmartFake ); } -class _FakeAmount_12 extends _i1.SmartFake implements _i14.Amount { - _FakeAmount_12( +class _FakeElectrumXNode_12 extends _i1.SmartFake + implements _i11.ElectrumXNode { + _FakeElectrumXNode_12( Object parent, Invocation parentInvocation, ) : super( @@ -184,9 +185,8 @@ class _FakeAmount_12 extends _i1.SmartFake implements _i14.Amount { ); } -class _FakeTuple2_13 extends _i1.SmartFake - implements _i15.Tuple2 { - _FakeTuple2_13( +class _FakeAmount_13 extends _i1.SmartFake implements _i15.Amount { + _FakeAmount_13( Object parent, Invocation parentInvocation, ) : super( @@ -195,8 +195,9 @@ class _FakeTuple2_13 extends _i1.SmartFake ); } -class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { - _FakeBIP32_14( +class _FakeTuple2_14 extends _i1.SmartFake + implements _i16.Tuple2 { + _FakeTuple2_14( Object parent, Invocation parentInvocation, ) : super( @@ -205,8 +206,8 @@ class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { ); } -class _FakeAddress_15 extends _i1.SmartFake implements _i17.Address { - _FakeAddress_15( +class _FakeBIP32_15 extends _i1.SmartFake implements _i17.BIP32 { + _FakeBIP32_15( Object parent, Invocation parentInvocation, ) : super( @@ -215,8 +216,8 @@ class _FakeAddress_15 extends _i1.SmartFake implements _i17.Address { ); } -class _FakePaymentCode_16 extends _i1.SmartFake implements _i18.PaymentCode { - _FakePaymentCode_16( +class _FakeAddress_16 extends _i1.SmartFake implements _i18.Address { + _FakeAddress_16( Object parent, Invocation parentInvocation, ) : super( @@ -225,9 +226,19 @@ class _FakePaymentCode_16 extends _i1.SmartFake implements _i18.PaymentCode { ); } -class _FakeCoinServiceAPI_17 extends _i1.SmartFake - implements _i19.CoinServiceAPI { - _FakeCoinServiceAPI_17( +class _FakePaymentCode_17 extends _i1.SmartFake implements _i19.PaymentCode { + _FakePaymentCode_17( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeCoinServiceAPI_18 extends _i1.SmartFake + implements _i20.CoinServiceAPI { + _FakeCoinServiceAPI_18( Object parent, Invocation parentInvocation, ) : super( @@ -239,7 +250,7 @@ class _FakeCoinServiceAPI_17 extends _i1.SmartFake /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i20.Wallets { +class MockWallets extends _i1.Mock implements _i21.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -306,7 +317,7 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i21.Coin? coin}) => + List getWalletIdsFor({required _i22.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -316,20 +327,20 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValue: [], ) as List); @override - List<_i15.Tuple2<_i21.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>> + List<_i16.Tuple2<_i22.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i15.Tuple2<_i21.Coin, + returnValue: <_i16.Tuple2<_i22.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>[], ) as List< - _i15.Tuple2<_i21.Coin, + _i16.Tuple2<_i22.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i21.Coin? coin) => + _i22.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -393,17 +404,17 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - _i22.Future load(_i23.Prefs? prefs) => (super.noSuchMethod( + _i23.Future load(_i24.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future loadAfterStackRestore( - _i23.Prefs? prefs, + _i23.Future loadAfterStackRestore( + _i24.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -414,11 +425,11 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { managers, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -426,7 +437,7 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -452,19 +463,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i22.Future> get walletNames => + _i23.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i22.Future>.value( + returnValue: _i23.Future>.value( {}), - ) as _i22.Future>); + ) as _i23.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i22.Future renameWallet({ + _i23.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -479,8 +490,8 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i23.Future.value(false), + ) as _i23.Future); @override Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( @@ -490,10 +501,10 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValue: {}, ) as Map); @override - _i22.Future addExistingStackWallet({ + _i23.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i21.Coin? coin, + required _i22.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -507,13 +518,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future addNewWallet({ + _i23.Future addNewWallet({ required String? name, - required _i21.Coin? coin, + required _i22.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -526,46 +537,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i23.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i23.Future>.value([]), + ) as _i23.Future>); @override - _i22.Future saveFavoriteWalletIds(List? walletIds) => + _i23.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i23.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i23.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future moveFavorite({ + _i23.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -578,48 +589,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i23.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i23.Future.value(false), + ) as _i23.Future); @override - _i22.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i23.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future isMnemonicVerified({required String? walletId}) => + _i23.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i23.Future.value(false), + ) as _i23.Future); @override - _i22.Future setMnemonicVerified({required String? walletId}) => + _i23.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future deleteWallet( + _i23.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -631,20 +642,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i23.Future.value(0), + ) as _i23.Future); @override - _i22.Future refreshWallets(bool? shouldNotifyListeners) => + _i23.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -652,7 +663,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -680,26 +691,42 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i25.ThemeService { +class MockThemeService extends _i1.Mock implements _i26.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @override - _i7.MainDB get db => (super.noSuchMethod( + _i7.HTTP get client => (super.noSuchMethod( + Invocation.getter(#client), + returnValue: _FakeHTTP_4( + this, + Invocation.getter(#client), + ), + ) as _i7.HTTP); + @override + set client(_i7.HTTP? _client) => super.noSuchMethod( + Invocation.setter( + #client, + _client, + ), + returnValueForMissingStub: null, + ); + @override + _i8.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeMainDB_4( + returnValue: _FakeMainDB_5( this, Invocation.getter(#db), ), - ) as _i7.MainDB); + ) as _i8.MainDB); @override - List<_i26.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i27.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i26.StackTheme>[], - ) as List<_i26.StackTheme>); + returnValue: <_i27.StackTheme>[], + ) as List<_i27.StackTheme>); @override - void init(_i7.MainDB? db) => super.noSuchMethod( + void init(_i8.MainDB? db) => super.noSuchMethod( Invocation.method( #init, [db], @@ -707,85 +734,85 @@ class MockThemeService extends _i1.Mock implements _i25.ThemeService { returnValueForMissingStub: null, ); @override - _i22.Future install({required _i27.Uint8List? themeArchiveData}) => + _i23.Future install({required _i28.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future remove({required String? themeId}) => (super.noSuchMethod( + _i23.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i23.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future verifyInstalled({required String? themeId}) => + _i23.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i23.Future.value(false), + ) as _i23.Future); @override - _i22.Future> fetchThemes() => + _i23.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i22.Future>.value( - <_i25.StackThemeMetaData>[]), - ) as _i22.Future>); + returnValue: _i23.Future>.value( + <_i26.StackThemeMetaData>[]), + ) as _i23.Future>); @override - _i22.Future<_i27.Uint8List> fetchTheme( - {required _i25.StackThemeMetaData? themeMetaData}) => + _i23.Future<_i28.Uint8List> fetchTheme( + {required _i26.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i22.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i22.Future<_i27.Uint8List>); + returnValue: _i23.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), + ) as _i23.Future<_i28.Uint8List>); @override - _i26.StackTheme? getTheme({required String? themeId}) => + _i27.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i26.StackTheme?); + )) as _i27.StackTheme?); } /// A class which mocks [BitcoinWallet]. /// /// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i22.Timer? _timer) => super.noSuchMethod( + set timer(_i23.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -793,15 +820,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i8.TransactionNotificationTracker get txTracker => (super.noSuchMethod( + _i9.TransactionNotificationTracker get txTracker => (super.noSuchMethod( Invocation.getter(#txTracker), - returnValue: _FakeTransactionNotificationTracker_5( + returnValue: _FakeTransactionNotificationTracker_6( this, Invocation.getter(#txTracker), ), - ) as _i8.TransactionNotificationTracker); + ) as _i9.TransactionNotificationTracker); @override - set txTracker(_i8.TransactionNotificationTracker? _txTracker) => + set txTracker(_i9.TransactionNotificationTracker? _txTracker) => super.noSuchMethod( Invocation.setter( #txTracker, @@ -862,74 +889,74 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValue: false, ) as bool); @override - _i21.Coin get coin => (super.noSuchMethod( + _i22.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i22.Coin.bitcoin, + ) as _i22.Coin); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i23.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i17.UTXO>[]), - ) as _i22.Future>); + returnValue: _i23.Future>.value(<_i18.UTXO>[]), + ) as _i23.Future>); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i23.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i17.Transaction>[]), - ) as _i22.Future>); + _i23.Future>.value(<_i18.Transaction>[]), + ) as _i23.Future>); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i23.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i23.Future.value(''), + ) as _i23.Future); @override - _i22.Future get currentChangeAddress => (super.noSuchMethod( + _i23.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i23.Future.value(''), + ) as _i23.Future); @override - _i22.Future get currentChangeAddressP2PKH => (super.noSuchMethod( + _i23.Future get currentChangeAddressP2PKH => (super.noSuchMethod( Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i23.Future.value(''), + ) as _i23.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i22.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i23.Future<_i10.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i23.Future<_i10.FeeObject>.value(_FakeFeeObject_7( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i9.FeeObject>); + ) as _i23.Future<_i10.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i23.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i23.Future.value(0), + ) as _i23.Future); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i23.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i23.Future>.value([]), + ) as _i23.Future>); @override - _i22.Future get mnemonicString => (super.noSuchMethod( + _i23.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future get mnemonicPassphrase => (super.noSuchMethod( + _i23.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future get chainHeight => (super.noSuchMethod( + _i23.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i23.Future.value(0), + ) as _i23.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -977,34 +1004,34 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i10.ElectrumX get electrumXClient => (super.noSuchMethod( + _i11.ElectrumX get electrumXClient => (super.noSuchMethod( Invocation.getter(#electrumXClient), - returnValue: _FakeElectrumX_7( + returnValue: _FakeElectrumX_8( this, Invocation.getter(#electrumXClient), ), - ) as _i10.ElectrumX); + ) as _i11.ElectrumX); @override - _i11.CachedElectrumX get cachedElectrumXClient => (super.noSuchMethod( + _i12.CachedElectrumX get cachedElectrumXClient => (super.noSuchMethod( Invocation.getter(#cachedElectrumXClient), - returnValue: _FakeCachedElectrumX_8( + returnValue: _FakeCachedElectrumX_9( this, Invocation.getter(#cachedElectrumXClient), ), - ) as _i11.CachedElectrumX); + ) as _i12.CachedElectrumX); @override - _i12.Balance get balance => (super.noSuchMethod( + _i13.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), - returnValue: _FakeBalance_9( + returnValue: _FakeBalance_10( this, Invocation.getter(#balance), ), - ) as _i12.Balance); + ) as _i13.Balance); @override - _i22.Future get xpub => (super.noSuchMethod( + _i23.Future get xpub => (super.noSuchMethod( Invocation.getter(#xpub), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i23.Future.value(''), + ) as _i23.Future); @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -1015,42 +1042,42 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i7.MainDB get db => (super.noSuchMethod( + _i8.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeMainDB_4( + returnValue: _FakeMainDB_5( this, Invocation.getter(#db), ), - ) as _i7.MainDB); + ) as _i8.MainDB); @override - _i13.NetworkType get networkType => (super.noSuchMethod( + _i14.NetworkType get networkType => (super.noSuchMethod( Invocation.getter(#networkType), - returnValue: _FakeNetworkType_10( + returnValue: _FakeNetworkType_11( this, Invocation.getter(#networkType), ), - ) as _i13.NetworkType); + ) as _i14.NetworkType); @override - _i22.Future exit() => (super.noSuchMethod( + _i23.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i29.DerivePathType addressType({required String? address}) => + _i30.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i29.DerivePathType.bip44, - ) as _i29.DerivePathType); + returnValue: _i30.DerivePathType.bip44, + ) as _i30.DerivePathType); @override - _i22.Future recoverFromMnemonic({ + _i23.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -1069,49 +1096,49 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future getTransactionCacheEarly(List? allAddresses) => + _i23.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i23.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i23.Future.value(false), + ) as _i23.Future); @override - _i22.Future getAllTxsToWatch() => (super.noSuchMethod( + _i23.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i23.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future> prepareSend({ + _i23.Future> prepareSend({ required String? address, - required _i14.Amount? amount, + required _i15.Amount? amount, Map? args, }) => (super.noSuchMethod( @@ -1125,26 +1152,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i23.Future>.value({}), + ) as _i23.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i23.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i23.Future.value(''), + ) as _i23.Future); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i23.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i23.Future.value(false), + ) as _i23.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -1162,35 +1189,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future initializeNew( + _i23.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i23.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future updateSentCachedTxData(Map? txData) => + _i23.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1200,70 +1227,70 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValue: false, ) as bool); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future<_i10.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i23.Future<_i11.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), returnValue: - _i22.Future<_i10.ElectrumXNode>.value(_FakeElectrumXNode_11( + _i23.Future<_i11.ElectrumXNode>.value(_FakeElectrumXNode_12( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i22.Future<_i10.ElectrumXNode>); + ) as _i23.Future<_i11.ElectrumXNode>); @override - _i22.Future>> fastFetch( + _i23.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i22.Future>>.value( + returnValue: _i23.Future>>.value( >[]), - ) as _i22.Future>>); + ) as _i23.Future>>); @override - _i22.Future getTxCount({required String? address}) => + _i23.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i23.Future.value(0), + ) as _i23.Future); @override - _i22.Future checkCurrentReceivingAddressesForTransactions() => + _i23.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future checkCurrentChangeAddressesForTransactions() => + _i23.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override int estimateTxFee({ required int? vSize, @@ -1289,7 +1316,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { required bool? isSendAll, int? satsPerVByte, int? additionalOutputs = 0, - List<_i17.UTXO>? utxos, + List<_i18.UTXO>? utxos, }) => super.noSuchMethod(Invocation.method( #coinSelection, @@ -1306,19 +1333,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { }, )); @override - _i22.Future> fetchBuildTxData( - List<_i17.UTXO>? utxosToUse) => + _i23.Future> fetchBuildTxData( + List<_i18.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( #fetchBuildTxData, [utxosToUse], ), returnValue: - _i22.Future>.value(<_i30.SigningData>[]), - ) as _i22.Future>); + _i23.Future>.value(<_i31.SigningData>[]), + ) as _i23.Future>); @override - _i22.Future> buildTransaction({ - required List<_i30.SigningData>? utxoSigningData, + _i23.Future> buildTransaction({ + required List<_i31.SigningData>? utxoSigningData, required List? recipients, required List? satoshiAmounts, }) => @@ -1333,10 +1360,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i23.Future>.value({}), + ) as _i23.Future>); @override - _i22.Future fullRescan( + _i23.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1348,12 +1375,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future<_i14.Amount> estimateFeeFor( - _i14.Amount? amount, + _i23.Future<_i15.Amount> estimateFeeFor( + _i15.Amount? amount, int? feeRate, ) => (super.noSuchMethod( @@ -1364,7 +1391,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { feeRate, ], ), - returnValue: _i22.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i23.Future<_i15.Amount>.value(_FakeAmount_13( this, Invocation.method( #estimateFeeFor, @@ -1374,9 +1401,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { ], ), )), - ) as _i22.Future<_i14.Amount>); + ) as _i23.Future<_i15.Amount>); @override - _i14.Amount roughFeeEstimate( + _i15.Amount roughFeeEstimate( int? inputCount, int? outputCount, int? feeRatePerKB, @@ -1390,7 +1417,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { feeRatePerKB, ], ), - returnValue: _FakeAmount_12( + returnValue: _FakeAmount_13( this, Invocation.method( #roughFeeEstimate, @@ -1401,34 +1428,34 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { ], ), ), - ) as _i14.Amount); + ) as _i15.Amount); @override - _i22.Future<_i14.Amount> sweepAllEstimate(int? feeRate) => + _i23.Future<_i15.Amount> sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i22.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i23.Future<_i15.Amount>.value(_FakeAmount_13( this, Invocation.method( #sweepAllEstimate, [feeRate], ), )), - ) as _i22.Future<_i14.Amount>); + ) as _i23.Future<_i15.Amount>); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i23.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i23.Future.value(false), + ) as _i23.Future); @override void initCache( String? walletId, - _i21.Coin? coin, + _i22.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1441,14 +1468,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future updateCachedId(String? id) => (super.noSuchMethod( + _i23.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1458,14 +1485,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValue: 0, ) as int); @override - _i22.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i23.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1475,63 +1502,63 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValue: false, ) as bool); @override - _i22.Future updateCachedIsFavorite(bool? isFavorite) => + _i23.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i12.Balance getCachedBalance() => (super.noSuchMethod( + _i13.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( #getCachedBalance, [], ), - returnValue: _FakeBalance_9( + returnValue: _FakeBalance_10( this, Invocation.method( #getCachedBalance, [], ), ), - ) as _i12.Balance); + ) as _i13.Balance); @override - _i22.Future updateCachedBalance(_i12.Balance? balance) => + _i23.Future updateCachedBalance(_i13.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i12.Balance getCachedBalanceSecondary() => (super.noSuchMethod( + _i13.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( #getCachedBalanceSecondary, [], ), - returnValue: _FakeBalance_9( + returnValue: _FakeBalance_10( this, Invocation.method( #getCachedBalanceSecondary, [], ), ), - ) as _i12.Balance); + ) as _i13.Balance); @override - _i22.Future updateCachedBalanceSecondary(_i12.Balance? balance) => + _i23.Future updateCachedBalanceSecondary(_i13.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override List getWalletTokenContractAddresses() => (super.noSuchMethod( Invocation.method( @@ -1541,18 +1568,18 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValue: [], ) as List); @override - _i22.Future updateWalletTokenContractAddresses( + _i23.Future updateWalletTokenContractAddresses( List? contractAddresses) => (super.noSuchMethod( Invocation.method( #updateWalletTokenContractAddresses, [contractAddresses], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - void initWalletDB({_i7.MainDB? mockableOverride}) => super.noSuchMethod( + void initWalletDB({_i8.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( #initWalletDB, [], @@ -1561,11 +1588,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>> parseTransaction( + _i23.Future<_i16.Tuple2<_i18.Transaction, _i18.Address>> parseTransaction( Map? txData, dynamic electrumxClient, - List<_i17.Address>? myAddresses, - _i21.Coin? coin, + List<_i18.Address>? myAddresses, + _i22.Coin? coin, int? minConfirms, String? walletId, ) => @@ -1582,8 +1609,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { ], ), returnValue: - _i22.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>.value( - _FakeTuple2_13<_i17.Transaction, _i17.Address>( + _i23.Future<_i16.Tuple2<_i18.Transaction, _i18.Address>>.value( + _FakeTuple2_14<_i18.Transaction, _i18.Address>( this, Invocation.method( #parseTransaction, @@ -1597,37 +1624,37 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { ], ), )), - ) as _i22.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>); + ) as _i23.Future<_i16.Tuple2<_i18.Transaction, _i18.Address>>); @override void initPaynymWalletInterface({ required String? walletId, required String? walletName, - required _i13.NetworkType? network, - required _i21.Coin? coin, - required _i7.MainDB? db, - required _i10.ElectrumX? electrumXClient, - required _i31.SecureStorageInterface? secureStorage, + required _i14.NetworkType? network, + required _i22.Coin? coin, + required _i8.MainDB? db, + required _i11.ElectrumX? electrumXClient, + required _i32.SecureStorageInterface? secureStorage, required int? dustLimit, required int? dustLimitP2PKH, required int? minConfirms, - required _i22.Future Function()? getMnemonicString, - required _i22.Future Function()? getMnemonicPassphrase, - required _i22.Future Function()? getChainHeight, - required _i22.Future Function()? getCurrentChangeAddress, + required _i23.Future Function()? getMnemonicString, + required _i23.Future Function()? getMnemonicPassphrase, + required _i23.Future Function()? getChainHeight, + required _i23.Future Function()? getCurrentChangeAddress, required int Function({ required int feeRatePerKB, required int vSize, })? estimateTxFee, - required _i22.Future> Function({ + required _i23.Future> Function({ required String address, - required _i14.Amount amount, + required _i15.Amount amount, Map? args, })? prepareSend, - required _i22.Future Function({required String address})? getTxCount, - required _i22.Future> Function(List<_i17.UTXO>)? + required _i23.Future Function({required String address})? getTxCount, + required _i23.Future> Function(List<_i18.UTXO>)? fetchBuildTxData, - required _i22.Future Function()? refresh, - required _i22.Future Function()? checkChangeAddressForTransactions, + required _i23.Future Function()? refresh, + required _i23.Future Function()? checkChangeAddressForTransactions, }) => super.noSuchMethod( Invocation.method( @@ -1660,21 +1687,21 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future<_i16.BIP32> getBip47BaseNode() => (super.noSuchMethod( + _i23.Future<_i17.BIP32> getBip47BaseNode() => (super.noSuchMethod( Invocation.method( #getBip47BaseNode, [], ), - returnValue: _i22.Future<_i16.BIP32>.value(_FakeBIP32_14( + returnValue: _i23.Future<_i17.BIP32>.value(_FakeBIP32_15( this, Invocation.method( #getBip47BaseNode, [], ), )), - ) as _i22.Future<_i16.BIP32>); + ) as _i23.Future<_i17.BIP32>); @override - _i22.Future<_i27.Uint8List> getPrivateKeyForPaynymReceivingAddress({ + _i23.Future<_i28.Uint8List> getPrivateKeyForPaynymReceivingAddress({ required String? paymentCodeString, required int? index, }) => @@ -1687,11 +1714,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { #index: index, }, ), - returnValue: _i22.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i22.Future<_i27.Uint8List>); + returnValue: _i23.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), + ) as _i23.Future<_i28.Uint8List>); @override - _i22.Future<_i17.Address> currentReceivingPaynymAddress({ - required _i18.PaymentCode? sender, + _i23.Future<_i18.Address> currentReceivingPaynymAddress({ + required _i19.PaymentCode? sender, required bool? isSegwit, }) => (super.noSuchMethod( @@ -1703,7 +1730,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { #isSegwit: isSegwit, }, ), - returnValue: _i22.Future<_i17.Address>.value(_FakeAddress_15( + returnValue: _i23.Future<_i18.Address>.value(_FakeAddress_16( this, Invocation.method( #currentReceivingPaynymAddress, @@ -1714,10 +1741,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { }, ), )), - ) as _i22.Future<_i17.Address>); + ) as _i23.Future<_i18.Address>); @override - _i22.Future checkCurrentPaynymReceivingAddressForTransactions({ - required _i18.PaymentCode? sender, + _i23.Future checkCurrentPaynymReceivingAddressForTransactions({ + required _i19.PaymentCode? sender, required bool? isSegwit, }) => (super.noSuchMethod( @@ -1729,42 +1756,42 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { #isSegwit: isSegwit, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => + _i23.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkAllCurrentReceivingPaynymAddressesForTransactions, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future<_i16.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( + _i23.Future<_i17.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( Invocation.method( #deriveNotificationBip32Node, [], ), - returnValue: _i22.Future<_i16.BIP32>.value(_FakeBIP32_14( + returnValue: _i23.Future<_i17.BIP32>.value(_FakeBIP32_15( this, Invocation.method( #deriveNotificationBip32Node, [], ), )), - ) as _i22.Future<_i16.BIP32>); + ) as _i23.Future<_i17.BIP32>); @override - _i22.Future<_i18.PaymentCode> getPaymentCode({required bool? isSegwit}) => + _i23.Future<_i19.PaymentCode> getPaymentCode({required bool? isSegwit}) => (super.noSuchMethod( Invocation.method( #getPaymentCode, [], {#isSegwit: isSegwit}, ), - returnValue: _i22.Future<_i18.PaymentCode>.value(_FakePaymentCode_16( + returnValue: _i23.Future<_i19.PaymentCode>.value(_FakePaymentCode_17( this, Invocation.method( #getPaymentCode, @@ -1772,30 +1799,30 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { {#isSegwit: isSegwit}, ), )), - ) as _i22.Future<_i18.PaymentCode>); + ) as _i23.Future<_i19.PaymentCode>); @override - _i22.Future<_i27.Uint8List> signWithNotificationKey(_i27.Uint8List? data) => + _i23.Future<_i28.Uint8List> signWithNotificationKey(_i28.Uint8List? data) => (super.noSuchMethod( Invocation.method( #signWithNotificationKey, [data], ), - returnValue: _i22.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), - ) as _i22.Future<_i27.Uint8List>); + returnValue: _i23.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), + ) as _i23.Future<_i28.Uint8List>); @override - _i22.Future signStringWithNotificationKey(String? data) => + _i23.Future signStringWithNotificationKey(String? data) => (super.noSuchMethod( Invocation.method( #signStringWithNotificationKey, [data], ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i23.Future.value(''), + ) as _i23.Future); @override - _i22.Future> preparePaymentCodeSend({ - required _i18.PaymentCode? paymentCode, + _i23.Future> preparePaymentCodeSend({ + required _i19.PaymentCode? paymentCode, required bool? isSegwit, - required _i14.Amount? amount, + required _i15.Amount? amount, Map? args, }) => (super.noSuchMethod( @@ -1810,13 +1837,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i23.Future>.value({}), + ) as _i23.Future>); @override - _i22.Future<_i17.Address> nextUnusedSendAddressFrom({ - required _i18.PaymentCode? pCode, + _i23.Future<_i18.Address> nextUnusedSendAddressFrom({ + required _i19.PaymentCode? pCode, required bool? isSegwit, - required _i16.BIP32? privateKeyNode, + required _i17.BIP32? privateKeyNode, int? startIndex = 0, }) => (super.noSuchMethod( @@ -1830,7 +1857,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { #startIndex: startIndex, }, ), - returnValue: _i22.Future<_i17.Address>.value(_FakeAddress_15( + returnValue: _i23.Future<_i18.Address>.value(_FakeAddress_16( this, Invocation.method( #nextUnusedSendAddressFrom, @@ -1843,13 +1870,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { }, ), )), - ) as _i22.Future<_i17.Address>); + ) as _i23.Future<_i18.Address>); @override - _i22.Future> prepareNotificationTx({ + _i23.Future> prepareNotificationTx({ required int? selectedTxFeeRate, required String? targetPaymentCodeString, int? additionalOutputs = 0, - List<_i17.UTXO>? utxos, + List<_i18.UTXO>? utxos, }) => (super.noSuchMethod( Invocation.method( @@ -1863,10 +1890,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i23.Future>.value({}), + ) as _i23.Future>); @override - _i22.Future broadcastNotificationTx( + _i23.Future broadcastNotificationTx( {required Map? preparedTx}) => (super.noSuchMethod( Invocation.method( @@ -1874,62 +1901,62 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { [], {#preparedTx: preparedTx}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i23.Future.value(''), + ) as _i23.Future); @override - _i22.Future hasConnected(String? paymentCodeString) => + _i23.Future hasConnected(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #hasConnected, [paymentCodeString], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i23.Future.value(false), + ) as _i23.Future); @override - _i22.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransaction( - {required _i17.Transaction? transaction}) => + _i23.Future<_i19.PaymentCode?> unBlindedPaymentCodeFromTransaction( + {required _i18.Transaction? transaction}) => (super.noSuchMethod( Invocation.method( #unBlindedPaymentCodeFromTransaction, [], {#transaction: transaction}, ), - returnValue: _i22.Future<_i18.PaymentCode?>.value(), - ) as _i22.Future<_i18.PaymentCode?>); + returnValue: _i23.Future<_i19.PaymentCode?>.value(), + ) as _i23.Future<_i19.PaymentCode?>); @override - _i22.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( - {required _i17.Transaction? transaction}) => + _i23.Future<_i19.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( + {required _i18.Transaction? transaction}) => (super.noSuchMethod( Invocation.method( #unBlindedPaymentCodeFromTransactionBad, [], {#transaction: transaction}, ), - returnValue: _i22.Future<_i18.PaymentCode?>.value(), - ) as _i22.Future<_i18.PaymentCode?>); + returnValue: _i23.Future<_i19.PaymentCode?>.value(), + ) as _i23.Future<_i19.PaymentCode?>); @override - _i22.Future> + _i23.Future> getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( Invocation.method( #getAllPaymentCodesFromNotificationTransactions, [], ), returnValue: - _i22.Future>.value(<_i18.PaymentCode>[]), - ) as _i22.Future>); + _i23.Future>.value(<_i19.PaymentCode>[]), + ) as _i23.Future>); @override - _i22.Future checkForNotificationTransactionsTo( + _i23.Future checkForNotificationTransactionsTo( Set? otherCodeStrings) => (super.noSuchMethod( Invocation.method( #checkForNotificationTransactionsTo, [otherCodeStrings], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future restoreAllHistory({ + _i23.Future restoreAllHistory({ required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required Set? paymentCodeStrings, @@ -1944,12 +1971,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { #paymentCodeStrings: paymentCodeStrings, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future restoreHistoryWith({ - required _i18.PaymentCode? other, + _i23.Future restoreHistoryWith({ + required _i19.PaymentCode? other, required bool? checkSegwitAsWell, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -1965,58 +1992,58 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future<_i17.Address> getMyNotificationAddress() => (super.noSuchMethod( + _i23.Future<_i18.Address> getMyNotificationAddress() => (super.noSuchMethod( Invocation.method( #getMyNotificationAddress, [], ), - returnValue: _i22.Future<_i17.Address>.value(_FakeAddress_15( + returnValue: _i23.Future<_i18.Address>.value(_FakeAddress_16( this, Invocation.method( #getMyNotificationAddress, [], ), )), - ) as _i22.Future<_i17.Address>); + ) as _i23.Future<_i18.Address>); @override - _i22.Future> lookupKey(String? paymentCodeString) => + _i23.Future> lookupKey(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #lookupKey, [paymentCodeString], ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i23.Future>.value([]), + ) as _i23.Future>); @override - _i22.Future paymentCodeStringByKey(String? key) => + _i23.Future paymentCodeStringByKey(String? key) => (super.noSuchMethod( Invocation.method( #paymentCodeStringByKey, [key], ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future storeCode(String? paymentCodeString) => + _i23.Future storeCode(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #storeCode, [paymentCodeString], ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i23.Future.value(''), + ) as _i23.Future); @override void initCoinControlInterface({ required String? walletId, required String? walletName, - required _i21.Coin? coin, - required _i7.MainDB? db, - required _i22.Future Function()? getChainHeight, - required _i22.Future Function(_i12.Balance)? refreshedBalanceCallback, + required _i22.Coin? coin, + required _i8.MainDB? db, + required _i23.Future Function()? getChainHeight, + required _i23.Future Function(_i13.Balance)? refreshedBalanceCallback, }) => super.noSuchMethod( Invocation.method( @@ -2034,16 +2061,16 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future refreshBalance({bool? notify = false}) => + _i23.Future refreshBalance({bool? notify = false}) => (super.noSuchMethod( Invocation.method( #refreshBalance, [], {#notify: notify}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); } /// A class which mocks [Manager]. @@ -2064,23 +2091,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i19.CoinServiceAPI get wallet => (super.noSuchMethod( + _i20.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_17( + returnValue: _FakeCoinServiceAPI_18( this, Invocation.getter(#wallet), ), - ) as _i19.CoinServiceAPI); + ) as _i20.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i21.Coin get coin => (super.noSuchMethod( + _i22.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i22.Coin.bitcoin, + ) as _i22.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2113,42 +2140,42 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i22.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i23.Future<_i10.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i23.Future<_i10.FeeObject>.value(_FakeFeeObject_7( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i9.FeeObject>); + ) as _i23.Future<_i10.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i23.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i23.Future.value(0), + ) as _i23.Future); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i23.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i23.Future.value(''), + ) as _i23.Future); @override - _i12.Balance get balance => (super.noSuchMethod( + _i13.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), - returnValue: _FakeBalance_9( + returnValue: _FakeBalance_10( this, Invocation.getter(#balance), ), - ) as _i12.Balance); + ) as _i13.Balance); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i23.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i17.Transaction>[]), - ) as _i22.Future>); + _i23.Future>.value(<_i18.Transaction>[]), + ) as _i23.Future>); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i23.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i17.UTXO>[]), - ) as _i22.Future>); + returnValue: _i23.Future>.value(<_i18.UTXO>[]), + ) as _i23.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2168,15 +2195,15 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i23.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i23.Future>.value([]), + ) as _i23.Future>); @override - _i22.Future get mnemonicPassphrase => (super.noSuchMethod( + _i23.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + ) as _i23.Future); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -2223,24 +2250,24 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i22.Future get xpub => (super.noSuchMethod( + _i23.Future get xpub => (super.noSuchMethod( Invocation.getter(#xpub), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i23.Future.value(''), + ) as _i23.Future); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -2250,9 +2277,9 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i22.Future> prepareSend({ + _i23.Future> prepareSend({ required String? address, - required _i14.Amount? amount, + required _i15.Amount? amount, Map? args, }) => (super.noSuchMethod( @@ -2266,27 +2293,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i23.Future>.value({}), + ) as _i23.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i23.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i23.Future.value(''), + ) as _i23.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i23.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2296,35 +2323,35 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i23.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i23.Future.value(false), + ) as _i23.Future); @override - _i22.Future initializeNew( + _i23.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i23.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future recoverFromMnemonic({ + _i23.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -2343,20 +2370,20 @@ class MockManager extends _i1.Mock implements _i6.Manager { #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future exitCurrentWallet() => (super.noSuchMethod( + _i23.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future fullRescan( + _i23.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2368,12 +2395,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future<_i14.Amount> estimateFeeFor( - _i14.Amount? amount, + _i23.Future<_i15.Amount> estimateFeeFor( + _i15.Amount? amount, int? feeRate, ) => (super.noSuchMethod( @@ -2384,7 +2411,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i22.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i23.Future<_i15.Amount>.value(_FakeAmount_13( this, Invocation.method( #estimateFeeFor, @@ -2394,26 +2421,26 @@ class MockManager extends _i1.Mock implements _i6.Manager { ], ), )), - ) as _i22.Future<_i14.Amount>); + ) as _i23.Future<_i15.Amount>); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i23.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i23.Future.value(false), + ) as _i23.Future); @override - _i22.Future resetRescanOnOpen() => (super.noSuchMethod( + _i23.Future resetRescanOnOpen() => (super.noSuchMethod( Invocation.method( #resetRescanOnOpen, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2421,7 +2448,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2441,7 +2468,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -2452,10 +2479,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i21.Coin get coin => (super.noSuchMethod( + _i22.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i22.Coin.bitcoin, + ) as _i22.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2488,42 +2515,42 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i22.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i23.Future<_i10.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i23.Future<_i10.FeeObject>.value(_FakeFeeObject_7( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i9.FeeObject>); + ) as _i23.Future<_i10.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i23.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i23.Future.value(0), + ) as _i23.Future); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i23.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i23.Future.value(''), + ) as _i23.Future); @override - _i12.Balance get balance => (super.noSuchMethod( + _i13.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), - returnValue: _FakeBalance_9( + returnValue: _FakeBalance_10( this, Invocation.getter(#balance), ), - ) as _i12.Balance); + ) as _i13.Balance); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i23.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i17.Transaction>[]), - ) as _i22.Future>); + _i23.Future>.value(<_i18.Transaction>[]), + ) as _i23.Future>); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i23.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i17.UTXO>[]), - ) as _i22.Future>); + returnValue: _i23.Future>.value(<_i18.UTXO>[]), + ) as _i23.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2543,20 +2570,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: '', ) as String); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i23.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i23.Future>.value([]), + ) as _i23.Future>); @override - _i22.Future get mnemonicString => (super.noSuchMethod( + _i23.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future get mnemonicPassphrase => (super.noSuchMethod( + _i23.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + ) as _i23.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2573,9 +2600,9 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: 0, ) as int); @override - _i22.Future> prepareSend({ + _i23.Future> prepareSend({ required String? address, - required _i14.Amount? amount, + required _i15.Amount? amount, Map? args, }) => (super.noSuchMethod( @@ -2589,36 +2616,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i23.Future>.value({}), + ) as _i23.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i23.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i23.Future.value(''), + ) as _i23.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i23.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2628,15 +2655,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValue: false, ) as bool); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i23.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i23.Future.value(false), + ) as _i23.Future); @override - _i22.Future recoverFromMnemonic({ + _i23.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -2655,40 +2682,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future initializeNew( + _i23.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i23.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future exit() => (super.noSuchMethod( + _i23.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future fullRescan( + _i23.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2700,12 +2727,12 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); @override - _i22.Future<_i14.Amount> estimateFeeFor( - _i14.Amount? amount, + _i23.Future<_i15.Amount> estimateFeeFor( + _i15.Amount? amount, int? feeRate, ) => (super.noSuchMethod( @@ -2716,7 +2743,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { feeRate, ], ), - returnValue: _i22.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i23.Future<_i15.Amount>.value(_FakeAmount_13( this, Invocation.method( #estimateFeeFor, @@ -2726,23 +2753,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { ], ), )), - ) as _i22.Future<_i14.Amount>); + ) as _i23.Future<_i15.Amount>); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i23.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i23.Future.value(false), + ) as _i23.Future); @override - _i22.Future updateSentCachedTxData(Map? txData) => + _i23.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i23.Future.value(), + returnValueForMissingStub: _i23.Future.value(), + ) as _i23.Future); } diff --git a/test/widget_tests/trade_card_test.mocks.dart b/test/widget_tests/trade_card_test.mocks.dart index 88b3eb240..e8bb7f552 100644 --- a/test/widget_tests/trade_card_test.mocks.dart +++ b/test/widget_tests/trade_card_test.mocks.dart @@ -3,13 +3,14 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:typed_data' as _i6; +import 'dart:async' as _i6; +import 'dart:typed_data' as _i7; import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/db/isar/main_db.dart' as _i2; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i4; -import 'package:stackwallet/themes/theme_service.dart' as _i3; +import 'package:stackwallet/db/isar/main_db.dart' as _i3; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i5; +import 'package:stackwallet/networking/http.dart' as _i2; +import 'package:stackwallet/themes/theme_service.dart' as _i4; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -22,8 +23,18 @@ import 'package:stackwallet/themes/theme_service.dart' as _i3; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeMainDB_0 extends _i1.SmartFake implements _i2.MainDB { - _FakeMainDB_0( +class _FakeHTTP_0 extends _i1.SmartFake implements _i2.HTTP { + _FakeHTTP_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeMainDB_1 extends _i1.SmartFake implements _i3.MainDB { + _FakeMainDB_1( Object parent, Invocation parentInvocation, ) : super( @@ -35,26 +46,42 @@ class _FakeMainDB_0 extends _i1.SmartFake implements _i2.MainDB { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i3.ThemeService { +class MockThemeService extends _i1.Mock implements _i4.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @override - _i2.MainDB get db => (super.noSuchMethod( + _i2.HTTP get client => (super.noSuchMethod( + Invocation.getter(#client), + returnValue: _FakeHTTP_0( + this, + Invocation.getter(#client), + ), + ) as _i2.HTTP); + @override + set client(_i2.HTTP? _client) => super.noSuchMethod( + Invocation.setter( + #client, + _client, + ), + returnValueForMissingStub: null, + ); + @override + _i3.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeMainDB_0( + returnValue: _FakeMainDB_1( this, Invocation.getter(#db), ), - ) as _i2.MainDB); + ) as _i3.MainDB); @override - List<_i4.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i5.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i4.StackTheme>[], - ) as List<_i4.StackTheme>); + returnValue: <_i5.StackTheme>[], + ) as List<_i5.StackTheme>); @override - void init(_i2.MainDB? db) => super.noSuchMethod( + void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( #init, [db], @@ -62,78 +89,78 @@ class MockThemeService extends _i1.Mock implements _i3.ThemeService { returnValueForMissingStub: null, ); @override - _i5.Future install({required _i6.Uint8List? themeArchiveData}) => + _i6.Future install({required _i7.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future remove({required String? themeId}) => (super.noSuchMethod( + _i6.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i6.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future verifyInstalled({required String? themeId}) => + _i6.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); + returnValue: _i6.Future.value(false), + ) as _i6.Future); @override - _i5.Future> fetchThemes() => (super.noSuchMethod( + _i6.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i5.Future>.value( - <_i3.StackThemeMetaData>[]), - ) as _i5.Future>); + returnValue: _i6.Future>.value( + <_i4.StackThemeMetaData>[]), + ) as _i6.Future>); @override - _i5.Future<_i6.Uint8List> fetchTheme( - {required _i3.StackThemeMetaData? themeMetaData}) => + _i6.Future<_i7.Uint8List> fetchTheme( + {required _i4.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i5.Future<_i6.Uint8List>.value(_i6.Uint8List(0)), - ) as _i5.Future<_i6.Uint8List>); + returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), + ) as _i6.Future<_i7.Uint8List>); @override - _i4.StackTheme? getTheme({required String? themeId}) => + _i5.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i4.StackTheme?); + )) as _i5.StackTheme?); } /// A class which mocks [IThemeAssets]. /// /// See the documentation for Mockito's code generation for more information. -class MockIThemeAssets extends _i1.Mock implements _i4.IThemeAssets { +class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets { MockIThemeAssets() { _i1.throwOnMissingStub(this); } diff --git a/test/widget_tests/transaction_card_test.mocks.dart b/test/widget_tests/transaction_card_test.mocks.dart index ee4d3d9d7..5ef7ef5a1 100644 --- a/test/widget_tests/transaction_card_test.mocks.dart +++ b/test/widget_tests/transaction_card_test.mocks.dart @@ -3,43 +3,44 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i19; -import 'dart:typed_data' as _i34; -import 'dart:ui' as _i21; +import 'dart:async' as _i20; +import 'dart:typed_data' as _i35; +import 'dart:ui' as _i22; -import 'package:decimal/decimal.dart' as _i30; +import 'package:decimal/decimal.dart' as _i31; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; -import 'package:isar/isar.dart' as _i16; +import 'package:isar/isar.dart' as _i17; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i14; import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i13; import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i12; import 'package:stackwallet/models/balance.dart' as _i9; -import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i36; -import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i35; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i22; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i33; +import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i37; +import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i36; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i23; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i34; import 'package:stackwallet/models/models.dart' as _i8; -import 'package:stackwallet/models/signing_data.dart' as _i24; +import 'package:stackwallet/models/signing_data.dart' as _i25; +import 'package:stackwallet/networking/http.dart' as _i16; import 'package:stackwallet/services/coins/coin_service.dart' as _i7; -import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as _i23; +import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as _i24; import 'package:stackwallet/services/coins/manager.dart' as _i6; -import 'package:stackwallet/services/locale_service.dart' as _i25; +import 'package:stackwallet/services/locale_service.dart' as _i26; import 'package:stackwallet/services/node_service.dart' as _i3; -import 'package:stackwallet/services/notes_service.dart' as _i31; -import 'package:stackwallet/services/price_service.dart' as _i29; +import 'package:stackwallet/services/notes_service.dart' as _i32; +import 'package:stackwallet/services/price_service.dart' as _i30; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i11; -import 'package:stackwallet/services/wallets.dart' as _i17; +import 'package:stackwallet/services/wallets.dart' as _i18; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/themes/theme_service.dart' as _i32; +import 'package:stackwallet/themes/theme_service.dart' as _i33; import 'package:stackwallet/utilities/amount/amount.dart' as _i10; -import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i28; -import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i27; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i18; -import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i26; -import 'package:stackwallet/utilities/prefs.dart' as _i20; +import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i29; +import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i28; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i19; +import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i27; +import 'package:stackwallet/utilities/prefs.dart' as _i21; import 'package:tuple/tuple.dart' as _i15; // ignore_for_file: type=lint @@ -199,8 +200,8 @@ class _FakeTuple2_13 extends _i1.SmartFake ); } -class _FakeIsar_14 extends _i1.SmartFake implements _i16.Isar { - _FakeIsar_14( +class _FakeHTTP_14 extends _i1.SmartFake implements _i16.HTTP { + _FakeHTTP_14( Object parent, Invocation parentInvocation, ) : super( @@ -209,9 +210,19 @@ class _FakeIsar_14 extends _i1.SmartFake implements _i16.Isar { ); } -class _FakeQueryBuilder_15 extends _i1.SmartFake - implements _i16.QueryBuilder { - _FakeQueryBuilder_15( +class _FakeIsar_15 extends _i1.SmartFake implements _i17.Isar { + _FakeIsar_15( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeQueryBuilder_16 extends _i1.SmartFake + implements _i17.QueryBuilder { + _FakeQueryBuilder_16( Object parent, Invocation parentInvocation, ) : super( @@ -223,7 +234,7 @@ class _FakeQueryBuilder_15 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 _i17.Wallets { +class MockWallets extends _i1.Mock implements _i18.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -290,7 +301,7 @@ class MockWallets extends _i1.Mock implements _i17.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i18.Coin? coin}) => + List getWalletIdsFor({required _i19.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -300,20 +311,20 @@ class MockWallets extends _i1.Mock implements _i17.Wallets { returnValue: [], ) as List); @override - List<_i15.Tuple2<_i18.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>> + List<_i15.Tuple2<_i19.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i15.Tuple2<_i18.Coin, + returnValue: <_i15.Tuple2<_i19.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>[], ) as List< - _i15.Tuple2<_i18.Coin, + _i15.Tuple2<_i19.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i18.Coin? coin) => + _i19.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -377,17 +388,17 @@ class MockWallets extends _i1.Mock implements _i17.Wallets { returnValueForMissingStub: null, ); @override - _i19.Future load(_i20.Prefs? prefs) => (super.noSuchMethod( + _i20.Future load(_i21.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future loadAfterStackRestore( - _i20.Prefs? prefs, + _i20.Future loadAfterStackRestore( + _i21.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -398,11 +409,11 @@ class MockWallets extends _i1.Mock implements _i17.Wallets { managers, ], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - void addListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -410,7 +421,7 @@ class MockWallets extends _i1.Mock implements _i17.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -462,10 +473,10 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i18.Coin get coin => (super.noSuchMethod( + _i19.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i18.Coin.bitcoin, - ) as _i18.Coin); + returnValue: _i19.Coin.bitcoin, + ) as _i19.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -498,23 +509,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i19.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i20.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i19.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i20.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i19.Future<_i8.FeeObject>); + ) as _i20.Future<_i8.FeeObject>); @override - _i19.Future get maxFee => (super.noSuchMethod( + _i20.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i19.Future.value(0), - ) as _i19.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i19.Future get currentReceivingAddress => (super.noSuchMethod( + _i20.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i19.Future.value(''), - ) as _i19.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override _i9.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -524,16 +535,16 @@ class MockManager extends _i1.Mock implements _i6.Manager { ), ) as _i9.Balance); @override - _i19.Future> get transactions => (super.noSuchMethod( + _i20.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i19.Future>.value(<_i22.Transaction>[]), - ) as _i19.Future>); + _i20.Future>.value(<_i23.Transaction>[]), + ) as _i20.Future>); @override - _i19.Future> get utxos => (super.noSuchMethod( + _i20.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i19.Future>.value(<_i22.UTXO>[]), - ) as _i19.Future>); + returnValue: _i20.Future>.value(<_i23.UTXO>[]), + ) as _i20.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -553,15 +564,15 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i19.Future> get mnemonic => (super.noSuchMethod( + _i20.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i19.Future>.value([]), - ) as _i19.Future>); + returnValue: _i20.Future>.value([]), + ) as _i20.Future>); @override - _i19.Future get mnemonicPassphrase => (super.noSuchMethod( + _i20.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + ) as _i20.Future); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -608,24 +619,24 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i19.Future get xpub => (super.noSuchMethod( + _i20.Future get xpub => (super.noSuchMethod( Invocation.getter(#xpub), - returnValue: _i19.Future.value(''), - ) as _i19.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i19.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i20.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -635,7 +646,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i19.Future> prepareSend({ + _i20.Future> prepareSend({ required String? address, required _i10.Amount? amount, Map? args, @@ -651,27 +662,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i19.Future>.value({}), - ) as _i19.Future>); + _i20.Future>.value({}), + ) as _i20.Future>); @override - _i19.Future confirmSend({required Map? txData}) => + _i20.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i19.Future.value(''), - ) as _i19.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override - _i19.Future refresh() => (super.noSuchMethod( + _i20.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -681,35 +692,35 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i19.Future testNetworkConnection() => (super.noSuchMethod( + _i20.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i19.Future initializeNew( + _i20.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future initializeExisting() => (super.noSuchMethod( + _i20.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future recoverFromMnemonic({ + _i20.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -728,20 +739,20 @@ class MockManager extends _i1.Mock implements _i6.Manager { #height: height, }, ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future exitCurrentWallet() => (super.noSuchMethod( + _i20.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future fullRescan( + _i20.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -753,11 +764,11 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future<_i10.Amount> estimateFeeFor( + _i20.Future<_i10.Amount> estimateFeeFor( _i10.Amount? amount, int? feeRate, ) => @@ -769,7 +780,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i19.Future<_i10.Amount>.value(_FakeAmount_7( + returnValue: _i20.Future<_i10.Amount>.value(_FakeAmount_7( this, Invocation.method( #estimateFeeFor, @@ -779,26 +790,26 @@ class MockManager extends _i1.Mock implements _i6.Manager { ], ), )), - ) as _i19.Future<_i10.Amount>); + ) as _i20.Future<_i10.Amount>); @override - _i19.Future generateNewAddress() => (super.noSuchMethod( + _i20.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i19.Future resetRescanOnOpen() => (super.noSuchMethod( + _i20.Future resetRescanOnOpen() => (super.noSuchMethod( Invocation.method( #resetRescanOnOpen, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - void addListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -806,7 +817,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -841,10 +852,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i7.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i18.Coin get coin => (super.noSuchMethod( + _i19.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i18.Coin.bitcoin, - ) as _i18.Coin); + returnValue: _i19.Coin.bitcoin, + ) as _i19.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -877,23 +888,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i7.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i19.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i20.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i19.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i20.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i19.Future<_i8.FeeObject>); + ) as _i20.Future<_i8.FeeObject>); @override - _i19.Future get maxFee => (super.noSuchMethod( + _i20.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i19.Future.value(0), - ) as _i19.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i19.Future get currentReceivingAddress => (super.noSuchMethod( + _i20.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i19.Future.value(''), - ) as _i19.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override _i9.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -903,16 +914,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i7.CoinServiceAPI { ), ) as _i9.Balance); @override - _i19.Future> get transactions => (super.noSuchMethod( + _i20.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i19.Future>.value(<_i22.Transaction>[]), - ) as _i19.Future>); + _i20.Future>.value(<_i23.Transaction>[]), + ) as _i20.Future>); @override - _i19.Future> get utxos => (super.noSuchMethod( + _i20.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i19.Future>.value(<_i22.UTXO>[]), - ) as _i19.Future>); + returnValue: _i20.Future>.value(<_i23.UTXO>[]), + ) as _i20.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -932,20 +943,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i7.CoinServiceAPI { returnValue: '', ) as String); @override - _i19.Future> get mnemonic => (super.noSuchMethod( + _i20.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i19.Future>.value([]), - ) as _i19.Future>); + returnValue: _i20.Future>.value([]), + ) as _i20.Future>); @override - _i19.Future get mnemonicString => (super.noSuchMethod( + _i20.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future get mnemonicPassphrase => (super.noSuchMethod( + _i20.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + ) as _i20.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -962,7 +973,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i7.CoinServiceAPI { returnValue: 0, ) as int); @override - _i19.Future> prepareSend({ + _i20.Future> prepareSend({ required String? address, required _i10.Amount? amount, Map? args, @@ -978,36 +989,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i7.CoinServiceAPI { }, ), returnValue: - _i19.Future>.value({}), - ) as _i19.Future>); + _i20.Future>.value({}), + ) as _i20.Future>); @override - _i19.Future confirmSend({required Map? txData}) => + _i20.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i19.Future.value(''), - ) as _i19.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override - _i19.Future refresh() => (super.noSuchMethod( + _i20.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i20.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1017,15 +1028,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i7.CoinServiceAPI { returnValue: false, ) as bool); @override - _i19.Future testNetworkConnection() => (super.noSuchMethod( + _i20.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i19.Future recoverFromMnemonic({ + _i20.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -1044,40 +1055,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i7.CoinServiceAPI { #height: height, }, ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future initializeNew( + _i20.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future initializeExisting() => (super.noSuchMethod( + _i20.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future exit() => (super.noSuchMethod( + _i20.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future fullRescan( + _i20.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1089,11 +1100,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i7.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future<_i10.Amount> estimateFeeFor( + _i20.Future<_i10.Amount> estimateFeeFor( _i10.Amount? amount, int? feeRate, ) => @@ -1105,7 +1116,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i7.CoinServiceAPI { feeRate, ], ), - returnValue: _i19.Future<_i10.Amount>.value(_FakeAmount_7( + returnValue: _i20.Future<_i10.Amount>.value(_FakeAmount_7( this, Invocation.method( #estimateFeeFor, @@ -1115,37 +1126,37 @@ class MockCoinServiceAPI extends _i1.Mock implements _i7.CoinServiceAPI { ], ), )), - ) as _i19.Future<_i10.Amount>); + ) as _i20.Future<_i10.Amount>); @override - _i19.Future generateNewAddress() => (super.noSuchMethod( + _i20.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i19.Future updateSentCachedTxData(Map? txData) => + _i20.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); } /// A class which mocks [FiroWallet]. /// /// See the documentation for Mockito's code generation for more information. -class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { +class MockFiroWallet extends _i1.Mock implements _i24.FiroWallet { MockFiroWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i19.Timer? _timer) => super.noSuchMethod( + set timer(_i20.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -1235,48 +1246,48 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { returnValue: false, ) as bool); @override - _i18.Coin get coin => (super.noSuchMethod( + _i19.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i18.Coin.bitcoin, - ) as _i18.Coin); + returnValue: _i19.Coin.bitcoin, + ) as _i19.Coin); @override - _i19.Future> get mnemonic => (super.noSuchMethod( + _i20.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i19.Future>.value([]), - ) as _i19.Future>); + returnValue: _i20.Future>.value([]), + ) as _i20.Future>); @override - _i19.Future get mnemonicString => (super.noSuchMethod( + _i20.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future get mnemonicPassphrase => (super.noSuchMethod( + _i20.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future get maxFee => (super.noSuchMethod( + _i20.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i19.Future.value(0), - ) as _i19.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i19.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i20.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i19.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i20.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i19.Future<_i8.FeeObject>); + ) as _i20.Future<_i8.FeeObject>); @override - _i19.Future get currentReceivingAddress => (super.noSuchMethod( + _i20.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i19.Future.value(''), - ) as _i19.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override - _i19.Future get currentChangeAddress => (super.noSuchMethod( + _i20.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i19.Future.value(''), - ) as _i19.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override String get walletName => (super.noSuchMethod( Invocation.getter(#walletName), @@ -1332,10 +1343,10 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { returnValue: false, ) as bool); @override - _i19.Future get chainHeight => (super.noSuchMethod( + _i20.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i19.Future.value(0), - ) as _i19.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -1358,21 +1369,21 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { ), ) as _i9.Balance); @override - _i19.Future> get utxos => (super.noSuchMethod( + _i20.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i19.Future>.value(<_i22.UTXO>[]), - ) as _i19.Future>); + returnValue: _i20.Future>.value(<_i23.UTXO>[]), + ) as _i20.Future>); @override - _i19.Future> get transactions => (super.noSuchMethod( + _i20.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i19.Future>.value(<_i22.Transaction>[]), - ) as _i19.Future>); + _i20.Future>.value(<_i23.Transaction>[]), + ) as _i20.Future>); @override - _i19.Future get xpub => (super.noSuchMethod( + _i20.Future get xpub => (super.noSuchMethod( Invocation.getter(#xpub), - returnValue: _i19.Future.value(''), - ) as _i19.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -1399,23 +1410,23 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { returnValue: false, ) as bool); @override - _i19.Future updateSentCachedTxData(Map? txData) => + _i20.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future testNetworkConnection() => (super.noSuchMethod( + _i20.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -1433,7 +1444,7 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { returnValueForMissingStub: null, ); @override - _i19.Future> prepareSendPublic({ + _i20.Future> prepareSendPublic({ required String? address, required _i10.Amount? amount, Map? args, @@ -1449,20 +1460,20 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { }, ), returnValue: - _i19.Future>.value({}), - ) as _i19.Future>); + _i20.Future>.value({}), + ) as _i20.Future>); @override - _i19.Future confirmSendPublic({dynamic txData}) => + _i20.Future confirmSendPublic({dynamic txData}) => (super.noSuchMethod( Invocation.method( #confirmSendPublic, [], {#txData: txData}, ), - returnValue: _i19.Future.value(''), - ) as _i19.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override - _i19.Future> prepareSend({ + _i20.Future> prepareSend({ required String? address, required _i10.Amount? amount, Map? args, @@ -1478,18 +1489,18 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { }, ), returnValue: - _i19.Future>.value({}), - ) as _i19.Future>); + _i20.Future>.value({}), + ) as _i20.Future>); @override - _i19.Future confirmSend({required Map? txData}) => + _i20.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i19.Future.value(''), - ) as _i19.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override int estimateTxFee({ required int? vSize, @@ -1514,7 +1525,7 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { bool? isSendAll, { int? satsPerVByte, int? additionalOutputs = 0, - List<_i22.UTXO>? utxos, + List<_i23.UTXO>? utxos, }) => super.noSuchMethod(Invocation.method( #coinSelection, @@ -1531,19 +1542,19 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { }, )); @override - _i19.Future> fetchBuildTxData( - List<_i22.UTXO>? utxosToUse) => + _i20.Future> fetchBuildTxData( + List<_i23.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( #fetchBuildTxData, [utxosToUse], ), returnValue: - _i19.Future>.value(<_i24.SigningData>[]), - ) as _i19.Future>); + _i20.Future>.value(<_i25.SigningData>[]), + ) as _i20.Future>); @override - _i19.Future> buildTransaction({ - required List<_i24.SigningData>? utxoSigningData, + _i20.Future> buildTransaction({ + required List<_i25.SigningData>? utxoSigningData, required List? recipients, required List? satoshiAmounts, }) => @@ -1558,111 +1569,111 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { }, ), returnValue: - _i19.Future>.value({}), - ) as _i19.Future>); + _i20.Future>.value({}), + ) as _i20.Future>); @override - _i19.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i20.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future initializeNew( + _i20.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future setLelantusCoinIsarRescanRequiredDone() => + _i20.Future setLelantusCoinIsarRescanRequiredDone() => (super.noSuchMethod( Invocation.method( #setLelantusCoinIsarRescanRequiredDone, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future firoRescanRecovery() => (super.noSuchMethod( + _i20.Future firoRescanRecovery() => (super.noSuchMethod( Invocation.method( #firoRescanRecovery, [], ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i19.Future initializeExisting() => (super.noSuchMethod( + _i20.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i20.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i19.Future getAllTxsToWatch() => (super.noSuchMethod( + _i20.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future refresh() => (super.noSuchMethod( + _i20.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future anonymizeAllPublicFunds() => (super.noSuchMethod( + _i20.Future anonymizeAllPublicFunds() => (super.noSuchMethod( Invocation.method( #anonymizeAllPublicFunds, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future>> createMintsFromAmount(int? total) => + _i20.Future>> createMintsFromAmount(int? total) => (super.noSuchMethod( Invocation.method( #createMintsFromAmount, [total], ), - returnValue: _i19.Future>>.value( + returnValue: _i20.Future>>.value( >[]), - ) as _i19.Future>>); + ) as _i20.Future>>); @override - _i19.Future submitHexToNetwork(String? hex) => (super.noSuchMethod( + _i20.Future submitHexToNetwork(String? hex) => (super.noSuchMethod( Invocation.method( #submitHexToNetwork, [hex], ), - returnValue: _i19.Future.value(''), - ) as _i19.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override - _i19.Future> buildMintTransaction( - List<_i22.UTXO>? utxosToUse, + _i20.Future> buildMintTransaction( + List<_i23.UTXO>? utxosToUse, int? satoshisPerRecipient, List>? mintsMap, ) => @@ -1676,29 +1687,29 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { ], ), returnValue: - _i19.Future>.value({}), - ) as _i19.Future>); + _i20.Future>.value({}), + ) as _i20.Future>); @override - _i19.Future checkReceivingAddressForTransactions() => + _i20.Future checkReceivingAddressForTransactions() => (super.noSuchMethod( Invocation.method( #checkReceivingAddressForTransactions, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future checkChangeAddressForTransactions() => (super.noSuchMethod( + _i20.Future checkChangeAddressForTransactions() => (super.noSuchMethod( Invocation.method( #checkChangeAddressForTransactions, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future fullRescan( + _i20.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1710,11 +1721,11 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future recoverFromMnemonic({ + _i20.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -1733,74 +1744,74 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { #height: height, }, ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future> getSetDataMap(int? latestSetId) => + _i20.Future> getSetDataMap(int? latestSetId) => (super.noSuchMethod( Invocation.method( #getSetDataMap, [latestSetId], ), - returnValue: _i19.Future>.value({}), - ) as _i19.Future>); + returnValue: _i20.Future>.value({}), + ) as _i20.Future>); @override - _i19.Future getTransactionCacheEarly(List? allAddresses) => + _i20.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future>> fetchAnonymitySets() => + _i20.Future>> fetchAnonymitySets() => (super.noSuchMethod( Invocation.method( #fetchAnonymitySets, [], ), - returnValue: _i19.Future>>.value( + returnValue: _i20.Future>>.value( >[]), - ) as _i19.Future>>); + ) as _i20.Future>>); @override - _i19.Future getLatestSetId() => (super.noSuchMethod( + _i20.Future getLatestSetId() => (super.noSuchMethod( Invocation.method( #getLatestSetId, [], ), - returnValue: _i19.Future.value(0), - ) as _i19.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i19.Future> getUsedCoinSerials() => (super.noSuchMethod( + _i20.Future> getUsedCoinSerials() => (super.noSuchMethod( Invocation.method( #getUsedCoinSerials, [], ), - returnValue: _i19.Future>.value([]), - ) as _i19.Future>); + returnValue: _i20.Future>.value([]), + ) as _i20.Future>); @override - _i19.Future exit() => (super.noSuchMethod( + _i20.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future estimateJoinSplitFee(int? spendAmount) => + _i20.Future estimateJoinSplitFee(int? spendAmount) => (super.noSuchMethod( Invocation.method( #estimateJoinSplitFee, [spendAmount], ), - returnValue: _i19.Future.value(0), - ) as _i19.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i19.Future<_i10.Amount> estimateFeeFor( + _i20.Future<_i10.Amount> estimateFeeFor( _i10.Amount? amount, int? feeRate, ) => @@ -1812,7 +1823,7 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { feeRate, ], ), - returnValue: _i19.Future<_i10.Amount>.value(_FakeAmount_7( + returnValue: _i20.Future<_i10.Amount>.value(_FakeAmount_7( this, Invocation.method( #estimateFeeFor, @@ -1822,9 +1833,9 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { ], ), )), - ) as _i19.Future<_i10.Amount>); + ) as _i20.Future<_i10.Amount>); @override - _i19.Future<_i10.Amount> estimateFeeForPublic( + _i20.Future<_i10.Amount> estimateFeeForPublic( _i10.Amount? amount, int? feeRate, ) => @@ -1836,7 +1847,7 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { feeRate, ], ), - returnValue: _i19.Future<_i10.Amount>.value(_FakeAmount_7( + returnValue: _i20.Future<_i10.Amount>.value(_FakeAmount_7( this, Invocation.method( #estimateFeeForPublic, @@ -1846,7 +1857,7 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { ], ), )), - ) as _i19.Future<_i10.Amount>); + ) as _i20.Future<_i10.Amount>); @override _i10.Amount roughFeeEstimate( int? inputCount, @@ -1875,36 +1886,36 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { ), ) as _i10.Amount); @override - _i19.Future<_i10.Amount> sweepAllEstimate(int? feeRate) => + _i20.Future<_i10.Amount> sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i19.Future<_i10.Amount>.value(_FakeAmount_7( + returnValue: _i20.Future<_i10.Amount>.value(_FakeAmount_7( this, Invocation.method( #sweepAllEstimate, [feeRate], ), )), - ) as _i19.Future<_i10.Amount>); + ) as _i20.Future<_i10.Amount>); @override - _i19.Future>> fastFetch( + _i20.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i19.Future>>.value( + returnValue: _i20.Future>>.value( >[]), - ) as _i19.Future>>); + ) as _i20.Future>>); @override - _i19.Future> getJMintTransactions( + _i20.Future> getJMintTransactions( _i13.CachedElectrumX? cachedClient, List? transactions, - _i18.Coin? coin, + _i19.Coin? coin, ) => (super.noSuchMethod( Invocation.method( @@ -1915,17 +1926,17 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { coin, ], ), - returnValue: _i19.Future>.value( - <_i22.Address, _i22.Transaction>{}), - ) as _i19.Future>); + returnValue: _i20.Future>.value( + <_i23.Address, _i23.Transaction>{}), + ) as _i20.Future>); @override - _i19.Future generateNewAddress() => (super.noSuchMethod( + _i20.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override _i10.Amount availablePrivateBalance() => (super.noSuchMethod( Invocation.method( @@ -1957,7 +1968,7 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { @override void initCache( String? walletId, - _i18.Coin? coin, + _i19.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1970,14 +1981,14 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { returnValueForMissingStub: null, ); @override - _i19.Future updateCachedId(String? id) => (super.noSuchMethod( + _i20.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1987,14 +1998,14 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { returnValue: 0, ) as int); @override - _i19.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i20.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -2004,15 +2015,15 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { returnValue: false, ) as bool); @override - _i19.Future updateCachedIsFavorite(bool? isFavorite) => + _i20.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override _i9.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -2028,15 +2039,15 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { ), ) as _i9.Balance); @override - _i19.Future updateCachedBalance(_i9.Balance? balance) => + _i20.Future updateCachedBalance(_i9.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override _i9.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -2052,15 +2063,15 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { ), ) as _i9.Balance); @override - _i19.Future updateCachedBalanceSecondary(_i9.Balance? balance) => + _i20.Future updateCachedBalanceSecondary(_i9.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override List getWalletTokenContractAddresses() => (super.noSuchMethod( Invocation.method( @@ -2070,16 +2081,16 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { returnValue: [], ) as List); @override - _i19.Future updateWalletTokenContractAddresses( + _i20.Future updateWalletTokenContractAddresses( List? contractAddresses) => (super.noSuchMethod( Invocation.method( #updateWalletTokenContractAddresses, [contractAddresses], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override void initWalletDB({_i14.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -2094,7 +2105,7 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i25.LocaleService { +class MockLocaleService extends _i1.Mock implements _i26.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -2110,17 +2121,17 @@ class MockLocaleService extends _i1.Mock implements _i25.LocaleService { returnValue: false, ) as bool); @override - _i19.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i20.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - void addListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2128,7 +2139,7 @@ class MockLocaleService extends _i1.Mock implements _i25.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2156,7 +2167,7 @@ class MockLocaleService extends _i1.Mock implements _i25.LocaleService { /// A class which mocks [Prefs]. /// /// See the documentation for Mockito's code generation for more information. -class MockPrefs extends _i1.Mock implements _i20.Prefs { +class MockPrefs extends _i1.Mock implements _i21.Prefs { MockPrefs() { _i1.throwOnMissingStub(this); } @@ -2212,12 +2223,12 @@ class MockPrefs extends _i1.Mock implements _i20.Prefs { returnValueForMissingStub: null, ); @override - _i26.SyncingType get syncType => (super.noSuchMethod( + _i27.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), - returnValue: _i26.SyncingType.currentWalletOnly, - ) as _i26.SyncingType); + returnValue: _i27.SyncingType.currentWalletOnly, + ) as _i27.SyncingType); @override - set syncType(_i26.SyncingType? syncType) => super.noSuchMethod( + set syncType(_i27.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( #syncType, syncType, @@ -2329,14 +2340,14 @@ class MockPrefs extends _i1.Mock implements _i20.Prefs { returnValueForMissingStub: null, ); @override - bool get torKillswitch => (super.noSuchMethod( - Invocation.getter(#torKillswitch), + bool get torKillSwitch => (super.noSuchMethod( + Invocation.getter(#torKillSwitch), returnValue: false, ) as bool); @override - set torKillswitch(bool? torKillswitch) => super.noSuchMethod( + set torKillSwitch(bool? torKillswitch) => super.noSuchMethod( Invocation.setter( - #torKillswitch, + #torKillSwitch, torKillswitch, ), returnValueForMissingStub: null, @@ -2376,12 +2387,12 @@ class MockPrefs extends _i1.Mock implements _i20.Prefs { returnValueForMissingStub: null, ); @override - _i27.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( + _i28.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), - returnValue: _i27.BackupFrequencyType.everyTenMinutes, - ) as _i27.BackupFrequencyType); + returnValue: _i28.BackupFrequencyType.everyTenMinutes, + ) as _i28.BackupFrequencyType); @override - set backupFrequencyType(_i27.BackupFrequencyType? backupFrequencyType) => + set backupFrequencyType(_i28.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( Invocation.setter( #backupFrequencyType, @@ -2532,61 +2543,61 @@ class MockPrefs extends _i1.Mock implements _i20.Prefs { returnValue: false, ) as bool); @override - _i19.Future init() => (super.noSuchMethod( + _i20.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( + _i20.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( #incrementCurrentNotificationIndex, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future isExternalCallsSet() => (super.noSuchMethod( + _i20.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( #isExternalCallsSet, [], ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i19.Future saveUserID(String? userId) => (super.noSuchMethod( + _i20.Future saveUserID(String? userId) => (super.noSuchMethod( Invocation.method( #saveUserID, [userId], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( + _i20.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( Invocation.method( #saveSignupEpoch, [signupEpoch], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i28.AmountUnit amountUnit(_i18.Coin? coin) => (super.noSuchMethod( + _i29.AmountUnit amountUnit(_i19.Coin? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], ), - returnValue: _i28.AmountUnit.normal, - ) as _i28.AmountUnit); + returnValue: _i29.AmountUnit.normal, + ) as _i29.AmountUnit); @override void updateAmountUnit({ - required _i18.Coin? coin, - required _i28.AmountUnit? amountUnit, + required _i19.Coin? coin, + required _i29.AmountUnit? amountUnit, }) => super.noSuchMethod( Invocation.method( @@ -2600,7 +2611,7 @@ class MockPrefs extends _i1.Mock implements _i20.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i18.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i19.Coin? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -2609,7 +2620,7 @@ class MockPrefs extends _i1.Mock implements _i20.Prefs { ) as int); @override void updateMaxDecimals({ - required _i18.Coin? coin, + required _i19.Coin? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -2624,7 +2635,7 @@ class MockPrefs extends _i1.Mock implements _i20.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2632,7 +2643,7 @@ class MockPrefs extends _i1.Mock implements _i20.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2660,7 +2671,7 @@ class MockPrefs extends _i1.Mock implements _i20.Prefs { /// A class which mocks [PriceService]. /// /// See the documentation for Mockito's code generation for more information. -class MockPriceService extends _i1.Mock implements _i29.PriceService { +class MockPriceService extends _i1.Mock implements _i30.PriceService { MockPriceService() { _i1.throwOnMissingStub(this); } @@ -2697,44 +2708,44 @@ class MockPriceService extends _i1.Mock implements _i29.PriceService { returnValue: false, ) as bool); @override - _i15.Tuple2<_i30.Decimal, double> getPrice(_i18.Coin? coin) => + _i15.Tuple2<_i31.Decimal, double> getPrice(_i19.Coin? coin) => (super.noSuchMethod( Invocation.method( #getPrice, [coin], ), - returnValue: _FakeTuple2_13<_i30.Decimal, double>( + returnValue: _FakeTuple2_13<_i31.Decimal, double>( this, Invocation.method( #getPrice, [coin], ), ), - ) as _i15.Tuple2<_i30.Decimal, double>); + ) as _i15.Tuple2<_i31.Decimal, double>); @override - _i15.Tuple2<_i30.Decimal, double> getTokenPrice(String? contractAddress) => + _i15.Tuple2<_i31.Decimal, double> getTokenPrice(String? contractAddress) => (super.noSuchMethod( Invocation.method( #getTokenPrice, [contractAddress], ), - returnValue: _FakeTuple2_13<_i30.Decimal, double>( + returnValue: _FakeTuple2_13<_i31.Decimal, double>( this, Invocation.method( #getTokenPrice, [contractAddress], ), ), - ) as _i15.Tuple2<_i30.Decimal, double>); + ) as _i15.Tuple2<_i31.Decimal, double>); @override - _i19.Future updatePrice() => (super.noSuchMethod( + _i20.Future updatePrice() => (super.noSuchMethod( Invocation.method( #updatePrice, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override void cancel() => super.noSuchMethod( Invocation.method( @@ -2760,7 +2771,7 @@ class MockPriceService extends _i1.Mock implements _i29.PriceService { returnValueForMissingStub: null, ); @override - void addListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2768,7 +2779,7 @@ class MockPriceService extends _i1.Mock implements _i29.PriceService { returnValueForMissingStub: null, ); @override - void removeListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2788,7 +2799,7 @@ class MockPriceService extends _i1.Mock implements _i29.PriceService { /// A class which mocks [NotesService]. /// /// See the documentation for Mockito's code generation for more information. -class MockNotesService extends _i1.Mock implements _i31.NotesService { +class MockNotesService extends _i1.Mock implements _i32.NotesService { MockNotesService() { _i1.throwOnMissingStub(this); } @@ -2804,35 +2815,35 @@ class MockNotesService extends _i1.Mock implements _i31.NotesService { returnValue: {}, ) as Map); @override - _i19.Future> get notes => (super.noSuchMethod( + _i20.Future> get notes => (super.noSuchMethod( Invocation.getter(#notes), - returnValue: _i19.Future>.value({}), - ) as _i19.Future>); + returnValue: _i20.Future>.value({}), + ) as _i20.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i19.Future> search(String? text) => (super.noSuchMethod( + _i20.Future> search(String? text) => (super.noSuchMethod( Invocation.method( #search, [text], ), - returnValue: _i19.Future>.value({}), - ) as _i19.Future>); + returnValue: _i20.Future>.value({}), + ) as _i20.Future>); @override - _i19.Future getNoteFor({required String? txid}) => + _i20.Future getNoteFor({required String? txid}) => (super.noSuchMethod( Invocation.method( #getNoteFor, [], {#txid: txid}, ), - returnValue: _i19.Future.value(''), - ) as _i19.Future); + returnValue: _i20.Future.value(''), + ) as _i20.Future); @override - _i19.Future editOrAddNote({ + _i20.Future editOrAddNote({ required String? txid, required String? note, }) => @@ -2845,21 +2856,21 @@ class MockNotesService extends _i1.Mock implements _i31.NotesService { #note: note, }, ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future deleteNote({required String? txid}) => (super.noSuchMethod( + _i20.Future deleteNote({required String? txid}) => (super.noSuchMethod( Invocation.method( #deleteNote, [], {#txid: txid}, ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - void addListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2867,7 +2878,7 @@ class MockNotesService extends _i1.Mock implements _i31.NotesService { returnValueForMissingStub: null, ); @override - void removeListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2895,11 +2906,27 @@ class MockNotesService extends _i1.Mock implements _i31.NotesService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i32.ThemeService { +class MockThemeService extends _i1.Mock implements _i33.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } + @override + _i16.HTTP get client => (super.noSuchMethod( + Invocation.getter(#client), + returnValue: _FakeHTTP_14( + this, + Invocation.getter(#client), + ), + ) as _i16.HTTP); + @override + set client(_i16.HTTP? _client) => super.noSuchMethod( + Invocation.setter( + #client, + _client, + ), + returnValueForMissingStub: null, + ); @override _i14.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -2909,10 +2936,10 @@ class MockThemeService extends _i1.Mock implements _i32.ThemeService { ), ) as _i14.MainDB); @override - List<_i33.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i34.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i33.StackTheme>[], - ) as List<_i33.StackTheme>); + returnValue: <_i34.StackTheme>[], + ) as List<_i34.StackTheme>); @override void init(_i14.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -2922,73 +2949,73 @@ class MockThemeService extends _i1.Mock implements _i32.ThemeService { returnValueForMissingStub: null, ); @override - _i19.Future install({required _i34.Uint8List? themeArchiveData}) => + _i20.Future install({required _i35.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future remove({required String? themeId}) => (super.noSuchMethod( + _i20.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i20.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future verifyInstalled({required String? themeId}) => + _i20.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i19.Future> fetchThemes() => + _i20.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i19.Future>.value( - <_i32.StackThemeMetaData>[]), - ) as _i19.Future>); + returnValue: _i20.Future>.value( + <_i33.StackThemeMetaData>[]), + ) as _i20.Future>); @override - _i19.Future<_i34.Uint8List> fetchTheme( - {required _i32.StackThemeMetaData? themeMetaData}) => + _i20.Future<_i35.Uint8List> fetchTheme( + {required _i33.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i19.Future<_i34.Uint8List>.value(_i34.Uint8List(0)), - ) as _i19.Future<_i34.Uint8List>); + returnValue: _i20.Future<_i35.Uint8List>.value(_i35.Uint8List(0)), + ) as _i20.Future<_i35.Uint8List>); @override - _i33.StackTheme? getTheme({required String? themeId}) => + _i34.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i33.StackTheme?); + )) as _i34.StackTheme?); } /// A class which mocks [MainDB]. @@ -3000,131 +3027,131 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { } @override - _i16.Isar get isar => (super.noSuchMethod( + _i17.Isar get isar => (super.noSuchMethod( Invocation.getter(#isar), - returnValue: _FakeIsar_14( + returnValue: _FakeIsar_15( this, Invocation.getter(#isar), ), - ) as _i16.Isar); + ) as _i17.Isar); @override - _i19.Future initMainDB({_i16.Isar? mock}) => (super.noSuchMethod( + _i20.Future initMainDB({_i17.Isar? mock}) => (super.noSuchMethod( Invocation.method( #initMainDB, [], {#mock: mock}, ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - List<_i35.ContactEntry> getContactEntries() => (super.noSuchMethod( + List<_i36.ContactEntry> getContactEntries() => (super.noSuchMethod( Invocation.method( #getContactEntries, [], ), - returnValue: <_i35.ContactEntry>[], - ) as List<_i35.ContactEntry>); + returnValue: <_i36.ContactEntry>[], + ) as List<_i36.ContactEntry>); @override - _i19.Future deleteContactEntry({required String? id}) => + _i20.Future deleteContactEntry({required String? id}) => (super.noSuchMethod( Invocation.method( #deleteContactEntry, [], {#id: id}, ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i19.Future isContactEntryExists({required String? id}) => + _i20.Future isContactEntryExists({required String? id}) => (super.noSuchMethod( Invocation.method( #isContactEntryExists, [], {#id: id}, ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i35.ContactEntry? getContactEntry({required String? id}) => + _i36.ContactEntry? getContactEntry({required String? id}) => (super.noSuchMethod(Invocation.method( #getContactEntry, [], {#id: id}, - )) as _i35.ContactEntry?); + )) as _i36.ContactEntry?); @override - _i19.Future putContactEntry( - {required _i35.ContactEntry? contactEntry}) => + _i20.Future putContactEntry( + {required _i36.ContactEntry? contactEntry}) => (super.noSuchMethod( Invocation.method( #putContactEntry, [], {#contactEntry: contactEntry}, ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i36.TransactionBlockExplorer? getTransactionBlockExplorer( - {required _i18.Coin? coin}) => + _i37.TransactionBlockExplorer? getTransactionBlockExplorer( + {required _i19.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getTransactionBlockExplorer, [], {#coin: coin}, - )) as _i36.TransactionBlockExplorer?); + )) as _i37.TransactionBlockExplorer?); @override - _i19.Future putTransactionBlockExplorer( - _i36.TransactionBlockExplorer? explorer) => + _i20.Future putTransactionBlockExplorer( + _i37.TransactionBlockExplorer? explorer) => (super.noSuchMethod( Invocation.method( #putTransactionBlockExplorer, [explorer], ), - returnValue: _i19.Future.value(0), - ) as _i19.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i16.QueryBuilder<_i22.Address, _i22.Address, _i16.QAfterWhereClause> + _i17.QueryBuilder<_i23.Address, _i23.Address, _i17.QAfterWhereClause> getAddresses(String? walletId) => (super.noSuchMethod( Invocation.method( #getAddresses, [walletId], ), - returnValue: _FakeQueryBuilder_15<_i22.Address, _i22.Address, - _i16.QAfterWhereClause>( + returnValue: _FakeQueryBuilder_16<_i23.Address, _i23.Address, + _i17.QAfterWhereClause>( this, Invocation.method( #getAddresses, [walletId], ), ), - ) as _i16.QueryBuilder<_i22.Address, _i22.Address, - _i16.QAfterWhereClause>); + ) as _i17.QueryBuilder<_i23.Address, _i23.Address, + _i17.QAfterWhereClause>); @override - _i19.Future putAddress(_i22.Address? address) => (super.noSuchMethod( + _i20.Future putAddress(_i23.Address? address) => (super.noSuchMethod( Invocation.method( #putAddress, [address], ), - returnValue: _i19.Future.value(0), - ) as _i19.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i19.Future> putAddresses(List<_i22.Address>? addresses) => + _i20.Future> putAddresses(List<_i23.Address>? addresses) => (super.noSuchMethod( Invocation.method( #putAddresses, [addresses], ), - returnValue: _i19.Future>.value([]), - ) as _i19.Future>); + returnValue: _i20.Future>.value([]), + ) as _i20.Future>); @override - _i19.Future> updateOrPutAddresses(List<_i22.Address>? addresses) => + _i20.Future> updateOrPutAddresses(List<_i23.Address>? addresses) => (super.noSuchMethod( Invocation.method( #updateOrPutAddresses, [addresses], ), - returnValue: _i19.Future>.value([]), - ) as _i19.Future>); + returnValue: _i20.Future>.value([]), + ) as _i20.Future>); @override - _i19.Future<_i22.Address?> getAddress( + _i20.Future<_i23.Address?> getAddress( String? walletId, String? address, ) => @@ -3136,12 +3163,12 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { address, ], ), - returnValue: _i19.Future<_i22.Address?>.value(), - ) as _i19.Future<_i22.Address?>); + returnValue: _i20.Future<_i23.Address?>.value(), + ) as _i20.Future<_i23.Address?>); @override - _i19.Future updateAddress( - _i22.Address? oldAddress, - _i22.Address? newAddress, + _i20.Future updateAddress( + _i23.Address? oldAddress, + _i23.Address? newAddress, ) => (super.noSuchMethod( Invocation.method( @@ -3151,46 +3178,46 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { newAddress, ], ), - returnValue: _i19.Future.value(0), - ) as _i19.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i16.QueryBuilder<_i22.Transaction, _i22.Transaction, _i16.QAfterWhereClause> + _i17.QueryBuilder<_i23.Transaction, _i23.Transaction, _i17.QAfterWhereClause> getTransactions(String? walletId) => (super.noSuchMethod( Invocation.method( #getTransactions, [walletId], ), - returnValue: _FakeQueryBuilder_15<_i22.Transaction, - _i22.Transaction, _i16.QAfterWhereClause>( + returnValue: _FakeQueryBuilder_16<_i23.Transaction, + _i23.Transaction, _i17.QAfterWhereClause>( this, Invocation.method( #getTransactions, [walletId], ), ), - ) as _i16.QueryBuilder<_i22.Transaction, _i22.Transaction, - _i16.QAfterWhereClause>); + ) as _i17.QueryBuilder<_i23.Transaction, _i23.Transaction, + _i17.QAfterWhereClause>); @override - _i19.Future putTransaction(_i22.Transaction? transaction) => + _i20.Future putTransaction(_i23.Transaction? transaction) => (super.noSuchMethod( Invocation.method( #putTransaction, [transaction], ), - returnValue: _i19.Future.value(0), - ) as _i19.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i19.Future> putTransactions( - List<_i22.Transaction>? transactions) => + _i20.Future> putTransactions( + List<_i23.Transaction>? transactions) => (super.noSuchMethod( Invocation.method( #putTransactions, [transactions], ), - returnValue: _i19.Future>.value([]), - ) as _i19.Future>); + returnValue: _i20.Future>.value([]), + ) as _i20.Future>); @override - _i19.Future<_i22.Transaction?> getTransaction( + _i20.Future<_i23.Transaction?> getTransaction( String? walletId, String? txid, ) => @@ -3202,10 +3229,10 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { txid, ], ), - returnValue: _i19.Future<_i22.Transaction?>.value(), - ) as _i19.Future<_i22.Transaction?>); + returnValue: _i20.Future<_i23.Transaction?>.value(), + ) as _i20.Future<_i23.Transaction?>); @override - _i19.Stream<_i22.Transaction?> watchTransaction({ + _i20.Stream<_i23.Transaction?> watchTransaction({ required int? id, bool? fireImmediately = false, }) => @@ -3218,10 +3245,10 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i19.Stream<_i22.Transaction?>.empty(), - ) as _i19.Stream<_i22.Transaction?>); + returnValue: _i20.Stream<_i23.Transaction?>.empty(), + ) as _i20.Stream<_i23.Transaction?>); @override - _i16.QueryBuilder<_i22.UTXO, _i22.UTXO, _i16.QAfterWhereClause> getUTXOs( + _i17.QueryBuilder<_i23.UTXO, _i23.UTXO, _i17.QAfterWhereClause> getUTXOs( String? walletId) => (super.noSuchMethod( Invocation.method( @@ -3229,36 +3256,36 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { [walletId], ), returnValue: - _FakeQueryBuilder_15<_i22.UTXO, _i22.UTXO, _i16.QAfterWhereClause>( + _FakeQueryBuilder_16<_i23.UTXO, _i23.UTXO, _i17.QAfterWhereClause>( this, Invocation.method( #getUTXOs, [walletId], ), ), - ) as _i16.QueryBuilder<_i22.UTXO, _i22.UTXO, _i16.QAfterWhereClause>); + ) as _i17.QueryBuilder<_i23.UTXO, _i23.UTXO, _i17.QAfterWhereClause>); @override - _i19.Future putUTXO(_i22.UTXO? utxo) => (super.noSuchMethod( + _i20.Future putUTXO(_i23.UTXO? utxo) => (super.noSuchMethod( Invocation.method( #putUTXO, [utxo], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future putUTXOs(List<_i22.UTXO>? utxos) => (super.noSuchMethod( + _i20.Future putUTXOs(List<_i23.UTXO>? utxos) => (super.noSuchMethod( Invocation.method( #putUTXOs, [utxos], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future updateUTXOs( + _i20.Future updateUTXOs( String? walletId, - List<_i22.UTXO>? utxos, + List<_i23.UTXO>? utxos, ) => (super.noSuchMethod( Invocation.method( @@ -3268,10 +3295,10 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { utxos, ], ), - returnValue: _i19.Future.value(false), - ) as _i19.Future); + returnValue: _i20.Future.value(false), + ) as _i20.Future); @override - _i19.Stream<_i22.UTXO?> watchUTXO({ + _i20.Stream<_i23.UTXO?> watchUTXO({ required int? id, bool? fireImmediately = false, }) => @@ -3284,50 +3311,50 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i19.Stream<_i22.UTXO?>.empty(), - ) as _i19.Stream<_i22.UTXO?>); + returnValue: _i20.Stream<_i23.UTXO?>.empty(), + ) as _i20.Stream<_i23.UTXO?>); @override - _i16.QueryBuilder<_i22.TransactionNote, _i22.TransactionNote, - _i16.QAfterWhereClause> getTransactionNotes( + _i17.QueryBuilder<_i23.TransactionNote, _i23.TransactionNote, + _i17.QAfterWhereClause> getTransactionNotes( String? walletId) => (super.noSuchMethod( Invocation.method( #getTransactionNotes, [walletId], ), - returnValue: _FakeQueryBuilder_15<_i22.TransactionNote, - _i22.TransactionNote, _i16.QAfterWhereClause>( + returnValue: _FakeQueryBuilder_16<_i23.TransactionNote, + _i23.TransactionNote, _i17.QAfterWhereClause>( this, Invocation.method( #getTransactionNotes, [walletId], ), ), - ) as _i16.QueryBuilder<_i22.TransactionNote, _i22.TransactionNote, - _i16.QAfterWhereClause>); + ) as _i17.QueryBuilder<_i23.TransactionNote, _i23.TransactionNote, + _i17.QAfterWhereClause>); @override - _i19.Future putTransactionNote(_i22.TransactionNote? transactionNote) => + _i20.Future putTransactionNote(_i23.TransactionNote? transactionNote) => (super.noSuchMethod( Invocation.method( #putTransactionNote, [transactionNote], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future putTransactionNotes( - List<_i22.TransactionNote>? transactionNotes) => + _i20.Future putTransactionNotes( + List<_i23.TransactionNote>? transactionNotes) => (super.noSuchMethod( Invocation.method( #putTransactionNotes, [transactionNotes], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future<_i22.TransactionNote?> getTransactionNote( + _i20.Future<_i23.TransactionNote?> getTransactionNote( String? walletId, String? txid, ) => @@ -3339,10 +3366,10 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { txid, ], ), - returnValue: _i19.Future<_i22.TransactionNote?>.value(), - ) as _i19.Future<_i22.TransactionNote?>); + returnValue: _i20.Future<_i23.TransactionNote?>.value(), + ) as _i20.Future<_i23.TransactionNote?>); @override - _i19.Stream<_i22.TransactionNote?> watchTransactionNote({ + _i20.Stream<_i23.TransactionNote?> watchTransactionNote({ required int? id, bool? fireImmediately = false, }) => @@ -3355,38 +3382,38 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i19.Stream<_i22.TransactionNote?>.empty(), - ) as _i19.Stream<_i22.TransactionNote?>); + returnValue: _i20.Stream<_i23.TransactionNote?>.empty(), + ) as _i20.Stream<_i23.TransactionNote?>); @override - _i16.QueryBuilder<_i22.AddressLabel, _i22.AddressLabel, - _i16.QAfterWhereClause> getAddressLabels( + _i17.QueryBuilder<_i23.AddressLabel, _i23.AddressLabel, + _i17.QAfterWhereClause> getAddressLabels( String? walletId) => (super.noSuchMethod( Invocation.method( #getAddressLabels, [walletId], ), - returnValue: _FakeQueryBuilder_15<_i22.AddressLabel, _i22.AddressLabel, - _i16.QAfterWhereClause>( + returnValue: _FakeQueryBuilder_16<_i23.AddressLabel, _i23.AddressLabel, + _i17.QAfterWhereClause>( this, Invocation.method( #getAddressLabels, [walletId], ), ), - ) as _i16.QueryBuilder<_i22.AddressLabel, _i22.AddressLabel, - _i16.QAfterWhereClause>); + ) as _i17.QueryBuilder<_i23.AddressLabel, _i23.AddressLabel, + _i17.QAfterWhereClause>); @override - _i19.Future putAddressLabel(_i22.AddressLabel? addressLabel) => + _i20.Future putAddressLabel(_i23.AddressLabel? addressLabel) => (super.noSuchMethod( Invocation.method( #putAddressLabel, [addressLabel], ), - returnValue: _i19.Future.value(0), - ) as _i19.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - int putAddressLabelSync(_i22.AddressLabel? addressLabel) => + int putAddressLabelSync(_i23.AddressLabel? addressLabel) => (super.noSuchMethod( Invocation.method( #putAddressLabelSync, @@ -3395,17 +3422,17 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { returnValue: 0, ) as int); @override - _i19.Future putAddressLabels(List<_i22.AddressLabel>? addressLabels) => + _i20.Future putAddressLabels(List<_i23.AddressLabel>? addressLabels) => (super.noSuchMethod( Invocation.method( #putAddressLabels, [addressLabels], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future<_i22.AddressLabel?> getAddressLabel( + _i20.Future<_i23.AddressLabel?> getAddressLabel( String? walletId, String? addressString, ) => @@ -3417,10 +3444,10 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { addressString, ], ), - returnValue: _i19.Future<_i22.AddressLabel?>.value(), - ) as _i19.Future<_i22.AddressLabel?>); + returnValue: _i20.Future<_i23.AddressLabel?>.value(), + ) as _i20.Future<_i23.AddressLabel?>); @override - _i22.AddressLabel? getAddressLabelSync( + _i23.AddressLabel? getAddressLabelSync( String? walletId, String? addressString, ) => @@ -3430,9 +3457,9 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { walletId, addressString, ], - )) as _i22.AddressLabel?); + )) as _i23.AddressLabel?); @override - _i19.Stream<_i22.AddressLabel?> watchAddressLabel({ + _i20.Stream<_i23.AddressLabel?> watchAddressLabel({ required int? id, bool? fireImmediately = false, }) => @@ -3445,50 +3472,50 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i19.Stream<_i22.AddressLabel?>.empty(), - ) as _i19.Stream<_i22.AddressLabel?>); + returnValue: _i20.Stream<_i23.AddressLabel?>.empty(), + ) as _i20.Stream<_i23.AddressLabel?>); @override - _i19.Future updateAddressLabel(_i22.AddressLabel? addressLabel) => + _i20.Future updateAddressLabel(_i23.AddressLabel? addressLabel) => (super.noSuchMethod( Invocation.method( #updateAddressLabel, [addressLabel], ), - returnValue: _i19.Future.value(0), - ) as _i19.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i19.Future deleteWalletBlockchainData(String? walletId) => + _i20.Future deleteWalletBlockchainData(String? walletId) => (super.noSuchMethod( Invocation.method( #deleteWalletBlockchainData, [walletId], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future deleteAddressLabels(String? walletId) => + _i20.Future deleteAddressLabels(String? walletId) => (super.noSuchMethod( Invocation.method( #deleteAddressLabels, [walletId], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future deleteTransactionNotes(String? walletId) => + _i20.Future deleteTransactionNotes(String? walletId) => (super.noSuchMethod( Invocation.method( #deleteTransactionNotes, [walletId], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future addNewTransactionData( - List<_i15.Tuple2<_i22.Transaction, _i22.Address?>>? transactionsData, + _i20.Future addNewTransactionData( + List<_i15.Tuple2<_i23.Transaction, _i23.Address?>>? transactionsData, String? walletId, ) => (super.noSuchMethod( @@ -3499,76 +3526,76 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB { walletId, ], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i16.QueryBuilder<_i22.EthContract, _i22.EthContract, _i16.QWhere> + _i17.QueryBuilder<_i23.EthContract, _i23.EthContract, _i17.QWhere> getEthContracts() => (super.noSuchMethod( Invocation.method( #getEthContracts, [], ), - returnValue: _FakeQueryBuilder_15<_i22.EthContract, - _i22.EthContract, _i16.QWhere>( + returnValue: _FakeQueryBuilder_16<_i23.EthContract, + _i23.EthContract, _i17.QWhere>( this, Invocation.method( #getEthContracts, [], ), ), - ) as _i16 - .QueryBuilder<_i22.EthContract, _i22.EthContract, _i16.QWhere>); + ) as _i17 + .QueryBuilder<_i23.EthContract, _i23.EthContract, _i17.QWhere>); @override - _i19.Future<_i22.EthContract?> getEthContract(String? contractAddress) => + _i20.Future<_i23.EthContract?> getEthContract(String? contractAddress) => (super.noSuchMethod( Invocation.method( #getEthContract, [contractAddress], ), - returnValue: _i19.Future<_i22.EthContract?>.value(), - ) as _i19.Future<_i22.EthContract?>); + returnValue: _i20.Future<_i23.EthContract?>.value(), + ) as _i20.Future<_i23.EthContract?>); @override - _i22.EthContract? getEthContractSync(String? contractAddress) => + _i23.EthContract? getEthContractSync(String? contractAddress) => (super.noSuchMethod(Invocation.method( #getEthContractSync, [contractAddress], - )) as _i22.EthContract?); + )) as _i23.EthContract?); @override - _i19.Future putEthContract(_i22.EthContract? contract) => + _i20.Future putEthContract(_i23.EthContract? contract) => (super.noSuchMethod( Invocation.method( #putEthContract, [contract], ), - returnValue: _i19.Future.value(0), - ) as _i19.Future); + returnValue: _i20.Future.value(0), + ) as _i20.Future); @override - _i19.Future putEthContracts(List<_i22.EthContract>? contracts) => + _i20.Future putEthContracts(List<_i23.EthContract>? contracts) => (super.noSuchMethod( Invocation.method( #putEthContracts, [contracts], ), - returnValue: _i19.Future.value(), - returnValueForMissingStub: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + returnValueForMissingStub: _i20.Future.value(), + ) as _i20.Future); @override - _i19.Future getHighestUsedMintIndex({required String? walletId}) => + _i20.Future getHighestUsedMintIndex({required String? walletId}) => (super.noSuchMethod( Invocation.method( #getHighestUsedMintIndex, [], {#walletId: walletId}, ), - returnValue: _i19.Future.value(), - ) as _i19.Future); + returnValue: _i20.Future.value(), + ) as _i20.Future); } /// A class which mocks [IThemeAssets]. /// /// See the documentation for Mockito's code generation for more information. -class MockIThemeAssets extends _i1.Mock implements _i33.IThemeAssets { +class MockIThemeAssets extends _i1.Mock implements _i34.IThemeAssets { MockIThemeAssets() { _i1.throwOnMissingStub(this); } diff --git a/test/widget_tests/wallet_card_test.mocks.dart b/test/widget_tests/wallet_card_test.mocks.dart index 14744fc3f..5ed295d28 100644 --- a/test/widget_tests/wallet_card_test.mocks.dart +++ b/test/widget_tests/wallet_card_test.mocks.dart @@ -3,9 +3,9 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i21; -import 'dart:typed_data' as _i28; -import 'dart:ui' as _i23; +import 'dart:async' as _i22; +import 'dart:typed_data' as _i29; +import 'dart:ui' as _i24; import 'package:bip32/bip32.dart' as _i16; import 'package:bip47/bip47.dart' as _i18; @@ -18,24 +18,25 @@ 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 _i17; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i31; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i32; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/models/signing_data.dart' as _i26; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i24; +import 'package:stackwallet/models/signing_data.dart' as _i27; +import 'package:stackwallet/networking/http.dart' as _i19; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i25; import 'package:stackwallet/services/coins/manager.dart' as _i6; -import 'package:stackwallet/services/locale_service.dart' as _i29; +import 'package:stackwallet/services/locale_service.dart' as _i30; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i7; -import 'package:stackwallet/services/wallets.dart' as _i19; +import 'package:stackwallet/services/wallets.dart' as _i20; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/themes/theme_service.dart' as _i30; +import 'package:stackwallet/themes/theme_service.dart' as _i31; import 'package:stackwallet/utilities/amount/amount.dart' as _i14; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i20; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i25; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i21; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i26; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i27; -import 'package:stackwallet/utilities/prefs.dart' as _i22; + as _i28; +import 'package:stackwallet/utilities/prefs.dart' as _i23; import 'package:tuple/tuple.dart' as _i15; // ignore_for_file: type=lint @@ -224,10 +225,20 @@ class _FakePaymentCode_16 extends _i1.SmartFake implements _i18.PaymentCode { ); } +class _FakeHTTP_17 extends _i1.SmartFake implements _i19.HTTP { + _FakeHTTP_17( + 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 _i19.Wallets { +class MockWallets extends _i1.Mock implements _i20.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -294,7 +305,7 @@ class MockWallets extends _i1.Mock implements _i19.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i20.Coin? coin}) => + List getWalletIdsFor({required _i21.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -304,20 +315,20 @@ class MockWallets extends _i1.Mock implements _i19.Wallets { returnValue: [], ) as List); @override - List<_i15.Tuple2<_i20.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>> + List<_i15.Tuple2<_i21.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i15.Tuple2<_i20.Coin, + returnValue: <_i15.Tuple2<_i21.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>[], ) as List< - _i15.Tuple2<_i20.Coin, + _i15.Tuple2<_i21.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i20.Coin? coin) => + _i21.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -381,17 +392,17 @@ class MockWallets extends _i1.Mock implements _i19.Wallets { returnValueForMissingStub: null, ); @override - _i21.Future load(_i22.Prefs? prefs) => (super.noSuchMethod( + _i22.Future load(_i23.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future loadAfterStackRestore( - _i22.Prefs? prefs, + _i22.Future loadAfterStackRestore( + _i23.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -402,11 +413,11 @@ class MockWallets extends _i1.Mock implements _i19.Wallets { managers, ], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -414,7 +425,7 @@ class MockWallets extends _i1.Mock implements _i19.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -434,13 +445,13 @@ class MockWallets extends _i1.Mock implements _i19.Wallets { /// A class which mocks [BitcoinWallet]. /// /// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i21.Timer? _timer) => super.noSuchMethod( + set timer(_i22.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -517,74 +528,74 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValue: false, ) as bool); @override - _i20.Coin get coin => (super.noSuchMethod( + _i21.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i20.Coin.bitcoin, - ) as _i20.Coin); + returnValue: _i21.Coin.bitcoin, + ) as _i21.Coin); @override - _i21.Future> get utxos => (super.noSuchMethod( + _i22.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i21.Future>.value(<_i17.UTXO>[]), - ) as _i21.Future>); + returnValue: _i22.Future>.value(<_i17.UTXO>[]), + ) as _i22.Future>); @override - _i21.Future> get transactions => (super.noSuchMethod( + _i22.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i21.Future>.value(<_i17.Transaction>[]), - ) as _i21.Future>); + _i22.Future>.value(<_i17.Transaction>[]), + ) as _i22.Future>); @override - _i21.Future get currentReceivingAddress => (super.noSuchMethod( + _i22.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i22.Future.value(''), + ) as _i22.Future); @override - _i21.Future get currentChangeAddress => (super.noSuchMethod( + _i22.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i22.Future.value(''), + ) as _i22.Future); @override - _i21.Future get currentChangeAddressP2PKH => (super.noSuchMethod( + _i22.Future get currentChangeAddressP2PKH => (super.noSuchMethod( Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i22.Future.value(''), + ) as _i22.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i21.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i22.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i21.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i22.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i21.Future<_i8.FeeObject>); + ) as _i22.Future<_i8.FeeObject>); @override - _i21.Future get maxFee => (super.noSuchMethod( + _i22.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i21.Future.value(0), - ) as _i21.Future); + returnValue: _i22.Future.value(0), + ) as _i22.Future); @override - _i21.Future> get mnemonic => (super.noSuchMethod( + _i22.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i21.Future>.value([]), - ) as _i21.Future>); + returnValue: _i22.Future>.value([]), + ) as _i22.Future>); @override - _i21.Future get mnemonicString => (super.noSuchMethod( + _i22.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future get mnemonicPassphrase => (super.noSuchMethod( + _i22.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future get chainHeight => (super.noSuchMethod( + _i22.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i21.Future.value(0), - ) as _i21.Future); + returnValue: _i22.Future.value(0), + ) as _i22.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -656,10 +667,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { ), ) as _i11.Balance); @override - _i21.Future get xpub => (super.noSuchMethod( + _i22.Future get xpub => (super.noSuchMethod( Invocation.getter(#xpub), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i22.Future.value(''), + ) as _i22.Future); @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -686,26 +697,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { ), ) as _i13.NetworkType); @override - _i21.Future exit() => (super.noSuchMethod( + _i22.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i25.DerivePathType addressType({required String? address}) => + _i26.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i25.DerivePathType.bip44, - ) as _i25.DerivePathType); + returnValue: _i26.DerivePathType.bip44, + ) as _i26.DerivePathType); @override - _i21.Future recoverFromMnemonic({ + _i22.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -724,47 +735,47 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #height: height, }, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future getTransactionCacheEarly(List? allAddresses) => + _i22.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i22.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i22.Future.value(false), + ) as _i22.Future); @override - _i21.Future getAllTxsToWatch() => (super.noSuchMethod( + _i22.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future refresh() => (super.noSuchMethod( + _i22.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future> prepareSend({ + _i22.Future> prepareSend({ required String? address, required _i14.Amount? amount, Map? args, @@ -780,26 +791,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, ), returnValue: - _i21.Future>.value({}), - ) as _i21.Future>); + _i22.Future>.value({}), + ) as _i22.Future>); @override - _i21.Future confirmSend({required Map? txData}) => + _i22.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i22.Future.value(''), + ) as _i22.Future); @override - _i21.Future testNetworkConnection() => (super.noSuchMethod( + _i22.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i22.Future.value(false), + ) as _i22.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -817,35 +828,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i21.Future initializeNew( + _i22.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future initializeExisting() => (super.noSuchMethod( + _i22.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future updateSentCachedTxData(Map? txData) => + _i22.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -855,69 +866,69 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValue: false, ) as bool); @override - _i21.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i22.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), - returnValue: _i21.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( + returnValue: _i22.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_11( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i21.Future<_i9.ElectrumXNode>); + ) as _i22.Future<_i9.ElectrumXNode>); @override - _i21.Future>> fastFetch( + _i22.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i21.Future>>.value( + returnValue: _i22.Future>>.value( >[]), - ) as _i21.Future>>); + ) as _i22.Future>>); @override - _i21.Future getTxCount({required String? address}) => + _i22.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i21.Future.value(0), - ) as _i21.Future); + returnValue: _i22.Future.value(0), + ) as _i22.Future); @override - _i21.Future checkCurrentReceivingAddressesForTransactions() => + _i22.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future checkCurrentChangeAddressesForTransactions() => + _i22.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override int estimateTxFee({ required int? vSize, @@ -960,7 +971,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, )); @override - _i21.Future> fetchBuildTxData( + _i22.Future> fetchBuildTxData( List<_i17.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( @@ -968,11 +979,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { [utxosToUse], ), returnValue: - _i21.Future>.value(<_i26.SigningData>[]), - ) as _i21.Future>); + _i22.Future>.value(<_i27.SigningData>[]), + ) as _i22.Future>); @override - _i21.Future> buildTransaction({ - required List<_i26.SigningData>? utxoSigningData, + _i22.Future> buildTransaction({ + required List<_i27.SigningData>? utxoSigningData, required List? recipients, required List? satoshiAmounts, }) => @@ -987,10 +998,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, ), returnValue: - _i21.Future>.value({}), - ) as _i21.Future>); + _i22.Future>.value({}), + ) as _i22.Future>); @override - _i21.Future fullRescan( + _i22.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1002,11 +1013,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future<_i14.Amount> estimateFeeFor( + _i22.Future<_i14.Amount> estimateFeeFor( _i14.Amount? amount, int? feeRate, ) => @@ -1018,7 +1029,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { feeRate, ], ), - returnValue: _i21.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i22.Future<_i14.Amount>.value(_FakeAmount_12( this, Invocation.method( #estimateFeeFor, @@ -1028,7 +1039,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { ], ), )), - ) as _i21.Future<_i14.Amount>); + ) as _i22.Future<_i14.Amount>); @override _i14.Amount roughFeeEstimate( int? inputCount, @@ -1057,32 +1068,32 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { ), ) as _i14.Amount); @override - _i21.Future<_i14.Amount> sweepAllEstimate(int? feeRate) => + _i22.Future<_i14.Amount> sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i21.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i22.Future<_i14.Amount>.value(_FakeAmount_12( this, Invocation.method( #sweepAllEstimate, [feeRate], ), )), - ) as _i21.Future<_i14.Amount>); + ) as _i22.Future<_i14.Amount>); @override - _i21.Future generateNewAddress() => (super.noSuchMethod( + _i22.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i22.Future.value(false), + ) as _i22.Future); @override void initCache( String? walletId, - _i20.Coin? coin, + _i21.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1095,14 +1106,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i21.Future updateCachedId(String? id) => (super.noSuchMethod( + _i22.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1112,14 +1123,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValue: 0, ) as int); @override - _i21.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i22.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1129,15 +1140,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValue: false, ) as bool); @override - _i21.Future updateCachedIsFavorite(bool? isFavorite) => + _i22.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override _i11.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( @@ -1153,15 +1164,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { ), ) as _i11.Balance); @override - _i21.Future updateCachedBalance(_i11.Balance? balance) => + _i22.Future updateCachedBalance(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( @@ -1177,15 +1188,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { ), ) as _i11.Balance); @override - _i21.Future updateCachedBalanceSecondary(_i11.Balance? balance) => + _i22.Future updateCachedBalanceSecondary(_i11.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override List getWalletTokenContractAddresses() => (super.noSuchMethod( Invocation.method( @@ -1195,16 +1206,16 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValue: [], ) as List); @override - _i21.Future updateWalletTokenContractAddresses( + _i22.Future updateWalletTokenContractAddresses( List? contractAddresses) => (super.noSuchMethod( Invocation.method( #updateWalletTokenContractAddresses, [contractAddresses], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override void initWalletDB({_i12.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( @@ -1215,11 +1226,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i21.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>> parseTransaction( + _i22.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>> parseTransaction( Map? txData, dynamic electrumxClient, List<_i17.Address>? myAddresses, - _i20.Coin? coin, + _i21.Coin? coin, int? minConfirms, String? walletId, ) => @@ -1236,7 +1247,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { ], ), returnValue: - _i21.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>.value( + _i22.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>.value( _FakeTuple2_13<_i17.Transaction, _i17.Address>( this, Invocation.method( @@ -1251,37 +1262,37 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { ], ), )), - ) as _i21.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>); + ) as _i22.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>); @override void initPaynymWalletInterface({ required String? walletId, required String? walletName, required _i13.NetworkType? network, - required _i20.Coin? coin, + required _i21.Coin? coin, required _i12.MainDB? db, required _i9.ElectrumX? electrumXClient, - required _i27.SecureStorageInterface? secureStorage, + required _i28.SecureStorageInterface? secureStorage, required int? dustLimit, required int? dustLimitP2PKH, required int? minConfirms, - required _i21.Future Function()? getMnemonicString, - required _i21.Future Function()? getMnemonicPassphrase, - required _i21.Future Function()? getChainHeight, - required _i21.Future Function()? getCurrentChangeAddress, + required _i22.Future Function()? getMnemonicString, + required _i22.Future Function()? getMnemonicPassphrase, + required _i22.Future Function()? getChainHeight, + required _i22.Future Function()? getCurrentChangeAddress, required int Function({ required int feeRatePerKB, required int vSize, })? estimateTxFee, - required _i21.Future> Function({ + required _i22.Future> Function({ required String address, required _i14.Amount amount, Map? args, })? prepareSend, - required _i21.Future Function({required String address})? getTxCount, - required _i21.Future> Function(List<_i17.UTXO>)? + required _i22.Future Function({required String address})? getTxCount, + required _i22.Future> Function(List<_i17.UTXO>)? fetchBuildTxData, - required _i21.Future Function()? refresh, - required _i21.Future Function()? checkChangeAddressForTransactions, + required _i22.Future Function()? refresh, + required _i22.Future Function()? checkChangeAddressForTransactions, }) => super.noSuchMethod( Invocation.method( @@ -1314,21 +1325,21 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i21.Future<_i16.BIP32> getBip47BaseNode() => (super.noSuchMethod( + _i22.Future<_i16.BIP32> getBip47BaseNode() => (super.noSuchMethod( Invocation.method( #getBip47BaseNode, [], ), - returnValue: _i21.Future<_i16.BIP32>.value(_FakeBIP32_14( + returnValue: _i22.Future<_i16.BIP32>.value(_FakeBIP32_14( this, Invocation.method( #getBip47BaseNode, [], ), )), - ) as _i21.Future<_i16.BIP32>); + ) as _i22.Future<_i16.BIP32>); @override - _i21.Future<_i28.Uint8List> getPrivateKeyForPaynymReceivingAddress({ + _i22.Future<_i29.Uint8List> getPrivateKeyForPaynymReceivingAddress({ required String? paymentCodeString, required int? index, }) => @@ -1341,10 +1352,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #index: index, }, ), - returnValue: _i21.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i21.Future<_i28.Uint8List>); + returnValue: _i22.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), + ) as _i22.Future<_i29.Uint8List>); @override - _i21.Future<_i17.Address> currentReceivingPaynymAddress({ + _i22.Future<_i17.Address> currentReceivingPaynymAddress({ required _i18.PaymentCode? sender, required bool? isSegwit, }) => @@ -1357,7 +1368,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #isSegwit: isSegwit, }, ), - returnValue: _i21.Future<_i17.Address>.value(_FakeAddress_15( + returnValue: _i22.Future<_i17.Address>.value(_FakeAddress_15( this, Invocation.method( #currentReceivingPaynymAddress, @@ -1368,9 +1379,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, ), )), - ) as _i21.Future<_i17.Address>); + ) as _i22.Future<_i17.Address>); @override - _i21.Future checkCurrentPaynymReceivingAddressForTransactions({ + _i22.Future checkCurrentPaynymReceivingAddressForTransactions({ required _i18.PaymentCode? sender, required bool? isSegwit, }) => @@ -1383,42 +1394,42 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #isSegwit: isSegwit, }, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => + _i22.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkAllCurrentReceivingPaynymAddressesForTransactions, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future<_i16.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( + _i22.Future<_i16.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( Invocation.method( #deriveNotificationBip32Node, [], ), - returnValue: _i21.Future<_i16.BIP32>.value(_FakeBIP32_14( + returnValue: _i22.Future<_i16.BIP32>.value(_FakeBIP32_14( this, Invocation.method( #deriveNotificationBip32Node, [], ), )), - ) as _i21.Future<_i16.BIP32>); + ) as _i22.Future<_i16.BIP32>); @override - _i21.Future<_i18.PaymentCode> getPaymentCode({required bool? isSegwit}) => + _i22.Future<_i18.PaymentCode> getPaymentCode({required bool? isSegwit}) => (super.noSuchMethod( Invocation.method( #getPaymentCode, [], {#isSegwit: isSegwit}, ), - returnValue: _i21.Future<_i18.PaymentCode>.value(_FakePaymentCode_16( + returnValue: _i22.Future<_i18.PaymentCode>.value(_FakePaymentCode_16( this, Invocation.method( #getPaymentCode, @@ -1426,27 +1437,27 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { {#isSegwit: isSegwit}, ), )), - ) as _i21.Future<_i18.PaymentCode>); + ) as _i22.Future<_i18.PaymentCode>); @override - _i21.Future<_i28.Uint8List> signWithNotificationKey(_i28.Uint8List? data) => + _i22.Future<_i29.Uint8List> signWithNotificationKey(_i29.Uint8List? data) => (super.noSuchMethod( Invocation.method( #signWithNotificationKey, [data], ), - returnValue: _i21.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i21.Future<_i28.Uint8List>); + returnValue: _i22.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), + ) as _i22.Future<_i29.Uint8List>); @override - _i21.Future signStringWithNotificationKey(String? data) => + _i22.Future signStringWithNotificationKey(String? data) => (super.noSuchMethod( Invocation.method( #signStringWithNotificationKey, [data], ), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i22.Future.value(''), + ) as _i22.Future); @override - _i21.Future> preparePaymentCodeSend({ + _i22.Future> preparePaymentCodeSend({ required _i18.PaymentCode? paymentCode, required bool? isSegwit, required _i14.Amount? amount, @@ -1464,10 +1475,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, ), returnValue: - _i21.Future>.value({}), - ) as _i21.Future>); + _i22.Future>.value({}), + ) as _i22.Future>); @override - _i21.Future<_i17.Address> nextUnusedSendAddressFrom({ + _i22.Future<_i17.Address> nextUnusedSendAddressFrom({ required _i18.PaymentCode? pCode, required bool? isSegwit, required _i16.BIP32? privateKeyNode, @@ -1484,7 +1495,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #startIndex: startIndex, }, ), - returnValue: _i21.Future<_i17.Address>.value(_FakeAddress_15( + returnValue: _i22.Future<_i17.Address>.value(_FakeAddress_15( this, Invocation.method( #nextUnusedSendAddressFrom, @@ -1497,9 +1508,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, ), )), - ) as _i21.Future<_i17.Address>); + ) as _i22.Future<_i17.Address>); @override - _i21.Future> prepareNotificationTx({ + _i22.Future> prepareNotificationTx({ required int? selectedTxFeeRate, required String? targetPaymentCodeString, int? additionalOutputs = 0, @@ -1517,10 +1528,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { }, ), returnValue: - _i21.Future>.value({}), - ) as _i21.Future>); + _i22.Future>.value({}), + ) as _i22.Future>); @override - _i21.Future broadcastNotificationTx( + _i22.Future broadcastNotificationTx( {required Map? preparedTx}) => (super.noSuchMethod( Invocation.method( @@ -1528,19 +1539,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { [], {#preparedTx: preparedTx}, ), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i22.Future.value(''), + ) as _i22.Future); @override - _i21.Future hasConnected(String? paymentCodeString) => + _i22.Future hasConnected(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #hasConnected, [paymentCodeString], ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i22.Future.value(false), + ) as _i22.Future); @override - _i21.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransaction( + _i22.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransaction( {required _i17.Transaction? transaction}) => (super.noSuchMethod( Invocation.method( @@ -1548,10 +1559,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { [], {#transaction: transaction}, ), - returnValue: _i21.Future<_i18.PaymentCode?>.value(), - ) as _i21.Future<_i18.PaymentCode?>); + returnValue: _i22.Future<_i18.PaymentCode?>.value(), + ) as _i22.Future<_i18.PaymentCode?>); @override - _i21.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( + _i22.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( {required _i17.Transaction? transaction}) => (super.noSuchMethod( Invocation.method( @@ -1559,31 +1570,31 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { [], {#transaction: transaction}, ), - returnValue: _i21.Future<_i18.PaymentCode?>.value(), - ) as _i21.Future<_i18.PaymentCode?>); + returnValue: _i22.Future<_i18.PaymentCode?>.value(), + ) as _i22.Future<_i18.PaymentCode?>); @override - _i21.Future> + _i22.Future> getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( Invocation.method( #getAllPaymentCodesFromNotificationTransactions, [], ), returnValue: - _i21.Future>.value(<_i18.PaymentCode>[]), - ) as _i21.Future>); + _i22.Future>.value(<_i18.PaymentCode>[]), + ) as _i22.Future>); @override - _i21.Future checkForNotificationTransactionsTo( + _i22.Future checkForNotificationTransactionsTo( Set? otherCodeStrings) => (super.noSuchMethod( Invocation.method( #checkForNotificationTransactionsTo, [otherCodeStrings], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future restoreAllHistory({ + _i22.Future restoreAllHistory({ required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required Set? paymentCodeStrings, @@ -1598,11 +1609,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #paymentCodeStrings: paymentCodeStrings, }, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future restoreHistoryWith({ + _i22.Future restoreHistoryWith({ required _i18.PaymentCode? other, required bool? checkSegwitAsWell, required int? maxUnusedAddressGap, @@ -1619,58 +1630,58 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, }, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future<_i17.Address> getMyNotificationAddress() => (super.noSuchMethod( + _i22.Future<_i17.Address> getMyNotificationAddress() => (super.noSuchMethod( Invocation.method( #getMyNotificationAddress, [], ), - returnValue: _i21.Future<_i17.Address>.value(_FakeAddress_15( + returnValue: _i22.Future<_i17.Address>.value(_FakeAddress_15( this, Invocation.method( #getMyNotificationAddress, [], ), )), - ) as _i21.Future<_i17.Address>); + ) as _i22.Future<_i17.Address>); @override - _i21.Future> lookupKey(String? paymentCodeString) => + _i22.Future> lookupKey(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #lookupKey, [paymentCodeString], ), - returnValue: _i21.Future>.value([]), - ) as _i21.Future>); + returnValue: _i22.Future>.value([]), + ) as _i22.Future>); @override - _i21.Future paymentCodeStringByKey(String? key) => + _i22.Future paymentCodeStringByKey(String? key) => (super.noSuchMethod( Invocation.method( #paymentCodeStringByKey, [key], ), - returnValue: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future storeCode(String? paymentCodeString) => + _i22.Future storeCode(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #storeCode, [paymentCodeString], ), - returnValue: _i21.Future.value(''), - ) as _i21.Future); + returnValue: _i22.Future.value(''), + ) as _i22.Future); @override void initCoinControlInterface({ required String? walletId, required String? walletName, - required _i20.Coin? coin, + required _i21.Coin? coin, required _i12.MainDB? db, - required _i21.Future Function()? getChainHeight, - required _i21.Future Function(_i11.Balance)? refreshedBalanceCallback, + required _i22.Future Function()? getChainHeight, + required _i22.Future Function(_i11.Balance)? refreshedBalanceCallback, }) => super.noSuchMethod( Invocation.method( @@ -1688,22 +1699,22 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i21.Future refreshBalance({bool? notify = false}) => + _i22.Future refreshBalance({bool? notify = false}) => (super.noSuchMethod( Invocation.method( #refreshBalance, [], {#notify: notify}, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); } /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i29.LocaleService { +class MockLocaleService extends _i1.Mock implements _i30.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -1719,17 +1730,17 @@ class MockLocaleService extends _i1.Mock implements _i29.LocaleService { returnValue: false, ) as bool); @override - _i21.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i22.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - void addListener(_i23.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i24.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1737,7 +1748,7 @@ class MockLocaleService extends _i1.Mock implements _i29.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i23.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i24.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1765,11 +1776,27 @@ class MockLocaleService extends _i1.Mock implements _i29.LocaleService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i30.ThemeService { +class MockThemeService extends _i1.Mock implements _i31.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } + @override + _i19.HTTP get client => (super.noSuchMethod( + Invocation.getter(#client), + returnValue: _FakeHTTP_17( + this, + Invocation.getter(#client), + ), + ) as _i19.HTTP); + @override + set client(_i19.HTTP? _client) => super.noSuchMethod( + Invocation.setter( + #client, + _client, + ), + returnValueForMissingStub: null, + ); @override _i12.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), @@ -1779,10 +1806,10 @@ class MockThemeService extends _i1.Mock implements _i30.ThemeService { ), ) as _i12.MainDB); @override - List<_i31.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i32.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i31.StackTheme>[], - ) as List<_i31.StackTheme>); + returnValue: <_i32.StackTheme>[], + ) as List<_i32.StackTheme>); @override void init(_i12.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -1792,71 +1819,71 @@ class MockThemeService extends _i1.Mock implements _i30.ThemeService { returnValueForMissingStub: null, ); @override - _i21.Future install({required _i28.Uint8List? themeArchiveData}) => + _i22.Future install({required _i29.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future remove({required String? themeId}) => (super.noSuchMethod( + _i22.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i22.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i21.Future.value(), - returnValueForMissingStub: _i21.Future.value(), - ) as _i21.Future); + returnValue: _i22.Future.value(), + returnValueForMissingStub: _i22.Future.value(), + ) as _i22.Future); @override - _i21.Future verifyInstalled({required String? themeId}) => + _i22.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i21.Future.value(false), - ) as _i21.Future); + returnValue: _i22.Future.value(false), + ) as _i22.Future); @override - _i21.Future> fetchThemes() => + _i22.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i21.Future>.value( - <_i30.StackThemeMetaData>[]), - ) as _i21.Future>); + returnValue: _i22.Future>.value( + <_i31.StackThemeMetaData>[]), + ) as _i22.Future>); @override - _i21.Future<_i28.Uint8List> fetchTheme( - {required _i30.StackThemeMetaData? themeMetaData}) => + _i22.Future<_i29.Uint8List> fetchTheme( + {required _i31.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i21.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i21.Future<_i28.Uint8List>); + returnValue: _i22.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), + ) as _i22.Future<_i29.Uint8List>); @override - _i31.StackTheme? getTheme({required String? themeId}) => + _i32.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i31.StackTheme?); + )) as _i32.StackTheme?); } 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 16b4aa49e..7a14a4547 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,41 +3,42 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i23; -import 'dart:typed_data' as _i28; -import 'dart:ui' as _i25; +import 'dart:async' as _i24; +import 'dart:typed_data' as _i29; +import 'dart:ui' as _i26; -import 'package:bip32/bip32.dart' as _i16; -import 'package:bip47/bip47.dart' as _i18; -import 'package:bitcoindart/bitcoindart.dart' as _i13; +import 'package:bip32/bip32.dart' as _i17; +import 'package:bip47/bip47.dart' as _i19; +import 'package:bitcoindart/bitcoindart.dart' as _i14; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/db/isar/main_db.dart' as _i7; -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 _i17; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i27; -import 'package:stackwallet/models/node_model.dart' as _i32; -import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9; -import 'package:stackwallet/models/signing_data.dart' as _i31; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i29; -import 'package:stackwallet/services/coins/coin_service.dart' as _i20; +import 'package:stackwallet/db/isar/main_db.dart' as _i8; +import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i12; +import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i11; +import 'package:stackwallet/models/balance.dart' as _i13; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i18; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i28; +import 'package:stackwallet/models/node_model.dart' as _i33; +import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i10; +import 'package:stackwallet/models/signing_data.dart' as _i32; +import 'package:stackwallet/networking/http.dart' as _i7; +import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i30; +import 'package:stackwallet/services/coins/coin_service.dart' as _i21; 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 _i8; -import 'package:stackwallet/services/wallets.dart' as _i21; + as _i9; +import 'package:stackwallet/services/wallets.dart' as _i22; import 'package:stackwallet/services/wallets_service.dart' as _i2; -import 'package:stackwallet/themes/theme_service.dart' as _i26; -import 'package:stackwallet/utilities/amount/amount.dart' as _i14; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i22; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i30; +import 'package:stackwallet/themes/theme_service.dart' as _i27; +import 'package:stackwallet/utilities/amount/amount.dart' as _i15; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i23; +import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i31; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i19; -import 'package:stackwallet/utilities/prefs.dart' as _i24; -import 'package:tuple/tuple.dart' as _i15; + as _i20; +import 'package:stackwallet/utilities/prefs.dart' as _i25; +import 'package:tuple/tuple.dart' as _i16; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -92,8 +93,8 @@ class _FakeManager_3 extends _i1.SmartFake implements _i6.Manager { ); } -class _FakeMainDB_4 extends _i1.SmartFake implements _i7.MainDB { - _FakeMainDB_4( +class _FakeHTTP_4 extends _i1.SmartFake implements _i7.HTTP { + _FakeHTTP_4( Object parent, Invocation parentInvocation, ) : super( @@ -102,9 +103,8 @@ class _FakeMainDB_4 extends _i1.SmartFake implements _i7.MainDB { ); } -class _FakeTransactionNotificationTracker_5 extends _i1.SmartFake - implements _i8.TransactionNotificationTracker { - _FakeTransactionNotificationTracker_5( +class _FakeMainDB_5 extends _i1.SmartFake implements _i8.MainDB { + _FakeMainDB_5( Object parent, Invocation parentInvocation, ) : super( @@ -113,8 +113,9 @@ class _FakeTransactionNotificationTracker_5 extends _i1.SmartFake ); } -class _FakeFeeObject_6 extends _i1.SmartFake implements _i9.FeeObject { - _FakeFeeObject_6( +class _FakeTransactionNotificationTracker_6 extends _i1.SmartFake + implements _i9.TransactionNotificationTracker { + _FakeTransactionNotificationTracker_6( Object parent, Invocation parentInvocation, ) : super( @@ -123,8 +124,8 @@ class _FakeFeeObject_6 extends _i1.SmartFake implements _i9.FeeObject { ); } -class _FakeElectrumX_7 extends _i1.SmartFake implements _i10.ElectrumX { - _FakeElectrumX_7( +class _FakeFeeObject_7 extends _i1.SmartFake implements _i10.FeeObject { + _FakeFeeObject_7( Object parent, Invocation parentInvocation, ) : super( @@ -133,9 +134,8 @@ class _FakeElectrumX_7 extends _i1.SmartFake implements _i10.ElectrumX { ); } -class _FakeCachedElectrumX_8 extends _i1.SmartFake - implements _i11.CachedElectrumX { - _FakeCachedElectrumX_8( +class _FakeElectrumX_8 extends _i1.SmartFake implements _i11.ElectrumX { + _FakeElectrumX_8( Object parent, Invocation parentInvocation, ) : super( @@ -144,8 +144,9 @@ class _FakeCachedElectrumX_8 extends _i1.SmartFake ); } -class _FakeBalance_9 extends _i1.SmartFake implements _i12.Balance { - _FakeBalance_9( +class _FakeCachedElectrumX_9 extends _i1.SmartFake + implements _i12.CachedElectrumX { + _FakeCachedElectrumX_9( Object parent, Invocation parentInvocation, ) : super( @@ -154,8 +155,8 @@ class _FakeBalance_9 extends _i1.SmartFake implements _i12.Balance { ); } -class _FakeNetworkType_10 extends _i1.SmartFake implements _i13.NetworkType { - _FakeNetworkType_10( +class _FakeBalance_10 extends _i1.SmartFake implements _i13.Balance { + _FakeBalance_10( Object parent, Invocation parentInvocation, ) : super( @@ -164,9 +165,8 @@ class _FakeNetworkType_10 extends _i1.SmartFake implements _i13.NetworkType { ); } -class _FakeElectrumXNode_11 extends _i1.SmartFake - implements _i10.ElectrumXNode { - _FakeElectrumXNode_11( +class _FakeNetworkType_11 extends _i1.SmartFake implements _i14.NetworkType { + _FakeNetworkType_11( Object parent, Invocation parentInvocation, ) : super( @@ -175,8 +175,9 @@ class _FakeElectrumXNode_11 extends _i1.SmartFake ); } -class _FakeAmount_12 extends _i1.SmartFake implements _i14.Amount { - _FakeAmount_12( +class _FakeElectrumXNode_12 extends _i1.SmartFake + implements _i11.ElectrumXNode { + _FakeElectrumXNode_12( Object parent, Invocation parentInvocation, ) : super( @@ -185,9 +186,8 @@ class _FakeAmount_12 extends _i1.SmartFake implements _i14.Amount { ); } -class _FakeTuple2_13 extends _i1.SmartFake - implements _i15.Tuple2 { - _FakeTuple2_13( +class _FakeAmount_13 extends _i1.SmartFake implements _i15.Amount { + _FakeAmount_13( Object parent, Invocation parentInvocation, ) : super( @@ -196,8 +196,9 @@ class _FakeTuple2_13 extends _i1.SmartFake ); } -class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { - _FakeBIP32_14( +class _FakeTuple2_14 extends _i1.SmartFake + implements _i16.Tuple2 { + _FakeTuple2_14( Object parent, Invocation parentInvocation, ) : super( @@ -206,8 +207,8 @@ class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { ); } -class _FakeAddress_15 extends _i1.SmartFake implements _i17.Address { - _FakeAddress_15( +class _FakeBIP32_15 extends _i1.SmartFake implements _i17.BIP32 { + _FakeBIP32_15( Object parent, Invocation parentInvocation, ) : super( @@ -216,8 +217,8 @@ class _FakeAddress_15 extends _i1.SmartFake implements _i17.Address { ); } -class _FakePaymentCode_16 extends _i1.SmartFake implements _i18.PaymentCode { - _FakePaymentCode_16( +class _FakeAddress_16 extends _i1.SmartFake implements _i18.Address { + _FakeAddress_16( Object parent, Invocation parentInvocation, ) : super( @@ -226,9 +227,8 @@ class _FakePaymentCode_16 extends _i1.SmartFake implements _i18.PaymentCode { ); } -class _FakeSecureStorageInterface_17 extends _i1.SmartFake - implements _i19.SecureStorageInterface { - _FakeSecureStorageInterface_17( +class _FakePaymentCode_17 extends _i1.SmartFake implements _i19.PaymentCode { + _FakePaymentCode_17( Object parent, Invocation parentInvocation, ) : super( @@ -237,9 +237,20 @@ class _FakeSecureStorageInterface_17 extends _i1.SmartFake ); } -class _FakeCoinServiceAPI_18 extends _i1.SmartFake - implements _i20.CoinServiceAPI { - _FakeCoinServiceAPI_18( +class _FakeSecureStorageInterface_18 extends _i1.SmartFake + implements _i20.SecureStorageInterface { + _FakeSecureStorageInterface_18( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeCoinServiceAPI_19 extends _i1.SmartFake + implements _i21.CoinServiceAPI { + _FakeCoinServiceAPI_19( Object parent, Invocation parentInvocation, ) : super( @@ -251,7 +262,7 @@ class _FakeCoinServiceAPI_18 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 _i21.Wallets { +class MockWallets extends _i1.Mock implements _i22.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -318,7 +329,7 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValueForMissingStub: null, ); @override - List getWalletIdsFor({required _i22.Coin? coin}) => + List getWalletIdsFor({required _i23.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getWalletIdsFor, @@ -328,20 +339,20 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValue: [], ) as List); @override - List<_i15.Tuple2<_i22.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>> + List<_i16.Tuple2<_i23.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>> getManagerProvidersByCoin() => (super.noSuchMethod( Invocation.method( #getManagerProvidersByCoin, [], ), - returnValue: <_i15.Tuple2<_i22.Coin, + returnValue: <_i16.Tuple2<_i23.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>[], ) as List< - _i15.Tuple2<_i22.Coin, + _i16.Tuple2<_i23.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>); @override List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin( - _i22.Coin? coin) => + _i23.Coin? coin) => (super.noSuchMethod( Invocation.method( #getManagerProvidersForCoin, @@ -405,17 +416,17 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValueForMissingStub: null, ); @override - _i23.Future load(_i24.Prefs? prefs) => (super.noSuchMethod( + _i24.Future load(_i25.Prefs? prefs) => (super.noSuchMethod( Invocation.method( #load, [prefs], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future loadAfterStackRestore( - _i24.Prefs? prefs, + _i24.Future loadAfterStackRestore( + _i25.Prefs? prefs, List<_i6.Manager>? managers, ) => (super.noSuchMethod( @@ -426,11 +437,11 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { managers, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -438,7 +449,7 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -464,19 +475,19 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { } @override - _i23.Future> get walletNames => + _i24.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i23.Future>.value( + returnValue: _i24.Future>.value( {}), - ) as _i23.Future>); + ) as _i24.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i23.Future renameWallet({ + _i24.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -491,8 +502,8 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( @@ -502,10 +513,10 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValue: {}, ) as Map); @override - _i23.Future addExistingStackWallet({ + _i24.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i22.Coin? coin, + required _i23.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -519,13 +530,13 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future addNewWallet({ + _i24.Future addNewWallet({ required String? name, - required _i22.Coin? coin, + required _i23.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -538,46 +549,46 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i24.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future saveFavoriteWalletIds(List? walletIds) => + _i24.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i24.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i24.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future moveFavorite({ + _i24.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -590,48 +601,48 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i24.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i24.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future isMnemonicVerified({required String? walletId}) => + _i24.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future setMnemonicVerified({required String? walletId}) => + _i24.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future deleteWallet( + _i24.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -643,20 +654,20 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future refreshWallets(bool? shouldNotifyListeners) => + _i24.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -664,7 +675,7 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -692,26 +703,42 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i26.ThemeService { +class MockThemeService extends _i1.Mock implements _i27.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @override - _i7.MainDB get db => (super.noSuchMethod( + _i7.HTTP get client => (super.noSuchMethod( + Invocation.getter(#client), + returnValue: _FakeHTTP_4( + this, + Invocation.getter(#client), + ), + ) as _i7.HTTP); + @override + set client(_i7.HTTP? _client) => super.noSuchMethod( + Invocation.setter( + #client, + _client, + ), + returnValueForMissingStub: null, + ); + @override + _i8.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeMainDB_4( + returnValue: _FakeMainDB_5( this, Invocation.getter(#db), ), - ) as _i7.MainDB); + ) as _i8.MainDB); @override - List<_i27.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i28.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i27.StackTheme>[], - ) as List<_i27.StackTheme>); + returnValue: <_i28.StackTheme>[], + ) as List<_i28.StackTheme>); @override - void init(_i7.MainDB? db) => super.noSuchMethod( + void init(_i8.MainDB? db) => super.noSuchMethod( Invocation.method( #init, [db], @@ -719,85 +746,85 @@ class MockThemeService extends _i1.Mock implements _i26.ThemeService { returnValueForMissingStub: null, ); @override - _i23.Future install({required _i28.Uint8List? themeArchiveData}) => + _i24.Future install({required _i29.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future remove({required String? themeId}) => (super.noSuchMethod( + _i24.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i24.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future verifyInstalled({required String? themeId}) => + _i24.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future> fetchThemes() => + _i24.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i23.Future>.value( - <_i26.StackThemeMetaData>[]), - ) as _i23.Future>); + returnValue: _i24.Future>.value( + <_i27.StackThemeMetaData>[]), + ) as _i24.Future>); @override - _i23.Future<_i28.Uint8List> fetchTheme( - {required _i26.StackThemeMetaData? themeMetaData}) => + _i24.Future<_i29.Uint8List> fetchTheme( + {required _i27.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i23.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i23.Future<_i28.Uint8List>); + returnValue: _i24.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), + ) as _i24.Future<_i29.Uint8List>); @override - _i27.StackTheme? getTheme({required String? themeId}) => + _i28.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i27.StackTheme?); + )) as _i28.StackTheme?); } /// A class which mocks [BitcoinWallet]. /// /// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { +class MockBitcoinWallet extends _i1.Mock implements _i30.BitcoinWallet { MockBitcoinWallet() { _i1.throwOnMissingStub(this); } @override - set timer(_i23.Timer? _timer) => super.noSuchMethod( + set timer(_i24.Timer? _timer) => super.noSuchMethod( Invocation.setter( #timer, _timer, @@ -805,15 +832,15 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i8.TransactionNotificationTracker get txTracker => (super.noSuchMethod( + _i9.TransactionNotificationTracker get txTracker => (super.noSuchMethod( Invocation.getter(#txTracker), - returnValue: _FakeTransactionNotificationTracker_5( + returnValue: _FakeTransactionNotificationTracker_6( this, Invocation.getter(#txTracker), ), - ) as _i8.TransactionNotificationTracker); + ) as _i9.TransactionNotificationTracker); @override - set txTracker(_i8.TransactionNotificationTracker? _txTracker) => + set txTracker(_i9.TransactionNotificationTracker? _txTracker) => super.noSuchMethod( Invocation.setter( #txTracker, @@ -874,74 +901,74 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValue: false, ) as bool); @override - _i22.Coin get coin => (super.noSuchMethod( + _i23.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i22.Coin.bitcoin, - ) as _i22.Coin); + returnValue: _i23.Coin.bitcoin, + ) as _i23.Coin); @override - _i23.Future> get utxos => (super.noSuchMethod( + _i24.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i23.Future>.value(<_i17.UTXO>[]), - ) as _i23.Future>); + returnValue: _i24.Future>.value(<_i18.UTXO>[]), + ) as _i24.Future>); @override - _i23.Future> get transactions => (super.noSuchMethod( + _i24.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i23.Future>.value(<_i17.Transaction>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i18.Transaction>[]), + ) as _i24.Future>); @override - _i23.Future get currentReceivingAddress => (super.noSuchMethod( + _i24.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future get currentChangeAddress => (super.noSuchMethod( + _i24.Future get currentChangeAddress => (super.noSuchMethod( Invocation.getter(#currentChangeAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future get currentChangeAddressP2PKH => (super.noSuchMethod( + _i24.Future get currentChangeAddressP2PKH => (super.noSuchMethod( Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), returnValue: false, ) as bool); @override - _i23.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i24.Future<_i10.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i23.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i24.Future<_i10.FeeObject>.value(_FakeFeeObject_7( this, Invocation.getter(#fees), )), - ) as _i23.Future<_i9.FeeObject>); + ) as _i24.Future<_i10.FeeObject>); @override - _i23.Future get maxFee => (super.noSuchMethod( + _i24.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future> get mnemonic => (super.noSuchMethod( + _i24.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future get mnemonicString => (super.noSuchMethod( + _i24.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future get mnemonicPassphrase => (super.noSuchMethod( + _i24.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future get chainHeight => (super.noSuchMethod( + _i24.Future get chainHeight => (super.noSuchMethod( Invocation.getter(#chainHeight), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override int get storedChainHeight => (super.noSuchMethod( Invocation.getter(#storedChainHeight), @@ -989,34 +1016,34 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i10.ElectrumX get electrumXClient => (super.noSuchMethod( + _i11.ElectrumX get electrumXClient => (super.noSuchMethod( Invocation.getter(#electrumXClient), - returnValue: _FakeElectrumX_7( + returnValue: _FakeElectrumX_8( this, Invocation.getter(#electrumXClient), ), - ) as _i10.ElectrumX); + ) as _i11.ElectrumX); @override - _i11.CachedElectrumX get cachedElectrumXClient => (super.noSuchMethod( + _i12.CachedElectrumX get cachedElectrumXClient => (super.noSuchMethod( Invocation.getter(#cachedElectrumXClient), - returnValue: _FakeCachedElectrumX_8( + returnValue: _FakeCachedElectrumX_9( this, Invocation.getter(#cachedElectrumXClient), ), - ) as _i11.CachedElectrumX); + ) as _i12.CachedElectrumX); @override - _i12.Balance get balance => (super.noSuchMethod( + _i13.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), - returnValue: _FakeBalance_9( + returnValue: _FakeBalance_10( this, Invocation.getter(#balance), ), - ) as _i12.Balance); + ) as _i13.Balance); @override - _i23.Future get xpub => (super.noSuchMethod( + _i24.Future get xpub => (super.noSuchMethod( Invocation.getter(#xpub), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -1027,42 +1054,42 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i7.MainDB get db => (super.noSuchMethod( + _i8.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeMainDB_4( + returnValue: _FakeMainDB_5( this, Invocation.getter(#db), ), - ) as _i7.MainDB); + ) as _i8.MainDB); @override - _i13.NetworkType get networkType => (super.noSuchMethod( + _i14.NetworkType get networkType => (super.noSuchMethod( Invocation.getter(#networkType), - returnValue: _FakeNetworkType_10( + returnValue: _FakeNetworkType_11( this, Invocation.getter(#networkType), ), - ) as _i13.NetworkType); + ) as _i14.NetworkType); @override - _i23.Future exit() => (super.noSuchMethod( + _i24.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i30.DerivePathType addressType({required String? address}) => + _i31.DerivePathType addressType({required String? address}) => (super.noSuchMethod( Invocation.method( #addressType, [], {#address: address}, ), - returnValue: _i30.DerivePathType.bip44, - ) as _i30.DerivePathType); + returnValue: _i31.DerivePathType.bip44, + ) as _i31.DerivePathType); @override - _i23.Future recoverFromMnemonic({ + _i24.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -1081,49 +1108,49 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { #height: height, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future getTransactionCacheEarly(List? allAddresses) => + _i24.Future getTransactionCacheEarly(List? allAddresses) => (super.noSuchMethod( Invocation.method( #getTransactionCacheEarly, [allAddresses], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future refreshIfThereIsNewData() => (super.noSuchMethod( + _i24.Future refreshIfThereIsNewData() => (super.noSuchMethod( Invocation.method( #refreshIfThereIsNewData, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future getAllTxsToWatch() => (super.noSuchMethod( + _i24.Future getAllTxsToWatch() => (super.noSuchMethod( Invocation.method( #getAllTxsToWatch, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future refresh() => (super.noSuchMethod( + _i24.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future> prepareSend({ + _i24.Future> prepareSend({ required String? address, - required _i14.Amount? amount, + required _i15.Amount? amount, Map? args, }) => (super.noSuchMethod( @@ -1137,26 +1164,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future confirmSend({required Map? txData}) => + _i24.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future testNetworkConnection() => (super.noSuchMethod( + _i24.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override void startNetworkAlivePinging() => super.noSuchMethod( Invocation.method( @@ -1174,35 +1201,35 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future initializeNew( + _i24.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future initializeExisting() => (super.noSuchMethod( + _i24.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future updateSentCachedTxData(Map? txData) => + _i24.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -1212,70 +1239,70 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValue: false, ) as bool); @override - _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i24.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i10.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( + _i24.Future<_i11.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( Invocation.method( #getCurrentNode, [], ), returnValue: - _i23.Future<_i10.ElectrumXNode>.value(_FakeElectrumXNode_11( + _i24.Future<_i11.ElectrumXNode>.value(_FakeElectrumXNode_12( this, Invocation.method( #getCurrentNode, [], ), )), - ) as _i23.Future<_i10.ElectrumXNode>); + ) as _i24.Future<_i11.ElectrumXNode>); @override - _i23.Future>> fastFetch( + _i24.Future>> fastFetch( List? allTxHashes) => (super.noSuchMethod( Invocation.method( #fastFetch, [allTxHashes], ), - returnValue: _i23.Future>>.value( + returnValue: _i24.Future>>.value( >[]), - ) as _i23.Future>>); + ) as _i24.Future>>); @override - _i23.Future getTxCount({required String? address}) => + _i24.Future getTxCount({required String? address}) => (super.noSuchMethod( Invocation.method( #getTxCount, [], {#address: address}, ), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future checkCurrentReceivingAddressesForTransactions() => + _i24.Future checkCurrentReceivingAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentReceivingAddressesForTransactions, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future checkCurrentChangeAddressesForTransactions() => + _i24.Future checkCurrentChangeAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkCurrentChangeAddressesForTransactions, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override int estimateTxFee({ required int? vSize, @@ -1301,7 +1328,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { required bool? isSendAll, int? satsPerVByte, int? additionalOutputs = 0, - List<_i17.UTXO>? utxos, + List<_i18.UTXO>? utxos, }) => super.noSuchMethod(Invocation.method( #coinSelection, @@ -1318,19 +1345,19 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { }, )); @override - _i23.Future> fetchBuildTxData( - List<_i17.UTXO>? utxosToUse) => + _i24.Future> fetchBuildTxData( + List<_i18.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( #fetchBuildTxData, [utxosToUse], ), returnValue: - _i23.Future>.value(<_i31.SigningData>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i32.SigningData>[]), + ) as _i24.Future>); @override - _i23.Future> buildTransaction({ - required List<_i31.SigningData>? utxoSigningData, + _i24.Future> buildTransaction({ + required List<_i32.SigningData>? utxoSigningData, required List? recipients, required List? satoshiAmounts, }) => @@ -1345,10 +1372,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future fullRescan( + _i24.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -1360,12 +1387,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { maxNumberOfIndexesToCheck, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i14.Amount> estimateFeeFor( - _i14.Amount? amount, + _i24.Future<_i15.Amount> estimateFeeFor( + _i15.Amount? amount, int? feeRate, ) => (super.noSuchMethod( @@ -1376,7 +1403,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { feeRate, ], ), - returnValue: _i23.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i24.Future<_i15.Amount>.value(_FakeAmount_13( this, Invocation.method( #estimateFeeFor, @@ -1386,9 +1413,9 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { ], ), )), - ) as _i23.Future<_i14.Amount>); + ) as _i24.Future<_i15.Amount>); @override - _i14.Amount roughFeeEstimate( + _i15.Amount roughFeeEstimate( int? inputCount, int? outputCount, int? feeRatePerKB, @@ -1402,7 +1429,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { feeRatePerKB, ], ), - returnValue: _FakeAmount_12( + returnValue: _FakeAmount_13( this, Invocation.method( #roughFeeEstimate, @@ -1413,34 +1440,34 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { ], ), ), - ) as _i14.Amount); + ) as _i15.Amount); @override - _i23.Future<_i14.Amount> sweepAllEstimate(int? feeRate) => + _i24.Future<_i15.Amount> sweepAllEstimate(int? feeRate) => (super.noSuchMethod( Invocation.method( #sweepAllEstimate, [feeRate], ), - returnValue: _i23.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i24.Future<_i15.Amount>.value(_FakeAmount_13( this, Invocation.method( #sweepAllEstimate, [feeRate], ), )), - ) as _i23.Future<_i14.Amount>); + ) as _i24.Future<_i15.Amount>); @override - _i23.Future generateNewAddress() => (super.noSuchMethod( + _i24.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override void initCache( String? walletId, - _i22.Coin? coin, + _i23.Coin? coin, ) => super.noSuchMethod( Invocation.method( @@ -1453,14 +1480,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future updateCachedId(String? id) => (super.noSuchMethod( + _i24.Future updateCachedId(String? id) => (super.noSuchMethod( Invocation.method( #updateCachedId, [id], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override int getCachedChainHeight() => (super.noSuchMethod( Invocation.method( @@ -1470,14 +1497,14 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValue: 0, ) as int); @override - _i23.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( + _i24.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( Invocation.method( #updateCachedChainHeight, [height], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override bool getCachedIsFavorite() => (super.noSuchMethod( Invocation.method( @@ -1487,63 +1514,63 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValue: false, ) as bool); @override - _i23.Future updateCachedIsFavorite(bool? isFavorite) => + _i24.Future updateCachedIsFavorite(bool? isFavorite) => (super.noSuchMethod( Invocation.method( #updateCachedIsFavorite, [isFavorite], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i12.Balance getCachedBalance() => (super.noSuchMethod( + _i13.Balance getCachedBalance() => (super.noSuchMethod( Invocation.method( #getCachedBalance, [], ), - returnValue: _FakeBalance_9( + returnValue: _FakeBalance_10( this, Invocation.method( #getCachedBalance, [], ), ), - ) as _i12.Balance); + ) as _i13.Balance); @override - _i23.Future updateCachedBalance(_i12.Balance? balance) => + _i24.Future updateCachedBalance(_i13.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalance, [balance], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i12.Balance getCachedBalanceSecondary() => (super.noSuchMethod( + _i13.Balance getCachedBalanceSecondary() => (super.noSuchMethod( Invocation.method( #getCachedBalanceSecondary, [], ), - returnValue: _FakeBalance_9( + returnValue: _FakeBalance_10( this, Invocation.method( #getCachedBalanceSecondary, [], ), ), - ) as _i12.Balance); + ) as _i13.Balance); @override - _i23.Future updateCachedBalanceSecondary(_i12.Balance? balance) => + _i24.Future updateCachedBalanceSecondary(_i13.Balance? balance) => (super.noSuchMethod( Invocation.method( #updateCachedBalanceSecondary, [balance], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override List getWalletTokenContractAddresses() => (super.noSuchMethod( Invocation.method( @@ -1553,18 +1580,18 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValue: [], ) as List); @override - _i23.Future updateWalletTokenContractAddresses( + _i24.Future updateWalletTokenContractAddresses( List? contractAddresses) => (super.noSuchMethod( Invocation.method( #updateWalletTokenContractAddresses, [contractAddresses], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void initWalletDB({_i7.MainDB? mockableOverride}) => super.noSuchMethod( + void initWalletDB({_i8.MainDB? mockableOverride}) => super.noSuchMethod( Invocation.method( #initWalletDB, [], @@ -1573,11 +1600,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>> parseTransaction( + _i24.Future<_i16.Tuple2<_i18.Transaction, _i18.Address>> parseTransaction( Map? txData, dynamic electrumxClient, - List<_i17.Address>? myAddresses, - _i22.Coin? coin, + List<_i18.Address>? myAddresses, + _i23.Coin? coin, int? minConfirms, String? walletId, ) => @@ -1594,8 +1621,8 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { ], ), returnValue: - _i23.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>.value( - _FakeTuple2_13<_i17.Transaction, _i17.Address>( + _i24.Future<_i16.Tuple2<_i18.Transaction, _i18.Address>>.value( + _FakeTuple2_14<_i18.Transaction, _i18.Address>( this, Invocation.method( #parseTransaction, @@ -1609,37 +1636,37 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { ], ), )), - ) as _i23.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>); + ) as _i24.Future<_i16.Tuple2<_i18.Transaction, _i18.Address>>); @override void initPaynymWalletInterface({ required String? walletId, required String? walletName, - required _i13.NetworkType? network, - required _i22.Coin? coin, - required _i7.MainDB? db, - required _i10.ElectrumX? electrumXClient, - required _i19.SecureStorageInterface? secureStorage, + required _i14.NetworkType? network, + required _i23.Coin? coin, + required _i8.MainDB? db, + required _i11.ElectrumX? electrumXClient, + required _i20.SecureStorageInterface? secureStorage, required int? dustLimit, required int? dustLimitP2PKH, required int? minConfirms, - required _i23.Future Function()? getMnemonicString, - required _i23.Future Function()? getMnemonicPassphrase, - required _i23.Future Function()? getChainHeight, - required _i23.Future Function()? getCurrentChangeAddress, + required _i24.Future Function()? getMnemonicString, + required _i24.Future Function()? getMnemonicPassphrase, + required _i24.Future Function()? getChainHeight, + required _i24.Future Function()? getCurrentChangeAddress, required int Function({ required int feeRatePerKB, required int vSize, })? estimateTxFee, - required _i23.Future> Function({ + required _i24.Future> Function({ required String address, - required _i14.Amount amount, + required _i15.Amount amount, Map? args, })? prepareSend, - required _i23.Future Function({required String address})? getTxCount, - required _i23.Future> Function(List<_i17.UTXO>)? + required _i24.Future Function({required String address})? getTxCount, + required _i24.Future> Function(List<_i18.UTXO>)? fetchBuildTxData, - required _i23.Future Function()? refresh, - required _i23.Future Function()? checkChangeAddressForTransactions, + required _i24.Future Function()? refresh, + required _i24.Future Function()? checkChangeAddressForTransactions, }) => super.noSuchMethod( Invocation.method( @@ -1672,21 +1699,21 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future<_i16.BIP32> getBip47BaseNode() => (super.noSuchMethod( + _i24.Future<_i17.BIP32> getBip47BaseNode() => (super.noSuchMethod( Invocation.method( #getBip47BaseNode, [], ), - returnValue: _i23.Future<_i16.BIP32>.value(_FakeBIP32_14( + returnValue: _i24.Future<_i17.BIP32>.value(_FakeBIP32_15( this, Invocation.method( #getBip47BaseNode, [], ), )), - ) as _i23.Future<_i16.BIP32>); + ) as _i24.Future<_i17.BIP32>); @override - _i23.Future<_i28.Uint8List> getPrivateKeyForPaynymReceivingAddress({ + _i24.Future<_i29.Uint8List> getPrivateKeyForPaynymReceivingAddress({ required String? paymentCodeString, required int? index, }) => @@ -1699,11 +1726,11 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { #index: index, }, ), - returnValue: _i23.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i23.Future<_i28.Uint8List>); + returnValue: _i24.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), + ) as _i24.Future<_i29.Uint8List>); @override - _i23.Future<_i17.Address> currentReceivingPaynymAddress({ - required _i18.PaymentCode? sender, + _i24.Future<_i18.Address> currentReceivingPaynymAddress({ + required _i19.PaymentCode? sender, required bool? isSegwit, }) => (super.noSuchMethod( @@ -1715,7 +1742,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { #isSegwit: isSegwit, }, ), - returnValue: _i23.Future<_i17.Address>.value(_FakeAddress_15( + returnValue: _i24.Future<_i18.Address>.value(_FakeAddress_16( this, Invocation.method( #currentReceivingPaynymAddress, @@ -1726,10 +1753,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { }, ), )), - ) as _i23.Future<_i17.Address>); + ) as _i24.Future<_i18.Address>); @override - _i23.Future checkCurrentPaynymReceivingAddressForTransactions({ - required _i18.PaymentCode? sender, + _i24.Future checkCurrentPaynymReceivingAddressForTransactions({ + required _i19.PaymentCode? sender, required bool? isSegwit, }) => (super.noSuchMethod( @@ -1741,42 +1768,42 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { #isSegwit: isSegwit, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => + _i24.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => (super.noSuchMethod( Invocation.method( #checkAllCurrentReceivingPaynymAddressesForTransactions, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i16.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( + _i24.Future<_i17.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( Invocation.method( #deriveNotificationBip32Node, [], ), - returnValue: _i23.Future<_i16.BIP32>.value(_FakeBIP32_14( + returnValue: _i24.Future<_i17.BIP32>.value(_FakeBIP32_15( this, Invocation.method( #deriveNotificationBip32Node, [], ), )), - ) as _i23.Future<_i16.BIP32>); + ) as _i24.Future<_i17.BIP32>); @override - _i23.Future<_i18.PaymentCode> getPaymentCode({required bool? isSegwit}) => + _i24.Future<_i19.PaymentCode> getPaymentCode({required bool? isSegwit}) => (super.noSuchMethod( Invocation.method( #getPaymentCode, [], {#isSegwit: isSegwit}, ), - returnValue: _i23.Future<_i18.PaymentCode>.value(_FakePaymentCode_16( + returnValue: _i24.Future<_i19.PaymentCode>.value(_FakePaymentCode_17( this, Invocation.method( #getPaymentCode, @@ -1784,30 +1811,30 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { {#isSegwit: isSegwit}, ), )), - ) as _i23.Future<_i18.PaymentCode>); + ) as _i24.Future<_i19.PaymentCode>); @override - _i23.Future<_i28.Uint8List> signWithNotificationKey(_i28.Uint8List? data) => + _i24.Future<_i29.Uint8List> signWithNotificationKey(_i29.Uint8List? data) => (super.noSuchMethod( Invocation.method( #signWithNotificationKey, [data], ), - returnValue: _i23.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i23.Future<_i28.Uint8List>); + returnValue: _i24.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), + ) as _i24.Future<_i29.Uint8List>); @override - _i23.Future signStringWithNotificationKey(String? data) => + _i24.Future signStringWithNotificationKey(String? data) => (super.noSuchMethod( Invocation.method( #signStringWithNotificationKey, [data], ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future> preparePaymentCodeSend({ - required _i18.PaymentCode? paymentCode, + _i24.Future> preparePaymentCodeSend({ + required _i19.PaymentCode? paymentCode, required bool? isSegwit, - required _i14.Amount? amount, + required _i15.Amount? amount, Map? args, }) => (super.noSuchMethod( @@ -1822,13 +1849,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future<_i17.Address> nextUnusedSendAddressFrom({ - required _i18.PaymentCode? pCode, + _i24.Future<_i18.Address> nextUnusedSendAddressFrom({ + required _i19.PaymentCode? pCode, required bool? isSegwit, - required _i16.BIP32? privateKeyNode, + required _i17.BIP32? privateKeyNode, int? startIndex = 0, }) => (super.noSuchMethod( @@ -1842,7 +1869,7 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { #startIndex: startIndex, }, ), - returnValue: _i23.Future<_i17.Address>.value(_FakeAddress_15( + returnValue: _i24.Future<_i18.Address>.value(_FakeAddress_16( this, Invocation.method( #nextUnusedSendAddressFrom, @@ -1855,13 +1882,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { }, ), )), - ) as _i23.Future<_i17.Address>); + ) as _i24.Future<_i18.Address>); @override - _i23.Future> prepareNotificationTx({ + _i24.Future> prepareNotificationTx({ required int? selectedTxFeeRate, required String? targetPaymentCodeString, int? additionalOutputs = 0, - List<_i17.UTXO>? utxos, + List<_i18.UTXO>? utxos, }) => (super.noSuchMethod( Invocation.method( @@ -1875,10 +1902,10 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future broadcastNotificationTx( + _i24.Future broadcastNotificationTx( {required Map? preparedTx}) => (super.noSuchMethod( Invocation.method( @@ -1886,62 +1913,62 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { [], {#preparedTx: preparedTx}, ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future hasConnected(String? paymentCodeString) => + _i24.Future hasConnected(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #hasConnected, [paymentCodeString], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransaction( - {required _i17.Transaction? transaction}) => + _i24.Future<_i19.PaymentCode?> unBlindedPaymentCodeFromTransaction( + {required _i18.Transaction? transaction}) => (super.noSuchMethod( Invocation.method( #unBlindedPaymentCodeFromTransaction, [], {#transaction: transaction}, ), - returnValue: _i23.Future<_i18.PaymentCode?>.value(), - ) as _i23.Future<_i18.PaymentCode?>); + returnValue: _i24.Future<_i19.PaymentCode?>.value(), + ) as _i24.Future<_i19.PaymentCode?>); @override - _i23.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( - {required _i17.Transaction? transaction}) => + _i24.Future<_i19.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( + {required _i18.Transaction? transaction}) => (super.noSuchMethod( Invocation.method( #unBlindedPaymentCodeFromTransactionBad, [], {#transaction: transaction}, ), - returnValue: _i23.Future<_i18.PaymentCode?>.value(), - ) as _i23.Future<_i18.PaymentCode?>); + returnValue: _i24.Future<_i19.PaymentCode?>.value(), + ) as _i24.Future<_i19.PaymentCode?>); @override - _i23.Future> + _i24.Future> getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( Invocation.method( #getAllPaymentCodesFromNotificationTransactions, [], ), returnValue: - _i23.Future>.value(<_i18.PaymentCode>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i19.PaymentCode>[]), + ) as _i24.Future>); @override - _i23.Future checkForNotificationTransactionsTo( + _i24.Future checkForNotificationTransactionsTo( Set? otherCodeStrings) => (super.noSuchMethod( Invocation.method( #checkForNotificationTransactionsTo, [otherCodeStrings], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future restoreAllHistory({ + _i24.Future restoreAllHistory({ required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, required Set? paymentCodeStrings, @@ -1956,12 +1983,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { #paymentCodeStrings: paymentCodeStrings, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future restoreHistoryWith({ - required _i18.PaymentCode? other, + _i24.Future restoreHistoryWith({ + required _i19.PaymentCode? other, required bool? checkSegwitAsWell, required int? maxUnusedAddressGap, required int? maxNumberOfIndexesToCheck, @@ -1977,58 +2004,58 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i17.Address> getMyNotificationAddress() => (super.noSuchMethod( + _i24.Future<_i18.Address> getMyNotificationAddress() => (super.noSuchMethod( Invocation.method( #getMyNotificationAddress, [], ), - returnValue: _i23.Future<_i17.Address>.value(_FakeAddress_15( + returnValue: _i24.Future<_i18.Address>.value(_FakeAddress_16( this, Invocation.method( #getMyNotificationAddress, [], ), )), - ) as _i23.Future<_i17.Address>); + ) as _i24.Future<_i18.Address>); @override - _i23.Future> lookupKey(String? paymentCodeString) => + _i24.Future> lookupKey(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #lookupKey, [paymentCodeString], ), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future paymentCodeStringByKey(String? key) => + _i24.Future paymentCodeStringByKey(String? key) => (super.noSuchMethod( Invocation.method( #paymentCodeStringByKey, [key], ), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future storeCode(String? paymentCodeString) => + _i24.Future storeCode(String? paymentCodeString) => (super.noSuchMethod( Invocation.method( #storeCode, [paymentCodeString], ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override void initCoinControlInterface({ required String? walletId, required String? walletName, - required _i22.Coin? coin, - required _i7.MainDB? db, - required _i23.Future Function()? getChainHeight, - required _i23.Future Function(_i12.Balance)? refreshedBalanceCallback, + required _i23.Coin? coin, + required _i8.MainDB? db, + required _i24.Future Function()? getChainHeight, + required _i24.Future Function(_i13.Balance)? refreshedBalanceCallback, }) => super.noSuchMethod( Invocation.method( @@ -2046,16 +2073,16 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future refreshBalance({bool? notify = false}) => + _i24.Future refreshBalance({bool? notify = false}) => (super.noSuchMethod( Invocation.method( #refreshBalance, [], {#notify: notify}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); } /// A class which mocks [NodeService]. @@ -2063,41 +2090,41 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { /// See the documentation for Mockito's code generation for more information. class MockNodeService extends _i1.Mock implements _i3.NodeService { @override - _i19.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( + _i20.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( Invocation.getter(#secureStorageInterface), - returnValue: _FakeSecureStorageInterface_17( + returnValue: _FakeSecureStorageInterface_18( this, Invocation.getter(#secureStorageInterface), ), - ) as _i19.SecureStorageInterface); + ) as _i20.SecureStorageInterface); @override - List<_i32.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i33.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i32.NodeModel>[], - ) as List<_i32.NodeModel>); + returnValue: <_i33.NodeModel>[], + ) as List<_i33.NodeModel>); @override - List<_i32.NodeModel> get nodes => (super.noSuchMethod( + List<_i33.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i32.NodeModel>[], - ) as List<_i32.NodeModel>); + returnValue: <_i33.NodeModel>[], + ) as List<_i33.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i23.Future updateDefaults() => (super.noSuchMethod( + _i24.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future setPrimaryNodeFor({ - required _i22.Coin? coin, - required _i32.NodeModel? node, + _i24.Future setPrimaryNodeFor({ + required _i23.Coin? coin, + required _i33.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -2110,44 +2137,44 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i32.NodeModel? getPrimaryNodeFor({required _i22.Coin? coin}) => + _i33.NodeModel? getPrimaryNodeFor({required _i23.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i32.NodeModel?); + )) as _i33.NodeModel?); @override - List<_i32.NodeModel> getNodesFor(_i22.Coin? coin) => (super.noSuchMethod( + List<_i33.NodeModel> getNodesFor(_i23.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i32.NodeModel>[], - ) as List<_i32.NodeModel>); + returnValue: <_i33.NodeModel>[], + ) as List<_i33.NodeModel>); @override - _i32.NodeModel? getNodeById({required String? id}) => + _i33.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i32.NodeModel?); + )) as _i33.NodeModel?); @override - List<_i32.NodeModel> failoverNodesFor({required _i22.Coin? coin}) => + List<_i33.NodeModel> failoverNodesFor({required _i23.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i32.NodeModel>[], - ) as List<_i32.NodeModel>); + returnValue: <_i33.NodeModel>[], + ) as List<_i33.NodeModel>); @override - _i23.Future add( - _i32.NodeModel? node, + _i24.Future add( + _i33.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -2160,11 +2187,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future delete( + _i24.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -2176,11 +2203,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future setEnabledState( + _i24.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -2194,12 +2221,12 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future edit( - _i32.NodeModel? editedNode, + _i24.Future edit( + _i33.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -2212,20 +2239,20 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future updateCommunityNodes() => (super.noSuchMethod( + _i24.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2233,7 +2260,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2276,23 +2303,23 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i20.CoinServiceAPI get wallet => (super.noSuchMethod( + _i21.CoinServiceAPI get wallet => (super.noSuchMethod( Invocation.getter(#wallet), - returnValue: _FakeCoinServiceAPI_18( + returnValue: _FakeCoinServiceAPI_19( this, Invocation.getter(#wallet), ), - ) as _i20.CoinServiceAPI); + ) as _i21.CoinServiceAPI); @override bool get hasBackgroundRefreshListener => (super.noSuchMethod( Invocation.getter(#hasBackgroundRefreshListener), returnValue: false, ) as bool); @override - _i22.Coin get coin => (super.noSuchMethod( + _i23.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i22.Coin.bitcoin, - ) as _i22.Coin); + returnValue: _i23.Coin.bitcoin, + ) as _i23.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2325,42 +2352,42 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i23.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i24.Future<_i10.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i23.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i24.Future<_i10.FeeObject>.value(_FakeFeeObject_7( this, Invocation.getter(#fees), )), - ) as _i23.Future<_i9.FeeObject>); + ) as _i24.Future<_i10.FeeObject>); @override - _i23.Future get maxFee => (super.noSuchMethod( + _i24.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future get currentReceivingAddress => (super.noSuchMethod( + _i24.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i12.Balance get balance => (super.noSuchMethod( + _i13.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), - returnValue: _FakeBalance_9( + returnValue: _FakeBalance_10( this, Invocation.getter(#balance), ), - ) as _i12.Balance); + ) as _i13.Balance); @override - _i23.Future> get transactions => (super.noSuchMethod( + _i24.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i23.Future>.value(<_i17.Transaction>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i18.Transaction>[]), + ) as _i24.Future>); @override - _i23.Future> get utxos => (super.noSuchMethod( + _i24.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i23.Future>.value(<_i17.UTXO>[]), - ) as _i23.Future>); + returnValue: _i24.Future>.value(<_i18.UTXO>[]), + ) as _i24.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2380,15 +2407,15 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: '', ) as String); @override - _i23.Future> get mnemonic => (super.noSuchMethod( + _i24.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future get mnemonicPassphrase => (super.noSuchMethod( + _i24.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), @@ -2435,24 +2462,24 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i23.Future get xpub => (super.noSuchMethod( + _i24.Future get xpub => (super.noSuchMethod( Invocation.getter(#xpub), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i24.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -2462,9 +2489,9 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - _i23.Future> prepareSend({ + _i24.Future> prepareSend({ required String? address, - required _i14.Amount? amount, + required _i15.Amount? amount, Map? args, }) => (super.noSuchMethod( @@ -2478,27 +2505,27 @@ class MockManager extends _i1.Mock implements _i6.Manager { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future confirmSend({required Map? txData}) => + _i24.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future refresh() => (super.noSuchMethod( + _i24.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2508,35 +2535,35 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: false, ) as bool); @override - _i23.Future testNetworkConnection() => (super.noSuchMethod( + _i24.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future initializeNew( + _i24.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future initializeExisting() => (super.noSuchMethod( + _i24.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future recoverFromMnemonic({ + _i24.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -2555,20 +2582,20 @@ class MockManager extends _i1.Mock implements _i6.Manager { #height: height, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future exitCurrentWallet() => (super.noSuchMethod( + _i24.Future exitCurrentWallet() => (super.noSuchMethod( Invocation.method( #exitCurrentWallet, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future fullRescan( + _i24.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2580,12 +2607,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { maxNumberOfIndexesToCheck, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i14.Amount> estimateFeeFor( - _i14.Amount? amount, + _i24.Future<_i15.Amount> estimateFeeFor( + _i15.Amount? amount, int? feeRate, ) => (super.noSuchMethod( @@ -2596,7 +2623,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { feeRate, ], ), - returnValue: _i23.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i24.Future<_i15.Amount>.value(_FakeAmount_13( this, Invocation.method( #estimateFeeFor, @@ -2606,26 +2633,26 @@ class MockManager extends _i1.Mock implements _i6.Manager { ], ), )), - ) as _i23.Future<_i14.Amount>); + ) as _i24.Future<_i15.Amount>); @override - _i23.Future generateNewAddress() => (super.noSuchMethod( + _i24.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future resetRescanOnOpen() => (super.noSuchMethod( + _i24.Future resetRescanOnOpen() => (super.noSuchMethod( Invocation.method( #resetRescanOnOpen, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2633,7 +2660,7 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2653,7 +2680,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 _i20.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -2664,10 +2691,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i22.Coin get coin => (super.noSuchMethod( + _i23.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i22.Coin.bitcoin, - ) as _i22.Coin); + returnValue: _i23.Coin.bitcoin, + ) as _i23.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2700,42 +2727,42 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i23.Future<_i9.FeeObject> get fees => (super.noSuchMethod( + _i24.Future<_i10.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i23.Future<_i9.FeeObject>.value(_FakeFeeObject_6( + returnValue: _i24.Future<_i10.FeeObject>.value(_FakeFeeObject_7( this, Invocation.getter(#fees), )), - ) as _i23.Future<_i9.FeeObject>); + ) as _i24.Future<_i10.FeeObject>); @override - _i23.Future get maxFee => (super.noSuchMethod( + _i24.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i24.Future.value(0), + ) as _i24.Future); @override - _i23.Future get currentReceivingAddress => (super.noSuchMethod( + _i24.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i12.Balance get balance => (super.noSuchMethod( + _i13.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), - returnValue: _FakeBalance_9( + returnValue: _FakeBalance_10( this, Invocation.getter(#balance), ), - ) as _i12.Balance); + ) as _i13.Balance); @override - _i23.Future> get transactions => (super.noSuchMethod( + _i24.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i23.Future>.value(<_i17.Transaction>[]), - ) as _i23.Future>); + _i24.Future>.value(<_i18.Transaction>[]), + ) as _i24.Future>); @override - _i23.Future> get utxos => (super.noSuchMethod( + _i24.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i23.Future>.value(<_i17.UTXO>[]), - ) as _i23.Future>); + returnValue: _i24.Future>.value(<_i18.UTXO>[]), + ) as _i24.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2755,20 +2782,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValue: '', ) as String); @override - _i23.Future> get mnemonic => (super.noSuchMethod( + _i24.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i24.Future>.value([]), + ) as _i24.Future>); @override - _i23.Future get mnemonicString => (super.noSuchMethod( + _i24.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future get mnemonicPassphrase => (super.noSuchMethod( + _i24.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + ) as _i24.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2785,9 +2812,9 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValue: 0, ) as int); @override - _i23.Future> prepareSend({ + _i24.Future> prepareSend({ required String? address, - required _i14.Amount? amount, + required _i15.Amount? amount, Map? args, }) => (super.noSuchMethod( @@ -2801,36 +2828,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i24.Future>.value({}), + ) as _i24.Future>); @override - _i23.Future confirmSend({required Map? txData}) => + _i24.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i24.Future.value(''), + ) as _i24.Future); @override - _i23.Future refresh() => (super.noSuchMethod( + _i24.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i24.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2840,15 +2867,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValue: false, ) as bool); @override - _i23.Future testNetworkConnection() => (super.noSuchMethod( + _i24.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future recoverFromMnemonic({ + _i24.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -2867,40 +2894,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { #height: height, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future initializeNew( + _i24.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future initializeExisting() => (super.noSuchMethod( + _i24.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future exit() => (super.noSuchMethod( + _i24.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future fullRescan( + _i24.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2912,12 +2939,12 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); @override - _i23.Future<_i14.Amount> estimateFeeFor( - _i14.Amount? amount, + _i24.Future<_i15.Amount> estimateFeeFor( + _i15.Amount? amount, int? feeRate, ) => (super.noSuchMethod( @@ -2928,7 +2955,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { feeRate, ], ), - returnValue: _i23.Future<_i14.Amount>.value(_FakeAmount_12( + returnValue: _i24.Future<_i15.Amount>.value(_FakeAmount_13( this, Invocation.method( #estimateFeeFor, @@ -2938,23 +2965,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { ], ), )), - ) as _i23.Future<_i14.Amount>); + ) as _i24.Future<_i15.Amount>); @override - _i23.Future generateNewAddress() => (super.noSuchMethod( + _i24.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i24.Future.value(false), + ) as _i24.Future); @override - _i23.Future updateSentCachedTxData(Map? txData) => + _i24.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i24.Future.value(), + returnValueForMissingStub: _i24.Future.value(), + ) as _i24.Future); }