From 0cb1e90097d13335e8fc1bcaa7595cead9d30ed3 Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 28 Nov 2023 08:30:29 -0600 Subject: [PATCH] build runner --- .../models/blockchain_data/address.g.dart | 2 + lib/wallets/isar/models/wallet_info.g.dart | 2 + test/address_utils_test.dart | 7 - test/cached_electrumx_test.mocks.dart | 10 +- .../pages/send_view/send_view_test.mocks.dart | 201 +- .../bitcoin/bitcoin_wallet_test.mocks.dart | 10 +- .../bitcoincash_wallet_test.mocks.dart | 10 +- .../dogecoin/dogecoin_wallet_test.mocks.dart | 10 +- .../coins/firo/firo_wallet_test.mocks.dart | 10 +- .../namecoin/namecoin_wallet_test.mocks.dart | 10 +- .../particl/particl_wallet_test.mocks.dart | 10 +- .../managed_favorite_test.mocks.dart | 201 +- .../node_options_sheet_test.mocks.dart | 123 +- .../table_view/table_view_row_test.mocks.dart | 105 +- test/widget_tests/transaction_card_test.dart | 2 - .../transaction_card_test.mocks.dart | 1823 ++++------------- test/widget_tests/wallet_card_test.mocks.dart | 61 +- ...et_info_row_balance_future_test.mocks.dart | 111 +- .../wallet_info_row_test.mocks.dart | 147 +- 19 files changed, 932 insertions(+), 1923 deletions(-) diff --git a/lib/models/isar/models/blockchain_data/address.g.dart b/lib/models/isar/models/blockchain_data/address.g.dart index 356904d2c..6cff9d525 100644 --- a/lib/models/isar/models/blockchain_data/address.g.dart +++ b/lib/models/isar/models/blockchain_data/address.g.dart @@ -263,6 +263,7 @@ const _AddresstypeEnumValueMap = { 'ethereum': 7, 'nano': 8, 'banano': 9, + 'spark': 10, }; const _AddresstypeValueEnumMap = { 0: AddressType.p2pkh, @@ -275,6 +276,7 @@ const _AddresstypeValueEnumMap = { 7: AddressType.ethereum, 8: AddressType.nano, 9: AddressType.banano, + 10: AddressType.spark, }; Id _addressGetId(Address object) { diff --git a/lib/wallets/isar/models/wallet_info.g.dart b/lib/wallets/isar/models/wallet_info.g.dart index ec7ce6b03..284bb313b 100644 --- a/lib/wallets/isar/models/wallet_info.g.dart +++ b/lib/wallets/isar/models/wallet_info.g.dart @@ -271,6 +271,7 @@ const _WalletInfomainAddressTypeEnumValueMap = { 'ethereum': 7, 'nano': 8, 'banano': 9, + 'spark': 10, }; const _WalletInfomainAddressTypeValueEnumMap = { 0: AddressType.p2pkh, @@ -283,6 +284,7 @@ const _WalletInfomainAddressTypeValueEnumMap = { 7: AddressType.ethereum, 8: AddressType.nano, 9: AddressType.banano, + 10: AddressType.spark, }; Id _walletInfoGetId(WalletInfo object) { diff --git a/test/address_utils_test.dart b/test/address_utils_test.dart index 60d67d3b7..f1dcf1260 100644 --- a/test/address_utils_test.dart +++ b/test/address_utils_test.dart @@ -1,17 +1,10 @@ import 'package:flutter_test/flutter_test.dart'; -import 'package:stackwallet/services/coins/firo/firo_wallet.dart'; import 'package:stackwallet/utilities/address_utils.dart'; import 'package:stackwallet/utilities/enums/coin_enum.dart'; void main() { const String firoAddress = "a6ESWKz7szru5syLtYAPRhHLdKvMq3Yt1j"; - test("generate scripthash from a firo address", () { - final hash = AddressUtils.convertToScriptHash(firoAddress, firoNetwork); - expect(hash, - "77090cea08e2b5accb185fac3cdc799b2b1d109e18c19c723011f4af2c0e5f76"); - }); - test("condense address", () { final condensedAddress = AddressUtils.condenseAddress(firoAddress); expect(condensedAddress, "a6ESW...3Yt1j"); diff --git a/test/cached_electrumx_test.mocks.dart b/test/cached_electrumx_test.mocks.dart index 09cd500dc..e41279674 100644 --- a/test/cached_electrumx_test.mocks.dart +++ b/test/cached_electrumx_test.mocks.dart @@ -401,9 +401,9 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { _i5.Future>.value({}), ) as _i5.Future>); @override - _i5.Future> getSparkMintMetaData({ + _i5.Future>> getSparkMintMetaData({ String? requestID, - required List<({int denom, String pubCoin})>? sparkCoinHashes, + required List? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( @@ -414,9 +414,9 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient { #sparkCoinHashes: sparkCoinHashes, }, ), - returnValue: - _i5.Future>.value({}), - ) as _i5.Future>); + returnValue: _i5.Future>>.value( + >[]), + ) as _i5.Future>>); @override _i5.Future getSparkLatestCoinId({String? requestID}) => (super.noSuchMethod( diff --git a/test/pages/send_view/send_view_test.mocks.dart b/test/pages/send_view/send_view_test.mocks.dart index ee8ee40be..99fe9c376 100644 --- a/test/pages/send_view/send_view_test.mocks.dart +++ b/test/pages/send_view/send_view_test.mocks.dart @@ -4,33 +4,34 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i13; -import 'dart:typed_data' as _i22; -import 'dart:ui' as _i17; +import 'dart:typed_data' as _i23; +import 'dart:ui' as _i18; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; import 'package:stackwallet/models/balance.dart' as _i10; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i27; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i21; -import 'package:stackwallet/models/node_model.dart' as _i18; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i28; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i22; +import 'package:stackwallet/models/node_model.dart' as _i19; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9; import 'package:stackwallet/networking/http.dart' as _i7; -import 'package:stackwallet/services/coins/coin_service.dart' as _i26; -import 'package:stackwallet/services/locale_service.dart' as _i19; +import 'package:stackwallet/services/coins/coin_service.dart' as _i27; +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 _i12; -import 'package:stackwallet/services/wallets_service.dart' as _i15; -import 'package:stackwallet/themes/theme_service.dart' as _i20; +import 'package:stackwallet/services/wallets_service.dart' as _i16; +import 'package:stackwallet/themes/theme_service.dart' as _i21; import 'package:stackwallet/utilities/amount/amount.dart' as _i11; -import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i25; -import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i24; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16; -import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i23; +import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i26; +import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i25; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i17; +import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i24; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i6; -import 'package:stackwallet/utilities/prefs.dart' as _i14; +import 'package:stackwallet/utilities/prefs.dart' as _i15; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; +import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i14; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' as _i8; @@ -213,14 +214,14 @@ class MockWallets extends _i1.Mock implements _i12.Wallets { ); @override _i13.Future deleteWallet( - String? walletId, + _i14.WalletInfo? info, _i6.SecureStorageInterface? secureStorage, ) => (super.noSuchMethod( Invocation.method( #deleteWallet, [ - walletId, + info, secureStorage, ], ), @@ -229,7 +230,7 @@ class MockWallets extends _i1.Mock implements _i12.Wallets { ) as _i13.Future); @override _i13.Future load( - _i14.Prefs? prefs, + _i15.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -245,7 +246,7 @@ class MockWallets extends _i1.Mock implements _i12.Wallets { ) as _i13.Future); @override _i13.Future loadAfterStackRestore( - _i14.Prefs? prefs, + _i15.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -264,18 +265,18 @@ class MockWallets extends _i1.Mock implements _i12.Wallets { /// A class which mocks [WalletsService]. /// /// See the documentation for Mockito's code generation for more information. -class MockWalletsService extends _i1.Mock implements _i15.WalletsService { +class MockWalletsService extends _i1.Mock implements _i16.WalletsService { MockWalletsService() { _i1.throwOnMissingStub(this); } @override - _i13.Future> get walletNames => + _i13.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i13.Future>.value( - {}), - ) as _i13.Future>); + returnValue: _i13.Future>.value( + {}), + ) as _i13.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), @@ -300,18 +301,18 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService { returnValue: _i13.Future.value(false), ) as _i13.Future); @override - Map fetchWalletsData() => (super.noSuchMethod( + Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( #fetchWalletsData, [], ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override _i13.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i16.Coin? coin, + required _i17.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -331,7 +332,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService { @override _i13.Future addNewWallet({ required String? name, - required _i16.Coin? coin, + required _i17.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -462,7 +463,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService { returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); @override - void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -470,7 +471,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -512,15 +513,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), ) as _i6.SecureStorageInterface); @override - List<_i18.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i19.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i18.NodeModel>[], - ) as List<_i18.NodeModel>); + returnValue: <_i19.NodeModel>[], + ) as List<_i19.NodeModel>); @override - List<_i18.NodeModel> get nodes => (super.noSuchMethod( + List<_i19.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i18.NodeModel>[], - ) as List<_i18.NodeModel>); + returnValue: <_i19.NodeModel>[], + ) as List<_i19.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), @@ -537,8 +538,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i13.Future); @override _i13.Future setPrimaryNodeFor({ - required _i16.Coin? coin, - required _i18.NodeModel? node, + required _i17.Coin? coin, + required _i19.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -555,40 +556,40 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); @override - _i18.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) => + _i19.NodeModel? getPrimaryNodeFor({required _i17.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i18.NodeModel?); + )) as _i19.NodeModel?); @override - List<_i18.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod( + List<_i19.NodeModel> getNodesFor(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i18.NodeModel>[], - ) as List<_i18.NodeModel>); + returnValue: <_i19.NodeModel>[], + ) as List<_i19.NodeModel>); @override - _i18.NodeModel? getNodeById({required String? id}) => + _i19.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i18.NodeModel?); + )) as _i19.NodeModel?); @override - List<_i18.NodeModel> failoverNodesFor({required _i16.Coin? coin}) => + List<_i19.NodeModel> failoverNodesFor({required _i17.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i18.NodeModel>[], - ) as List<_i18.NodeModel>); + returnValue: <_i19.NodeModel>[], + ) as List<_i19.NodeModel>); @override _i13.Future add( - _i18.NodeModel? node, + _i19.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -640,7 +641,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i13.Future); @override _i13.Future edit( - _i18.NodeModel? editedNode, + _i19.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -666,7 +667,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); @override - void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -674,7 +675,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -702,7 +703,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 _i19.LocaleService { +class MockLocaleService extends _i1.Mock implements _i20.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -728,7 +729,7 @@ class MockLocaleService extends _i1.Mock implements _i19.LocaleService { returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); @override - void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -736,7 +737,7 @@ class MockLocaleService extends _i1.Mock implements _i19.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -764,7 +765,7 @@ class MockLocaleService extends _i1.Mock implements _i19.LocaleService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i20.ThemeService { +class MockThemeService extends _i1.Mock implements _i21.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @@ -794,10 +795,10 @@ class MockThemeService extends _i1.Mock implements _i20.ThemeService { ), ) as _i3.MainDB); @override - List<_i21.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i22.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i21.StackTheme>[], - ) as List<_i21.StackTheme>); + returnValue: <_i22.StackTheme>[], + ) as List<_i22.StackTheme>); @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -807,7 +808,7 @@ class MockThemeService extends _i1.Mock implements _i20.ThemeService { returnValueForMissingStub: null, ); @override - _i13.Future install({required _i22.Uint8List? themeArchiveData}) => + _i13.Future install({required _i23.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, @@ -847,39 +848,39 @@ class MockThemeService extends _i1.Mock implements _i20.ThemeService { returnValue: _i13.Future.value(false), ) as _i13.Future); @override - _i13.Future> fetchThemes() => + _i13.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i13.Future>.value( - <_i20.StackThemeMetaData>[]), - ) as _i13.Future>); + returnValue: _i13.Future>.value( + <_i21.StackThemeMetaData>[]), + ) as _i13.Future>); @override - _i13.Future<_i22.Uint8List> fetchTheme( - {required _i20.StackThemeMetaData? themeMetaData}) => + _i13.Future<_i23.Uint8List> fetchTheme( + {required _i21.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i13.Future<_i22.Uint8List>.value(_i22.Uint8List(0)), - ) as _i13.Future<_i22.Uint8List>); + returnValue: _i13.Future<_i23.Uint8List>.value(_i23.Uint8List(0)), + ) as _i13.Future<_i23.Uint8List>); @override - _i21.StackTheme? getTheme({required String? themeId}) => + _i22.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i21.StackTheme?); + )) as _i22.StackTheme?); } /// A class which mocks [Prefs]. /// /// See the documentation for Mockito's code generation for more information. -class MockPrefs extends _i1.Mock implements _i14.Prefs { +class MockPrefs extends _i1.Mock implements _i15.Prefs { MockPrefs() { _i1.throwOnMissingStub(this); } @@ -935,12 +936,12 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - _i23.SyncingType get syncType => (super.noSuchMethod( + _i24.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), - returnValue: _i23.SyncingType.currentWalletOnly, - ) as _i23.SyncingType); + returnValue: _i24.SyncingType.currentWalletOnly, + ) as _i24.SyncingType); @override - set syncType(_i23.SyncingType? syncType) => super.noSuchMethod( + set syncType(_i24.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( #syncType, syncType, @@ -1099,12 +1100,12 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - _i24.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( + _i25.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), - returnValue: _i24.BackupFrequencyType.everyTenMinutes, - ) as _i24.BackupFrequencyType); + returnValue: _i25.BackupFrequencyType.everyTenMinutes, + ) as _i25.BackupFrequencyType); @override - set backupFrequencyType(_i24.BackupFrequencyType? backupFrequencyType) => + set backupFrequencyType(_i25.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( Invocation.setter( #backupFrequencyType, @@ -1299,17 +1300,17 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); @override - _i25.AmountUnit amountUnit(_i16.Coin? coin) => (super.noSuchMethod( + _i26.AmountUnit amountUnit(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], ), - returnValue: _i25.AmountUnit.normal, - ) as _i25.AmountUnit); + returnValue: _i26.AmountUnit.normal, + ) as _i26.AmountUnit); @override void updateAmountUnit({ - required _i16.Coin? coin, - required _i25.AmountUnit? amountUnit, + required _i17.Coin? coin, + required _i26.AmountUnit? amountUnit, }) => super.noSuchMethod( Invocation.method( @@ -1323,7 +1324,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i16.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -1332,7 +1333,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ) as int); @override void updateMaxDecimals({ - required _i16.Coin? coin, + required _i17.Coin? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -1347,7 +1348,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - _i8.FusionInfo getFusionServerInfo(_i16.Coin? coin) => (super.noSuchMethod( + _i8.FusionInfo getFusionServerInfo(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #getFusionServerInfo, [coin], @@ -1362,7 +1363,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ) as _i8.FusionInfo); @override void setFusionServerInfo( - _i16.Coin? coin, + _i17.Coin? coin, _i8.FusionInfo? fusionServerInfo, ) => super.noSuchMethod( @@ -1376,7 +1377,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1384,7 +1385,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1412,7 +1413,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i27.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -1423,10 +1424,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -1485,16 +1486,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI { ), ) as _i10.Balance); @override - _i13.Future> get transactions => (super.noSuchMethod( + _i13.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i13.Future>.value(<_i27.Transaction>[]), - ) as _i13.Future>); + _i13.Future>.value(<_i28.Transaction>[]), + ) as _i13.Future>); @override - _i13.Future> get utxos => (super.noSuchMethod( + _i13.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i13.Future>.value(<_i27.UTXO>[]), - ) as _i13.Future>); + returnValue: _i13.Future>.value(<_i28.UTXO>[]), + ) as _i13.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( diff --git a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart index 6373db881..ad95b7baf 100644 --- a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart +++ b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart @@ -398,9 +398,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { _i4.Future>.value({}), ) as _i4.Future>); @override - _i4.Future> getSparkMintMetaData({ + _i4.Future>> getSparkMintMetaData({ String? requestID, - required List<({int denom, String pubCoin})>? sparkCoinHashes, + required List? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( @@ -411,9 +411,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { #sparkCoinHashes: sparkCoinHashes, }, ), - returnValue: - _i4.Future>.value({}), - ) as _i4.Future>); + returnValue: _i4.Future>>.value( + >[]), + ) as _i4.Future>>); @override _i4.Future getSparkLatestCoinId({String? requestID}) => (super.noSuchMethod( diff --git a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart index 12a053fbb..b636ed2a4 100644 --- a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart +++ b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart @@ -398,9 +398,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { _i4.Future>.value({}), ) as _i4.Future>); @override - _i4.Future> getSparkMintMetaData({ + _i4.Future>> getSparkMintMetaData({ String? requestID, - required List<({int denom, String pubCoin})>? sparkCoinHashes, + required List? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( @@ -411,9 +411,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { #sparkCoinHashes: sparkCoinHashes, }, ), - returnValue: - _i4.Future>.value({}), - ) as _i4.Future>); + returnValue: _i4.Future>>.value( + >[]), + ) as _i4.Future>>); @override _i4.Future getSparkLatestCoinId({String? requestID}) => (super.noSuchMethod( diff --git a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart index 627f385af..3accb6115 100644 --- a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart +++ b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart @@ -398,9 +398,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { _i4.Future>.value({}), ) as _i4.Future>); @override - _i4.Future> getSparkMintMetaData({ + _i4.Future>> getSparkMintMetaData({ String? requestID, - required List<({int denom, String pubCoin})>? sparkCoinHashes, + required List? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( @@ -411,9 +411,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { #sparkCoinHashes: sparkCoinHashes, }, ), - returnValue: - _i4.Future>.value({}), - ) as _i4.Future>); + returnValue: _i4.Future>>.value( + >[]), + ) as _i4.Future>>); @override _i4.Future getSparkLatestCoinId({String? requestID}) => (super.noSuchMethod( diff --git a/test/services/coins/firo/firo_wallet_test.mocks.dart b/test/services/coins/firo/firo_wallet_test.mocks.dart index 398e7a6ab..f75e1f4f2 100644 --- a/test/services/coins/firo/firo_wallet_test.mocks.dart +++ b/test/services/coins/firo/firo_wallet_test.mocks.dart @@ -428,9 +428,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { _i5.Future>.value({}), ) as _i5.Future>); @override - _i5.Future> getSparkMintMetaData({ + _i5.Future>> getSparkMintMetaData({ String? requestID, - required List<({int denom, String pubCoin})>? sparkCoinHashes, + required List? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( @@ -441,9 +441,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { #sparkCoinHashes: sparkCoinHashes, }, ), - returnValue: - _i5.Future>.value({}), - ) as _i5.Future>); + returnValue: _i5.Future>>.value( + >[]), + ) as _i5.Future>>); @override _i5.Future getSparkLatestCoinId({String? requestID}) => (super.noSuchMethod( diff --git a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart index d724903eb..f1445d743 100644 --- a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart +++ b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart @@ -398,9 +398,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { _i4.Future>.value({}), ) as _i4.Future>); @override - _i4.Future> getSparkMintMetaData({ + _i4.Future>> getSparkMintMetaData({ String? requestID, - required List<({int denom, String pubCoin})>? sparkCoinHashes, + required List? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( @@ -411,9 +411,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { #sparkCoinHashes: sparkCoinHashes, }, ), - returnValue: - _i4.Future>.value({}), - ) as _i4.Future>); + returnValue: _i4.Future>>.value( + >[]), + ) as _i4.Future>>); @override _i4.Future getSparkLatestCoinId({String? requestID}) => (super.noSuchMethod( diff --git a/test/services/coins/particl/particl_wallet_test.mocks.dart b/test/services/coins/particl/particl_wallet_test.mocks.dart index 8bbfed24e..051cb4bbd 100644 --- a/test/services/coins/particl/particl_wallet_test.mocks.dart +++ b/test/services/coins/particl/particl_wallet_test.mocks.dart @@ -398,9 +398,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { _i4.Future>.value({}), ) as _i4.Future>); @override - _i4.Future> getSparkMintMetaData({ + _i4.Future>> getSparkMintMetaData({ String? requestID, - required List<({int denom, String pubCoin})>? sparkCoinHashes, + required List? sparkCoinHashes, }) => (super.noSuchMethod( Invocation.method( @@ -411,9 +411,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { #sparkCoinHashes: sparkCoinHashes, }, ), - returnValue: - _i4.Future>.value({}), - ) as _i4.Future>); + returnValue: _i4.Future>>.value( + >[]), + ) as _i4.Future>>); @override _i4.Future getSparkLatestCoinId({String? requestID}) => (super.noSuchMethod( diff --git a/test/widget_tests/managed_favorite_test.mocks.dart b/test/widget_tests/managed_favorite_test.mocks.dart index 272aacf9e..507f0c1ed 100644 --- a/test/widget_tests/managed_favorite_test.mocks.dart +++ b/test/widget_tests/managed_favorite_test.mocks.dart @@ -4,33 +4,34 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i13; -import 'dart:typed_data' as _i20; -import 'dart:ui' as _i17; +import 'dart:typed_data' as _i21; +import 'dart:ui' as _i18; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; import 'package:stackwallet/models/balance.dart' as _i10; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i27; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i19; -import 'package:stackwallet/models/node_model.dart' as _i25; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i28; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i20; +import 'package:stackwallet/models/node_model.dart' as _i26; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9; import 'package:stackwallet/networking/http.dart' as _i6; -import 'package:stackwallet/services/coins/coin_service.dart' as _i26; -import 'package:stackwallet/services/locale_service.dart' as _i24; +import 'package:stackwallet/services/coins/coin_service.dart' as _i27; +import 'package:stackwallet/services/locale_service.dart' as _i25; import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/wallets.dart' as _i12; -import 'package:stackwallet/services/wallets_service.dart' as _i15; -import 'package:stackwallet/themes/theme_service.dart' as _i18; +import 'package:stackwallet/services/wallets_service.dart' as _i16; +import 'package:stackwallet/themes/theme_service.dart' as _i19; import 'package:stackwallet/utilities/amount/amount.dart' as _i11; -import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i23; -import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i22; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16; -import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i21; +import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i24; +import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i23; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i17; +import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i22; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i8; -import 'package:stackwallet/utilities/prefs.dart' as _i14; +import 'package:stackwallet/utilities/prefs.dart' as _i15; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; +import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i14; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' as _i7; @@ -213,14 +214,14 @@ class MockWallets extends _i1.Mock implements _i12.Wallets { ); @override _i13.Future deleteWallet( - String? walletId, + _i14.WalletInfo? info, _i8.SecureStorageInterface? secureStorage, ) => (super.noSuchMethod( Invocation.method( #deleteWallet, [ - walletId, + info, secureStorage, ], ), @@ -229,7 +230,7 @@ class MockWallets extends _i1.Mock implements _i12.Wallets { ) as _i13.Future); @override _i13.Future load( - _i14.Prefs? prefs, + _i15.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -245,7 +246,7 @@ class MockWallets extends _i1.Mock implements _i12.Wallets { ) as _i13.Future); @override _i13.Future loadAfterStackRestore( - _i14.Prefs? prefs, + _i15.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -264,18 +265,18 @@ class MockWallets extends _i1.Mock implements _i12.Wallets { /// A class which mocks [WalletsService]. /// /// See the documentation for Mockito's code generation for more information. -class MockWalletsService extends _i1.Mock implements _i15.WalletsService { +class MockWalletsService extends _i1.Mock implements _i16.WalletsService { MockWalletsService() { _i1.throwOnMissingStub(this); } @override - _i13.Future> get walletNames => + _i13.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i13.Future>.value( - {}), - ) as _i13.Future>); + returnValue: _i13.Future>.value( + {}), + ) as _i13.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), @@ -300,18 +301,18 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService { returnValue: _i13.Future.value(false), ) as _i13.Future); @override - Map fetchWalletsData() => (super.noSuchMethod( + Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( #fetchWalletsData, [], ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override _i13.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i16.Coin? coin, + required _i17.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -331,7 +332,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService { @override _i13.Future addNewWallet({ required String? name, - required _i16.Coin? coin, + required _i17.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -462,7 +463,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService { returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); @override - void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -470,7 +471,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -498,7 +499,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i18.ThemeService { +class MockThemeService extends _i1.Mock implements _i19.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @@ -528,10 +529,10 @@ class MockThemeService extends _i1.Mock implements _i18.ThemeService { ), ) as _i3.MainDB); @override - List<_i19.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i20.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i19.StackTheme>[], - ) as List<_i19.StackTheme>); + returnValue: <_i20.StackTheme>[], + ) as List<_i20.StackTheme>); @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -541,7 +542,7 @@ class MockThemeService extends _i1.Mock implements _i18.ThemeService { returnValueForMissingStub: null, ); @override - _i13.Future install({required _i20.Uint8List? themeArchiveData}) => + _i13.Future install({required _i21.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, @@ -581,39 +582,39 @@ class MockThemeService extends _i1.Mock implements _i18.ThemeService { returnValue: _i13.Future.value(false), ) as _i13.Future); @override - _i13.Future> fetchThemes() => + _i13.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i13.Future>.value( - <_i18.StackThemeMetaData>[]), - ) as _i13.Future>); + returnValue: _i13.Future>.value( + <_i19.StackThemeMetaData>[]), + ) as _i13.Future>); @override - _i13.Future<_i20.Uint8List> fetchTheme( - {required _i18.StackThemeMetaData? themeMetaData}) => + _i13.Future<_i21.Uint8List> fetchTheme( + {required _i19.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i13.Future<_i20.Uint8List>.value(_i20.Uint8List(0)), - ) as _i13.Future<_i20.Uint8List>); + returnValue: _i13.Future<_i21.Uint8List>.value(_i21.Uint8List(0)), + ) as _i13.Future<_i21.Uint8List>); @override - _i19.StackTheme? getTheme({required String? themeId}) => + _i20.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i19.StackTheme?); + )) as _i20.StackTheme?); } /// A class which mocks [Prefs]. /// /// See the documentation for Mockito's code generation for more information. -class MockPrefs extends _i1.Mock implements _i14.Prefs { +class MockPrefs extends _i1.Mock implements _i15.Prefs { MockPrefs() { _i1.throwOnMissingStub(this); } @@ -669,12 +670,12 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - _i21.SyncingType get syncType => (super.noSuchMethod( + _i22.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), - returnValue: _i21.SyncingType.currentWalletOnly, - ) as _i21.SyncingType); + returnValue: _i22.SyncingType.currentWalletOnly, + ) as _i22.SyncingType); @override - set syncType(_i21.SyncingType? syncType) => super.noSuchMethod( + set syncType(_i22.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( #syncType, syncType, @@ -833,12 +834,12 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - _i22.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( + _i23.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), - returnValue: _i22.BackupFrequencyType.everyTenMinutes, - ) as _i22.BackupFrequencyType); + returnValue: _i23.BackupFrequencyType.everyTenMinutes, + ) as _i23.BackupFrequencyType); @override - set backupFrequencyType(_i22.BackupFrequencyType? backupFrequencyType) => + set backupFrequencyType(_i23.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( Invocation.setter( #backupFrequencyType, @@ -1033,17 +1034,17 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); @override - _i23.AmountUnit amountUnit(_i16.Coin? coin) => (super.noSuchMethod( + _i24.AmountUnit amountUnit(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], ), - returnValue: _i23.AmountUnit.normal, - ) as _i23.AmountUnit); + returnValue: _i24.AmountUnit.normal, + ) as _i24.AmountUnit); @override void updateAmountUnit({ - required _i16.Coin? coin, - required _i23.AmountUnit? amountUnit, + required _i17.Coin? coin, + required _i24.AmountUnit? amountUnit, }) => super.noSuchMethod( Invocation.method( @@ -1057,7 +1058,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i16.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -1066,7 +1067,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ) as int); @override void updateMaxDecimals({ - required _i16.Coin? coin, + required _i17.Coin? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -1081,7 +1082,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - _i7.FusionInfo getFusionServerInfo(_i16.Coin? coin) => (super.noSuchMethod( + _i7.FusionInfo getFusionServerInfo(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #getFusionServerInfo, [coin], @@ -1096,7 +1097,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { ) as _i7.FusionInfo); @override void setFusionServerInfo( - _i16.Coin? coin, + _i17.Coin? coin, _i7.FusionInfo? fusionServerInfo, ) => super.noSuchMethod( @@ -1110,7 +1111,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1118,7 +1119,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1146,7 +1147,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i24.LocaleService { +class MockLocaleService extends _i1.Mock implements _i25.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -1172,7 +1173,7 @@ class MockLocaleService extends _i1.Mock implements _i24.LocaleService { returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); @override - void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1180,7 +1181,7 @@ class MockLocaleService extends _i1.Mock implements _i24.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1218,15 +1219,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), ) as _i8.SecureStorageInterface); @override - List<_i25.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i26.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i25.NodeModel>[], - ) as List<_i25.NodeModel>); + returnValue: <_i26.NodeModel>[], + ) as List<_i26.NodeModel>); @override - List<_i25.NodeModel> get nodes => (super.noSuchMethod( + List<_i26.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i25.NodeModel>[], - ) as List<_i25.NodeModel>); + returnValue: <_i26.NodeModel>[], + ) as List<_i26.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), @@ -1243,8 +1244,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i13.Future); @override _i13.Future setPrimaryNodeFor({ - required _i16.Coin? coin, - required _i25.NodeModel? node, + required _i17.Coin? coin, + required _i26.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -1261,40 +1262,40 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); @override - _i25.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) => + _i26.NodeModel? getPrimaryNodeFor({required _i17.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i25.NodeModel?); + )) as _i26.NodeModel?); @override - List<_i25.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod( + List<_i26.NodeModel> getNodesFor(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i25.NodeModel>[], - ) as List<_i25.NodeModel>); + returnValue: <_i26.NodeModel>[], + ) as List<_i26.NodeModel>); @override - _i25.NodeModel? getNodeById({required String? id}) => + _i26.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i25.NodeModel?); + )) as _i26.NodeModel?); @override - List<_i25.NodeModel> failoverNodesFor({required _i16.Coin? coin}) => + List<_i26.NodeModel> failoverNodesFor({required _i17.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i25.NodeModel>[], - ) as List<_i25.NodeModel>); + returnValue: <_i26.NodeModel>[], + ) as List<_i26.NodeModel>); @override _i13.Future add( - _i25.NodeModel? node, + _i26.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -1346,7 +1347,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i13.Future); @override _i13.Future edit( - _i25.NodeModel? editedNode, + _i26.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -1372,7 +1373,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); @override - void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1380,7 +1381,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1408,7 +1409,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i27.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -1419,10 +1420,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i16.Coin get coin => (super.noSuchMethod( + _i17.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i16.Coin.bitcoin, - ) as _i16.Coin); + returnValue: _i17.Coin.bitcoin, + ) as _i17.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -1481,16 +1482,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI { ), ) as _i10.Balance); @override - _i13.Future> get transactions => (super.noSuchMethod( + _i13.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i13.Future>.value(<_i27.Transaction>[]), - ) as _i13.Future>); + _i13.Future>.value(<_i28.Transaction>[]), + ) as _i13.Future>); @override - _i13.Future> get utxos => (super.noSuchMethod( + _i13.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i13.Future>.value(<_i27.UTXO>[]), - ) as _i13.Future>); + returnValue: _i13.Future>.value(<_i28.UTXO>[]), + ) as _i13.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( diff --git a/test/widget_tests/node_options_sheet_test.mocks.dart b/test/widget_tests/node_options_sheet_test.mocks.dart index c210b4921..3b9b4a3a9 100644 --- a/test/widget_tests/node_options_sheet_test.mocks.dart +++ b/test/widget_tests/node_options_sheet_test.mocks.dart @@ -5,29 +5,30 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i10; import 'dart:io' as _i8; -import 'dart:ui' as _i16; +import 'dart:ui' as _i17; 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 _i17; +import 'package:stackwallet/models/node_model.dart' as _i18; import 'package:stackwallet/services/event_bus/events/global/tor_connection_status_changed_event.dart' - as _i19; + as _i20; import 'package:stackwallet/services/node_service.dart' as _i2; -import 'package:stackwallet/services/tor_service.dart' as _i18; +import 'package:stackwallet/services/tor_service.dart' as _i19; import 'package:stackwallet/services/wallets.dart' as _i9; -import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i14; -import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i13; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15; -import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i12; +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; -import 'package:stackwallet/utilities/prefs.dart' as _i11; +import 'package:stackwallet/utilities/prefs.dart' as _i12; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; +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 _i20; +import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i21; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -178,14 +179,14 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ); @override _i10.Future deleteWallet( - String? walletId, + _i11.WalletInfo? info, _i7.SecureStorageInterface? secureStorage, ) => (super.noSuchMethod( Invocation.method( #deleteWallet, [ - walletId, + info, secureStorage, ], ), @@ -194,7 +195,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ) as _i10.Future); @override _i10.Future load( - _i11.Prefs? prefs, + _i12.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -210,7 +211,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { ) as _i10.Future); @override _i10.Future loadAfterStackRestore( - _i11.Prefs? prefs, + _i12.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -229,7 +230,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { /// A class which mocks [Prefs]. /// /// See the documentation for Mockito's code generation for more information. -class MockPrefs extends _i1.Mock implements _i11.Prefs { +class MockPrefs extends _i1.Mock implements _i12.Prefs { MockPrefs() { _i1.throwOnMissingStub(this); } @@ -285,12 +286,12 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs { returnValueForMissingStub: null, ); @override - _i12.SyncingType get syncType => (super.noSuchMethod( + _i13.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), - returnValue: _i12.SyncingType.currentWalletOnly, - ) as _i12.SyncingType); + returnValue: _i13.SyncingType.currentWalletOnly, + ) as _i13.SyncingType); @override - set syncType(_i12.SyncingType? syncType) => super.noSuchMethod( + set syncType(_i13.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( #syncType, syncType, @@ -449,12 +450,12 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs { returnValueForMissingStub: null, ); @override - _i13.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( + _i14.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), - returnValue: _i13.BackupFrequencyType.everyTenMinutes, - ) as _i13.BackupFrequencyType); + returnValue: _i14.BackupFrequencyType.everyTenMinutes, + ) as _i14.BackupFrequencyType); @override - set backupFrequencyType(_i13.BackupFrequencyType? backupFrequencyType) => + set backupFrequencyType(_i14.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( Invocation.setter( #backupFrequencyType, @@ -649,17 +650,17 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - _i14.AmountUnit amountUnit(_i15.Coin? coin) => (super.noSuchMethod( + _i15.AmountUnit amountUnit(_i16.Coin? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], ), - returnValue: _i14.AmountUnit.normal, - ) as _i14.AmountUnit); + returnValue: _i15.AmountUnit.normal, + ) as _i15.AmountUnit); @override void updateAmountUnit({ - required _i15.Coin? coin, - required _i14.AmountUnit? amountUnit, + required _i16.Coin? coin, + required _i15.AmountUnit? amountUnit, }) => super.noSuchMethod( Invocation.method( @@ -673,7 +674,7 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i15.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i16.Coin? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -682,7 +683,7 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs { ) as int); @override void updateMaxDecimals({ - required _i15.Coin? coin, + required _i16.Coin? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -697,7 +698,7 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs { returnValueForMissingStub: null, ); @override - _i6.FusionInfo getFusionServerInfo(_i15.Coin? coin) => (super.noSuchMethod( + _i6.FusionInfo getFusionServerInfo(_i16.Coin? coin) => (super.noSuchMethod( Invocation.method( #getFusionServerInfo, [coin], @@ -712,7 +713,7 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs { ) as _i6.FusionInfo); @override void setFusionServerInfo( - _i15.Coin? coin, + _i16.Coin? coin, _i6.FusionInfo? fusionServerInfo, ) => super.noSuchMethod( @@ -726,7 +727,7 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -734,7 +735,7 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -776,15 +777,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), ) as _i7.SecureStorageInterface); @override - List<_i17.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i18.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i17.NodeModel>[], - ) as List<_i17.NodeModel>); + returnValue: <_i18.NodeModel>[], + ) as List<_i18.NodeModel>); @override - List<_i17.NodeModel> get nodes => (super.noSuchMethod( + List<_i18.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i17.NodeModel>[], - ) as List<_i17.NodeModel>); + returnValue: <_i18.NodeModel>[], + ) as List<_i18.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), @@ -801,8 +802,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i10.Future); @override _i10.Future setPrimaryNodeFor({ - required _i15.Coin? coin, - required _i17.NodeModel? node, + required _i16.Coin? coin, + required _i18.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -819,40 +820,40 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - _i17.NodeModel? getPrimaryNodeFor({required _i15.Coin? coin}) => + _i18.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i17.NodeModel?); + )) as _i18.NodeModel?); @override - List<_i17.NodeModel> getNodesFor(_i15.Coin? coin) => (super.noSuchMethod( + List<_i18.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i17.NodeModel>[], - ) as List<_i17.NodeModel>); + returnValue: <_i18.NodeModel>[], + ) as List<_i18.NodeModel>); @override - _i17.NodeModel? getNodeById({required String? id}) => + _i18.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i17.NodeModel?); + )) as _i18.NodeModel?); @override - List<_i17.NodeModel> failoverNodesFor({required _i15.Coin? coin}) => + List<_i18.NodeModel> failoverNodesFor({required _i16.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i17.NodeModel>[], - ) as List<_i17.NodeModel>); + returnValue: <_i18.NodeModel>[], + ) as List<_i18.NodeModel>); @override _i10.Future add( - _i17.NodeModel? node, + _i18.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -904,7 +905,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i10.Future); @override _i10.Future edit( - _i17.NodeModel? editedNode, + _i18.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -930,7 +931,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); @override - void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -938,7 +939,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -966,16 +967,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 _i18.TorService { +class MockTorService extends _i1.Mock implements _i19.TorService { MockTorService() { _i1.throwOnMissingStub(this); } @override - _i19.TorConnectionStatus get status => (super.noSuchMethod( + _i20.TorConnectionStatus get status => (super.noSuchMethod( Invocation.getter(#status), - returnValue: _i19.TorConnectionStatus.disconnected, - ) as _i19.TorConnectionStatus); + returnValue: _i20.TorConnectionStatus.disconnected, + ) as _i20.TorConnectionStatus); @override ({_i8.InternetAddress host, int port}) getProxyInfo() => (super.noSuchMethod( Invocation.method( @@ -996,7 +997,7 @@ class MockTorService extends _i1.Mock implements _i18.TorService { @override void init({ required String? torDataDirPath, - _i20.Tor? mockableOverride, + _i21.Tor? mockableOverride, }) => super.noSuchMethod( Invocation.method( diff --git a/test/widget_tests/table_view/table_view_row_test.mocks.dart b/test/widget_tests/table_view/table_view_row_test.mocks.dart index 914d5beda..e927ac2f1 100644 --- a/test/widget_tests/table_view/table_view_row_test.mocks.dart +++ b/test/widget_tests/table_view/table_view_row_test.mocks.dart @@ -4,28 +4,29 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i11; -import 'dart:typed_data' as _i19; -import 'dart:ui' as _i16; +import 'dart:typed_data' as _i20; +import 'dart:ui' as _i17; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; import 'package:stackwallet/models/balance.dart' as _i8; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i21; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i18; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i22; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i19; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i7; import 'package:stackwallet/networking/http.dart' as _i6; -import 'package:stackwallet/services/coins/coin_service.dart' as _i20; +import 'package:stackwallet/services/coins/coin_service.dart' as _i21; import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/wallets.dart' as _i10; -import 'package:stackwallet/services/wallets_service.dart' as _i14; -import 'package:stackwallet/themes/theme_service.dart' as _i17; +import 'package:stackwallet/services/wallets_service.dart' as _i15; +import 'package:stackwallet/themes/theme_service.dart' as _i18; import 'package:stackwallet/utilities/amount/amount.dart' as _i9; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i12; -import 'package:stackwallet/utilities/prefs.dart' as _i13; + as _i13; +import 'package:stackwallet/utilities/prefs.dart' as _i14; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; +import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i12; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; // ignore_for_file: type=lint @@ -185,14 +186,14 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { ); @override _i11.Future deleteWallet( - String? walletId, - _i12.SecureStorageInterface? secureStorage, + _i12.WalletInfo? info, + _i13.SecureStorageInterface? secureStorage, ) => (super.noSuchMethod( Invocation.method( #deleteWallet, [ - walletId, + info, secureStorage, ], ), @@ -201,7 +202,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { ) as _i11.Future); @override _i11.Future load( - _i13.Prefs? prefs, + _i14.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -217,7 +218,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { ) as _i11.Future); @override _i11.Future loadAfterStackRestore( - _i13.Prefs? prefs, + _i14.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -236,18 +237,18 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { /// A class which mocks [WalletsService]. /// /// See the documentation for Mockito's code generation for more information. -class MockWalletsService extends _i1.Mock implements _i14.WalletsService { +class MockWalletsService extends _i1.Mock implements _i15.WalletsService { MockWalletsService() { _i1.throwOnMissingStub(this); } @override - _i11.Future> get walletNames => + _i11.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i11.Future>.value( - {}), - ) as _i11.Future>); + returnValue: _i11.Future>.value( + {}), + ) as _i11.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), @@ -272,18 +273,18 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService { returnValue: _i11.Future.value(false), ) as _i11.Future); @override - Map fetchWalletsData() => (super.noSuchMethod( + Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( #fetchWalletsData, [], ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override _i11.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i15.Coin? coin, + required _i16.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -303,7 +304,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService { @override _i11.Future addNewWallet({ required String? name, - required _i15.Coin? coin, + required _i16.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -434,7 +435,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService { returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); @override - void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -442,7 +443,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -470,7 +471,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService { /// 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 _i18.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @@ -500,10 +501,10 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { ), ) as _i3.MainDB); @override - List<_i18.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i19.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i18.StackTheme>[], - ) as List<_i18.StackTheme>); + returnValue: <_i19.StackTheme>[], + ) as List<_i19.StackTheme>); @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -513,7 +514,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { returnValueForMissingStub: null, ); @override - _i11.Future install({required _i19.Uint8List? themeArchiveData}) => + _i11.Future install({required _i20.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, @@ -553,39 +554,39 @@ class MockThemeService extends _i1.Mock implements _i17.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( - <_i17.StackThemeMetaData>[]), - ) as _i11.Future>); + returnValue: _i11.Future>.value( + <_i18.StackThemeMetaData>[]), + ) as _i11.Future>); @override - _i11.Future<_i19.Uint8List> fetchTheme( - {required _i17.StackThemeMetaData? themeMetaData}) => + _i11.Future<_i20.Uint8List> fetchTheme( + {required _i18.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i11.Future<_i19.Uint8List>.value(_i19.Uint8List(0)), - ) as _i11.Future<_i19.Uint8List>); + returnValue: _i11.Future<_i20.Uint8List>.value(_i20.Uint8List(0)), + ) as _i11.Future<_i20.Uint8List>); @override - _i18.StackTheme? getTheme({required String? themeId}) => + _i19.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i18.StackTheme?); + )) as _i19.StackTheme?); } /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -596,10 +597,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i15.Coin get coin => (super.noSuchMethod( + _i16.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i15.Coin.bitcoin, - ) as _i15.Coin); + returnValue: _i16.Coin.bitcoin, + ) as _i16.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -658,16 +659,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { ), ) as _i8.Balance); @override - _i11.Future> get transactions => (super.noSuchMethod( + _i11.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i11.Future>.value(<_i21.Transaction>[]), - ) as _i11.Future>); + _i11.Future>.value(<_i22.Transaction>[]), + ) as _i11.Future>); @override - _i11.Future> get utxos => (super.noSuchMethod( + _i11.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i11.Future>.value(<_i21.UTXO>[]), - ) as _i11.Future>); + returnValue: _i11.Future>.value(<_i22.UTXO>[]), + ) as _i11.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( diff --git a/test/widget_tests/transaction_card_test.dart b/test/widget_tests/transaction_card_test.dart index aca8ef3c1..ced9da97a 100644 --- a/test/widget_tests/transaction_card_test.dart +++ b/test/widget_tests/transaction_card_test.dart @@ -2,7 +2,6 @@ import 'package:mockito/annotations.dart'; import 'package:stackwallet/db/isar/main_db.dart'; import 'package:stackwallet/models/isar/stack_theme.dart'; import 'package:stackwallet/services/coins/coin_service.dart'; -import 'package:stackwallet/services/coins/firo/firo_wallet.dart'; import 'package:stackwallet/services/locale_service.dart'; import 'package:stackwallet/services/price_service.dart'; import 'package:stackwallet/services/wallets.dart'; @@ -12,7 +11,6 @@ import 'package:stackwallet/utilities/prefs.dart'; @GenerateMocks([ Wallets, CoinServiceAPI, - FiroWallet, LocaleService, Prefs, PriceService, diff --git a/test/widget_tests/transaction_card_test.mocks.dart b/test/widget_tests/transaction_card_test.mocks.dart index ca429ccec..8f41ddefb 100644 --- a/test/widget_tests/transaction_card_test.mocks.dart +++ b/test/widget_tests/transaction_card_test.mocks.dart @@ -3,50 +3,44 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i17; -import 'dart:typed_data' as _i34; -import 'dart:ui' as _i26; +import 'dart:async' as _i14; +import 'dart:typed_data' as _i30; +import 'dart:ui' as _i22; -import 'package:decimal/decimal.dart' as _i31; -import 'package:isar/isar.dart' as _i15; +import 'package:decimal/decimal.dart' as _i27; +import 'package:isar/isar.dart' as _i12; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; -import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i11; -import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i10; import 'package:stackwallet/models/balance.dart' as _i7; -import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i37; +import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i32; import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart' - as _i38; -import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i36; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i22; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i33; + as _i33; +import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i31; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i20; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i29; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i6; -import 'package:stackwallet/models/signing_data.dart' as _i24; -import 'package:stackwallet/networking/http.dart' as _i14; -import 'package:stackwallet/services/coins/coin_service.dart' as _i20; -import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as _i23; -import 'package:stackwallet/services/locale_service.dart' as _i25; +import 'package:stackwallet/networking/http.dart' as _i11; +import 'package:stackwallet/services/coins/coin_service.dart' as _i18; +import 'package:stackwallet/services/locale_service.dart' as _i21; import 'package:stackwallet/services/node_service.dart' as _i2; -import 'package:stackwallet/services/price_service.dart' as _i30; -import 'package:stackwallet/services/transaction_notification_tracker.dart' - as _i9; -import 'package:stackwallet/services/wallets.dart' as _i16; -import 'package:stackwallet/themes/theme_service.dart' as _i32; +import 'package:stackwallet/services/price_service.dart' as _i26; +import 'package:stackwallet/services/wallets.dart' as _i13; +import 'package:stackwallet/themes/theme_service.dart' as _i28; import 'package:stackwallet/utilities/amount/amount.dart' as _i8; -import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i29; -import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i28; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i21; -import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i27; +import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i25; +import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i24; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i19; +import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i23; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i18; -import 'package:stackwallet/utilities/prefs.dart' as _i19; + as _i16; +import 'package:stackwallet/utilities/prefs.dart' as _i17; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; -import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i35; +import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i15; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' - as _i12; -import 'package:tuple/tuple.dart' as _i13; + as _i9; +import 'package:tuple/tuple.dart' as _i10; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -120,9 +114,8 @@ class _FakeAmount_5 extends _i1.SmartFake implements _i8.Amount { ); } -class _FakeTransactionNotificationTracker_6 extends _i1.SmartFake - implements _i9.TransactionNotificationTracker { - _FakeTransactionNotificationTracker_6( +class _FakeFusionInfo_6 extends _i1.SmartFake implements _i9.FusionInfo { + _FakeFusionInfo_6( Object parent, Invocation parentInvocation, ) : super( @@ -131,9 +124,8 @@ class _FakeTransactionNotificationTracker_6 extends _i1.SmartFake ); } -class _FakeElectrumXClient_7 extends _i1.SmartFake - implements _i10.ElectrumXClient { - _FakeElectrumXClient_7( +class _FakeDuration_7 extends _i1.SmartFake implements Duration { + _FakeDuration_7( Object parent, Invocation parentInvocation, ) : super( @@ -142,9 +134,9 @@ class _FakeElectrumXClient_7 extends _i1.SmartFake ); } -class _FakeCachedElectrumXClient_8 extends _i1.SmartFake - implements _i11.CachedElectrumXClient { - _FakeCachedElectrumXClient_8( +class _FakeTuple2_8 extends _i1.SmartFake + implements _i10.Tuple2 { + _FakeTuple2_8( Object parent, Invocation parentInvocation, ) : super( @@ -153,8 +145,8 @@ class _FakeCachedElectrumXClient_8 extends _i1.SmartFake ); } -class _FakeFusionInfo_9 extends _i1.SmartFake implements _i12.FusionInfo { - _FakeFusionInfo_9( +class _FakeHTTP_9 extends _i1.SmartFake implements _i11.HTTP { + _FakeHTTP_9( Object parent, Invocation parentInvocation, ) : super( @@ -163,8 +155,8 @@ class _FakeFusionInfo_9 extends _i1.SmartFake implements _i12.FusionInfo { ); } -class _FakeDuration_10 extends _i1.SmartFake implements Duration { - _FakeDuration_10( +class _FakeIsar_10 extends _i1.SmartFake implements _i12.Isar { + _FakeIsar_10( Object parent, Invocation parentInvocation, ) : super( @@ -173,40 +165,9 @@ class _FakeDuration_10 extends _i1.SmartFake implements Duration { ); } -class _FakeTuple2_11 extends _i1.SmartFake - implements _i13.Tuple2 { - _FakeTuple2_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeHTTP_12 extends _i1.SmartFake implements _i14.HTTP { - _FakeHTTP_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeIsar_13 extends _i1.SmartFake implements _i15.Isar { - _FakeIsar_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeQueryBuilder_14 extends _i1.SmartFake - implements _i15.QueryBuilder { - _FakeQueryBuilder_14( +class _FakeQueryBuilder_11 extends _i1.SmartFake + implements _i12.QueryBuilder { + _FakeQueryBuilder_11( Object parent, Invocation parentInvocation, ) : super( @@ -218,7 +179,7 @@ class _FakeQueryBuilder_14 extends _i1.SmartFake /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i16.Wallets { +class MockWallets extends _i1.Mock implements _i13.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -289,24 +250,24 @@ class MockWallets extends _i1.Mock implements _i16.Wallets { returnValueForMissingStub: null, ); @override - _i17.Future deleteWallet( - String? walletId, - _i18.SecureStorageInterface? secureStorage, + _i14.Future deleteWallet( + _i15.WalletInfo? info, + _i16.SecureStorageInterface? secureStorage, ) => (super.noSuchMethod( Invocation.method( #deleteWallet, [ - walletId, + info, secureStorage, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future load( - _i19.Prefs? prefs, + _i14.Future load( + _i17.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -317,12 +278,12 @@ class MockWallets extends _i1.Mock implements _i16.Wallets { mainDB, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future loadAfterStackRestore( - _i19.Prefs? prefs, + _i14.Future loadAfterStackRestore( + _i17.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -333,15 +294,15 @@ class MockWallets extends _i1.Mock implements _i16.Wallets { wallets, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); } /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { MockCoinServiceAPI() { _i1.throwOnMissingStub(this); } @@ -356,10 +317,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i21.Coin get coin => (super.noSuchMethod( + _i19.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i19.Coin.bitcoin, + ) as _i19.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -392,23 +353,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i17.Future<_i6.FeeObject> get fees => (super.noSuchMethod( + _i14.Future<_i6.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i17.Future<_i6.FeeObject>.value(_FakeFeeObject_3( + returnValue: _i14.Future<_i6.FeeObject>.value(_FakeFeeObject_3( this, Invocation.getter(#fees), )), - ) as _i17.Future<_i6.FeeObject>); + ) as _i14.Future<_i6.FeeObject>); @override - _i17.Future get maxFee => (super.noSuchMethod( + _i14.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( + _i14.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i14.Future.value(''), + ) as _i14.Future); @override _i7.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -418,16 +379,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { ), ) as _i7.Balance); @override - _i17.Future> get transactions => (super.noSuchMethod( + _i14.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i17.Future>.value(<_i22.Transaction>[]), - ) as _i17.Future>); + _i14.Future>.value(<_i20.Transaction>[]), + ) as _i14.Future>); @override - _i17.Future> get utxos => (super.noSuchMethod( + _i14.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i22.UTXO>[]), - ) as _i17.Future>); + returnValue: _i14.Future>.value(<_i20.UTXO>[]), + ) as _i14.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -447,20 +408,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValue: '', ) as String); @override - _i17.Future> get mnemonic => (super.noSuchMethod( + _i14.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i14.Future>.value([]), + ) as _i14.Future>); @override - _i17.Future get mnemonicString => (super.noSuchMethod( + _i14.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future get mnemonicPassphrase => (super.noSuchMethod( + _i14.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + ) as _i14.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -477,7 +438,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValue: 0, ) as int); @override - _i17.Future> prepareSend({ + _i14.Future> prepareSend({ required String? address, required _i8.Amount? amount, Map? args, @@ -493,36 +454,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { }, ), returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); + _i14.Future>.value({}), + ) as _i14.Future>); @override - _i17.Future confirmSend({required Map? txData}) => + _i14.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); + returnValue: _i14.Future.value(''), + ) as _i14.Future); @override - _i17.Future refresh() => (super.noSuchMethod( + _i14.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i14.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -532,15 +493,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValue: false, ) as bool); @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( + _i14.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i17.Future recoverFromMnemonic({ + _i14.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -559,40 +520,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { #height: height, }, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future initializeNew( + _i14.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future initializeExisting() => (super.noSuchMethod( + _i14.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future exit() => (super.noSuchMethod( + _i14.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future fullRescan( + _i14.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -604,11 +565,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future<_i8.Amount> estimateFeeFor( + _i14.Future<_i8.Amount> estimateFeeFor( _i8.Amount? amount, int? feeRate, ) => @@ -620,7 +581,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { feeRate, ], ), - returnValue: _i17.Future<_i8.Amount>.value(_FakeAmount_5( + returnValue: _i14.Future<_i8.Amount>.value(_FakeAmount_5( this, Invocation.method( #estimateFeeFor, @@ -630,985 +591,31 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { ], ), )), - ) as _i17.Future<_i8.Amount>); + ) as _i14.Future<_i8.Amount>); @override - _i17.Future generateNewAddress() => (super.noSuchMethod( + _i14.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i17.Future updateSentCachedTxData(Map? txData) => + _i14.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); -} - -/// A class which mocks [FiroWallet]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { - MockFiroWallet() { - _i1.throwOnMissingStub(this); - } - - @override - set timer(_i17.Timer? _timer) => super.noSuchMethod( - Invocation.setter( - #timer, - _timer, - ), - returnValueForMissingStub: null, - ); - @override - _i9.TransactionNotificationTracker get txTracker => (super.noSuchMethod( - Invocation.getter(#txTracker), - returnValue: _FakeTransactionNotificationTracker_6( - this, - Invocation.getter(#txTracker), - ), - ) as _i9.TransactionNotificationTracker); - @override - set txTracker(_i9.TransactionNotificationTracker? _txTracker) => - super.noSuchMethod( - Invocation.setter( - #txTracker, - _txTracker, - ), - returnValueForMissingStub: null, - ); - @override - bool get refreshMutex => (super.noSuchMethod( - Invocation.getter(#refreshMutex), - returnValue: false, - ) as bool); - @override - set refreshMutex(bool? _refreshMutex) => super.noSuchMethod( - Invocation.setter( - #refreshMutex, - _refreshMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get longMutex => (super.noSuchMethod( - Invocation.getter(#longMutex), - returnValue: false, - ) as bool); - @override - set longMutex(bool? _longMutex) => super.noSuchMethod( - Invocation.setter( - #longMutex, - _longMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get isActive => (super.noSuchMethod( - Invocation.getter(#isActive), - returnValue: false, - ) as bool); - @override - set isActive(bool? _isActive) => super.noSuchMethod( - Invocation.setter( - #isActive, - _isActive, - ), - returnValueForMissingStub: null, - ); - @override - bool get shouldAutoSync => (super.noSuchMethod( - Invocation.getter(#shouldAutoSync), - returnValue: false, - ) as bool); - @override - set shouldAutoSync(bool? shouldAutoSync) => super.noSuchMethod( - Invocation.setter( - #shouldAutoSync, - shouldAutoSync, - ), - returnValueForMissingStub: null, - ); - @override - set isFavorite(bool? markFavorite) => super.noSuchMethod( - Invocation.setter( - #isFavorite, - markFavorite, - ), - returnValueForMissingStub: null, - ); - @override - bool get isFavorite => (super.noSuchMethod( - Invocation.getter(#isFavorite), - returnValue: false, - ) as bool); - @override - _i21.Coin get coin => (super.noSuchMethod( - Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); - @override - _i17.Future> get mnemonic => (super.noSuchMethod( - Invocation.getter(#mnemonic), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); - @override - _i17.Future get mnemonicString => (super.noSuchMethod( - Invocation.getter(#mnemonicString), - returnValue: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future get mnemonicPassphrase => (super.noSuchMethod( - Invocation.getter(#mnemonicPassphrase), - returnValue: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future get maxFee => (super.noSuchMethod( - Invocation.getter(#maxFee), - returnValue: _i17.Future.value(0), - ) as _i17.Future); - @override - _i17.Future<_i6.FeeObject> get fees => (super.noSuchMethod( - Invocation.getter(#fees), - returnValue: _i17.Future<_i6.FeeObject>.value(_FakeFeeObject_3( - this, - Invocation.getter(#fees), - )), - ) as _i17.Future<_i6.FeeObject>); - @override - _i17.Future get currentReceivingAddress => (super.noSuchMethod( - Invocation.getter(#currentReceivingAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); - @override - _i17.Future get currentChangeAddress => (super.noSuchMethod( - Invocation.getter(#currentChangeAddress), - returnValue: _i17.Future.value(''), - ) as _i17.Future); - @override - String get walletName => (super.noSuchMethod( - Invocation.getter(#walletName), - returnValue: '', - ) as String); - @override - set walletName(String? newName) => super.noSuchMethod( - Invocation.setter( - #walletName, - newName, - ), - returnValueForMissingStub: null, - ); - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - bool get isConnected => (super.noSuchMethod( - Invocation.getter(#isConnected), - returnValue: false, - ) as bool); - @override - _i10.ElectrumXClient get electrumXClient => (super.noSuchMethod( - Invocation.getter(#electrumXClient), - returnValue: _FakeElectrumXClient_7( - this, - Invocation.getter(#electrumXClient), - ), - ) as _i10.ElectrumXClient); - @override - _i11.CachedElectrumXClient get cachedElectrumXClient => (super.noSuchMethod( - Invocation.getter(#cachedElectrumXClient), - returnValue: _FakeCachedElectrumXClient_8( - this, - Invocation.getter(#cachedElectrumXClient), - ), - ) as _i11.CachedElectrumXClient); - @override - bool get lelantusCoinIsarRescanRequired => (super.noSuchMethod( - Invocation.getter(#lelantusCoinIsarRescanRequired), - returnValue: false, - ) as bool); - @override - bool get isRefreshing => (super.noSuchMethod( - Invocation.getter(#isRefreshing), - returnValue: false, - ) as bool); - @override - bool get hasCalledExit => (super.noSuchMethod( - Invocation.getter(#hasCalledExit), - returnValue: false, - ) as bool); - @override - _i17.Future get chainHeight => (super.noSuchMethod( - Invocation.getter(#chainHeight), - returnValue: _i17.Future.value(0), - ) as _i17.Future); - @override - int get storedChainHeight => (super.noSuchMethod( - Invocation.getter(#storedChainHeight), - returnValue: 0, - ) as int); - @override - _i7.Balance get balance => (super.noSuchMethod( - Invocation.getter(#balance), - returnValue: _FakeBalance_4( - this, - Invocation.getter(#balance), - ), - ) as _i7.Balance); - @override - _i7.Balance get balancePrivate => (super.noSuchMethod( - Invocation.getter(#balancePrivate), - returnValue: _FakeBalance_4( - this, - Invocation.getter(#balancePrivate), - ), - ) as _i7.Balance); - @override - _i17.Future> get utxos => (super.noSuchMethod( - Invocation.getter(#utxos), - returnValue: _i17.Future>.value(<_i22.UTXO>[]), - ) as _i17.Future>); - @override - _i17.Future> get transactions => (super.noSuchMethod( - Invocation.getter(#transactions), - returnValue: - _i17.Future>.value(<_i22.Transaction>[]), - ) as _i17.Future>); - @override - _i17.Future get xpub => (super.noSuchMethod( - Invocation.getter(#xpub), - returnValue: _i17.Future.value(''), - ) as _i17.Future); - @override - set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => - super.noSuchMethod( - Invocation.setter( - #onIsActiveWalletChanged, - _onIsActiveWalletChanged, - ), - returnValueForMissingStub: null, - ); - @override - _i3.MainDB get db => (super.noSuchMethod( - Invocation.getter(#db), - returnValue: _FakeMainDB_1( - this, - Invocation.getter(#db), - ), - ) as _i3.MainDB); - @override - bool validateAddress(String? address) => (super.noSuchMethod( - Invocation.method( - #validateAddress, - [address], - ), - returnValue: false, - ) as bool); - @override - _i17.Future updateSentCachedTxData(Map? txData) => - (super.noSuchMethod( - Invocation.method( - #updateSentCachedTxData, - [txData], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future testNetworkConnection() => (super.noSuchMethod( - Invocation.method( - #testNetworkConnection, - [], - ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); - @override - void startNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #startNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - void stopNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #stopNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - _i17.Future> prepareSendPublic({ - required String? address, - required _i8.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareSendPublic, - [], - { - #address: address, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); - @override - _i17.Future confirmSendPublic({dynamic txData}) => - (super.noSuchMethod( - Invocation.method( - #confirmSendPublic, - [], - {#txData: txData}, - ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); - @override - _i17.Future> prepareSend({ - required String? address, - required _i8.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareSend, - [], - { - #address: address, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); - @override - _i17.Future confirmSend({required Map? txData}) => - (super.noSuchMethod( - Invocation.method( - #confirmSend, - [], - {#txData: txData}, - ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); - @override - int estimateTxFee({ - required int? vSize, - required int? feeRatePerKB, - }) => - (super.noSuchMethod( - Invocation.method( - #estimateTxFee, - [], - { - #vSize: vSize, - #feeRatePerKB: feeRatePerKB, - }, - ), - returnValue: 0, - ) as int); - @override - dynamic coinSelection( - int? satoshiAmountToSend, - int? selectedTxFeeRate, - String? _recipientAddress, - bool? isSendAll, { - int? satsPerVByte, - int? additionalOutputs = 0, - List<_i22.UTXO>? utxos, - }) => - super.noSuchMethod(Invocation.method( - #coinSelection, - [ - satoshiAmountToSend, - selectedTxFeeRate, - _recipientAddress, - isSendAll, - ], - { - #satsPerVByte: satsPerVByte, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - )); - @override - _i17.Future> fetchBuildTxData( - List<_i22.UTXO>? utxosToUse) => - (super.noSuchMethod( - Invocation.method( - #fetchBuildTxData, - [utxosToUse], - ), - returnValue: - _i17.Future>.value(<_i24.SigningData>[]), - ) as _i17.Future>); - @override - _i17.Future> buildTransaction({ - required List<_i24.SigningData>? utxoSigningData, - required List? recipients, - required List? satoshiAmounts, - }) => - (super.noSuchMethod( - Invocation.method( - #buildTransaction, - [], - { - #utxoSigningData: utxoSigningData, - #recipients: recipients, - #satoshiAmounts: satoshiAmounts, - }, - ), - returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); - @override - _i17.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( - Invocation.method( - #updateNode, - [shouldRefresh], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future initializeNew( - ({String mnemonicPassphrase, int wordCount})? data) => - (super.noSuchMethod( - Invocation.method( - #initializeNew, - [data], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future setLelantusCoinIsarRescanRequiredDone() => - (super.noSuchMethod( - Invocation.method( - #setLelantusCoinIsarRescanRequiredDone, - [], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future firoRescanRecovery() => (super.noSuchMethod( - Invocation.method( - #firoRescanRecovery, - [], - ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); - @override - _i17.Future initializeExisting() => (super.noSuchMethod( - Invocation.method( - #initializeExisting, - [], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future refreshIfThereIsNewData() => (super.noSuchMethod( - Invocation.method( - #refreshIfThereIsNewData, - [], - ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); - @override - _i17.Future getAllTxsToWatch() => (super.noSuchMethod( - Invocation.method( - #getAllTxsToWatch, - [], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future refresh() => (super.noSuchMethod( - Invocation.method( - #refresh, - [], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future anonymizeAllPublicFunds() => (super.noSuchMethod( - Invocation.method( - #anonymizeAllPublicFunds, - [], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future>> createMintsFromAmount(int? total) => - (super.noSuchMethod( - Invocation.method( - #createMintsFromAmount, - [total], - ), - returnValue: _i17.Future>>.value( - >[]), - ) as _i17.Future>>); - @override - _i17.Future submitHexToNetwork(String? hex) => (super.noSuchMethod( - Invocation.method( - #submitHexToNetwork, - [hex], - ), - returnValue: _i17.Future.value(''), - ) as _i17.Future); - @override - _i17.Future> buildMintTransaction( - List<_i22.UTXO>? utxosToUse, - int? satoshisPerRecipient, - List>? mintsMap, - ) => - (super.noSuchMethod( - Invocation.method( - #buildMintTransaction, - [ - utxosToUse, - satoshisPerRecipient, - mintsMap, - ], - ), - returnValue: - _i17.Future>.value({}), - ) as _i17.Future>); - @override - _i17.Future checkReceivingAddressForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkReceivingAddressForTransactions, - [], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future checkChangeAddressForTransactions() => (super.noSuchMethod( - Invocation.method( - #checkChangeAddressForTransactions, - [], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future fullRescan( - int? maxUnusedAddressGap, - int? maxNumberOfIndexesToCheck, - ) => - (super.noSuchMethod( - Invocation.method( - #fullRescan, - [ - maxUnusedAddressGap, - maxNumberOfIndexesToCheck, - ], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future recoverFromMnemonic({ - required String? mnemonic, - String? mnemonicPassphrase, - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - required int? height, - }) => - (super.noSuchMethod( - Invocation.method( - #recoverFromMnemonic, - [], - { - #mnemonic: mnemonic, - #mnemonicPassphrase: mnemonicPassphrase, - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - #height: height, - }, - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future> getSetDataMap(int? latestSetId) => - (super.noSuchMethod( - Invocation.method( - #getSetDataMap, - [latestSetId], - ), - returnValue: _i17.Future>.value({}), - ) as _i17.Future>); - @override - _i17.Future getTransactionCacheEarly(List? allAddresses) => - (super.noSuchMethod( - Invocation.method( - #getTransactionCacheEarly, - [allAddresses], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future>> fetchAnonymitySets() => - (super.noSuchMethod( - Invocation.method( - #fetchAnonymitySets, - [], - ), - returnValue: _i17.Future>>.value( - >[]), - ) as _i17.Future>>); - @override - _i17.Future getLatestSetId() => (super.noSuchMethod( - Invocation.method( - #getLatestSetId, - [], - ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); - @override - _i17.Future> getUsedCoinSerials() => (super.noSuchMethod( - Invocation.method( - #getUsedCoinSerials, - [], - ), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); - @override - _i17.Future exit() => (super.noSuchMethod( - Invocation.method( - #exit, - [], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i17.Future estimateJoinSplitFee(int? spendAmount) => - (super.noSuchMethod( - Invocation.method( - #estimateJoinSplitFee, - [spendAmount], - ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); - @override - _i17.Future<_i8.Amount> estimateFeeFor( - _i8.Amount? amount, - int? feeRate, - ) => - (super.noSuchMethod( - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - returnValue: _i17.Future<_i8.Amount>.value(_FakeAmount_5( - this, - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - )), - ) as _i17.Future<_i8.Amount>); - @override - _i17.Future<_i8.Amount> estimateFeeForPublic( - _i8.Amount? amount, - int? feeRate, - ) => - (super.noSuchMethod( - Invocation.method( - #estimateFeeForPublic, - [ - amount, - feeRate, - ], - ), - returnValue: _i17.Future<_i8.Amount>.value(_FakeAmount_5( - this, - Invocation.method( - #estimateFeeForPublic, - [ - amount, - feeRate, - ], - ), - )), - ) as _i17.Future<_i8.Amount>); - @override - _i8.Amount roughFeeEstimate( - int? inputCount, - int? outputCount, - int? feeRatePerKB, - ) => - (super.noSuchMethod( - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - returnValue: _FakeAmount_5( - this, - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - ), - ) as _i8.Amount); - @override - _i17.Future<_i8.Amount> sweepAllEstimate(int? feeRate) => (super.noSuchMethod( - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - returnValue: _i17.Future<_i8.Amount>.value(_FakeAmount_5( - this, - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - )), - ) as _i17.Future<_i8.Amount>); - @override - _i17.Future>> fastFetch( - List? allTxHashes) => - (super.noSuchMethod( - Invocation.method( - #fastFetch, - [allTxHashes], - ), - returnValue: _i17.Future>>.value( - >[]), - ) as _i17.Future>>); - @override - _i17.Future> getJMintTransactions( - _i11.CachedElectrumXClient? cachedClient, - List? transactions, - _i21.Coin? coin, - ) => - (super.noSuchMethod( - Invocation.method( - #getJMintTransactions, - [ - cachedClient, - transactions, - coin, - ], - ), - returnValue: _i17.Future>.value( - <_i22.Address, _i22.Transaction>{}), - ) as _i17.Future>); - @override - _i17.Future generateNewAddress() => (super.noSuchMethod( - Invocation.method( - #generateNewAddress, - [], - ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); - @override - _i8.Amount availablePrivateBalance() => (super.noSuchMethod( - Invocation.method( - #availablePrivateBalance, - [], - ), - returnValue: _FakeAmount_5( - this, - Invocation.method( - #availablePrivateBalance, - [], - ), - ), - ) as _i8.Amount); - @override - _i8.Amount availablePublicBalance() => (super.noSuchMethod( - Invocation.method( - #availablePublicBalance, - [], - ), - returnValue: _FakeAmount_5( - this, - Invocation.method( - #availablePublicBalance, - [], - ), - ), - ) as _i8.Amount); - @override - void initCache( - String? walletId, - _i21.Coin? coin, - ) => - super.noSuchMethod( - Invocation.method( - #initCache, - [ - walletId, - coin, - ], - ), - returnValueForMissingStub: null, - ); - @override - _i17.Future updateCachedId(String? id) => (super.noSuchMethod( - Invocation.method( - #updateCachedId, - [id], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - int getCachedChainHeight() => (super.noSuchMethod( - Invocation.method( - #getCachedChainHeight, - [], - ), - returnValue: 0, - ) as int); - @override - _i17.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( - Invocation.method( - #updateCachedChainHeight, - [height], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - bool getCachedIsFavorite() => (super.noSuchMethod( - Invocation.method( - #getCachedIsFavorite, - [], - ), - returnValue: false, - ) as bool); - @override - _i17.Future updateCachedIsFavorite(bool? isFavorite) => - (super.noSuchMethod( - Invocation.method( - #updateCachedIsFavorite, - [isFavorite], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i7.Balance getCachedBalance() => (super.noSuchMethod( - Invocation.method( - #getCachedBalance, - [], - ), - returnValue: _FakeBalance_4( - this, - Invocation.method( - #getCachedBalance, - [], - ), - ), - ) as _i7.Balance); - @override - _i17.Future updateCachedBalance(_i7.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalance, - [balance], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - _i7.Balance getCachedBalanceSecondary() => (super.noSuchMethod( - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - returnValue: _FakeBalance_4( - this, - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - ), - ) as _i7.Balance); - @override - _i17.Future updateCachedBalanceSecondary(_i7.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalanceSecondary, - [balance], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - List getWalletTokenContractAddresses() => (super.noSuchMethod( - Invocation.method( - #getWalletTokenContractAddresses, - [], - ), - returnValue: [], - ) as List); - @override - _i17.Future updateWalletTokenContractAddresses( - List? contractAddresses) => - (super.noSuchMethod( - Invocation.method( - #updateWalletTokenContractAddresses, - [contractAddresses], - ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); - @override - void initWalletDB({_i3.MainDB? mockableOverride}) => super.noSuchMethod( - Invocation.method( - #initWalletDB, - [], - {#mockableOverride: mockableOverride}, - ), - returnValueForMissingStub: null, - ); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); } /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i25.LocaleService { +class MockLocaleService extends _i1.Mock implements _i21.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -1624,17 +631,17 @@ class MockLocaleService extends _i1.Mock implements _i25.LocaleService { returnValue: false, ) as bool); @override - _i17.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i14.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1642,7 +649,7 @@ class MockLocaleService extends _i1.Mock implements _i25.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1670,7 +677,7 @@ class MockLocaleService extends _i1.Mock implements _i25.LocaleService { /// A class which mocks [Prefs]. /// /// See the documentation for Mockito's code generation for more information. -class MockPrefs extends _i1.Mock implements _i19.Prefs { +class MockPrefs extends _i1.Mock implements _i17.Prefs { MockPrefs() { _i1.throwOnMissingStub(this); } @@ -1726,12 +733,12 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { returnValueForMissingStub: null, ); @override - _i27.SyncingType get syncType => (super.noSuchMethod( + _i23.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), - returnValue: _i27.SyncingType.currentWalletOnly, - ) as _i27.SyncingType); + returnValue: _i23.SyncingType.currentWalletOnly, + ) as _i23.SyncingType); @override - set syncType(_i27.SyncingType? syncType) => super.noSuchMethod( + set syncType(_i23.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( #syncType, syncType, @@ -1890,12 +897,12 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { returnValueForMissingStub: null, ); @override - _i28.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( + _i24.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), - returnValue: _i28.BackupFrequencyType.everyTenMinutes, - ) as _i28.BackupFrequencyType); + returnValue: _i24.BackupFrequencyType.everyTenMinutes, + ) as _i24.BackupFrequencyType); @override - set backupFrequencyType(_i28.BackupFrequencyType? backupFrequencyType) => + set backupFrequencyType(_i24.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( Invocation.setter( #backupFrequencyType, @@ -2046,61 +1053,61 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { returnValue: false, ) as bool); @override - _i17.Future init() => (super.noSuchMethod( + _i14.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( + _i14.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( #incrementCurrentNotificationIndex, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future isExternalCallsSet() => (super.noSuchMethod( + _i14.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( #isExternalCallsSet, [], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i17.Future saveUserID(String? userId) => (super.noSuchMethod( + _i14.Future saveUserID(String? userId) => (super.noSuchMethod( Invocation.method( #saveUserID, [userId], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( + _i14.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( Invocation.method( #saveSignupEpoch, [signupEpoch], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i29.AmountUnit amountUnit(_i21.Coin? coin) => (super.noSuchMethod( + _i25.AmountUnit amountUnit(_i19.Coin? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], ), - returnValue: _i29.AmountUnit.normal, - ) as _i29.AmountUnit); + returnValue: _i25.AmountUnit.normal, + ) as _i25.AmountUnit); @override void updateAmountUnit({ - required _i21.Coin? coin, - required _i29.AmountUnit? amountUnit, + required _i19.Coin? coin, + required _i25.AmountUnit? amountUnit, }) => super.noSuchMethod( Invocation.method( @@ -2114,7 +1121,7 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i21.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i19.Coin? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -2123,7 +1130,7 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { ) as int); @override void updateMaxDecimals({ - required _i21.Coin? coin, + required _i19.Coin? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -2138,23 +1145,23 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { returnValueForMissingStub: null, ); @override - _i12.FusionInfo getFusionServerInfo(_i21.Coin? coin) => (super.noSuchMethod( + _i9.FusionInfo getFusionServerInfo(_i19.Coin? coin) => (super.noSuchMethod( Invocation.method( #getFusionServerInfo, [coin], ), - returnValue: _FakeFusionInfo_9( + returnValue: _FakeFusionInfo_6( this, Invocation.method( #getFusionServerInfo, [coin], ), ), - ) as _i12.FusionInfo); + ) as _i9.FusionInfo); @override void setFusionServerInfo( - _i21.Coin? coin, - _i12.FusionInfo? fusionServerInfo, + _i19.Coin? coin, + _i9.FusionInfo? fusionServerInfo, ) => super.noSuchMethod( Invocation.method( @@ -2167,7 +1174,7 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2175,7 +1182,7 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2203,7 +1210,7 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { /// A class which mocks [PriceService]. /// /// See the documentation for Mockito's code generation for more information. -class MockPriceService extends _i1.Mock implements _i30.PriceService { +class MockPriceService extends _i1.Mock implements _i26.PriceService { MockPriceService() { _i1.throwOnMissingStub(this); } @@ -2229,7 +1236,7 @@ class MockPriceService extends _i1.Mock implements _i30.PriceService { @override Duration get updateInterval => (super.noSuchMethod( Invocation.getter(#updateInterval), - returnValue: _FakeDuration_10( + returnValue: _FakeDuration_7( this, Invocation.getter(#updateInterval), ), @@ -2240,44 +1247,44 @@ class MockPriceService extends _i1.Mock implements _i30.PriceService { returnValue: false, ) as bool); @override - _i13.Tuple2<_i31.Decimal, double> getPrice(_i21.Coin? coin) => + _i10.Tuple2<_i27.Decimal, double> getPrice(_i19.Coin? coin) => (super.noSuchMethod( Invocation.method( #getPrice, [coin], ), - returnValue: _FakeTuple2_11<_i31.Decimal, double>( + returnValue: _FakeTuple2_8<_i27.Decimal, double>( this, Invocation.method( #getPrice, [coin], ), ), - ) as _i13.Tuple2<_i31.Decimal, double>); + ) as _i10.Tuple2<_i27.Decimal, double>); @override - _i13.Tuple2<_i31.Decimal, double> getTokenPrice(String? contractAddress) => + _i10.Tuple2<_i27.Decimal, double> getTokenPrice(String? contractAddress) => (super.noSuchMethod( Invocation.method( #getTokenPrice, [contractAddress], ), - returnValue: _FakeTuple2_11<_i31.Decimal, double>( + returnValue: _FakeTuple2_8<_i27.Decimal, double>( this, Invocation.method( #getTokenPrice, [contractAddress], ), ), - ) as _i13.Tuple2<_i31.Decimal, double>); + ) as _i10.Tuple2<_i27.Decimal, double>); @override - _i17.Future updatePrice() => (super.noSuchMethod( + _i14.Future updatePrice() => (super.noSuchMethod( Invocation.method( #updatePrice, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override void cancel() => super.noSuchMethod( Invocation.method( @@ -2303,7 +1310,7 @@ class MockPriceService extends _i1.Mock implements _i30.PriceService { returnValueForMissingStub: null, ); @override - void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2311,7 +1318,7 @@ class MockPriceService extends _i1.Mock implements _i30.PriceService { returnValueForMissingStub: null, ); @override - void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2331,21 +1338,21 @@ class MockPriceService extends _i1.Mock implements _i30.PriceService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i32.ThemeService { +class MockThemeService extends _i1.Mock implements _i28.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @override - _i14.HTTP get client => (super.noSuchMethod( + _i11.HTTP get client => (super.noSuchMethod( Invocation.getter(#client), - returnValue: _FakeHTTP_12( + returnValue: _FakeHTTP_9( this, Invocation.getter(#client), ), - ) as _i14.HTTP); + ) as _i11.HTTP); @override - set client(_i14.HTTP? _client) => super.noSuchMethod( + set client(_i11.HTTP? _client) => super.noSuchMethod( Invocation.setter( #client, _client, @@ -2361,10 +1368,10 @@ class MockThemeService extends _i1.Mock implements _i32.ThemeService { ), ) as _i3.MainDB); @override - List<_i33.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i29.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i33.StackTheme>[], - ) as List<_i33.StackTheme>); + returnValue: <_i29.StackTheme>[], + ) as List<_i29.StackTheme>); @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -2374,73 +1381,73 @@ class MockThemeService extends _i1.Mock implements _i32.ThemeService { returnValueForMissingStub: null, ); @override - _i17.Future install({required _i34.Uint8List? themeArchiveData}) => + _i14.Future install({required _i30.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future remove({required String? themeId}) => (super.noSuchMethod( + _i14.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i14.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future verifyInstalled({required String? themeId}) => + _i14.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i17.Future> fetchThemes() => + _i14.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i17.Future>.value( - <_i32.StackThemeMetaData>[]), - ) as _i17.Future>); + returnValue: _i14.Future>.value( + <_i28.StackThemeMetaData>[]), + ) as _i14.Future>); @override - _i17.Future<_i34.Uint8List> fetchTheme( - {required _i32.StackThemeMetaData? themeMetaData}) => + _i14.Future<_i30.Uint8List> fetchTheme( + {required _i28.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i17.Future<_i34.Uint8List>.value(_i34.Uint8List(0)), - ) as _i17.Future<_i34.Uint8List>); + returnValue: _i14.Future<_i30.Uint8List>.value(_i30.Uint8List(0)), + ) as _i14.Future<_i30.Uint8List>); @override - _i33.StackTheme? getTheme({required String? themeId}) => + _i29.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i33.StackTheme?); + )) as _i29.StackTheme?); } /// A class which mocks [MainDB]. @@ -2452,151 +1459,151 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { } @override - _i15.Isar get isar => (super.noSuchMethod( + _i12.Isar get isar => (super.noSuchMethod( Invocation.getter(#isar), - returnValue: _FakeIsar_13( + returnValue: _FakeIsar_10( this, Invocation.getter(#isar), ), - ) as _i15.Isar); + ) as _i12.Isar); @override - _i17.Future initMainDB({_i15.Isar? mock}) => (super.noSuchMethod( + _i14.Future initMainDB({_i12.Isar? mock}) => (super.noSuchMethod( Invocation.method( #initMainDB, [], {#mock: mock}, ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i17.Future putWalletInfo(_i35.WalletInfo? walletInfo) => + _i14.Future putWalletInfo(_i15.WalletInfo? walletInfo) => (super.noSuchMethod( Invocation.method( #putWalletInfo, [walletInfo], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future updateWalletInfo(_i35.WalletInfo? walletInfo) => + _i14.Future updateWalletInfo(_i15.WalletInfo? walletInfo) => (super.noSuchMethod( Invocation.method( #updateWalletInfo, [walletInfo], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - List<_i36.ContactEntry> getContactEntries() => (super.noSuchMethod( + List<_i31.ContactEntry> getContactEntries() => (super.noSuchMethod( Invocation.method( #getContactEntries, [], ), - returnValue: <_i36.ContactEntry>[], - ) as List<_i36.ContactEntry>); + returnValue: <_i31.ContactEntry>[], + ) as List<_i31.ContactEntry>); @override - _i17.Future deleteContactEntry({required String? id}) => + _i14.Future deleteContactEntry({required String? id}) => (super.noSuchMethod( Invocation.method( #deleteContactEntry, [], {#id: id}, ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i17.Future isContactEntryExists({required String? id}) => + _i14.Future isContactEntryExists({required String? id}) => (super.noSuchMethod( Invocation.method( #isContactEntryExists, [], {#id: id}, ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i36.ContactEntry? getContactEntry({required String? id}) => + _i31.ContactEntry? getContactEntry({required String? id}) => (super.noSuchMethod(Invocation.method( #getContactEntry, [], {#id: id}, - )) as _i36.ContactEntry?); + )) as _i31.ContactEntry?); @override - _i17.Future putContactEntry( - {required _i36.ContactEntry? contactEntry}) => + _i14.Future putContactEntry( + {required _i31.ContactEntry? contactEntry}) => (super.noSuchMethod( Invocation.method( #putContactEntry, [], {#contactEntry: contactEntry}, ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i37.TransactionBlockExplorer? getTransactionBlockExplorer( - {required _i21.Coin? coin}) => + _i32.TransactionBlockExplorer? getTransactionBlockExplorer( + {required _i19.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getTransactionBlockExplorer, [], {#coin: coin}, - )) as _i37.TransactionBlockExplorer?); + )) as _i32.TransactionBlockExplorer?); @override - _i17.Future putTransactionBlockExplorer( - _i37.TransactionBlockExplorer? explorer) => + _i14.Future putTransactionBlockExplorer( + _i32.TransactionBlockExplorer? explorer) => (super.noSuchMethod( Invocation.method( #putTransactionBlockExplorer, [explorer], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - _i15.QueryBuilder<_i22.Address, _i22.Address, _i15.QAfterWhereClause> + _i12.QueryBuilder<_i20.Address, _i20.Address, _i12.QAfterWhereClause> getAddresses(String? walletId) => (super.noSuchMethod( Invocation.method( #getAddresses, [walletId], ), - returnValue: _FakeQueryBuilder_14<_i22.Address, _i22.Address, - _i15.QAfterWhereClause>( + returnValue: _FakeQueryBuilder_11<_i20.Address, _i20.Address, + _i12.QAfterWhereClause>( this, Invocation.method( #getAddresses, [walletId], ), ), - ) as _i15.QueryBuilder<_i22.Address, _i22.Address, - _i15.QAfterWhereClause>); + ) as _i12.QueryBuilder<_i20.Address, _i20.Address, + _i12.QAfterWhereClause>); @override - _i17.Future putAddress(_i22.Address? address) => (super.noSuchMethod( + _i14.Future putAddress(_i20.Address? address) => (super.noSuchMethod( Invocation.method( #putAddress, [address], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - _i17.Future> putAddresses(List<_i22.Address>? addresses) => + _i14.Future> putAddresses(List<_i20.Address>? addresses) => (super.noSuchMethod( Invocation.method( #putAddresses, [addresses], ), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i14.Future>.value([]), + ) as _i14.Future>); @override - _i17.Future> updateOrPutAddresses(List<_i22.Address>? addresses) => + _i14.Future> updateOrPutAddresses(List<_i20.Address>? addresses) => (super.noSuchMethod( Invocation.method( #updateOrPutAddresses, [addresses], ), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i14.Future>.value([]), + ) as _i14.Future>); @override - _i17.Future<_i22.Address?> getAddress( + _i14.Future<_i20.Address?> getAddress( String? walletId, String? address, ) => @@ -2608,12 +1615,12 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { address, ], ), - returnValue: _i17.Future<_i22.Address?>.value(), - ) as _i17.Future<_i22.Address?>); + returnValue: _i14.Future<_i20.Address?>.value(), + ) as _i14.Future<_i20.Address?>); @override - _i17.Future updateAddress( - _i22.Address? oldAddress, - _i22.Address? newAddress, + _i14.Future updateAddress( + _i20.Address? oldAddress, + _i20.Address? newAddress, ) => (super.noSuchMethod( Invocation.method( @@ -2623,46 +1630,46 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { newAddress, ], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - _i15.QueryBuilder<_i22.Transaction, _i22.Transaction, _i15.QAfterWhereClause> + _i12.QueryBuilder<_i20.Transaction, _i20.Transaction, _i12.QAfterWhereClause> getTransactions(String? walletId) => (super.noSuchMethod( Invocation.method( #getTransactions, [walletId], ), - returnValue: _FakeQueryBuilder_14<_i22.Transaction, - _i22.Transaction, _i15.QAfterWhereClause>( + returnValue: _FakeQueryBuilder_11<_i20.Transaction, + _i20.Transaction, _i12.QAfterWhereClause>( this, Invocation.method( #getTransactions, [walletId], ), ), - ) as _i15.QueryBuilder<_i22.Transaction, _i22.Transaction, - _i15.QAfterWhereClause>); + ) as _i12.QueryBuilder<_i20.Transaction, _i20.Transaction, + _i12.QAfterWhereClause>); @override - _i17.Future putTransaction(_i22.Transaction? transaction) => + _i14.Future putTransaction(_i20.Transaction? transaction) => (super.noSuchMethod( Invocation.method( #putTransaction, [transaction], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - _i17.Future> putTransactions( - List<_i22.Transaction>? transactions) => + _i14.Future> putTransactions( + List<_i20.Transaction>? transactions) => (super.noSuchMethod( Invocation.method( #putTransactions, [transactions], ), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i14.Future>.value([]), + ) as _i14.Future>); @override - _i17.Future<_i22.Transaction?> getTransaction( + _i14.Future<_i20.Transaction?> getTransaction( String? walletId, String? txid, ) => @@ -2674,10 +1681,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { txid, ], ), - returnValue: _i17.Future<_i22.Transaction?>.value(), - ) as _i17.Future<_i22.Transaction?>); + returnValue: _i14.Future<_i20.Transaction?>.value(), + ) as _i14.Future<_i20.Transaction?>); @override - _i17.Stream<_i22.Transaction?> watchTransaction({ + _i14.Stream<_i20.Transaction?> watchTransaction({ required int? id, bool? fireImmediately = false, }) => @@ -2690,10 +1697,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i17.Stream<_i22.Transaction?>.empty(), - ) as _i17.Stream<_i22.Transaction?>); + returnValue: _i14.Stream<_i20.Transaction?>.empty(), + ) as _i14.Stream<_i20.Transaction?>); @override - _i15.QueryBuilder<_i22.UTXO, _i22.UTXO, _i15.QAfterWhereClause> getUTXOs( + _i12.QueryBuilder<_i20.UTXO, _i20.UTXO, _i12.QAfterWhereClause> getUTXOs( String? walletId) => (super.noSuchMethod( Invocation.method( @@ -2701,16 +1708,16 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { [walletId], ), returnValue: - _FakeQueryBuilder_14<_i22.UTXO, _i22.UTXO, _i15.QAfterWhereClause>( + _FakeQueryBuilder_11<_i20.UTXO, _i20.UTXO, _i12.QAfterWhereClause>( this, Invocation.method( #getUTXOs, [walletId], ), ), - ) as _i15.QueryBuilder<_i22.UTXO, _i22.UTXO, _i15.QAfterWhereClause>); + ) as _i12.QueryBuilder<_i20.UTXO, _i20.UTXO, _i12.QAfterWhereClause>); @override - _i15.QueryBuilder<_i22.UTXO, _i22.UTXO, _i15.QAfterFilterCondition> + _i12.QueryBuilder<_i20.UTXO, _i20.UTXO, _i12.QAfterFilterCondition> getUTXOsByAddress( String? walletId, String? address, @@ -2723,8 +1730,8 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { address, ], ), - returnValue: _FakeQueryBuilder_14<_i22.UTXO, _i22.UTXO, - _i15.QAfterFilterCondition>( + returnValue: _FakeQueryBuilder_11<_i20.UTXO, _i20.UTXO, + _i12.QAfterFilterCondition>( this, Invocation.method( #getUTXOsByAddress, @@ -2734,30 +1741,30 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ], ), ), - ) as _i15 - .QueryBuilder<_i22.UTXO, _i22.UTXO, _i15.QAfterFilterCondition>); + ) as _i12 + .QueryBuilder<_i20.UTXO, _i20.UTXO, _i12.QAfterFilterCondition>); @override - _i17.Future putUTXO(_i22.UTXO? utxo) => (super.noSuchMethod( + _i14.Future putUTXO(_i20.UTXO? utxo) => (super.noSuchMethod( Invocation.method( #putUTXO, [utxo], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future putUTXOs(List<_i22.UTXO>? utxos) => (super.noSuchMethod( + _i14.Future putUTXOs(List<_i20.UTXO>? utxos) => (super.noSuchMethod( Invocation.method( #putUTXOs, [utxos], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future updateUTXOs( + _i14.Future updateUTXOs( String? walletId, - List<_i22.UTXO>? utxos, + List<_i20.UTXO>? utxos, ) => (super.noSuchMethod( Invocation.method( @@ -2767,10 +1774,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { utxos, ], ), - returnValue: _i17.Future.value(false), - ) as _i17.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i17.Stream<_i22.UTXO?> watchUTXO({ + _i14.Stream<_i20.UTXO?> watchUTXO({ required int? id, bool? fireImmediately = false, }) => @@ -2783,50 +1790,50 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i17.Stream<_i22.UTXO?>.empty(), - ) as _i17.Stream<_i22.UTXO?>); + returnValue: _i14.Stream<_i20.UTXO?>.empty(), + ) as _i14.Stream<_i20.UTXO?>); @override - _i15.QueryBuilder<_i22.TransactionNote, _i22.TransactionNote, - _i15.QAfterWhereClause> getTransactionNotes( + _i12.QueryBuilder<_i20.TransactionNote, _i20.TransactionNote, + _i12.QAfterWhereClause> getTransactionNotes( String? walletId) => (super.noSuchMethod( Invocation.method( #getTransactionNotes, [walletId], ), - returnValue: _FakeQueryBuilder_14<_i22.TransactionNote, - _i22.TransactionNote, _i15.QAfterWhereClause>( + returnValue: _FakeQueryBuilder_11<_i20.TransactionNote, + _i20.TransactionNote, _i12.QAfterWhereClause>( this, Invocation.method( #getTransactionNotes, [walletId], ), ), - ) as _i15.QueryBuilder<_i22.TransactionNote, _i22.TransactionNote, - _i15.QAfterWhereClause>); + ) as _i12.QueryBuilder<_i20.TransactionNote, _i20.TransactionNote, + _i12.QAfterWhereClause>); @override - _i17.Future putTransactionNote(_i22.TransactionNote? transactionNote) => + _i14.Future putTransactionNote(_i20.TransactionNote? transactionNote) => (super.noSuchMethod( Invocation.method( #putTransactionNote, [transactionNote], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future putTransactionNotes( - List<_i22.TransactionNote>? transactionNotes) => + _i14.Future putTransactionNotes( + List<_i20.TransactionNote>? transactionNotes) => (super.noSuchMethod( Invocation.method( #putTransactionNotes, [transactionNotes], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future<_i22.TransactionNote?> getTransactionNote( + _i14.Future<_i20.TransactionNote?> getTransactionNote( String? walletId, String? txid, ) => @@ -2838,10 +1845,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { txid, ], ), - returnValue: _i17.Future<_i22.TransactionNote?>.value(), - ) as _i17.Future<_i22.TransactionNote?>); + returnValue: _i14.Future<_i20.TransactionNote?>.value(), + ) as _i14.Future<_i20.TransactionNote?>); @override - _i17.Stream<_i22.TransactionNote?> watchTransactionNote({ + _i14.Stream<_i20.TransactionNote?> watchTransactionNote({ required int? id, bool? fireImmediately = false, }) => @@ -2854,38 +1861,38 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i17.Stream<_i22.TransactionNote?>.empty(), - ) as _i17.Stream<_i22.TransactionNote?>); + returnValue: _i14.Stream<_i20.TransactionNote?>.empty(), + ) as _i14.Stream<_i20.TransactionNote?>); @override - _i15.QueryBuilder<_i22.AddressLabel, _i22.AddressLabel, - _i15.QAfterWhereClause> getAddressLabels( + _i12.QueryBuilder<_i20.AddressLabel, _i20.AddressLabel, + _i12.QAfterWhereClause> getAddressLabels( String? walletId) => (super.noSuchMethod( Invocation.method( #getAddressLabels, [walletId], ), - returnValue: _FakeQueryBuilder_14<_i22.AddressLabel, _i22.AddressLabel, - _i15.QAfterWhereClause>( + returnValue: _FakeQueryBuilder_11<_i20.AddressLabel, _i20.AddressLabel, + _i12.QAfterWhereClause>( this, Invocation.method( #getAddressLabels, [walletId], ), ), - ) as _i15.QueryBuilder<_i22.AddressLabel, _i22.AddressLabel, - _i15.QAfterWhereClause>); + ) as _i12.QueryBuilder<_i20.AddressLabel, _i20.AddressLabel, + _i12.QAfterWhereClause>); @override - _i17.Future putAddressLabel(_i22.AddressLabel? addressLabel) => + _i14.Future putAddressLabel(_i20.AddressLabel? addressLabel) => (super.noSuchMethod( Invocation.method( #putAddressLabel, [addressLabel], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - int putAddressLabelSync(_i22.AddressLabel? addressLabel) => + int putAddressLabelSync(_i20.AddressLabel? addressLabel) => (super.noSuchMethod( Invocation.method( #putAddressLabelSync, @@ -2894,17 +1901,17 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: 0, ) as int); @override - _i17.Future putAddressLabels(List<_i22.AddressLabel>? addressLabels) => + _i14.Future putAddressLabels(List<_i20.AddressLabel>? addressLabels) => (super.noSuchMethod( Invocation.method( #putAddressLabels, [addressLabels], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future<_i22.AddressLabel?> getAddressLabel( + _i14.Future<_i20.AddressLabel?> getAddressLabel( String? walletId, String? addressString, ) => @@ -2916,10 +1923,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { addressString, ], ), - returnValue: _i17.Future<_i22.AddressLabel?>.value(), - ) as _i17.Future<_i22.AddressLabel?>); + returnValue: _i14.Future<_i20.AddressLabel?>.value(), + ) as _i14.Future<_i20.AddressLabel?>); @override - _i22.AddressLabel? getAddressLabelSync( + _i20.AddressLabel? getAddressLabelSync( String? walletId, String? addressString, ) => @@ -2929,9 +1936,9 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { walletId, addressString, ], - )) as _i22.AddressLabel?); + )) as _i20.AddressLabel?); @override - _i17.Stream<_i22.AddressLabel?> watchAddressLabel({ + _i14.Stream<_i20.AddressLabel?> watchAddressLabel({ required int? id, bool? fireImmediately = false, }) => @@ -2944,50 +1951,50 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i17.Stream<_i22.AddressLabel?>.empty(), - ) as _i17.Stream<_i22.AddressLabel?>); + returnValue: _i14.Stream<_i20.AddressLabel?>.empty(), + ) as _i14.Stream<_i20.AddressLabel?>); @override - _i17.Future updateAddressLabel(_i22.AddressLabel? addressLabel) => + _i14.Future updateAddressLabel(_i20.AddressLabel? addressLabel) => (super.noSuchMethod( Invocation.method( #updateAddressLabel, [addressLabel], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - _i17.Future deleteWalletBlockchainData(String? walletId) => + _i14.Future deleteWalletBlockchainData(String? walletId) => (super.noSuchMethod( Invocation.method( #deleteWalletBlockchainData, [walletId], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future deleteAddressLabels(String? walletId) => + _i14.Future deleteAddressLabels(String? walletId) => (super.noSuchMethod( Invocation.method( #deleteAddressLabels, [walletId], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future deleteTransactionNotes(String? walletId) => + _i14.Future deleteTransactionNotes(String? walletId) => (super.noSuchMethod( Invocation.method( #deleteTransactionNotes, [walletId], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future addNewTransactionData( - List<_i13.Tuple2<_i22.Transaction, _i22.Address?>>? transactionsData, + _i14.Future addNewTransactionData( + List<_i10.Tuple2<_i20.Transaction, _i20.Address?>>? transactionsData, String? walletId, ) => (super.noSuchMethod( @@ -2998,86 +2005,86 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { walletId, ], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future> updateOrPutTransactionV2s( - List<_i38.TransactionV2>? transactions) => + _i14.Future> updateOrPutTransactionV2s( + List<_i33.TransactionV2>? transactions) => (super.noSuchMethod( Invocation.method( #updateOrPutTransactionV2s, [transactions], ), - returnValue: _i17.Future>.value([]), - ) as _i17.Future>); + returnValue: _i14.Future>.value([]), + ) as _i14.Future>); @override - _i15.QueryBuilder<_i22.EthContract, _i22.EthContract, _i15.QWhere> + _i12.QueryBuilder<_i20.EthContract, _i20.EthContract, _i12.QWhere> getEthContracts() => (super.noSuchMethod( Invocation.method( #getEthContracts, [], ), - returnValue: _FakeQueryBuilder_14<_i22.EthContract, - _i22.EthContract, _i15.QWhere>( + returnValue: _FakeQueryBuilder_11<_i20.EthContract, + _i20.EthContract, _i12.QWhere>( this, Invocation.method( #getEthContracts, [], ), ), - ) as _i15 - .QueryBuilder<_i22.EthContract, _i22.EthContract, _i15.QWhere>); + ) as _i12 + .QueryBuilder<_i20.EthContract, _i20.EthContract, _i12.QWhere>); @override - _i17.Future<_i22.EthContract?> getEthContract(String? contractAddress) => + _i14.Future<_i20.EthContract?> getEthContract(String? contractAddress) => (super.noSuchMethod( Invocation.method( #getEthContract, [contractAddress], ), - returnValue: _i17.Future<_i22.EthContract?>.value(), - ) as _i17.Future<_i22.EthContract?>); + returnValue: _i14.Future<_i20.EthContract?>.value(), + ) as _i14.Future<_i20.EthContract?>); @override - _i22.EthContract? getEthContractSync(String? contractAddress) => + _i20.EthContract? getEthContractSync(String? contractAddress) => (super.noSuchMethod(Invocation.method( #getEthContractSync, [contractAddress], - )) as _i22.EthContract?); + )) as _i20.EthContract?); @override - _i17.Future putEthContract(_i22.EthContract? contract) => + _i14.Future putEthContract(_i20.EthContract? contract) => (super.noSuchMethod( Invocation.method( #putEthContract, [contract], ), - returnValue: _i17.Future.value(0), - ) as _i17.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - _i17.Future putEthContracts(List<_i22.EthContract>? contracts) => + _i14.Future putEthContracts(List<_i20.EthContract>? contracts) => (super.noSuchMethod( Invocation.method( #putEthContracts, [contracts], ), - returnValue: _i17.Future.value(), - returnValueForMissingStub: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i17.Future getHighestUsedMintIndex({required String? walletId}) => + _i14.Future getHighestUsedMintIndex({required String? walletId}) => (super.noSuchMethod( Invocation.method( #getHighestUsedMintIndex, [], {#walletId: walletId}, ), - returnValue: _i17.Future.value(), - ) as _i17.Future); + returnValue: _i14.Future.value(), + ) as _i14.Future); } /// A class which mocks [IThemeAssets]. /// /// See the documentation for Mockito's code generation for more information. -class MockIThemeAssets extends _i1.Mock implements _i33.IThemeAssets { +class MockIThemeAssets extends _i1.Mock implements _i29.IThemeAssets { MockIThemeAssets() { _i1.throwOnMissingStub(this); } diff --git a/test/widget_tests/wallet_card_test.mocks.dart b/test/widget_tests/wallet_card_test.mocks.dart index 7747d21d0..5e48fa0ab 100644 --- a/test/widget_tests/wallet_card_test.mocks.dart +++ b/test/widget_tests/wallet_card_test.mocks.dart @@ -4,22 +4,23 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i8; -import 'dart:typed_data' as _i15; -import 'dart:ui' as _i12; +import 'dart:typed_data' as _i16; +import 'dart:ui' as _i13; 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/isar/stack_theme.dart' as _i15; import 'package:stackwallet/networking/http.dart' as _i6; -import 'package:stackwallet/services/locale_service.dart' as _i11; +import 'package:stackwallet/services/locale_service.dart' as _i12; import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/wallets.dart' as _i7; -import 'package:stackwallet/themes/theme_service.dart' as _i13; +import 'package:stackwallet/themes/theme_service.dart' as _i14; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i9; -import 'package:stackwallet/utilities/prefs.dart' as _i10; + as _i10; +import 'package:stackwallet/utilities/prefs.dart' as _i11; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; +import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i9; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; // ignore_for_file: type=lint @@ -149,14 +150,14 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ); @override _i8.Future deleteWallet( - String? walletId, - _i9.SecureStorageInterface? secureStorage, + _i9.WalletInfo? info, + _i10.SecureStorageInterface? secureStorage, ) => (super.noSuchMethod( Invocation.method( #deleteWallet, [ - walletId, + info, secureStorage, ], ), @@ -165,7 +166,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ) as _i8.Future); @override _i8.Future load( - _i10.Prefs? prefs, + _i11.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -181,7 +182,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { ) as _i8.Future); @override _i8.Future loadAfterStackRestore( - _i10.Prefs? prefs, + _i11.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -200,7 +201,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets { /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i11.LocaleService { +class MockLocaleService extends _i1.Mock implements _i12.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -226,7 +227,7 @@ class MockLocaleService extends _i1.Mock implements _i11.LocaleService { returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); @override - void addListener(_i12.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i13.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -234,7 +235,7 @@ class MockLocaleService extends _i1.Mock implements _i11.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i13.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -262,7 +263,7 @@ class MockLocaleService extends _i1.Mock implements _i11.LocaleService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i13.ThemeService { +class MockThemeService extends _i1.Mock implements _i14.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @@ -292,10 +293,10 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService { ), ) as _i3.MainDB); @override - List<_i14.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i15.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i14.StackTheme>[], - ) as List<_i14.StackTheme>); + returnValue: <_i15.StackTheme>[], + ) as List<_i15.StackTheme>); @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -305,7 +306,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService { returnValueForMissingStub: null, ); @override - _i8.Future install({required _i15.Uint8List? themeArchiveData}) => + _i8.Future install({required _i16.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, @@ -345,31 +346,31 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future> fetchThemes() => + _i8.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i8.Future>.value( - <_i13.StackThemeMetaData>[]), - ) as _i8.Future>); + returnValue: _i8.Future>.value( + <_i14.StackThemeMetaData>[]), + ) as _i8.Future>); @override - _i8.Future<_i15.Uint8List> fetchTheme( - {required _i13.StackThemeMetaData? themeMetaData}) => + _i8.Future<_i16.Uint8List> fetchTheme( + {required _i14.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i8.Future<_i15.Uint8List>.value(_i15.Uint8List(0)), - ) as _i8.Future<_i15.Uint8List>); + returnValue: _i8.Future<_i16.Uint8List>.value(_i16.Uint8List(0)), + ) as _i8.Future<_i16.Uint8List>); @override - _i14.StackTheme? getTheme({required String? themeId}) => + _i15.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i14.StackTheme?); + )) as _i15.StackTheme?); } 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 f58411739..96ab4208c 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,25 +4,26 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i11; -import 'dart:ui' as _i15; +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/balance.dart' as _i8; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i18; -import 'package:stackwallet/models/node_model.dart' as _i16; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i19; +import 'package:stackwallet/models/node_model.dart' as _i17; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i7; -import 'package:stackwallet/services/coins/coin_service.dart' as _i17; +import 'package:stackwallet/services/coins/coin_service.dart' as _i18; import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/wallets.dart' as _i10; -import 'package:stackwallet/services/wallets_service.dart' as _i13; +import 'package:stackwallet/services/wallets_service.dart' as _i14; import 'package:stackwallet/utilities/amount/amount.dart' as _i9; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i14; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i6; -import 'package:stackwallet/utilities/prefs.dart' as _i12; +import 'package:stackwallet/utilities/prefs.dart' as _i13; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; +import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i12; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; // ignore_for_file: type=lint @@ -183,14 +184,14 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { ); @override _i11.Future deleteWallet( - String? walletId, + _i12.WalletInfo? info, _i6.SecureStorageInterface? secureStorage, ) => (super.noSuchMethod( Invocation.method( #deleteWallet, [ - walletId, + info, secureStorage, ], ), @@ -199,7 +200,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { ) as _i11.Future); @override _i11.Future load( - _i12.Prefs? prefs, + _i13.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -215,7 +216,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { ) as _i11.Future); @override _i11.Future loadAfterStackRestore( - _i12.Prefs? prefs, + _i13.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -234,18 +235,18 @@ class MockWallets extends _i1.Mock implements _i10.Wallets { /// A class which mocks [WalletsService]. /// /// See the documentation for Mockito's code generation for more information. -class MockWalletsService extends _i1.Mock implements _i13.WalletsService { +class MockWalletsService extends _i1.Mock implements _i14.WalletsService { MockWalletsService() { _i1.throwOnMissingStub(this); } @override - _i11.Future> get walletNames => + _i11.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i11.Future>.value( - {}), - ) as _i11.Future>); + returnValue: _i11.Future>.value( + {}), + ) as _i11.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), @@ -270,18 +271,18 @@ class MockWalletsService extends _i1.Mock implements _i13.WalletsService { returnValue: _i11.Future.value(false), ) as _i11.Future); @override - Map fetchWalletsData() => (super.noSuchMethod( + Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( #fetchWalletsData, [], ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override _i11.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i14.Coin? coin, + required _i15.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -301,7 +302,7 @@ class MockWalletsService extends _i1.Mock implements _i13.WalletsService { @override _i11.Future addNewWallet({ required String? name, - required _i14.Coin? coin, + required _i15.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -432,7 +433,7 @@ class MockWalletsService extends _i1.Mock implements _i13.WalletsService { returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); @override - void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -440,7 +441,7 @@ class MockWalletsService extends _i1.Mock implements _i13.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -478,15 +479,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), ) as _i6.SecureStorageInterface); @override - List<_i16.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i17.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i16.NodeModel>[], - ) as List<_i16.NodeModel>); + returnValue: <_i17.NodeModel>[], + ) as List<_i17.NodeModel>); @override - List<_i16.NodeModel> get nodes => (super.noSuchMethod( + List<_i17.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i16.NodeModel>[], - ) as List<_i16.NodeModel>); + returnValue: <_i17.NodeModel>[], + ) as List<_i17.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), @@ -503,8 +504,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i11.Future); @override _i11.Future setPrimaryNodeFor({ - required _i14.Coin? coin, - required _i16.NodeModel? node, + required _i15.Coin? coin, + required _i17.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -521,40 +522,40 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); @override - _i16.NodeModel? getPrimaryNodeFor({required _i14.Coin? coin}) => + _i17.NodeModel? getPrimaryNodeFor({required _i15.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i16.NodeModel?); + )) as _i17.NodeModel?); @override - List<_i16.NodeModel> getNodesFor(_i14.Coin? coin) => (super.noSuchMethod( + List<_i17.NodeModel> getNodesFor(_i15.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i16.NodeModel>[], - ) as List<_i16.NodeModel>); + returnValue: <_i17.NodeModel>[], + ) as List<_i17.NodeModel>); @override - _i16.NodeModel? getNodeById({required String? id}) => + _i17.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i16.NodeModel?); + )) as _i17.NodeModel?); @override - List<_i16.NodeModel> failoverNodesFor({required _i14.Coin? coin}) => + List<_i17.NodeModel> failoverNodesFor({required _i15.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i16.NodeModel>[], - ) as List<_i16.NodeModel>); + returnValue: <_i17.NodeModel>[], + ) as List<_i17.NodeModel>); @override _i11.Future add( - _i16.NodeModel? node, + _i17.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -606,7 +607,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i11.Future); @override _i11.Future edit( - _i16.NodeModel? editedNode, + _i17.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -632,7 +633,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); @override - void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -640,7 +641,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -668,7 +669,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -679,10 +680,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i14.Coin get coin => (super.noSuchMethod( + _i15.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i14.Coin.bitcoin, - ) as _i14.Coin); + returnValue: _i15.Coin.bitcoin, + ) as _i15.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -741,16 +742,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI { ), ) as _i8.Balance); @override - _i11.Future> get transactions => (super.noSuchMethod( + _i11.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i11.Future>.value(<_i18.Transaction>[]), - ) as _i11.Future>); + _i11.Future>.value(<_i19.Transaction>[]), + ) as _i11.Future>); @override - _i11.Future> get utxos => (super.noSuchMethod( + _i11.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i11.Future>.value(<_i18.UTXO>[]), - ) as _i11.Future>); + returnValue: _i11.Future>.value(<_i19.UTXO>[]), + ) as _i11.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( 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 b5aa1b1a0..170822fc6 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 @@ -4,29 +4,30 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i12; -import 'dart:typed_data' as _i19; -import 'dart:ui' as _i16; +import 'dart:typed_data' as _i20; +import 'dart:ui' as _i17; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; import 'package:stackwallet/models/balance.dart' as _i9; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i22; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i18; -import 'package:stackwallet/models/node_model.dart' as _i20; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i23; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i19; +import 'package:stackwallet/models/node_model.dart' as _i21; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; import 'package:stackwallet/networking/http.dart' as _i6; -import 'package:stackwallet/services/coins/coin_service.dart' as _i21; +import 'package:stackwallet/services/coins/coin_service.dart' as _i22; import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/wallets.dart' as _i11; -import 'package:stackwallet/services/wallets_service.dart' as _i14; -import 'package:stackwallet/themes/theme_service.dart' as _i17; +import 'package:stackwallet/services/wallets_service.dart' as _i15; +import 'package:stackwallet/themes/theme_service.dart' as _i18; import 'package:stackwallet/utilities/amount/amount.dart' as _i10; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15; +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 _i13; +import 'package:stackwallet/utilities/prefs.dart' as _i14; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; +import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i13; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; // ignore_for_file: type=lint @@ -197,14 +198,14 @@ class MockWallets extends _i1.Mock implements _i11.Wallets { ); @override _i12.Future deleteWallet( - String? walletId, + _i13.WalletInfo? info, _i7.SecureStorageInterface? secureStorage, ) => (super.noSuchMethod( Invocation.method( #deleteWallet, [ - walletId, + info, secureStorage, ], ), @@ -213,7 +214,7 @@ class MockWallets extends _i1.Mock implements _i11.Wallets { ) as _i12.Future); @override _i12.Future load( - _i13.Prefs? prefs, + _i14.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -229,7 +230,7 @@ class MockWallets extends _i1.Mock implements _i11.Wallets { ) as _i12.Future); @override _i12.Future loadAfterStackRestore( - _i13.Prefs? prefs, + _i14.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -248,18 +249,18 @@ class MockWallets extends _i1.Mock implements _i11.Wallets { /// A class which mocks [WalletsService]. /// /// See the documentation for Mockito's code generation for more information. -class MockWalletsService extends _i1.Mock implements _i14.WalletsService { +class MockWalletsService extends _i1.Mock implements _i15.WalletsService { MockWalletsService() { _i1.throwOnMissingStub(this); } @override - _i12.Future> get walletNames => + _i12.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i12.Future>.value( - {}), - ) as _i12.Future>); + returnValue: _i12.Future>.value( + {}), + ) as _i12.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), @@ -284,18 +285,18 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService { returnValue: _i12.Future.value(false), ) as _i12.Future); @override - Map fetchWalletsData() => (super.noSuchMethod( + Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( #fetchWalletsData, [], ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override _i12.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i15.Coin? coin, + required _i16.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -315,7 +316,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService { @override _i12.Future addNewWallet({ required String? name, - required _i15.Coin? coin, + required _i16.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -446,7 +447,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService { returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); @override - void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -454,7 +455,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -482,7 +483,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService { /// 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 _i18.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @@ -512,10 +513,10 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { ), ) as _i3.MainDB); @override - List<_i18.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i19.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i18.StackTheme>[], - ) as List<_i18.StackTheme>); + returnValue: <_i19.StackTheme>[], + ) as List<_i19.StackTheme>); @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -525,7 +526,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { returnValueForMissingStub: null, ); @override - _i12.Future install({required _i19.Uint8List? themeArchiveData}) => + _i12.Future install({required _i20.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, @@ -565,33 +566,33 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService { returnValue: _i12.Future.value(false), ) as _i12.Future); @override - _i12.Future> fetchThemes() => + _i12.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i12.Future>.value( - <_i17.StackThemeMetaData>[]), - ) as _i12.Future>); + returnValue: _i12.Future>.value( + <_i18.StackThemeMetaData>[]), + ) as _i12.Future>); @override - _i12.Future<_i19.Uint8List> fetchTheme( - {required _i17.StackThemeMetaData? themeMetaData}) => + _i12.Future<_i20.Uint8List> fetchTheme( + {required _i18.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i12.Future<_i19.Uint8List>.value(_i19.Uint8List(0)), - ) as _i12.Future<_i19.Uint8List>); + returnValue: _i12.Future<_i20.Uint8List>.value(_i20.Uint8List(0)), + ) as _i12.Future<_i20.Uint8List>); @override - _i18.StackTheme? getTheme({required String? themeId}) => + _i19.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i18.StackTheme?); + )) as _i19.StackTheme?); } /// A class which mocks [NodeService]. @@ -607,15 +608,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), ) as _i7.SecureStorageInterface); @override - List<_i20.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i21.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i20.NodeModel>[], - ) as List<_i20.NodeModel>); + returnValue: <_i21.NodeModel>[], + ) as List<_i21.NodeModel>); @override - List<_i20.NodeModel> get nodes => (super.noSuchMethod( + List<_i21.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i20.NodeModel>[], - ) as List<_i20.NodeModel>); + returnValue: <_i21.NodeModel>[], + ) as List<_i21.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), @@ -632,8 +633,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i12.Future); @override _i12.Future setPrimaryNodeFor({ - required _i15.Coin? coin, - required _i20.NodeModel? node, + required _i16.Coin? coin, + required _i21.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -650,40 +651,40 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); @override - _i20.NodeModel? getPrimaryNodeFor({required _i15.Coin? coin}) => + _i21.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i20.NodeModel?); + )) as _i21.NodeModel?); @override - List<_i20.NodeModel> getNodesFor(_i15.Coin? coin) => (super.noSuchMethod( + List<_i21.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i20.NodeModel>[], - ) as List<_i20.NodeModel>); + returnValue: <_i21.NodeModel>[], + ) as List<_i21.NodeModel>); @override - _i20.NodeModel? getNodeById({required String? id}) => + _i21.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i20.NodeModel?); + )) as _i21.NodeModel?); @override - List<_i20.NodeModel> failoverNodesFor({required _i15.Coin? coin}) => + List<_i21.NodeModel> failoverNodesFor({required _i16.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i20.NodeModel>[], - ) as List<_i20.NodeModel>); + returnValue: <_i21.NodeModel>[], + ) as List<_i21.NodeModel>); @override _i12.Future add( - _i20.NodeModel? node, + _i21.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -735,7 +736,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ) as _i12.Future); @override _i12.Future edit( - _i20.NodeModel? editedNode, + _i21.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -761,7 +762,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); @override - void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -769,7 +770,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -797,7 +798,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i22.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -808,10 +809,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i15.Coin get coin => (super.noSuchMethod( + _i16.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i15.Coin.bitcoin, - ) as _i15.Coin); + returnValue: _i16.Coin.bitcoin, + ) as _i16.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -870,16 +871,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI { ), ) as _i9.Balance); @override - _i12.Future> get transactions => (super.noSuchMethod( + _i12.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i12.Future>.value(<_i22.Transaction>[]), - ) as _i12.Future>); + _i12.Future>.value(<_i23.Transaction>[]), + ) as _i12.Future>); @override - _i12.Future> get utxos => (super.noSuchMethod( + _i12.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i12.Future>.value(<_i22.UTXO>[]), - ) as _i12.Future>); + returnValue: _i12.Future>.value(<_i23.UTXO>[]), + ) as _i12.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter(