From 91f71ce760ff6543677a9b98a04d1712c15c7233 Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 15 May 2024 15:27:30 -0600 Subject: [PATCH] build runner mocks updated --- test/cached_electrumx_test.mocks.dart | 20 +- .../pages/send_view/send_view_test.mocks.dart | 110 ++++---- .../exchange/exchange_view_test.mocks.dart | 16 +- .../lockscreen_view_screen_test.mocks.dart | 17 +- .../create_pin_view_screen_test.mocks.dart | 17 +- ...restore_wallet_view_screen_test.mocks.dart | 17 +- ...dd_custom_node_view_screen_test.mocks.dart | 17 +- .../node_details_view_screen_test.mocks.dart | 17 +- ...twork_settings_view_screen_test.mocks.dart | 17 +- ...allet_settings_view_screen_test.mocks.dart | 29 +- .../bitcoin/bitcoin_wallet_test.mocks.dart | 31 +-- .../bitcoincash_wallet_test.mocks.dart | 31 +-- .../dogecoin/dogecoin_wallet_test.mocks.dart | 31 +-- .../namecoin/namecoin_wallet_test.mocks.dart | 31 +-- .../particl/particl_wallet_test.mocks.dart | 31 +-- .../managed_favorite_test.mocks.dart | 80 +++--- test/widget_tests/node_card_test.mocks.dart | 17 +- .../node_options_sheet_test.mocks.dart | 88 ++++--- .../transaction_card_test.mocks.dart | 248 +++++++++--------- ...et_info_row_balance_future_test.mocks.dart | 21 +- .../wallet_info_row_test.mocks.dart | 21 +- 21 files changed, 473 insertions(+), 434 deletions(-) diff --git a/test/cached_electrumx_test.mocks.dart b/test/cached_electrumx_test.mocks.dart index cb1317096..b00b89db4 100644 --- a/test/cached_electrumx_test.mocks.dart +++ b/test/cached_electrumx_test.mocks.dart @@ -4,14 +4,13 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i6; -import 'dart:ui' as _i12; +import 'dart:ui' as _i11; import 'package:decimal/decimal.dart' as _i3; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i5; import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i10; import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i9; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i11; import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i8; import 'package:stackwallet/utilities/prefs.dart' as _i7; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' @@ -933,7 +932,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs { returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); @override - _i10.AmountUnit amountUnit(_i11.Coin? coin) => (super.noSuchMethod( + _i10.AmountUnit amountUnit(_i2.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], @@ -942,7 +941,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs { ) as _i10.AmountUnit); @override void updateAmountUnit({ - required _i11.Coin? coin, + required _i2.CryptoCurrency? coin, required _i10.AmountUnit? amountUnit, }) => super.noSuchMethod( @@ -957,7 +956,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i11.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i2.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -966,7 +965,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs { ) as int); @override void updateMaxDecimals({ - required _i11.Coin? coin, + required _i2.CryptoCurrency? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -981,7 +980,8 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs { returnValueForMissingStub: null, ); @override - _i4.FusionInfo getFusionServerInfo(_i11.Coin? coin) => (super.noSuchMethod( + _i4.FusionInfo getFusionServerInfo(_i2.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getFusionServerInfo, [coin], @@ -996,7 +996,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs { ) as _i4.FusionInfo); @override void setFusionServerInfo( - _i11.Coin? coin, + _i2.CryptoCurrency? coin, _i4.FusionInfo? fusionServerInfo, ) => super.noSuchMethod( @@ -1010,7 +1010,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i12.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i11.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1018,7 +1018,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i11.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], diff --git a/test/pages/send_view/send_view_test.mocks.dart b/test/pages/send_view/send_view_test.mocks.dart index fba574b15..bf71bbcf2 100644 --- a/test/pages/send_view/send_view_test.mocks.dart +++ b/test/pages/send_view/send_view_test.mocks.dart @@ -4,22 +4,21 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i10; -import 'dart:typed_data' as _i19; -import 'dart:ui' as _i15; +import 'dart:typed_data' as _i18; +import 'dart:ui' as _i14; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i18; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i17; import 'package:stackwallet/models/node_model.dart' as _i13; import 'package:stackwallet/networking/http.dart' as _i7; -import 'package:stackwallet/services/locale_service.dart' as _i16; +import 'package:stackwallet/services/locale_service.dart' as _i15; import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/wallets.dart' as _i9; -import 'package:stackwallet/themes/theme_service.dart' as _i17; -import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i22; -import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i21; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i14; -import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i20; +import 'package:stackwallet/themes/theme_service.dart' as _i16; +import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i21; +import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i20; +import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i19; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i6; import 'package:stackwallet/utilities/prefs.dart' as _i12; @@ -265,7 +264,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i10.Future); @override _i10.Future setPrimaryNodeFor({ - required _i14.Coin? coin, + required _i4.CryptoCurrency? coin, required _i13.NodeModel? node, bool? shouldNotifyListeners = false, }) => @@ -283,14 +282,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - _i13.NodeModel? getPrimaryNodeFor({required _i14.Coin? coin}) => + _i13.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], - {#coin: coin}, + {#currency: currency}, )) as _i13.NodeModel?); @override - List<_i13.NodeModel> getNodesFor(_i14.Coin? coin) => (super.noSuchMethod( + List<_i13.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], @@ -305,12 +305,13 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { {#id: id}, )) as _i13.NodeModel?); @override - List<_i13.NodeModel> failoverNodesFor({required _i14.Coin? coin}) => + List<_i13.NodeModel> failoverNodesFor( + {required _i4.CryptoCurrency? currency}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], - {#coin: coin}, + {#currency: currency}, ), returnValue: <_i13.NodeModel>[], ) as List<_i13.NodeModel>); @@ -394,7 +395,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -402,7 +403,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -430,7 +431,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i16.LocaleService { +class MockLocaleService extends _i1.Mock implements _i15.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -456,7 +457,7 @@ class MockLocaleService extends _i1.Mock implements _i16.LocaleService { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -464,7 +465,7 @@ class MockLocaleService extends _i1.Mock implements _i16.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -492,7 +493,7 @@ class MockLocaleService extends _i1.Mock implements _i16.LocaleService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i17.ThemeService { +class MockThemeService extends _i1.Mock implements _i16.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @@ -522,10 +523,10 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { ), ) as _i3.MainDB); @override - List<_i18.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i17.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i18.StackTheme>[], - ) as List<_i18.StackTheme>); + returnValue: <_i17.StackTheme>[], + ) as List<_i17.StackTheme>); @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -535,7 +536,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { returnValueForMissingStub: null, ); @override - _i10.Future install({required _i19.Uint8List? themeArchiveData}) => + _i10.Future install({required _i18.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, @@ -575,33 +576,33 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { returnValue: _i10.Future.value(false), ) as _i10.Future); @override - _i10.Future> fetchThemes() => + _i10.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i10.Future>.value( - <_i17.StackThemeMetaData>[]), - ) as _i10.Future>); + returnValue: _i10.Future>.value( + <_i16.StackThemeMetaData>[]), + ) as _i10.Future>); @override - _i10.Future<_i19.Uint8List> fetchTheme( - {required _i17.StackThemeMetaData? themeMetaData}) => + _i10.Future<_i18.Uint8List> fetchTheme( + {required _i16.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i10.Future<_i19.Uint8List>.value(_i19.Uint8List(0)), - ) as _i10.Future<_i19.Uint8List>); + returnValue: _i10.Future<_i18.Uint8List>.value(_i18.Uint8List(0)), + ) as _i10.Future<_i18.Uint8List>); @override - _i18.StackTheme? getTheme({required String? themeId}) => + _i17.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i18.StackTheme?); + )) as _i17.StackTheme?); } /// A class which mocks [Prefs]. @@ -663,12 +664,12 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - _i20.SyncingType get syncType => (super.noSuchMethod( + _i19.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), - returnValue: _i20.SyncingType.currentWalletOnly, - ) as _i20.SyncingType); + returnValue: _i19.SyncingType.currentWalletOnly, + ) as _i19.SyncingType); @override - set syncType(_i20.SyncingType? syncType) => super.noSuchMethod( + set syncType(_i19.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( #syncType, syncType, @@ -827,12 +828,12 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - _i21.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( + _i20.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), - returnValue: _i21.BackupFrequencyType.everyTenMinutes, - ) as _i21.BackupFrequencyType); + returnValue: _i20.BackupFrequencyType.everyTenMinutes, + ) as _i20.BackupFrequencyType); @override - set backupFrequencyType(_i21.BackupFrequencyType? backupFrequencyType) => + set backupFrequencyType(_i20.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( Invocation.setter( #backupFrequencyType, @@ -1027,17 +1028,17 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - _i22.AmountUnit amountUnit(_i14.Coin? coin) => (super.noSuchMethod( + _i21.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], ), - returnValue: _i22.AmountUnit.normal, - ) as _i22.AmountUnit); + returnValue: _i21.AmountUnit.normal, + ) as _i21.AmountUnit); @override void updateAmountUnit({ - required _i14.Coin? coin, - required _i22.AmountUnit? amountUnit, + required _i4.CryptoCurrency? coin, + required _i21.AmountUnit? amountUnit, }) => super.noSuchMethod( Invocation.method( @@ -1051,7 +1052,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i14.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -1060,7 +1061,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ) as int); @override void updateMaxDecimals({ - required _i14.Coin? coin, + required _i4.CryptoCurrency? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -1075,7 +1076,8 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - _i8.FusionInfo getFusionServerInfo(_i14.Coin? coin) => (super.noSuchMethod( + _i8.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getFusionServerInfo, [coin], @@ -1090,7 +1092,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ) as _i8.FusionInfo); @override void setFusionServerInfo( - _i14.Coin? coin, + _i4.CryptoCurrency? coin, _i8.FusionInfo? fusionServerInfo, ) => super.noSuchMethod( @@ -1104,7 +1106,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1112,7 +1114,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], diff --git a/test/screen_tests/exchange/exchange_view_test.mocks.dart b/test/screen_tests/exchange/exchange_view_test.mocks.dart index 1d97e1d48..2691281c4 100644 --- a/test/screen_tests/exchange/exchange_view_test.mocks.dart +++ b/test/screen_tests/exchange/exchange_view_test.mocks.dart @@ -32,9 +32,10 @@ import 'package:stackwallet/services/trade_notes_service.dart' as _i14; import 'package:stackwallet/services/trade_service.dart' as _i12; import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i9; import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i7; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i10; import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i6; import 'package:stackwallet/utilities/prefs.dart' as _i5; +import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' + as _i10; import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' as _i2; @@ -503,7 +504,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); @override - _i9.AmountUnit amountUnit(_i10.Coin? coin) => (super.noSuchMethod( + _i9.AmountUnit amountUnit(_i10.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], @@ -512,7 +513,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ) as _i9.AmountUnit); @override void updateAmountUnit({ - required _i10.Coin? coin, + required _i10.CryptoCurrency? coin, required _i9.AmountUnit? amountUnit, }) => super.noSuchMethod( @@ -527,7 +528,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i10.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i10.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -536,7 +537,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ) as int); @override void updateMaxDecimals({ - required _i10.Coin? coin, + required _i10.CryptoCurrency? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -551,7 +552,8 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { returnValueForMissingStub: null, ); @override - _i2.FusionInfo getFusionServerInfo(_i10.Coin? coin) => (super.noSuchMethod( + _i2.FusionInfo getFusionServerInfo(_i10.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getFusionServerInfo, [coin], @@ -566,7 +568,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { ) as _i2.FusionInfo); @override void setFusionServerInfo( - _i10.Coin? coin, + _i10.CryptoCurrency? coin, _i2.FusionInfo? fusionServerInfo, ) => super.noSuchMethod( diff --git a/test/screen_tests/lockscreen_view_screen_test.mocks.dart b/test/screen_tests/lockscreen_view_screen_test.mocks.dart index 0a4b9c09d..a76f5c498 100644 --- a/test/screen_tests/lockscreen_view_screen_test.mocks.dart +++ b/test/screen_tests/lockscreen_view_screen_test.mocks.dart @@ -10,9 +10,10 @@ import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/models/node_model.dart' as _i7; import 'package:stackwallet/services/node_service.dart' as _i6; import 'package:stackwallet/services/wallets_service.dart' as _i3; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i8; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i2; +import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' + as _i8; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -124,7 +125,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { ) as _i4.Future); @override _i4.Future setPrimaryNodeFor({ - required _i8.Coin? coin, + required _i8.CryptoCurrency? coin, required _i7.NodeModel? node, bool? shouldNotifyListeners = false, }) => @@ -142,14 +143,15 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override - _i7.NodeModel? getPrimaryNodeFor({required _i8.Coin? coin}) => + _i7.NodeModel? getPrimaryNodeFor({required _i8.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], - {#coin: coin}, + {#currency: currency}, )) as _i7.NodeModel?); @override - List<_i7.NodeModel> getNodesFor(_i8.Coin? coin) => (super.noSuchMethod( + List<_i7.NodeModel> getNodesFor(_i8.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], @@ -164,12 +166,13 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { {#id: id}, )) as _i7.NodeModel?); @override - List<_i7.NodeModel> failoverNodesFor({required _i8.Coin? coin}) => + List<_i7.NodeModel> failoverNodesFor( + {required _i8.CryptoCurrency? currency}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], - {#coin: coin}, + {#currency: currency}, ), returnValue: <_i7.NodeModel>[], ) as List<_i7.NodeModel>); diff --git a/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart b/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart index 877fab27b..3f7fd0767 100644 --- a/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart @@ -10,9 +10,10 @@ import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/models/node_model.dart' as _i7; import 'package:stackwallet/services/node_service.dart' as _i6; import 'package:stackwallet/services/wallets_service.dart' as _i3; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i8; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i2; +import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' + as _i8; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -124,7 +125,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { ) as _i4.Future); @override _i4.Future setPrimaryNodeFor({ - required _i8.Coin? coin, + required _i8.CryptoCurrency? coin, required _i7.NodeModel? node, bool? shouldNotifyListeners = false, }) => @@ -142,14 +143,15 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override - _i7.NodeModel? getPrimaryNodeFor({required _i8.Coin? coin}) => + _i7.NodeModel? getPrimaryNodeFor({required _i8.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], - {#coin: coin}, + {#currency: currency}, )) as _i7.NodeModel?); @override - List<_i7.NodeModel> getNodesFor(_i8.Coin? coin) => (super.noSuchMethod( + List<_i7.NodeModel> getNodesFor(_i8.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], @@ -164,12 +166,13 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService { {#id: id}, )) as _i7.NodeModel?); @override - List<_i7.NodeModel> failoverNodesFor({required _i8.Coin? coin}) => + List<_i7.NodeModel> failoverNodesFor( + {required _i8.CryptoCurrency? currency}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], - {#coin: coin}, + {#currency: currency}, ), returnValue: <_i7.NodeModel>[], ) as List<_i7.NodeModel>); diff --git a/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart b/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart index b9acc5cfa..58c717a5b 100644 --- a/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart @@ -12,9 +12,10 @@ import 'package:stackwallet/models/node_model.dart' as _i9; import 'package:stackwallet/services/node_service.dart' as _i8; import 'package:stackwallet/services/wallets_service.dart' as _i6; import 'package:stackwallet/utilities/barcode_scanner_interface.dart' as _i4; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i10; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i3; +import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' + as _i10; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -165,7 +166,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { ) as _i5.Future); @override _i5.Future setPrimaryNodeFor({ - required _i10.Coin? coin, + required _i10.CryptoCurrency? coin, required _i9.NodeModel? node, bool? shouldNotifyListeners = false, }) => @@ -183,14 +184,15 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override - _i9.NodeModel? getPrimaryNodeFor({required _i10.Coin? coin}) => + _i9.NodeModel? getPrimaryNodeFor({required _i10.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], - {#coin: coin}, + {#currency: currency}, )) as _i9.NodeModel?); @override - List<_i9.NodeModel> getNodesFor(_i10.Coin? coin) => (super.noSuchMethod( + List<_i9.NodeModel> getNodesFor(_i10.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], @@ -205,12 +207,13 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService { {#id: id}, )) as _i9.NodeModel?); @override - List<_i9.NodeModel> failoverNodesFor({required _i10.Coin? coin}) => + List<_i9.NodeModel> failoverNodesFor( + {required _i10.CryptoCurrency? currency}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], - {#coin: coin}, + {#currency: currency}, ), returnValue: <_i9.NodeModel>[], ) as List<_i9.NodeModel>); diff --git a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart index 0a7c9e214..ab3c043d3 100644 --- a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart @@ -9,9 +9,10 @@ import 'dart:ui' as _i7; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/models/node_model.dart' as _i4; import 'package:stackwallet/services/node_service.dart' as _i3; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i2; +import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' + as _i6; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -73,7 +74,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ) as _i5.Future); @override _i5.Future setPrimaryNodeFor({ - required _i6.Coin? coin, + required _i6.CryptoCurrency? coin, required _i4.NodeModel? node, bool? shouldNotifyListeners = false, }) => @@ -91,14 +92,15 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override - _i4.NodeModel? getPrimaryNodeFor({required _i6.Coin? coin}) => + _i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], - {#coin: coin}, + {#currency: currency}, )) as _i4.NodeModel?); @override - List<_i4.NodeModel> getNodesFor(_i6.Coin? coin) => (super.noSuchMethod( + List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], @@ -113,12 +115,13 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { {#id: id}, )) as _i4.NodeModel?); @override - List<_i4.NodeModel> failoverNodesFor({required _i6.Coin? coin}) => + List<_i4.NodeModel> failoverNodesFor( + {required _i6.CryptoCurrency? currency}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], - {#coin: coin}, + {#currency: currency}, ), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); diff --git a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart index 37ee08673..f203b112b 100644 --- a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart @@ -9,9 +9,10 @@ import 'dart:ui' as _i7; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/models/node_model.dart' as _i4; import 'package:stackwallet/services/node_service.dart' as _i3; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i2; +import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' + as _i6; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -73,7 +74,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ) as _i5.Future); @override _i5.Future setPrimaryNodeFor({ - required _i6.Coin? coin, + required _i6.CryptoCurrency? coin, required _i4.NodeModel? node, bool? shouldNotifyListeners = false, }) => @@ -91,14 +92,15 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override - _i4.NodeModel? getPrimaryNodeFor({required _i6.Coin? coin}) => + _i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], - {#coin: coin}, + {#currency: currency}, )) as _i4.NodeModel?); @override - List<_i4.NodeModel> getNodesFor(_i6.Coin? coin) => (super.noSuchMethod( + List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], @@ -113,12 +115,13 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { {#id: id}, )) as _i4.NodeModel?); @override - List<_i4.NodeModel> failoverNodesFor({required _i6.Coin? coin}) => + List<_i4.NodeModel> failoverNodesFor( + {required _i6.CryptoCurrency? currency}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], - {#coin: coin}, + {#currency: currency}, ), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); diff --git a/test/screen_tests/settings_view/settings_subviews/network_settings_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/network_settings_view_screen_test.mocks.dart index d364e457c..217f88d9f 100644 --- a/test/screen_tests/settings_view/settings_subviews/network_settings_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/network_settings_view_screen_test.mocks.dart @@ -9,9 +9,10 @@ import 'dart:ui' as _i7; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/models/node_model.dart' as _i4; import 'package:stackwallet/services/node_service.dart' as _i3; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i2; +import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' + as _i6; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -73,7 +74,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ) as _i5.Future); @override _i5.Future setPrimaryNodeFor({ - required _i6.Coin? coin, + required _i6.CryptoCurrency? coin, required _i4.NodeModel? node, bool? shouldNotifyListeners = false, }) => @@ -91,14 +92,15 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override - _i4.NodeModel? getPrimaryNodeFor({required _i6.Coin? coin}) => + _i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], - {#coin: coin}, + {#currency: currency}, )) as _i4.NodeModel?); @override - List<_i4.NodeModel> getNodesFor(_i6.Coin? coin) => (super.noSuchMethod( + List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], @@ -113,12 +115,13 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { {#id: id}, )) as _i4.NodeModel?); @override - List<_i4.NodeModel> failoverNodesFor({required _i6.Coin? coin}) => + List<_i4.NodeModel> failoverNodesFor( + {required _i6.CryptoCurrency? currency}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], - {#coin: coin}, + {#currency: currency}, ), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart index 5bc43e816..63c207931 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart @@ -13,7 +13,8 @@ import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i3; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i2; import 'package:stackwallet/services/wallets_service.dart' as _i9; import 'package:stackwallet/utilities/biometrics.dart' as _i8; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i5; +import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' + as _i5; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -58,7 +59,7 @@ class MockCachedElectrumXClient extends _i1.Mock _i4.Future> getAnonymitySet({ required String? groupId, String? blockhash = r'', - required _i5.Coin? coin, + required _i5.CryptoCurrency? cryptoCurrency, }) => (super.noSuchMethod( Invocation.method( @@ -67,7 +68,7 @@ class MockCachedElectrumXClient extends _i1.Mock { #groupId: groupId, #blockhash: blockhash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, }, ), returnValue: @@ -77,7 +78,7 @@ class MockCachedElectrumXClient extends _i1.Mock _i4.Future> getSparkAnonymitySet({ required String? groupId, String? blockhash = r'', - required _i5.Coin? coin, + required _i5.CryptoCurrency? cryptoCurrency, required bool? useOnlyCacheIfNotEmpty, }) => (super.noSuchMethod( @@ -87,7 +88,7 @@ class MockCachedElectrumXClient extends _i1.Mock { #groupId: groupId, #blockhash: blockhash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, }, ), @@ -113,7 +114,7 @@ class MockCachedElectrumXClient extends _i1.Mock @override _i4.Future> getTransaction({ required String? txHash, - required _i5.Coin? coin, + required _i5.CryptoCurrency? cryptoCurrency, bool? verbose = true, }) => (super.noSuchMethod( @@ -122,7 +123,7 @@ class MockCachedElectrumXClient extends _i1.Mock [], { #txHash: txHash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, #verbose: verbose, }, ), @@ -131,7 +132,7 @@ class MockCachedElectrumXClient extends _i1.Mock ) as _i4.Future>); @override _i4.Future> getUsedCoinSerials({ - required _i5.Coin? coin, + required _i5.CryptoCurrency? cryptoCurrency, int? startNumber = 0, }) => (super.noSuchMethod( @@ -139,29 +140,31 @@ class MockCachedElectrumXClient extends _i1.Mock #getUsedCoinSerials, [], { - #coin: coin, + #cryptoCurrency: cryptoCurrency, #startNumber: startNumber, }, ), returnValue: _i4.Future>.value([]), ) as _i4.Future>); @override - _i4.Future> getSparkUsedCoinsTags({required _i5.Coin? coin}) => + _i4.Future> getSparkUsedCoinsTags( + {required _i5.CryptoCurrency? cryptoCurrency}) => (super.noSuchMethod( Invocation.method( #getSparkUsedCoinsTags, [], - {#coin: coin}, + {#cryptoCurrency: cryptoCurrency}, ), returnValue: _i4.Future>.value({}), ) as _i4.Future>); @override - _i4.Future clearSharedTransactionCache({required _i5.Coin? coin}) => + _i4.Future clearSharedTransactionCache( + {required _i5.CryptoCurrency? cryptoCurrency}) => (super.noSuchMethod( Invocation.method( #clearSharedTransactionCache, [], - {#coin: coin}, + {#cryptoCurrency: cryptoCurrency}, ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), diff --git a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart index 999e3f135..efcb9f626 100644 --- a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart +++ b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart @@ -10,8 +10,7 @@ import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4; import 'package:stackwallet/services/transaction_notification_tracker.dart' - as _i8; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7; + as _i7; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i2; @@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock _i5.Future> getAnonymitySet({ required String? groupId, String? blockhash = r'', - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, }) => (super.noSuchMethod( Invocation.method( @@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock { #groupId: groupId, #blockhash: blockhash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, }, ), returnValue: @@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock _i5.Future> getSparkAnonymitySet({ required String? groupId, String? blockhash = r'', - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, required bool? useOnlyCacheIfNotEmpty, }) => (super.noSuchMethod( @@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock { #groupId: groupId, #blockhash: blockhash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, }, ), @@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock @override _i5.Future> getTransaction({ required String? txHash, - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, bool? verbose = true, }) => (super.noSuchMethod( @@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock [], { #txHash: txHash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, #verbose: verbose, }, ), @@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock ) as _i5.Future>); @override _i5.Future> getUsedCoinSerials({ - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, int? startNumber = 0, }) => (super.noSuchMethod( @@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock #getUsedCoinSerials, [], { - #coin: coin, + #cryptoCurrency: cryptoCurrency, #startNumber: startNumber, }, ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); @override - _i5.Future> getSparkUsedCoinsTags({required _i7.Coin? coin}) => + _i5.Future> getSparkUsedCoinsTags( + {required _i2.CryptoCurrency? cryptoCurrency}) => (super.noSuchMethod( Invocation.method( #getSparkUsedCoinsTags, [], - {#coin: coin}, + {#cryptoCurrency: cryptoCurrency}, ), returnValue: _i5.Future>.value({}), ) as _i5.Future>); @override - _i5.Future clearSharedTransactionCache({required _i7.Coin? coin}) => + _i5.Future clearSharedTransactionCache( + {required _i2.CryptoCurrency? cryptoCurrency}) => (super.noSuchMethod( Invocation.method( #clearSharedTransactionCache, [], - {#coin: coin}, + {#cryptoCurrency: cryptoCurrency}, ), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), @@ -642,7 +643,7 @@ class MockCachedElectrumXClient extends _i1.Mock /// /// See the documentation for Mockito's code generation for more information. class MockTransactionNotificationTracker extends _i1.Mock - implements _i8.TransactionNotificationTracker { + implements _i7.TransactionNotificationTracker { MockTransactionNotificationTracker() { _i1.throwOnMissingStub(this); } diff --git a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart index 9886b150a..7cfef5ab4 100644 --- a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart +++ b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart @@ -10,8 +10,7 @@ import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4; import 'package:stackwallet/services/transaction_notification_tracker.dart' - as _i8; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7; + as _i7; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i2; @@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock _i5.Future> getAnonymitySet({ required String? groupId, String? blockhash = r'', - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, }) => (super.noSuchMethod( Invocation.method( @@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock { #groupId: groupId, #blockhash: blockhash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, }, ), returnValue: @@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock _i5.Future> getSparkAnonymitySet({ required String? groupId, String? blockhash = r'', - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, required bool? useOnlyCacheIfNotEmpty, }) => (super.noSuchMethod( @@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock { #groupId: groupId, #blockhash: blockhash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, }, ), @@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock @override _i5.Future> getTransaction({ required String? txHash, - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, bool? verbose = true, }) => (super.noSuchMethod( @@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock [], { #txHash: txHash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, #verbose: verbose, }, ), @@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock ) as _i5.Future>); @override _i5.Future> getUsedCoinSerials({ - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, int? startNumber = 0, }) => (super.noSuchMethod( @@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock #getUsedCoinSerials, [], { - #coin: coin, + #cryptoCurrency: cryptoCurrency, #startNumber: startNumber, }, ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); @override - _i5.Future> getSparkUsedCoinsTags({required _i7.Coin? coin}) => + _i5.Future> getSparkUsedCoinsTags( + {required _i2.CryptoCurrency? cryptoCurrency}) => (super.noSuchMethod( Invocation.method( #getSparkUsedCoinsTags, [], - {#coin: coin}, + {#cryptoCurrency: cryptoCurrency}, ), returnValue: _i5.Future>.value({}), ) as _i5.Future>); @override - _i5.Future clearSharedTransactionCache({required _i7.Coin? coin}) => + _i5.Future clearSharedTransactionCache( + {required _i2.CryptoCurrency? cryptoCurrency}) => (super.noSuchMethod( Invocation.method( #clearSharedTransactionCache, [], - {#coin: coin}, + {#cryptoCurrency: cryptoCurrency}, ), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), @@ -642,7 +643,7 @@ class MockCachedElectrumXClient extends _i1.Mock /// /// See the documentation for Mockito's code generation for more information. class MockTransactionNotificationTracker extends _i1.Mock - implements _i8.TransactionNotificationTracker { + implements _i7.TransactionNotificationTracker { MockTransactionNotificationTracker() { _i1.throwOnMissingStub(this); } diff --git a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart index f9cc4af74..eb9afea89 100644 --- a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart +++ b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart @@ -10,8 +10,7 @@ import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4; import 'package:stackwallet/services/transaction_notification_tracker.dart' - as _i8; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7; + as _i7; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i2; @@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock _i5.Future> getAnonymitySet({ required String? groupId, String? blockhash = r'', - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, }) => (super.noSuchMethod( Invocation.method( @@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock { #groupId: groupId, #blockhash: blockhash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, }, ), returnValue: @@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock _i5.Future> getSparkAnonymitySet({ required String? groupId, String? blockhash = r'', - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, required bool? useOnlyCacheIfNotEmpty, }) => (super.noSuchMethod( @@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock { #groupId: groupId, #blockhash: blockhash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, }, ), @@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock @override _i5.Future> getTransaction({ required String? txHash, - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, bool? verbose = true, }) => (super.noSuchMethod( @@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock [], { #txHash: txHash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, #verbose: verbose, }, ), @@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock ) as _i5.Future>); @override _i5.Future> getUsedCoinSerials({ - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, int? startNumber = 0, }) => (super.noSuchMethod( @@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock #getUsedCoinSerials, [], { - #coin: coin, + #cryptoCurrency: cryptoCurrency, #startNumber: startNumber, }, ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); @override - _i5.Future> getSparkUsedCoinsTags({required _i7.Coin? coin}) => + _i5.Future> getSparkUsedCoinsTags( + {required _i2.CryptoCurrency? cryptoCurrency}) => (super.noSuchMethod( Invocation.method( #getSparkUsedCoinsTags, [], - {#coin: coin}, + {#cryptoCurrency: cryptoCurrency}, ), returnValue: _i5.Future>.value({}), ) as _i5.Future>); @override - _i5.Future clearSharedTransactionCache({required _i7.Coin? coin}) => + _i5.Future clearSharedTransactionCache( + {required _i2.CryptoCurrency? cryptoCurrency}) => (super.noSuchMethod( Invocation.method( #clearSharedTransactionCache, [], - {#coin: coin}, + {#cryptoCurrency: cryptoCurrency}, ), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), @@ -642,7 +643,7 @@ class MockCachedElectrumXClient extends _i1.Mock /// /// See the documentation for Mockito's code generation for more information. class MockTransactionNotificationTracker extends _i1.Mock - implements _i8.TransactionNotificationTracker { + implements _i7.TransactionNotificationTracker { MockTransactionNotificationTracker() { _i1.throwOnMissingStub(this); } diff --git a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart index c5ed61ed5..a8a5fb3c2 100644 --- a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart +++ b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart @@ -10,8 +10,7 @@ import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4; import 'package:stackwallet/services/transaction_notification_tracker.dart' - as _i8; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7; + as _i7; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i2; @@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock _i5.Future> getAnonymitySet({ required String? groupId, String? blockhash = r'', - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, }) => (super.noSuchMethod( Invocation.method( @@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock { #groupId: groupId, #blockhash: blockhash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, }, ), returnValue: @@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock _i5.Future> getSparkAnonymitySet({ required String? groupId, String? blockhash = r'', - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, required bool? useOnlyCacheIfNotEmpty, }) => (super.noSuchMethod( @@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock { #groupId: groupId, #blockhash: blockhash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, }, ), @@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock @override _i5.Future> getTransaction({ required String? txHash, - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, bool? verbose = true, }) => (super.noSuchMethod( @@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock [], { #txHash: txHash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, #verbose: verbose, }, ), @@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock ) as _i5.Future>); @override _i5.Future> getUsedCoinSerials({ - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, int? startNumber = 0, }) => (super.noSuchMethod( @@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock #getUsedCoinSerials, [], { - #coin: coin, + #cryptoCurrency: cryptoCurrency, #startNumber: startNumber, }, ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); @override - _i5.Future> getSparkUsedCoinsTags({required _i7.Coin? coin}) => + _i5.Future> getSparkUsedCoinsTags( + {required _i2.CryptoCurrency? cryptoCurrency}) => (super.noSuchMethod( Invocation.method( #getSparkUsedCoinsTags, [], - {#coin: coin}, + {#cryptoCurrency: cryptoCurrency}, ), returnValue: _i5.Future>.value({}), ) as _i5.Future>); @override - _i5.Future clearSharedTransactionCache({required _i7.Coin? coin}) => + _i5.Future clearSharedTransactionCache( + {required _i2.CryptoCurrency? cryptoCurrency}) => (super.noSuchMethod( Invocation.method( #clearSharedTransactionCache, [], - {#coin: coin}, + {#cryptoCurrency: cryptoCurrency}, ), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), @@ -642,7 +643,7 @@ class MockCachedElectrumXClient extends _i1.Mock /// /// See the documentation for Mockito's code generation for more information. class MockTransactionNotificationTracker extends _i1.Mock - implements _i8.TransactionNotificationTracker { + implements _i7.TransactionNotificationTracker { MockTransactionNotificationTracker() { _i1.throwOnMissingStub(this); } diff --git a/test/services/coins/particl/particl_wallet_test.mocks.dart b/test/services/coins/particl/particl_wallet_test.mocks.dart index 587dbe42e..aac19401c 100644 --- a/test/services/coins/particl/particl_wallet_test.mocks.dart +++ b/test/services/coins/particl/particl_wallet_test.mocks.dart @@ -10,8 +10,7 @@ import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4; import 'package:stackwallet/services/transaction_notification_tracker.dart' - as _i8; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7; + as _i7; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i2; @@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock _i5.Future> getAnonymitySet({ required String? groupId, String? blockhash = r'', - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, }) => (super.noSuchMethod( Invocation.method( @@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock { #groupId: groupId, #blockhash: blockhash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, }, ), returnValue: @@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock _i5.Future> getSparkAnonymitySet({ required String? groupId, String? blockhash = r'', - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, required bool? useOnlyCacheIfNotEmpty, }) => (super.noSuchMethod( @@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock { #groupId: groupId, #blockhash: blockhash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, }, ), @@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock @override _i5.Future> getTransaction({ required String? txHash, - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, bool? verbose = true, }) => (super.noSuchMethod( @@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock [], { #txHash: txHash, - #coin: coin, + #cryptoCurrency: cryptoCurrency, #verbose: verbose, }, ), @@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock ) as _i5.Future>); @override _i5.Future> getUsedCoinSerials({ - required _i7.Coin? coin, + required _i2.CryptoCurrency? cryptoCurrency, int? startNumber = 0, }) => (super.noSuchMethod( @@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock #getUsedCoinSerials, [], { - #coin: coin, + #cryptoCurrency: cryptoCurrency, #startNumber: startNumber, }, ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); @override - _i5.Future> getSparkUsedCoinsTags({required _i7.Coin? coin}) => + _i5.Future> getSparkUsedCoinsTags( + {required _i2.CryptoCurrency? cryptoCurrency}) => (super.noSuchMethod( Invocation.method( #getSparkUsedCoinsTags, [], - {#coin: coin}, + {#cryptoCurrency: cryptoCurrency}, ), returnValue: _i5.Future>.value({}), ) as _i5.Future>); @override - _i5.Future clearSharedTransactionCache({required _i7.Coin? coin}) => + _i5.Future clearSharedTransactionCache( + {required _i2.CryptoCurrency? cryptoCurrency}) => (super.noSuchMethod( Invocation.method( #clearSharedTransactionCache, [], - {#coin: coin}, + {#cryptoCurrency: cryptoCurrency}, ), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), @@ -642,7 +643,7 @@ class MockCachedElectrumXClient extends _i1.Mock /// /// See the documentation for Mockito's code generation for more information. class MockTransactionNotificationTracker extends _i1.Mock - implements _i8.TransactionNotificationTracker { + implements _i7.TransactionNotificationTracker { MockTransactionNotificationTracker() { _i1.throwOnMissingStub(this); } diff --git a/test/widget_tests/managed_favorite_test.mocks.dart b/test/widget_tests/managed_favorite_test.mocks.dart index e78909a96..ce01550b6 100644 --- a/test/widget_tests/managed_favorite_test.mocks.dart +++ b/test/widget_tests/managed_favorite_test.mocks.dart @@ -5,20 +5,19 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i10; import 'dart:typed_data' as _i15; -import 'dart:ui' as _i20; +import 'dart:ui' as _i19; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; import 'package:stackwallet/models/isar/stack_theme.dart' as _i14; -import 'package:stackwallet/models/node_model.dart' as _i22; +import 'package:stackwallet/models/node_model.dart' as _i21; import 'package:stackwallet/networking/http.dart' as _i6; -import 'package:stackwallet/services/locale_service.dart' as _i21; +import 'package:stackwallet/services/locale_service.dart' as _i20; import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/wallets.dart' as _i9; import 'package:stackwallet/themes/theme_service.dart' as _i13; import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i18; import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i17; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i19; import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i16; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i8; @@ -761,7 +760,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - _i18.AmountUnit amountUnit(_i19.Coin? coin) => (super.noSuchMethod( + _i18.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], @@ -770,7 +769,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ) as _i18.AmountUnit); @override void updateAmountUnit({ - required _i19.Coin? coin, + required _i4.CryptoCurrency? coin, required _i18.AmountUnit? amountUnit, }) => super.noSuchMethod( @@ -785,7 +784,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i19.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -794,7 +793,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ) as int); @override void updateMaxDecimals({ - required _i19.Coin? coin, + required _i4.CryptoCurrency? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -809,7 +808,8 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - _i7.FusionInfo getFusionServerInfo(_i19.Coin? coin) => (super.noSuchMethod( + _i7.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getFusionServerInfo, [coin], @@ -824,7 +824,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ) as _i7.FusionInfo); @override void setFusionServerInfo( - _i19.Coin? coin, + _i4.CryptoCurrency? coin, _i7.FusionInfo? fusionServerInfo, ) => super.noSuchMethod( @@ -838,7 +838,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -846,7 +846,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -874,7 +874,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i21.LocaleService { +class MockLocaleService extends _i1.Mock implements _i20.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -900,7 +900,7 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -908,7 +908,7 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -946,15 +946,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), ) as _i8.SecureStorageInterface); @override - List<_i22.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i21.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i22.NodeModel>[], - ) as List<_i22.NodeModel>); + returnValue: <_i21.NodeModel>[], + ) as List<_i21.NodeModel>); @override - List<_i22.NodeModel> get nodes => (super.noSuchMethod( + List<_i21.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i22.NodeModel>[], - ) as List<_i22.NodeModel>); + returnValue: <_i21.NodeModel>[], + ) as List<_i21.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), @@ -971,8 +971,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i10.Future); @override _i10.Future setPrimaryNodeFor({ - required _i19.Coin? coin, - required _i22.NodeModel? node, + required _i4.CryptoCurrency? coin, + required _i21.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -989,40 +989,42 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - _i22.NodeModel? getPrimaryNodeFor({required _i19.Coin? coin}) => + _i21.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], - {#coin: coin}, - )) as _i22.NodeModel?); + {#currency: currency}, + )) as _i21.NodeModel?); @override - List<_i22.NodeModel> getNodesFor(_i19.Coin? coin) => (super.noSuchMethod( + List<_i21.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i22.NodeModel>[], - ) as List<_i22.NodeModel>); + returnValue: <_i21.NodeModel>[], + ) as List<_i21.NodeModel>); @override - _i22.NodeModel? getNodeById({required String? id}) => + _i21.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i22.NodeModel?); + )) as _i21.NodeModel?); @override - List<_i22.NodeModel> failoverNodesFor({required _i19.Coin? coin}) => + List<_i21.NodeModel> failoverNodesFor( + {required _i4.CryptoCurrency? currency}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], - {#coin: coin}, + {#currency: currency}, ), - returnValue: <_i22.NodeModel>[], - ) as List<_i22.NodeModel>); + returnValue: <_i21.NodeModel>[], + ) as List<_i21.NodeModel>); @override _i10.Future add( - _i22.NodeModel? node, + _i21.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -1074,7 +1076,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i10.Future); @override _i10.Future edit( - _i22.NodeModel? editedNode, + _i21.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -1100,7 +1102,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1108,7 +1110,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], diff --git a/test/widget_tests/node_card_test.mocks.dart b/test/widget_tests/node_card_test.mocks.dart index 0b5f8128b..ec802d4e8 100644 --- a/test/widget_tests/node_card_test.mocks.dart +++ b/test/widget_tests/node_card_test.mocks.dart @@ -9,9 +9,10 @@ import 'dart:ui' as _i7; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/models/node_model.dart' as _i4; import 'package:stackwallet/services/node_service.dart' as _i3; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i2; +import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' + as _i6; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -77,7 +78,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { ) as _i5.Future); @override _i5.Future setPrimaryNodeFor({ - required _i6.Coin? coin, + required _i6.CryptoCurrency? coin, required _i4.NodeModel? node, bool? shouldNotifyListeners = false, }) => @@ -95,14 +96,15 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override - _i4.NodeModel? getPrimaryNodeFor({required _i6.Coin? coin}) => + _i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], - {#coin: coin}, + {#currency: currency}, )) as _i4.NodeModel?); @override - List<_i4.NodeModel> getNodesFor(_i6.Coin? coin) => (super.noSuchMethod( + List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], @@ -117,12 +119,13 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService { {#id: id}, )) as _i4.NodeModel?); @override - List<_i4.NodeModel> failoverNodesFor({required _i6.Coin? coin}) => + List<_i4.NodeModel> failoverNodesFor( + {required _i6.CryptoCurrency? currency}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], - {#coin: coin}, + {#currency: currency}, ), returnValue: <_i4.NodeModel>[], ) as List<_i4.NodeModel>); diff --git a/test/widget_tests/node_options_sheet_test.mocks.dart b/test/widget_tests/node_options_sheet_test.mocks.dart index 3d0a10b68..ff15b6330 100644 --- a/test/widget_tests/node_options_sheet_test.mocks.dart +++ b/test/widget_tests/node_options_sheet_test.mocks.dart @@ -5,19 +5,18 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i10; import 'dart:io' as _i8; -import 'dart:ui' as _i17; +import 'dart:ui' as _i16; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; -import 'package:stackwallet/models/node_model.dart' as _i18; +import 'package:stackwallet/models/node_model.dart' as _i17; import 'package:stackwallet/services/event_bus/events/global/tor_connection_status_changed_event.dart' - as _i20; + as _i19; import 'package:stackwallet/services/node_service.dart' as _i2; -import 'package:stackwallet/services/tor_service.dart' as _i19; +import 'package:stackwallet/services/tor_service.dart' as _i18; import 'package:stackwallet/services/wallets.dart' as _i9; import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i15; import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i14; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16; import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i13; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i7; @@ -28,7 +27,7 @@ import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i11; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' as _i6; -import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i21; +import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i20; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -647,7 +646,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - _i15.AmountUnit amountUnit(_i16.Coin? coin) => (super.noSuchMethod( + _i15.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], @@ -656,7 +655,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ) as _i15.AmountUnit); @override void updateAmountUnit({ - required _i16.Coin? coin, + required _i4.CryptoCurrency? coin, required _i15.AmountUnit? amountUnit, }) => super.noSuchMethod( @@ -671,7 +670,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i16.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -680,7 +679,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ) as int); @override void updateMaxDecimals({ - required _i16.Coin? coin, + required _i4.CryptoCurrency? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -695,7 +694,8 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - _i6.FusionInfo getFusionServerInfo(_i16.Coin? coin) => (super.noSuchMethod( + _i6.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getFusionServerInfo, [coin], @@ -710,7 +710,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { ) as _i6.FusionInfo); @override void setFusionServerInfo( - _i16.Coin? coin, + _i4.CryptoCurrency? coin, _i6.FusionInfo? fusionServerInfo, ) => super.noSuchMethod( @@ -724,7 +724,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -732,7 +732,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -774,15 +774,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), ) as _i7.SecureStorageInterface); @override - List<_i18.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i17.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i18.NodeModel>[], - ) as List<_i18.NodeModel>); + returnValue: <_i17.NodeModel>[], + ) as List<_i17.NodeModel>); @override - List<_i18.NodeModel> get nodes => (super.noSuchMethod( + List<_i17.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i18.NodeModel>[], - ) as List<_i18.NodeModel>); + returnValue: <_i17.NodeModel>[], + ) as List<_i17.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), @@ -799,8 +799,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i10.Future); @override _i10.Future setPrimaryNodeFor({ - required _i16.Coin? coin, - required _i18.NodeModel? node, + required _i4.CryptoCurrency? coin, + required _i17.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -817,40 +817,42 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - _i18.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) => + _i17.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], - {#coin: coin}, - )) as _i18.NodeModel?); + {#currency: currency}, + )) as _i17.NodeModel?); @override - List<_i18.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod( + List<_i17.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i18.NodeModel>[], - ) as List<_i18.NodeModel>); + returnValue: <_i17.NodeModel>[], + ) as List<_i17.NodeModel>); @override - _i18.NodeModel? getNodeById({required String? id}) => + _i17.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i18.NodeModel?); + )) as _i17.NodeModel?); @override - List<_i18.NodeModel> failoverNodesFor({required _i16.Coin? coin}) => + List<_i17.NodeModel> failoverNodesFor( + {required _i4.CryptoCurrency? currency}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], - {#coin: coin}, + {#currency: currency}, ), - returnValue: <_i18.NodeModel>[], - ) as List<_i18.NodeModel>); + returnValue: <_i17.NodeModel>[], + ) as List<_i17.NodeModel>); @override _i10.Future add( - _i18.NodeModel? node, + _i17.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -902,7 +904,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i10.Future); @override _i10.Future edit( - _i18.NodeModel? editedNode, + _i17.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -928,7 +930,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -936,7 +938,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -964,16 +966,16 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { /// A class which mocks [TorService]. /// /// See the documentation for Mockito's code generation for more information. -class MockTorService extends _i1.Mock implements _i19.TorService { +class MockTorService extends _i1.Mock implements _i18.TorService { MockTorService() { _i1.throwOnMissingStub(this); } @override - _i20.TorConnectionStatus get status => (super.noSuchMethod( + _i19.TorConnectionStatus get status => (super.noSuchMethod( Invocation.getter(#status), - returnValue: _i20.TorConnectionStatus.disconnected, - ) as _i20.TorConnectionStatus); + returnValue: _i19.TorConnectionStatus.disconnected, + ) as _i19.TorConnectionStatus); @override ({_i8.InternetAddress host, int port}) getProxyInfo() => (super.noSuchMethod( Invocation.method( @@ -994,7 +996,7 @@ class MockTorService extends _i1.Mock implements _i19.TorService { @override void init({ required String? torDataDirPath, - _i21.Tor? mockableOverride, + _i20.Tor? mockableOverride, }) => super.noSuchMethod( Invocation.method( diff --git a/test/widget_tests/transaction_card_test.mocks.dart b/test/widget_tests/transaction_card_test.mocks.dart index e3880f1b6..6d3d98e0f 100644 --- a/test/widget_tests/transaction_card_test.mocks.dart +++ b/test/widget_tests/transaction_card_test.mocks.dart @@ -4,28 +4,27 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i11; -import 'dart:typed_data' as _i25; +import 'dart:typed_data' as _i24; import 'dart:ui' as _i16; -import 'package:decimal/decimal.dart' as _i22; +import 'package:decimal/decimal.dart' as _i21; import 'package:isar/isar.dart' as _i9; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; -import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i27; +import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i26; import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart' - as _i29; -import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i26; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i28; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i24; + as _i28; +import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i25; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i27; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i23; import 'package:stackwallet/networking/http.dart' as _i8; import 'package:stackwallet/services/locale_service.dart' as _i15; import 'package:stackwallet/services/node_service.dart' as _i2; -import 'package:stackwallet/services/price_service.dart' as _i21; +import 'package:stackwallet/services/price_service.dart' as _i20; import 'package:stackwallet/services/wallets.dart' as _i10; -import 'package:stackwallet/themes/theme_service.dart' as _i23; +import 'package:stackwallet/themes/theme_service.dart' as _i22; import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i19; import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i18; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i20; import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i17; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i13; @@ -747,7 +746,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); @override - _i19.AmountUnit amountUnit(_i20.Coin? coin) => (super.noSuchMethod( + _i19.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], @@ -756,7 +755,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ) as _i19.AmountUnit); @override void updateAmountUnit({ - required _i20.Coin? coin, + required _i4.CryptoCurrency? coin, required _i19.AmountUnit? amountUnit, }) => super.noSuchMethod( @@ -771,7 +770,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i20.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -780,7 +779,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ) as int); @override void updateMaxDecimals({ - required _i20.Coin? coin, + required _i4.CryptoCurrency? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -795,7 +794,8 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - _i6.FusionInfo getFusionServerInfo(_i20.Coin? coin) => (super.noSuchMethod( + _i6.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getFusionServerInfo, [coin], @@ -810,7 +810,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ) as _i6.FusionInfo); @override void setFusionServerInfo( - _i20.Coin? coin, + _i4.CryptoCurrency? coin, _i6.FusionInfo? fusionServerInfo, ) => super.noSuchMethod( @@ -860,7 +860,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { /// A class which mocks [PriceService]. /// /// See the documentation for Mockito's code generation for more information. -class MockPriceService extends _i1.Mock implements _i21.PriceService { +class MockPriceService extends _i1.Mock implements _i20.PriceService { MockPriceService() { _i1.throwOnMissingStub(this); } @@ -898,35 +898,35 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService { returnValue: false, ) as bool); @override - _i7.Tuple2<_i22.Decimal, double> getPrice(_i20.Coin? coin) => + _i7.Tuple2<_i21.Decimal, double> getPrice(_i4.CryptoCurrency? coin) => (super.noSuchMethod( Invocation.method( #getPrice, [coin], ), - returnValue: _FakeTuple2_5<_i22.Decimal, double>( + returnValue: _FakeTuple2_5<_i21.Decimal, double>( this, Invocation.method( #getPrice, [coin], ), ), - ) as _i7.Tuple2<_i22.Decimal, double>); + ) as _i7.Tuple2<_i21.Decimal, double>); @override - _i7.Tuple2<_i22.Decimal, double> getTokenPrice(String? contractAddress) => + _i7.Tuple2<_i21.Decimal, double> getTokenPrice(String? contractAddress) => (super.noSuchMethod( Invocation.method( #getTokenPrice, [contractAddress], ), - returnValue: _FakeTuple2_5<_i22.Decimal, double>( + returnValue: _FakeTuple2_5<_i21.Decimal, double>( this, Invocation.method( #getTokenPrice, [contractAddress], ), ), - ) as _i7.Tuple2<_i22.Decimal, double>); + ) as _i7.Tuple2<_i21.Decimal, double>); @override _i11.Future updatePrice() => (super.noSuchMethod( Invocation.method( @@ -989,7 +989,7 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i23.ThemeService { +class MockThemeService extends _i1.Mock implements _i22.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @@ -1019,10 +1019,10 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService { ), ) as _i3.MainDB); @override - List<_i24.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i23.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i24.StackTheme>[], - ) as List<_i24.StackTheme>); + returnValue: <_i23.StackTheme>[], + ) as List<_i23.StackTheme>); @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -1032,7 +1032,7 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService { returnValueForMissingStub: null, ); @override - _i11.Future install({required _i25.Uint8List? themeArchiveData}) => + _i11.Future install({required _i24.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, @@ -1072,33 +1072,33 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService { returnValue: _i11.Future.value(false), ) as _i11.Future); @override - _i11.Future> fetchThemes() => + _i11.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i11.Future>.value( - <_i23.StackThemeMetaData>[]), - ) as _i11.Future>); + returnValue: _i11.Future>.value( + <_i22.StackThemeMetaData>[]), + ) as _i11.Future>); @override - _i11.Future<_i25.Uint8List> fetchTheme( - {required _i23.StackThemeMetaData? themeMetaData}) => + _i11.Future<_i24.Uint8List> fetchTheme( + {required _i22.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i11.Future<_i25.Uint8List>.value(_i25.Uint8List(0)), - ) as _i11.Future<_i25.Uint8List>); + returnValue: _i11.Future<_i24.Uint8List>.value(_i24.Uint8List(0)), + ) as _i11.Future<_i24.Uint8List>); @override - _i24.StackTheme? getTheme({required String? themeId}) => + _i23.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i24.StackTheme?); + )) as _i23.StackTheme?); } /// A class which mocks [MainDB]. @@ -1147,13 +1147,13 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); @override - List<_i26.ContactEntry> getContactEntries() => (super.noSuchMethod( + List<_i25.ContactEntry> getContactEntries() => (super.noSuchMethod( Invocation.method( #getContactEntries, [], ), - returnValue: <_i26.ContactEntry>[], - ) as List<_i26.ContactEntry>); + returnValue: <_i25.ContactEntry>[], + ) as List<_i25.ContactEntry>); @override _i11.Future deleteContactEntry({required String? id}) => (super.noSuchMethod( @@ -1175,15 +1175,15 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(false), ) as _i11.Future); @override - _i26.ContactEntry? getContactEntry({required String? id}) => + _i25.ContactEntry? getContactEntry({required String? id}) => (super.noSuchMethod(Invocation.method( #getContactEntry, [], {#id: id}, - )) as _i26.ContactEntry?); + )) as _i25.ContactEntry?); @override _i11.Future putContactEntry( - {required _i26.ContactEntry? contactEntry}) => + {required _i25.ContactEntry? contactEntry}) => (super.noSuchMethod( Invocation.method( #putContactEntry, @@ -1193,16 +1193,16 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(false), ) as _i11.Future); @override - _i27.TransactionBlockExplorer? getTransactionBlockExplorer( - {required _i20.Coin? coin}) => + _i26.TransactionBlockExplorer? getTransactionBlockExplorer( + {required _i4.CryptoCurrency? cryptoCurrency}) => (super.noSuchMethod(Invocation.method( #getTransactionBlockExplorer, [], - {#coin: coin}, - )) as _i27.TransactionBlockExplorer?); + {#cryptoCurrency: cryptoCurrency}, + )) as _i26.TransactionBlockExplorer?); @override _i11.Future putTransactionBlockExplorer( - _i27.TransactionBlockExplorer? explorer) => + _i26.TransactionBlockExplorer? explorer) => (super.noSuchMethod( Invocation.method( #putTransactionBlockExplorer, @@ -1211,13 +1211,13 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(0), ) as _i11.Future); @override - _i9.QueryBuilder<_i28.Address, _i28.Address, _i9.QAfterWhereClause> + _i9.QueryBuilder<_i27.Address, _i27.Address, _i9.QAfterWhereClause> getAddresses(String? walletId) => (super.noSuchMethod( Invocation.method( #getAddresses, [walletId], ), - returnValue: _FakeQueryBuilder_8<_i28.Address, _i28.Address, + returnValue: _FakeQueryBuilder_8<_i27.Address, _i27.Address, _i9.QAfterWhereClause>( this, Invocation.method( @@ -1226,9 +1226,9 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), ), ) as _i9 - .QueryBuilder<_i28.Address, _i28.Address, _i9.QAfterWhereClause>); + .QueryBuilder<_i27.Address, _i27.Address, _i9.QAfterWhereClause>); @override - _i11.Future putAddress(_i28.Address? address) => (super.noSuchMethod( + _i11.Future putAddress(_i27.Address? address) => (super.noSuchMethod( Invocation.method( #putAddress, [address], @@ -1236,7 +1236,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(0), ) as _i11.Future); @override - _i11.Future> putAddresses(List<_i28.Address>? addresses) => + _i11.Future> putAddresses(List<_i27.Address>? addresses) => (super.noSuchMethod( Invocation.method( #putAddresses, @@ -1245,7 +1245,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future>.value([]), ) as _i11.Future>); @override - _i11.Future> updateOrPutAddresses(List<_i28.Address>? addresses) => + _i11.Future> updateOrPutAddresses(List<_i27.Address>? addresses) => (super.noSuchMethod( Invocation.method( #updateOrPutAddresses, @@ -1254,7 +1254,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future>.value([]), ) as _i11.Future>); @override - _i11.Future<_i28.Address?> getAddress( + _i11.Future<_i27.Address?> getAddress( String? walletId, String? address, ) => @@ -1266,12 +1266,12 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { address, ], ), - returnValue: _i11.Future<_i28.Address?>.value(), - ) as _i11.Future<_i28.Address?>); + returnValue: _i11.Future<_i27.Address?>.value(), + ) as _i11.Future<_i27.Address?>); @override _i11.Future updateAddress( - _i28.Address? oldAddress, - _i28.Address? newAddress, + _i27.Address? oldAddress, + _i27.Address? newAddress, ) => (super.noSuchMethod( Invocation.method( @@ -1284,13 +1284,13 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(0), ) as _i11.Future); @override - _i9.QueryBuilder<_i28.Transaction, _i28.Transaction, _i9.QAfterWhereClause> + _i9.QueryBuilder<_i27.Transaction, _i27.Transaction, _i9.QAfterWhereClause> getTransactions(String? walletId) => (super.noSuchMethod( Invocation.method( #getTransactions, [walletId], ), - returnValue: _FakeQueryBuilder_8<_i28.Transaction, _i28.Transaction, + returnValue: _FakeQueryBuilder_8<_i27.Transaction, _i27.Transaction, _i9.QAfterWhereClause>( this, Invocation.method( @@ -1298,10 +1298,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { [walletId], ), ), - ) as _i9.QueryBuilder<_i28.Transaction, _i28.Transaction, + ) as _i9.QueryBuilder<_i27.Transaction, _i27.Transaction, _i9.QAfterWhereClause>); @override - _i11.Future putTransaction(_i28.Transaction? transaction) => + _i11.Future putTransaction(_i27.Transaction? transaction) => (super.noSuchMethod( Invocation.method( #putTransaction, @@ -1311,7 +1311,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ) as _i11.Future); @override _i11.Future> putTransactions( - List<_i28.Transaction>? transactions) => + List<_i27.Transaction>? transactions) => (super.noSuchMethod( Invocation.method( #putTransactions, @@ -1320,7 +1320,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future>.value([]), ) as _i11.Future>); @override - _i11.Future<_i28.Transaction?> getTransaction( + _i11.Future<_i27.Transaction?> getTransaction( String? walletId, String? txid, ) => @@ -1332,10 +1332,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { txid, ], ), - returnValue: _i11.Future<_i28.Transaction?>.value(), - ) as _i11.Future<_i28.Transaction?>); + returnValue: _i11.Future<_i27.Transaction?>.value(), + ) as _i11.Future<_i27.Transaction?>); @override - _i11.Stream<_i28.Transaction?> watchTransaction({ + _i11.Stream<_i27.Transaction?> watchTransaction({ required int? id, bool? fireImmediately = false, }) => @@ -1348,10 +1348,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i11.Stream<_i28.Transaction?>.empty(), - ) as _i11.Stream<_i28.Transaction?>); + returnValue: _i11.Stream<_i27.Transaction?>.empty(), + ) as _i11.Stream<_i27.Transaction?>); @override - _i9.QueryBuilder<_i28.UTXO, _i28.UTXO, _i9.QAfterWhereClause> getUTXOs( + _i9.QueryBuilder<_i27.UTXO, _i27.UTXO, _i9.QAfterWhereClause> getUTXOs( String? walletId) => (super.noSuchMethod( Invocation.method( @@ -1359,16 +1359,16 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { [walletId], ), returnValue: - _FakeQueryBuilder_8<_i28.UTXO, _i28.UTXO, _i9.QAfterWhereClause>( + _FakeQueryBuilder_8<_i27.UTXO, _i27.UTXO, _i9.QAfterWhereClause>( this, Invocation.method( #getUTXOs, [walletId], ), ), - ) as _i9.QueryBuilder<_i28.UTXO, _i28.UTXO, _i9.QAfterWhereClause>); + ) as _i9.QueryBuilder<_i27.UTXO, _i27.UTXO, _i9.QAfterWhereClause>); @override - _i9.QueryBuilder<_i28.UTXO, _i28.UTXO, _i9.QAfterFilterCondition> + _i9.QueryBuilder<_i27.UTXO, _i27.UTXO, _i9.QAfterFilterCondition> getUTXOsByAddress( String? walletId, String? address, @@ -1381,7 +1381,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { address, ], ), - returnValue: _FakeQueryBuilder_8<_i28.UTXO, _i28.UTXO, + returnValue: _FakeQueryBuilder_8<_i27.UTXO, _i27.UTXO, _i9.QAfterFilterCondition>( this, Invocation.method( @@ -1393,9 +1393,9 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), ), ) as _i9 - .QueryBuilder<_i28.UTXO, _i28.UTXO, _i9.QAfterFilterCondition>); + .QueryBuilder<_i27.UTXO, _i27.UTXO, _i9.QAfterFilterCondition>); @override - _i11.Future putUTXO(_i28.UTXO? utxo) => (super.noSuchMethod( + _i11.Future putUTXO(_i27.UTXO? utxo) => (super.noSuchMethod( Invocation.method( #putUTXO, [utxo], @@ -1404,7 +1404,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); @override - _i11.Future putUTXOs(List<_i28.UTXO>? utxos) => (super.noSuchMethod( + _i11.Future putUTXOs(List<_i27.UTXO>? utxos) => (super.noSuchMethod( Invocation.method( #putUTXOs, [utxos], @@ -1415,7 +1415,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { @override _i11.Future updateUTXOs( String? walletId, - List<_i28.UTXO>? utxos, + List<_i27.UTXO>? utxos, ) => (super.noSuchMethod( Invocation.method( @@ -1428,7 +1428,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(false), ) as _i11.Future); @override - _i11.Stream<_i28.UTXO?> watchUTXO({ + _i11.Stream<_i27.UTXO?> watchUTXO({ required int? id, bool? fireImmediately = false, }) => @@ -1441,10 +1441,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i11.Stream<_i28.UTXO?>.empty(), - ) as _i11.Stream<_i28.UTXO?>); + returnValue: _i11.Stream<_i27.UTXO?>.empty(), + ) as _i11.Stream<_i27.UTXO?>); @override - _i9.QueryBuilder<_i28.TransactionNote, _i28.TransactionNote, + _i9.QueryBuilder<_i27.TransactionNote, _i27.TransactionNote, _i9.QAfterWhereClause> getTransactionNotes( String? walletId) => (super.noSuchMethod( @@ -1452,18 +1452,18 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #getTransactionNotes, [walletId], ), - returnValue: _FakeQueryBuilder_8<_i28.TransactionNote, - _i28.TransactionNote, _i9.QAfterWhereClause>( + returnValue: _FakeQueryBuilder_8<_i27.TransactionNote, + _i27.TransactionNote, _i9.QAfterWhereClause>( this, Invocation.method( #getTransactionNotes, [walletId], ), ), - ) as _i9.QueryBuilder<_i28.TransactionNote, _i28.TransactionNote, + ) as _i9.QueryBuilder<_i27.TransactionNote, _i27.TransactionNote, _i9.QAfterWhereClause>); @override - _i11.Future putTransactionNote(_i28.TransactionNote? transactionNote) => + _i11.Future putTransactionNote(_i27.TransactionNote? transactionNote) => (super.noSuchMethod( Invocation.method( #putTransactionNote, @@ -1474,7 +1474,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ) as _i11.Future); @override _i11.Future putTransactionNotes( - List<_i28.TransactionNote>? transactionNotes) => + List<_i27.TransactionNote>? transactionNotes) => (super.noSuchMethod( Invocation.method( #putTransactionNotes, @@ -1484,7 +1484,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); @override - _i11.Future<_i28.TransactionNote?> getTransactionNote( + _i11.Future<_i27.TransactionNote?> getTransactionNote( String? walletId, String? txid, ) => @@ -1496,10 +1496,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { txid, ], ), - returnValue: _i11.Future<_i28.TransactionNote?>.value(), - ) as _i11.Future<_i28.TransactionNote?>); + returnValue: _i11.Future<_i27.TransactionNote?>.value(), + ) as _i11.Future<_i27.TransactionNote?>); @override - _i11.Stream<_i28.TransactionNote?> watchTransactionNote({ + _i11.Stream<_i27.TransactionNote?> watchTransactionNote({ required int? id, bool? fireImmediately = false, }) => @@ -1512,27 +1512,27 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i11.Stream<_i28.TransactionNote?>.empty(), - ) as _i11.Stream<_i28.TransactionNote?>); + returnValue: _i11.Stream<_i27.TransactionNote?>.empty(), + ) as _i11.Stream<_i27.TransactionNote?>); @override - _i9.QueryBuilder<_i28.AddressLabel, _i28.AddressLabel, _i9.QAfterWhereClause> + _i9.QueryBuilder<_i27.AddressLabel, _i27.AddressLabel, _i9.QAfterWhereClause> getAddressLabels(String? walletId) => (super.noSuchMethod( Invocation.method( #getAddressLabels, [walletId], ), - returnValue: _FakeQueryBuilder_8<_i28.AddressLabel, - _i28.AddressLabel, _i9.QAfterWhereClause>( + returnValue: _FakeQueryBuilder_8<_i27.AddressLabel, + _i27.AddressLabel, _i9.QAfterWhereClause>( this, Invocation.method( #getAddressLabels, [walletId], ), ), - ) as _i9.QueryBuilder<_i28.AddressLabel, _i28.AddressLabel, + ) as _i9.QueryBuilder<_i27.AddressLabel, _i27.AddressLabel, _i9.QAfterWhereClause>); @override - _i11.Future putAddressLabel(_i28.AddressLabel? addressLabel) => + _i11.Future putAddressLabel(_i27.AddressLabel? addressLabel) => (super.noSuchMethod( Invocation.method( #putAddressLabel, @@ -1541,7 +1541,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(0), ) as _i11.Future); @override - int putAddressLabelSync(_i28.AddressLabel? addressLabel) => + int putAddressLabelSync(_i27.AddressLabel? addressLabel) => (super.noSuchMethod( Invocation.method( #putAddressLabelSync, @@ -1550,7 +1550,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: 0, ) as int); @override - _i11.Future putAddressLabels(List<_i28.AddressLabel>? addressLabels) => + _i11.Future putAddressLabels(List<_i27.AddressLabel>? addressLabels) => (super.noSuchMethod( Invocation.method( #putAddressLabels, @@ -1560,7 +1560,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); @override - _i11.Future<_i28.AddressLabel?> getAddressLabel( + _i11.Future<_i27.AddressLabel?> getAddressLabel( String? walletId, String? addressString, ) => @@ -1572,10 +1572,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { addressString, ], ), - returnValue: _i11.Future<_i28.AddressLabel?>.value(), - ) as _i11.Future<_i28.AddressLabel?>); + returnValue: _i11.Future<_i27.AddressLabel?>.value(), + ) as _i11.Future<_i27.AddressLabel?>); @override - _i28.AddressLabel? getAddressLabelSync( + _i27.AddressLabel? getAddressLabelSync( String? walletId, String? addressString, ) => @@ -1585,9 +1585,9 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { walletId, addressString, ], - )) as _i28.AddressLabel?); + )) as _i27.AddressLabel?); @override - _i11.Stream<_i28.AddressLabel?> watchAddressLabel({ + _i11.Stream<_i27.AddressLabel?> watchAddressLabel({ required int? id, bool? fireImmediately = false, }) => @@ -1600,10 +1600,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i11.Stream<_i28.AddressLabel?>.empty(), - ) as _i11.Stream<_i28.AddressLabel?>); + returnValue: _i11.Stream<_i27.AddressLabel?>.empty(), + ) as _i11.Stream<_i27.AddressLabel?>); @override - _i11.Future updateAddressLabel(_i28.AddressLabel? addressLabel) => + _i11.Future updateAddressLabel(_i27.AddressLabel? addressLabel) => (super.noSuchMethod( Invocation.method( #updateAddressLabel, @@ -1643,7 +1643,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ) as _i11.Future); @override _i11.Future addNewTransactionData( - List<_i7.Tuple2<_i28.Transaction, _i28.Address?>>? transactionsData, + List<_i7.Tuple2<_i27.Transaction, _i27.Address?>>? transactionsData, String? walletId, ) => (super.noSuchMethod( @@ -1659,7 +1659,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ) as _i11.Future); @override _i11.Future> updateOrPutTransactionV2s( - List<_i29.TransactionV2>? transactions) => + List<_i28.TransactionV2>? transactions) => (super.noSuchMethod( Invocation.method( #updateOrPutTransactionV2s, @@ -1668,13 +1668,13 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future>.value([]), ) as _i11.Future>); @override - _i9.QueryBuilder<_i28.EthContract, _i28.EthContract, _i9.QWhere> + _i9.QueryBuilder<_i27.EthContract, _i27.EthContract, _i9.QWhere> getEthContracts() => (super.noSuchMethod( Invocation.method( #getEthContracts, [], ), - returnValue: _FakeQueryBuilder_8<_i28.EthContract, _i28.EthContract, + returnValue: _FakeQueryBuilder_8<_i27.EthContract, _i27.EthContract, _i9.QWhere>( this, Invocation.method( @@ -1683,24 +1683,24 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), ), ) as _i9 - .QueryBuilder<_i28.EthContract, _i28.EthContract, _i9.QWhere>); + .QueryBuilder<_i27.EthContract, _i27.EthContract, _i9.QWhere>); @override - _i11.Future<_i28.EthContract?> getEthContract(String? contractAddress) => + _i11.Future<_i27.EthContract?> getEthContract(String? contractAddress) => (super.noSuchMethod( Invocation.method( #getEthContract, [contractAddress], ), - returnValue: _i11.Future<_i28.EthContract?>.value(), - ) as _i11.Future<_i28.EthContract?>); + returnValue: _i11.Future<_i27.EthContract?>.value(), + ) as _i11.Future<_i27.EthContract?>); @override - _i28.EthContract? getEthContractSync(String? contractAddress) => + _i27.EthContract? getEthContractSync(String? contractAddress) => (super.noSuchMethod(Invocation.method( #getEthContractSync, [contractAddress], - )) as _i28.EthContract?); + )) as _i27.EthContract?); @override - _i11.Future putEthContract(_i28.EthContract? contract) => + _i11.Future putEthContract(_i27.EthContract? contract) => (super.noSuchMethod( Invocation.method( #putEthContract, @@ -1709,7 +1709,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i11.Future.value(0), ) as _i11.Future); @override - _i11.Future putEthContracts(List<_i28.EthContract>? contracts) => + _i11.Future putEthContracts(List<_i27.EthContract>? contracts) => (super.noSuchMethod( Invocation.method( #putEthContracts, @@ -1733,7 +1733,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { /// A class which mocks [IThemeAssets]. /// /// See the documentation for Mockito's code generation for more information. -class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { +class MockIThemeAssets extends _i1.Mock implements _i23.IThemeAssets { MockIThemeAssets() { _i1.throwOnMissingStub(this); } diff --git a/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart b/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart index e02c41ec5..b94f2e713 100644 --- a/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart +++ b/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart @@ -4,14 +4,13 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i8; -import 'dart:ui' as _i13; +import 'dart:ui' as _i12; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; import 'package:stackwallet/models/node_model.dart' as _i11; import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/wallets.dart' as _i7; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i12; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i6; import 'package:stackwallet/utilities/prefs.dart' as _i10; @@ -231,7 +230,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i8.Future); @override _i8.Future setPrimaryNodeFor({ - required _i12.Coin? coin, + required _i4.CryptoCurrency? coin, required _i11.NodeModel? node, bool? shouldNotifyListeners = false, }) => @@ -249,14 +248,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); @override - _i11.NodeModel? getPrimaryNodeFor({required _i12.Coin? coin}) => + _i11.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], - {#coin: coin}, + {#currency: currency}, )) as _i11.NodeModel?); @override - List<_i11.NodeModel> getNodesFor(_i12.Coin? coin) => (super.noSuchMethod( + List<_i11.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], @@ -271,12 +271,13 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { {#id: id}, )) as _i11.NodeModel?); @override - List<_i11.NodeModel> failoverNodesFor({required _i12.Coin? coin}) => + List<_i11.NodeModel> failoverNodesFor( + {required _i4.CryptoCurrency? currency}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], - {#coin: coin}, + {#currency: currency}, ), returnValue: <_i11.NodeModel>[], ) as List<_i11.NodeModel>); @@ -360,7 +361,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); @override - void addListener(_i13.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -368,7 +369,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i13.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], 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 eec63a4fd..9c90bcdcd 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 @@ -5,7 +5,7 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i9; import 'dart:typed_data' as _i14; -import 'dart:ui' as _i17; +import 'dart:ui' as _i16; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; @@ -15,7 +15,6 @@ import 'package:stackwallet/networking/http.dart' as _i6; import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/wallets.dart' as _i8; import 'package:stackwallet/themes/theme_service.dart' as _i12; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i7; import 'package:stackwallet/utilities/prefs.dart' as _i11; @@ -360,7 +359,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i9.Future); @override _i9.Future setPrimaryNodeFor({ - required _i16.Coin? coin, + required _i4.CryptoCurrency? coin, required _i15.NodeModel? node, bool? shouldNotifyListeners = false, }) => @@ -378,14 +377,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @override - _i15.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) => + _i15.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], - {#coin: coin}, + {#currency: currency}, )) as _i15.NodeModel?); @override - List<_i15.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod( + List<_i15.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) => + (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], @@ -400,12 +400,13 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { {#id: id}, )) as _i15.NodeModel?); @override - List<_i15.NodeModel> failoverNodesFor({required _i16.Coin? coin}) => + List<_i15.NodeModel> failoverNodesFor( + {required _i4.CryptoCurrency? currency}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], - {#coin: coin}, + {#currency: currency}, ), returnValue: <_i15.NodeModel>[], ) as List<_i15.NodeModel>); @@ -489,7 +490,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @override - void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -497,7 +498,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener],