build runner mocks updated

This commit is contained in:
julian 2024-05-15 15:27:30 -06:00
parent a82f6c3c6e
commit 91f71ce760
21 changed files with 473 additions and 434 deletions

View file

@ -4,14 +4,13 @@
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i6; import 'dart:async' as _i6;
import 'dart:ui' as _i12; import 'dart:ui' as _i11;
import 'package:decimal/decimal.dart' as _i3; import 'package:decimal/decimal.dart' as _i3;
import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i5; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i5;
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i10; import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i10;
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i9; import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i9;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i11;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i8; import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i8;
import 'package:stackwallet/utilities/prefs.dart' as _i7; import 'package:stackwallet/utilities/prefs.dart' as _i7;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
@ -933,7 +932,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs {
returnValueForMissingStub: _i6.Future<void>.value(), returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>); ) as _i6.Future<void>);
@override @override
_i10.AmountUnit amountUnit(_i11.Coin? coin) => (super.noSuchMethod( _i10.AmountUnit amountUnit(_i2.CryptoCurrency? coin) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#amountUnit, #amountUnit,
[coin], [coin],
@ -942,7 +941,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs {
) as _i10.AmountUnit); ) as _i10.AmountUnit);
@override @override
void updateAmountUnit({ void updateAmountUnit({
required _i11.Coin? coin, required _i2.CryptoCurrency? coin,
required _i10.AmountUnit? amountUnit, required _i10.AmountUnit? amountUnit,
}) => }) =>
super.noSuchMethod( super.noSuchMethod(
@ -957,7 +956,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
int maxDecimals(_i11.Coin? coin) => (super.noSuchMethod( int maxDecimals(_i2.CryptoCurrency? coin) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#maxDecimals, #maxDecimals,
[coin], [coin],
@ -966,7 +965,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs {
) as int); ) as int);
@override @override
void updateMaxDecimals({ void updateMaxDecimals({
required _i11.Coin? coin, required _i2.CryptoCurrency? coin,
required int? maxDecimals, required int? maxDecimals,
}) => }) =>
super.noSuchMethod( super.noSuchMethod(
@ -981,7 +980,8 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
_i4.FusionInfo getFusionServerInfo(_i11.Coin? coin) => (super.noSuchMethod( _i4.FusionInfo getFusionServerInfo(_i2.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getFusionServerInfo, #getFusionServerInfo,
[coin], [coin],
@ -996,7 +996,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs {
) as _i4.FusionInfo); ) as _i4.FusionInfo);
@override @override
void setFusionServerInfo( void setFusionServerInfo(
_i11.Coin? coin, _i2.CryptoCurrency? coin,
_i4.FusionInfo? fusionServerInfo, _i4.FusionInfo? fusionServerInfo,
) => ) =>
super.noSuchMethod( super.noSuchMethod(
@ -1010,7 +1010,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void addListener(_i12.VoidCallback? listener) => super.noSuchMethod( void addListener(_i11.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#addListener, #addListener,
[listener], [listener],
@ -1018,7 +1018,7 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod( void removeListener(_i11.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#removeListener, #removeListener,
[listener], [listener],

View file

@ -4,22 +4,21 @@
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i10; import 'dart:async' as _i10;
import 'dart:typed_data' as _i19; import 'dart:typed_data' as _i18;
import 'dart:ui' as _i15; import 'dart:ui' as _i14;
import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/isar/main_db.dart' as _i3; import 'package:stackwallet/db/isar/main_db.dart' as _i3;
import 'package:stackwallet/models/isar/stack_theme.dart' as _i18; import 'package:stackwallet/models/isar/stack_theme.dart' as _i17;
import 'package:stackwallet/models/node_model.dart' as _i13; import 'package:stackwallet/models/node_model.dart' as _i13;
import 'package:stackwallet/networking/http.dart' as _i7; import 'package:stackwallet/networking/http.dart' as _i7;
import 'package:stackwallet/services/locale_service.dart' as _i16; import 'package:stackwallet/services/locale_service.dart' as _i15;
import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/wallets.dart' as _i9; import 'package:stackwallet/services/wallets.dart' as _i9;
import 'package:stackwallet/themes/theme_service.dart' as _i17; import 'package:stackwallet/themes/theme_service.dart' as _i16;
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i22; import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i21;
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i21; import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i20;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i14; import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i19;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i20;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i6; as _i6;
import 'package:stackwallet/utilities/prefs.dart' as _i12; import 'package:stackwallet/utilities/prefs.dart' as _i12;
@ -265,7 +264,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
_i10.Future<void> setPrimaryNodeFor({ _i10.Future<void> setPrimaryNodeFor({
required _i14.Coin? coin, required _i4.CryptoCurrency? coin,
required _i13.NodeModel? node, required _i13.NodeModel? node,
bool? shouldNotifyListeners = false, bool? shouldNotifyListeners = false,
}) => }) =>
@ -283,14 +282,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: _i10.Future<void>.value(), returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
_i13.NodeModel? getPrimaryNodeFor({required _i14.Coin? coin}) => _i13.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor, #getPrimaryNodeFor,
[], [],
{#coin: coin}, {#currency: currency},
)) as _i13.NodeModel?); )) as _i13.NodeModel?);
@override @override
List<_i13.NodeModel> getNodesFor(_i14.Coin? coin) => (super.noSuchMethod( List<_i13.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getNodesFor, #getNodesFor,
[coin], [coin],
@ -305,12 +305,13 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
{#id: id}, {#id: id},
)) as _i13.NodeModel?); )) as _i13.NodeModel?);
@override @override
List<_i13.NodeModel> failoverNodesFor({required _i14.Coin? coin}) => List<_i13.NodeModel> failoverNodesFor(
{required _i4.CryptoCurrency? currency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#failoverNodesFor, #failoverNodesFor,
[], [],
{#coin: coin}, {#currency: currency},
), ),
returnValue: <_i13.NodeModel>[], returnValue: <_i13.NodeModel>[],
) as List<_i13.NodeModel>); ) as List<_i13.NodeModel>);
@ -394,7 +395,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: _i10.Future<void>.value(), returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( void addListener(_i14.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#addListener, #addListener,
[listener], [listener],
@ -402,7 +403,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#removeListener, #removeListener,
[listener], [listener],
@ -430,7 +431,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
/// A class which mocks [LocaleService]. /// A class which mocks [LocaleService].
/// ///
/// See the documentation for Mockito's code generation for more information. /// See the documentation for Mockito's code generation for more information.
class MockLocaleService extends _i1.Mock implements _i16.LocaleService { class MockLocaleService extends _i1.Mock implements _i15.LocaleService {
MockLocaleService() { MockLocaleService() {
_i1.throwOnMissingStub(this); _i1.throwOnMissingStub(this);
} }
@ -456,7 +457,7 @@ class MockLocaleService extends _i1.Mock implements _i16.LocaleService {
returnValueForMissingStub: _i10.Future<void>.value(), returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( void addListener(_i14.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#addListener, #addListener,
[listener], [listener],
@ -464,7 +465,7 @@ class MockLocaleService extends _i1.Mock implements _i16.LocaleService {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#removeListener, #removeListener,
[listener], [listener],
@ -492,7 +493,7 @@ class MockLocaleService extends _i1.Mock implements _i16.LocaleService {
/// A class which mocks [ThemeService]. /// A class which mocks [ThemeService].
/// ///
/// See the documentation for Mockito's code generation for more information. /// See the documentation for Mockito's code generation for more information.
class MockThemeService extends _i1.Mock implements _i17.ThemeService { class MockThemeService extends _i1.Mock implements _i16.ThemeService {
MockThemeService() { MockThemeService() {
_i1.throwOnMissingStub(this); _i1.throwOnMissingStub(this);
} }
@ -522,10 +523,10 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
), ),
) as _i3.MainDB); ) as _i3.MainDB);
@override @override
List<_i18.StackTheme> get installedThemes => (super.noSuchMethod( List<_i17.StackTheme> get installedThemes => (super.noSuchMethod(
Invocation.getter(#installedThemes), Invocation.getter(#installedThemes),
returnValue: <_i18.StackTheme>[], returnValue: <_i17.StackTheme>[],
) as List<_i18.StackTheme>); ) as List<_i17.StackTheme>);
@override @override
void init(_i3.MainDB? db) => super.noSuchMethod( void init(_i3.MainDB? db) => super.noSuchMethod(
Invocation.method( Invocation.method(
@ -535,7 +536,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
_i10.Future<void> install({required _i19.Uint8List? themeArchiveData}) => _i10.Future<void> install({required _i18.Uint8List? themeArchiveData}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#install, #install,
@ -575,33 +576,33 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
returnValue: _i10.Future<bool>.value(false), returnValue: _i10.Future<bool>.value(false),
) as _i10.Future<bool>); ) as _i10.Future<bool>);
@override @override
_i10.Future<List<_i17.StackThemeMetaData>> fetchThemes() => _i10.Future<List<_i16.StackThemeMetaData>> fetchThemes() =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#fetchThemes, #fetchThemes,
[], [],
), ),
returnValue: _i10.Future<List<_i17.StackThemeMetaData>>.value( returnValue: _i10.Future<List<_i16.StackThemeMetaData>>.value(
<_i17.StackThemeMetaData>[]), <_i16.StackThemeMetaData>[]),
) as _i10.Future<List<_i17.StackThemeMetaData>>); ) as _i10.Future<List<_i16.StackThemeMetaData>>);
@override @override
_i10.Future<_i19.Uint8List> fetchTheme( _i10.Future<_i18.Uint8List> fetchTheme(
{required _i17.StackThemeMetaData? themeMetaData}) => {required _i16.StackThemeMetaData? themeMetaData}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#fetchTheme, #fetchTheme,
[], [],
{#themeMetaData: themeMetaData}, {#themeMetaData: themeMetaData},
), ),
returnValue: _i10.Future<_i19.Uint8List>.value(_i19.Uint8List(0)), returnValue: _i10.Future<_i18.Uint8List>.value(_i18.Uint8List(0)),
) as _i10.Future<_i19.Uint8List>); ) as _i10.Future<_i18.Uint8List>);
@override @override
_i18.StackTheme? getTheme({required String? themeId}) => _i17.StackTheme? getTheme({required String? themeId}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getTheme, #getTheme,
[], [],
{#themeId: themeId}, {#themeId: themeId},
)) as _i18.StackTheme?); )) as _i17.StackTheme?);
} }
/// A class which mocks [Prefs]. /// A class which mocks [Prefs].
@ -663,12 +664,12 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
_i20.SyncingType get syncType => (super.noSuchMethod( _i19.SyncingType get syncType => (super.noSuchMethod(
Invocation.getter(#syncType), Invocation.getter(#syncType),
returnValue: _i20.SyncingType.currentWalletOnly, returnValue: _i19.SyncingType.currentWalletOnly,
) as _i20.SyncingType); ) as _i19.SyncingType);
@override @override
set syncType(_i20.SyncingType? syncType) => super.noSuchMethod( set syncType(_i19.SyncingType? syncType) => super.noSuchMethod(
Invocation.setter( Invocation.setter(
#syncType, #syncType,
syncType, syncType,
@ -827,12 +828,12 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
_i21.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( _i20.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
Invocation.getter(#backupFrequencyType), Invocation.getter(#backupFrequencyType),
returnValue: _i21.BackupFrequencyType.everyTenMinutes, returnValue: _i20.BackupFrequencyType.everyTenMinutes,
) as _i21.BackupFrequencyType); ) as _i20.BackupFrequencyType);
@override @override
set backupFrequencyType(_i21.BackupFrequencyType? backupFrequencyType) => set backupFrequencyType(_i20.BackupFrequencyType? backupFrequencyType) =>
super.noSuchMethod( super.noSuchMethod(
Invocation.setter( Invocation.setter(
#backupFrequencyType, #backupFrequencyType,
@ -1027,17 +1028,17 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: _i10.Future<void>.value(), returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
_i22.AmountUnit amountUnit(_i14.Coin? coin) => (super.noSuchMethod( _i21.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#amountUnit, #amountUnit,
[coin], [coin],
), ),
returnValue: _i22.AmountUnit.normal, returnValue: _i21.AmountUnit.normal,
) as _i22.AmountUnit); ) as _i21.AmountUnit);
@override @override
void updateAmountUnit({ void updateAmountUnit({
required _i14.Coin? coin, required _i4.CryptoCurrency? coin,
required _i22.AmountUnit? amountUnit, required _i21.AmountUnit? amountUnit,
}) => }) =>
super.noSuchMethod( super.noSuchMethod(
Invocation.method( Invocation.method(
@ -1051,7 +1052,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
int maxDecimals(_i14.Coin? coin) => (super.noSuchMethod( int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#maxDecimals, #maxDecimals,
[coin], [coin],
@ -1060,7 +1061,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
) as int); ) as int);
@override @override
void updateMaxDecimals({ void updateMaxDecimals({
required _i14.Coin? coin, required _i4.CryptoCurrency? coin,
required int? maxDecimals, required int? maxDecimals,
}) => }) =>
super.noSuchMethod( super.noSuchMethod(
@ -1075,7 +1076,8 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
_i8.FusionInfo getFusionServerInfo(_i14.Coin? coin) => (super.noSuchMethod( _i8.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getFusionServerInfo, #getFusionServerInfo,
[coin], [coin],
@ -1090,7 +1092,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
) as _i8.FusionInfo); ) as _i8.FusionInfo);
@override @override
void setFusionServerInfo( void setFusionServerInfo(
_i14.Coin? coin, _i4.CryptoCurrency? coin,
_i8.FusionInfo? fusionServerInfo, _i8.FusionInfo? fusionServerInfo,
) => ) =>
super.noSuchMethod( super.noSuchMethod(
@ -1104,7 +1106,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( void addListener(_i14.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#addListener, #addListener,
[listener], [listener],
@ -1112,7 +1114,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#removeListener, #removeListener,
[listener], [listener],

View file

@ -32,9 +32,10 @@ import 'package:stackwallet/services/trade_notes_service.dart' as _i14;
import 'package:stackwallet/services/trade_service.dart' as _i12; import 'package:stackwallet/services/trade_service.dart' as _i12;
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i9; import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i9;
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i7; import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i7;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i10;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i6; import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i6;
import 'package:stackwallet/utilities/prefs.dart' as _i5; import 'package:stackwallet/utilities/prefs.dart' as _i5;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i10;
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart'
as _i2; as _i2;
@ -503,7 +504,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
returnValueForMissingStub: _i8.Future<void>.value(), returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>); ) as _i8.Future<void>);
@override @override
_i9.AmountUnit amountUnit(_i10.Coin? coin) => (super.noSuchMethod( _i9.AmountUnit amountUnit(_i10.CryptoCurrency? coin) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#amountUnit, #amountUnit,
[coin], [coin],
@ -512,7 +513,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
) as _i9.AmountUnit); ) as _i9.AmountUnit);
@override @override
void updateAmountUnit({ void updateAmountUnit({
required _i10.Coin? coin, required _i10.CryptoCurrency? coin,
required _i9.AmountUnit? amountUnit, required _i9.AmountUnit? amountUnit,
}) => }) =>
super.noSuchMethod( super.noSuchMethod(
@ -527,7 +528,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
int maxDecimals(_i10.Coin? coin) => (super.noSuchMethod( int maxDecimals(_i10.CryptoCurrency? coin) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#maxDecimals, #maxDecimals,
[coin], [coin],
@ -536,7 +537,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
) as int); ) as int);
@override @override
void updateMaxDecimals({ void updateMaxDecimals({
required _i10.Coin? coin, required _i10.CryptoCurrency? coin,
required int? maxDecimals, required int? maxDecimals,
}) => }) =>
super.noSuchMethod( super.noSuchMethod(
@ -551,7 +552,8 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
_i2.FusionInfo getFusionServerInfo(_i10.Coin? coin) => (super.noSuchMethod( _i2.FusionInfo getFusionServerInfo(_i10.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getFusionServerInfo, #getFusionServerInfo,
[coin], [coin],
@ -566,7 +568,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
) as _i2.FusionInfo); ) as _i2.FusionInfo);
@override @override
void setFusionServerInfo( void setFusionServerInfo(
_i10.Coin? coin, _i10.CryptoCurrency? coin,
_i2.FusionInfo? fusionServerInfo, _i2.FusionInfo? fusionServerInfo,
) => ) =>
super.noSuchMethod( super.noSuchMethod(

View file

@ -10,9 +10,10 @@ import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/models/node_model.dart' as _i7; import 'package:stackwallet/models/node_model.dart' as _i7;
import 'package:stackwallet/services/node_service.dart' as _i6; import 'package:stackwallet/services/node_service.dart' as _i6;
import 'package:stackwallet/services/wallets_service.dart' as _i3; import 'package:stackwallet/services/wallets_service.dart' as _i3;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i8;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i2; as _i2;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i8;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_redundant_argument_values
@ -124,7 +125,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
) as _i4.Future<void>); ) as _i4.Future<void>);
@override @override
_i4.Future<void> setPrimaryNodeFor({ _i4.Future<void> setPrimaryNodeFor({
required _i8.Coin? coin, required _i8.CryptoCurrency? coin,
required _i7.NodeModel? node, required _i7.NodeModel? node,
bool? shouldNotifyListeners = false, bool? shouldNotifyListeners = false,
}) => }) =>
@ -142,14 +143,15 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
returnValueForMissingStub: _i4.Future<void>.value(), returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>); ) as _i4.Future<void>);
@override @override
_i7.NodeModel? getPrimaryNodeFor({required _i8.Coin? coin}) => _i7.NodeModel? getPrimaryNodeFor({required _i8.CryptoCurrency? currency}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor, #getPrimaryNodeFor,
[], [],
{#coin: coin}, {#currency: currency},
)) as _i7.NodeModel?); )) as _i7.NodeModel?);
@override @override
List<_i7.NodeModel> getNodesFor(_i8.Coin? coin) => (super.noSuchMethod( List<_i7.NodeModel> getNodesFor(_i8.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getNodesFor, #getNodesFor,
[coin], [coin],
@ -164,12 +166,13 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
{#id: id}, {#id: id},
)) as _i7.NodeModel?); )) as _i7.NodeModel?);
@override @override
List<_i7.NodeModel> failoverNodesFor({required _i8.Coin? coin}) => List<_i7.NodeModel> failoverNodesFor(
{required _i8.CryptoCurrency? currency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#failoverNodesFor, #failoverNodesFor,
[], [],
{#coin: coin}, {#currency: currency},
), ),
returnValue: <_i7.NodeModel>[], returnValue: <_i7.NodeModel>[],
) as List<_i7.NodeModel>); ) as List<_i7.NodeModel>);

View file

@ -10,9 +10,10 @@ import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/models/node_model.dart' as _i7; import 'package:stackwallet/models/node_model.dart' as _i7;
import 'package:stackwallet/services/node_service.dart' as _i6; import 'package:stackwallet/services/node_service.dart' as _i6;
import 'package:stackwallet/services/wallets_service.dart' as _i3; import 'package:stackwallet/services/wallets_service.dart' as _i3;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i8;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i2; as _i2;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i8;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_redundant_argument_values
@ -124,7 +125,7 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
) as _i4.Future<void>); ) as _i4.Future<void>);
@override @override
_i4.Future<void> setPrimaryNodeFor({ _i4.Future<void> setPrimaryNodeFor({
required _i8.Coin? coin, required _i8.CryptoCurrency? coin,
required _i7.NodeModel? node, required _i7.NodeModel? node,
bool? shouldNotifyListeners = false, bool? shouldNotifyListeners = false,
}) => }) =>
@ -142,14 +143,15 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
returnValueForMissingStub: _i4.Future<void>.value(), returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>); ) as _i4.Future<void>);
@override @override
_i7.NodeModel? getPrimaryNodeFor({required _i8.Coin? coin}) => _i7.NodeModel? getPrimaryNodeFor({required _i8.CryptoCurrency? currency}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor, #getPrimaryNodeFor,
[], [],
{#coin: coin}, {#currency: currency},
)) as _i7.NodeModel?); )) as _i7.NodeModel?);
@override @override
List<_i7.NodeModel> getNodesFor(_i8.Coin? coin) => (super.noSuchMethod( List<_i7.NodeModel> getNodesFor(_i8.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getNodesFor, #getNodesFor,
[coin], [coin],
@ -164,12 +166,13 @@ class MockNodeService extends _i1.Mock implements _i6.NodeService {
{#id: id}, {#id: id},
)) as _i7.NodeModel?); )) as _i7.NodeModel?);
@override @override
List<_i7.NodeModel> failoverNodesFor({required _i8.Coin? coin}) => List<_i7.NodeModel> failoverNodesFor(
{required _i8.CryptoCurrency? currency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#failoverNodesFor, #failoverNodesFor,
[], [],
{#coin: coin}, {#currency: currency},
), ),
returnValue: <_i7.NodeModel>[], returnValue: <_i7.NodeModel>[],
) as List<_i7.NodeModel>); ) as List<_i7.NodeModel>);

View file

@ -12,9 +12,10 @@ import 'package:stackwallet/models/node_model.dart' as _i9;
import 'package:stackwallet/services/node_service.dart' as _i8; import 'package:stackwallet/services/node_service.dart' as _i8;
import 'package:stackwallet/services/wallets_service.dart' as _i6; import 'package:stackwallet/services/wallets_service.dart' as _i6;
import 'package:stackwallet/utilities/barcode_scanner_interface.dart' as _i4; import 'package:stackwallet/utilities/barcode_scanner_interface.dart' as _i4;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i10;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i3; as _i3;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i10;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_redundant_argument_values
@ -165,7 +166,7 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i5.Future<void> setPrimaryNodeFor({ _i5.Future<void> setPrimaryNodeFor({
required _i10.Coin? coin, required _i10.CryptoCurrency? coin,
required _i9.NodeModel? node, required _i9.NodeModel? node,
bool? shouldNotifyListeners = false, bool? shouldNotifyListeners = false,
}) => }) =>
@ -183,14 +184,15 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
returnValueForMissingStub: _i5.Future<void>.value(), returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i9.NodeModel? getPrimaryNodeFor({required _i10.Coin? coin}) => _i9.NodeModel? getPrimaryNodeFor({required _i10.CryptoCurrency? currency}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor, #getPrimaryNodeFor,
[], [],
{#coin: coin}, {#currency: currency},
)) as _i9.NodeModel?); )) as _i9.NodeModel?);
@override @override
List<_i9.NodeModel> getNodesFor(_i10.Coin? coin) => (super.noSuchMethod( List<_i9.NodeModel> getNodesFor(_i10.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getNodesFor, #getNodesFor,
[coin], [coin],
@ -205,12 +207,13 @@ class MockNodeService extends _i1.Mock implements _i8.NodeService {
{#id: id}, {#id: id},
)) as _i9.NodeModel?); )) as _i9.NodeModel?);
@override @override
List<_i9.NodeModel> failoverNodesFor({required _i10.Coin? coin}) => List<_i9.NodeModel> failoverNodesFor(
{required _i10.CryptoCurrency? currency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#failoverNodesFor, #failoverNodesFor,
[], [],
{#coin: coin}, {#currency: currency},
), ),
returnValue: <_i9.NodeModel>[], returnValue: <_i9.NodeModel>[],
) as List<_i9.NodeModel>); ) as List<_i9.NodeModel>);

View file

@ -9,9 +9,10 @@ import 'dart:ui' as _i7;
import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/models/node_model.dart' as _i4; import 'package:stackwallet/models/node_model.dart' as _i4;
import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/node_service.dart' as _i3;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i2; as _i2;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i6;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_redundant_argument_values
@ -73,7 +74,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i5.Future<void> setPrimaryNodeFor({ _i5.Future<void> setPrimaryNodeFor({
required _i6.Coin? coin, required _i6.CryptoCurrency? coin,
required _i4.NodeModel? node, required _i4.NodeModel? node,
bool? shouldNotifyListeners = false, bool? shouldNotifyListeners = false,
}) => }) =>
@ -91,14 +92,15 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
returnValueForMissingStub: _i5.Future<void>.value(), returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i4.NodeModel? getPrimaryNodeFor({required _i6.Coin? coin}) => _i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor, #getPrimaryNodeFor,
[], [],
{#coin: coin}, {#currency: currency},
)) as _i4.NodeModel?); )) as _i4.NodeModel?);
@override @override
List<_i4.NodeModel> getNodesFor(_i6.Coin? coin) => (super.noSuchMethod( List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getNodesFor, #getNodesFor,
[coin], [coin],
@ -113,12 +115,13 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
{#id: id}, {#id: id},
)) as _i4.NodeModel?); )) as _i4.NodeModel?);
@override @override
List<_i4.NodeModel> failoverNodesFor({required _i6.Coin? coin}) => List<_i4.NodeModel> failoverNodesFor(
{required _i6.CryptoCurrency? currency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#failoverNodesFor, #failoverNodesFor,
[], [],
{#coin: coin}, {#currency: currency},
), ),
returnValue: <_i4.NodeModel>[], returnValue: <_i4.NodeModel>[],
) as List<_i4.NodeModel>); ) as List<_i4.NodeModel>);

View file

@ -9,9 +9,10 @@ import 'dart:ui' as _i7;
import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/models/node_model.dart' as _i4; import 'package:stackwallet/models/node_model.dart' as _i4;
import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/node_service.dart' as _i3;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i2; as _i2;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i6;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_redundant_argument_values
@ -73,7 +74,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i5.Future<void> setPrimaryNodeFor({ _i5.Future<void> setPrimaryNodeFor({
required _i6.Coin? coin, required _i6.CryptoCurrency? coin,
required _i4.NodeModel? node, required _i4.NodeModel? node,
bool? shouldNotifyListeners = false, bool? shouldNotifyListeners = false,
}) => }) =>
@ -91,14 +92,15 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
returnValueForMissingStub: _i5.Future<void>.value(), returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i4.NodeModel? getPrimaryNodeFor({required _i6.Coin? coin}) => _i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor, #getPrimaryNodeFor,
[], [],
{#coin: coin}, {#currency: currency},
)) as _i4.NodeModel?); )) as _i4.NodeModel?);
@override @override
List<_i4.NodeModel> getNodesFor(_i6.Coin? coin) => (super.noSuchMethod( List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getNodesFor, #getNodesFor,
[coin], [coin],
@ -113,12 +115,13 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
{#id: id}, {#id: id},
)) as _i4.NodeModel?); )) as _i4.NodeModel?);
@override @override
List<_i4.NodeModel> failoverNodesFor({required _i6.Coin? coin}) => List<_i4.NodeModel> failoverNodesFor(
{required _i6.CryptoCurrency? currency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#failoverNodesFor, #failoverNodesFor,
[], [],
{#coin: coin}, {#currency: currency},
), ),
returnValue: <_i4.NodeModel>[], returnValue: <_i4.NodeModel>[],
) as List<_i4.NodeModel>); ) as List<_i4.NodeModel>);

View file

@ -9,9 +9,10 @@ import 'dart:ui' as _i7;
import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/models/node_model.dart' as _i4; import 'package:stackwallet/models/node_model.dart' as _i4;
import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/node_service.dart' as _i3;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i2; as _i2;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i6;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_redundant_argument_values
@ -73,7 +74,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i5.Future<void> setPrimaryNodeFor({ _i5.Future<void> setPrimaryNodeFor({
required _i6.Coin? coin, required _i6.CryptoCurrency? coin,
required _i4.NodeModel? node, required _i4.NodeModel? node,
bool? shouldNotifyListeners = false, bool? shouldNotifyListeners = false,
}) => }) =>
@ -91,14 +92,15 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
returnValueForMissingStub: _i5.Future<void>.value(), returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i4.NodeModel? getPrimaryNodeFor({required _i6.Coin? coin}) => _i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor, #getPrimaryNodeFor,
[], [],
{#coin: coin}, {#currency: currency},
)) as _i4.NodeModel?); )) as _i4.NodeModel?);
@override @override
List<_i4.NodeModel> getNodesFor(_i6.Coin? coin) => (super.noSuchMethod( List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getNodesFor, #getNodesFor,
[coin], [coin],
@ -113,12 +115,13 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
{#id: id}, {#id: id},
)) as _i4.NodeModel?); )) as _i4.NodeModel?);
@override @override
List<_i4.NodeModel> failoverNodesFor({required _i6.Coin? coin}) => List<_i4.NodeModel> failoverNodesFor(
{required _i6.CryptoCurrency? currency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#failoverNodesFor, #failoverNodesFor,
[], [],
{#coin: coin}, {#currency: currency},
), ),
returnValue: <_i4.NodeModel>[], returnValue: <_i4.NodeModel>[],
) as List<_i4.NodeModel>); ) as List<_i4.NodeModel>);

View file

@ -13,7 +13,8 @@ import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i3;
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i2; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i2;
import 'package:stackwallet/services/wallets_service.dart' as _i9; import 'package:stackwallet/services/wallets_service.dart' as _i9;
import 'package:stackwallet/utilities/biometrics.dart' as _i8; import 'package:stackwallet/utilities/biometrics.dart' as _i8;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i5; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i5;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_redundant_argument_values
@ -58,7 +59,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i4.Future<Map<String, dynamic>> getAnonymitySet({ _i4.Future<Map<String, dynamic>> getAnonymitySet({
required String? groupId, required String? groupId,
String? blockhash = r'', String? blockhash = r'',
required _i5.Coin? coin, required _i5.CryptoCurrency? cryptoCurrency,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -67,7 +68,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{ {
#groupId: groupId, #groupId: groupId,
#blockhash: blockhash, #blockhash: blockhash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
}, },
), ),
returnValue: returnValue:
@ -77,7 +78,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i4.Future<Map<String, dynamic>> getSparkAnonymitySet({ _i4.Future<Map<String, dynamic>> getSparkAnonymitySet({
required String? groupId, required String? groupId,
String? blockhash = r'', String? blockhash = r'',
required _i5.Coin? coin, required _i5.CryptoCurrency? cryptoCurrency,
required bool? useOnlyCacheIfNotEmpty, required bool? useOnlyCacheIfNotEmpty,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -87,7 +88,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{ {
#groupId: groupId, #groupId: groupId,
#blockhash: blockhash, #blockhash: blockhash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
#useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty,
}, },
), ),
@ -113,7 +114,7 @@ class MockCachedElectrumXClient extends _i1.Mock
@override @override
_i4.Future<Map<String, dynamic>> getTransaction({ _i4.Future<Map<String, dynamic>> getTransaction({
required String? txHash, required String? txHash,
required _i5.Coin? coin, required _i5.CryptoCurrency? cryptoCurrency,
bool? verbose = true, bool? verbose = true,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -122,7 +123,7 @@ class MockCachedElectrumXClient extends _i1.Mock
[], [],
{ {
#txHash: txHash, #txHash: txHash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
#verbose: verbose, #verbose: verbose,
}, },
), ),
@ -131,7 +132,7 @@ class MockCachedElectrumXClient extends _i1.Mock
) as _i4.Future<Map<String, dynamic>>); ) as _i4.Future<Map<String, dynamic>>);
@override @override
_i4.Future<List<String>> getUsedCoinSerials({ _i4.Future<List<String>> getUsedCoinSerials({
required _i5.Coin? coin, required _i5.CryptoCurrency? cryptoCurrency,
int? startNumber = 0, int? startNumber = 0,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -139,29 +140,31 @@ class MockCachedElectrumXClient extends _i1.Mock
#getUsedCoinSerials, #getUsedCoinSerials,
[], [],
{ {
#coin: coin, #cryptoCurrency: cryptoCurrency,
#startNumber: startNumber, #startNumber: startNumber,
}, },
), ),
returnValue: _i4.Future<List<String>>.value(<String>[]), returnValue: _i4.Future<List<String>>.value(<String>[]),
) as _i4.Future<List<String>>); ) as _i4.Future<List<String>>);
@override @override
_i4.Future<Set<String>> getSparkUsedCoinsTags({required _i5.Coin? coin}) => _i4.Future<Set<String>> getSparkUsedCoinsTags(
{required _i5.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#getSparkUsedCoinsTags, #getSparkUsedCoinsTags,
[], [],
{#coin: coin}, {#cryptoCurrency: cryptoCurrency},
), ),
returnValue: _i4.Future<Set<String>>.value(<String>{}), returnValue: _i4.Future<Set<String>>.value(<String>{}),
) as _i4.Future<Set<String>>); ) as _i4.Future<Set<String>>);
@override @override
_i4.Future<void> clearSharedTransactionCache({required _i5.Coin? coin}) => _i4.Future<void> clearSharedTransactionCache(
{required _i5.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#clearSharedTransactionCache, #clearSharedTransactionCache,
[], [],
{#coin: coin}, {#cryptoCurrency: cryptoCurrency},
), ),
returnValue: _i4.Future<void>.value(), returnValue: _i4.Future<void>.value(),
returnValueForMissingStub: _i4.Future<void>.value(), returnValueForMissingStub: _i4.Future<void>.value(),

View file

@ -10,8 +10,7 @@ import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6; import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
import 'package:stackwallet/services/transaction_notification_tracker.dart' import 'package:stackwallet/services/transaction_notification_tracker.dart'
as _i8; as _i7;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i2; as _i2;
@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getAnonymitySet({ _i5.Future<Map<String, dynamic>> getAnonymitySet({
required String? groupId, required String? groupId,
String? blockhash = r'', String? blockhash = r'',
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{ {
#groupId: groupId, #groupId: groupId,
#blockhash: blockhash, #blockhash: blockhash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
}, },
), ),
returnValue: returnValue:
@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getSparkAnonymitySet({ _i5.Future<Map<String, dynamic>> getSparkAnonymitySet({
required String? groupId, required String? groupId,
String? blockhash = r'', String? blockhash = r'',
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
required bool? useOnlyCacheIfNotEmpty, required bool? useOnlyCacheIfNotEmpty,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{ {
#groupId: groupId, #groupId: groupId,
#blockhash: blockhash, #blockhash: blockhash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
#useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty,
}, },
), ),
@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock
@override @override
_i5.Future<Map<String, dynamic>> getTransaction({ _i5.Future<Map<String, dynamic>> getTransaction({
required String? txHash, required String? txHash,
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
bool? verbose = true, bool? verbose = true,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock
[], [],
{ {
#txHash: txHash, #txHash: txHash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
#verbose: verbose, #verbose: verbose,
}, },
), ),
@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock
) as _i5.Future<Map<String, dynamic>>); ) as _i5.Future<Map<String, dynamic>>);
@override @override
_i5.Future<List<String>> getUsedCoinSerials({ _i5.Future<List<String>> getUsedCoinSerials({
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
int? startNumber = 0, int? startNumber = 0,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock
#getUsedCoinSerials, #getUsedCoinSerials,
[], [],
{ {
#coin: coin, #cryptoCurrency: cryptoCurrency,
#startNumber: startNumber, #startNumber: startNumber,
}, },
), ),
returnValue: _i5.Future<List<String>>.value(<String>[]), returnValue: _i5.Future<List<String>>.value(<String>[]),
) as _i5.Future<List<String>>); ) as _i5.Future<List<String>>);
@override @override
_i5.Future<Set<String>> getSparkUsedCoinsTags({required _i7.Coin? coin}) => _i5.Future<Set<String>> getSparkUsedCoinsTags(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#getSparkUsedCoinsTags, #getSparkUsedCoinsTags,
[], [],
{#coin: coin}, {#cryptoCurrency: cryptoCurrency},
), ),
returnValue: _i5.Future<Set<String>>.value(<String>{}), returnValue: _i5.Future<Set<String>>.value(<String>{}),
) as _i5.Future<Set<String>>); ) as _i5.Future<Set<String>>);
@override @override
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) => _i5.Future<void> clearSharedTransactionCache(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#clearSharedTransactionCache, #clearSharedTransactionCache,
[], [],
{#coin: coin}, {#cryptoCurrency: cryptoCurrency},
), ),
returnValue: _i5.Future<void>.value(), returnValue: _i5.Future<void>.value(),
returnValueForMissingStub: _i5.Future<void>.value(), returnValueForMissingStub: _i5.Future<void>.value(),
@ -642,7 +643,7 @@ class MockCachedElectrumXClient extends _i1.Mock
/// ///
/// See the documentation for Mockito's code generation for more information. /// See the documentation for Mockito's code generation for more information.
class MockTransactionNotificationTracker extends _i1.Mock class MockTransactionNotificationTracker extends _i1.Mock
implements _i8.TransactionNotificationTracker { implements _i7.TransactionNotificationTracker {
MockTransactionNotificationTracker() { MockTransactionNotificationTracker() {
_i1.throwOnMissingStub(this); _i1.throwOnMissingStub(this);
} }

View file

@ -10,8 +10,7 @@ import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6; import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
import 'package:stackwallet/services/transaction_notification_tracker.dart' import 'package:stackwallet/services/transaction_notification_tracker.dart'
as _i8; as _i7;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i2; as _i2;
@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getAnonymitySet({ _i5.Future<Map<String, dynamic>> getAnonymitySet({
required String? groupId, required String? groupId,
String? blockhash = r'', String? blockhash = r'',
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{ {
#groupId: groupId, #groupId: groupId,
#blockhash: blockhash, #blockhash: blockhash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
}, },
), ),
returnValue: returnValue:
@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getSparkAnonymitySet({ _i5.Future<Map<String, dynamic>> getSparkAnonymitySet({
required String? groupId, required String? groupId,
String? blockhash = r'', String? blockhash = r'',
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
required bool? useOnlyCacheIfNotEmpty, required bool? useOnlyCacheIfNotEmpty,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{ {
#groupId: groupId, #groupId: groupId,
#blockhash: blockhash, #blockhash: blockhash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
#useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty,
}, },
), ),
@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock
@override @override
_i5.Future<Map<String, dynamic>> getTransaction({ _i5.Future<Map<String, dynamic>> getTransaction({
required String? txHash, required String? txHash,
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
bool? verbose = true, bool? verbose = true,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock
[], [],
{ {
#txHash: txHash, #txHash: txHash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
#verbose: verbose, #verbose: verbose,
}, },
), ),
@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock
) as _i5.Future<Map<String, dynamic>>); ) as _i5.Future<Map<String, dynamic>>);
@override @override
_i5.Future<List<String>> getUsedCoinSerials({ _i5.Future<List<String>> getUsedCoinSerials({
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
int? startNumber = 0, int? startNumber = 0,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock
#getUsedCoinSerials, #getUsedCoinSerials,
[], [],
{ {
#coin: coin, #cryptoCurrency: cryptoCurrency,
#startNumber: startNumber, #startNumber: startNumber,
}, },
), ),
returnValue: _i5.Future<List<String>>.value(<String>[]), returnValue: _i5.Future<List<String>>.value(<String>[]),
) as _i5.Future<List<String>>); ) as _i5.Future<List<String>>);
@override @override
_i5.Future<Set<String>> getSparkUsedCoinsTags({required _i7.Coin? coin}) => _i5.Future<Set<String>> getSparkUsedCoinsTags(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#getSparkUsedCoinsTags, #getSparkUsedCoinsTags,
[], [],
{#coin: coin}, {#cryptoCurrency: cryptoCurrency},
), ),
returnValue: _i5.Future<Set<String>>.value(<String>{}), returnValue: _i5.Future<Set<String>>.value(<String>{}),
) as _i5.Future<Set<String>>); ) as _i5.Future<Set<String>>);
@override @override
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) => _i5.Future<void> clearSharedTransactionCache(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#clearSharedTransactionCache, #clearSharedTransactionCache,
[], [],
{#coin: coin}, {#cryptoCurrency: cryptoCurrency},
), ),
returnValue: _i5.Future<void>.value(), returnValue: _i5.Future<void>.value(),
returnValueForMissingStub: _i5.Future<void>.value(), returnValueForMissingStub: _i5.Future<void>.value(),
@ -642,7 +643,7 @@ class MockCachedElectrumXClient extends _i1.Mock
/// ///
/// See the documentation for Mockito's code generation for more information. /// See the documentation for Mockito's code generation for more information.
class MockTransactionNotificationTracker extends _i1.Mock class MockTransactionNotificationTracker extends _i1.Mock
implements _i8.TransactionNotificationTracker { implements _i7.TransactionNotificationTracker {
MockTransactionNotificationTracker() { MockTransactionNotificationTracker() {
_i1.throwOnMissingStub(this); _i1.throwOnMissingStub(this);
} }

View file

@ -10,8 +10,7 @@ import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6; import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
import 'package:stackwallet/services/transaction_notification_tracker.dart' import 'package:stackwallet/services/transaction_notification_tracker.dart'
as _i8; as _i7;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i2; as _i2;
@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getAnonymitySet({ _i5.Future<Map<String, dynamic>> getAnonymitySet({
required String? groupId, required String? groupId,
String? blockhash = r'', String? blockhash = r'',
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{ {
#groupId: groupId, #groupId: groupId,
#blockhash: blockhash, #blockhash: blockhash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
}, },
), ),
returnValue: returnValue:
@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getSparkAnonymitySet({ _i5.Future<Map<String, dynamic>> getSparkAnonymitySet({
required String? groupId, required String? groupId,
String? blockhash = r'', String? blockhash = r'',
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
required bool? useOnlyCacheIfNotEmpty, required bool? useOnlyCacheIfNotEmpty,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{ {
#groupId: groupId, #groupId: groupId,
#blockhash: blockhash, #blockhash: blockhash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
#useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty,
}, },
), ),
@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock
@override @override
_i5.Future<Map<String, dynamic>> getTransaction({ _i5.Future<Map<String, dynamic>> getTransaction({
required String? txHash, required String? txHash,
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
bool? verbose = true, bool? verbose = true,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock
[], [],
{ {
#txHash: txHash, #txHash: txHash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
#verbose: verbose, #verbose: verbose,
}, },
), ),
@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock
) as _i5.Future<Map<String, dynamic>>); ) as _i5.Future<Map<String, dynamic>>);
@override @override
_i5.Future<List<String>> getUsedCoinSerials({ _i5.Future<List<String>> getUsedCoinSerials({
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
int? startNumber = 0, int? startNumber = 0,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock
#getUsedCoinSerials, #getUsedCoinSerials,
[], [],
{ {
#coin: coin, #cryptoCurrency: cryptoCurrency,
#startNumber: startNumber, #startNumber: startNumber,
}, },
), ),
returnValue: _i5.Future<List<String>>.value(<String>[]), returnValue: _i5.Future<List<String>>.value(<String>[]),
) as _i5.Future<List<String>>); ) as _i5.Future<List<String>>);
@override @override
_i5.Future<Set<String>> getSparkUsedCoinsTags({required _i7.Coin? coin}) => _i5.Future<Set<String>> getSparkUsedCoinsTags(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#getSparkUsedCoinsTags, #getSparkUsedCoinsTags,
[], [],
{#coin: coin}, {#cryptoCurrency: cryptoCurrency},
), ),
returnValue: _i5.Future<Set<String>>.value(<String>{}), returnValue: _i5.Future<Set<String>>.value(<String>{}),
) as _i5.Future<Set<String>>); ) as _i5.Future<Set<String>>);
@override @override
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) => _i5.Future<void> clearSharedTransactionCache(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#clearSharedTransactionCache, #clearSharedTransactionCache,
[], [],
{#coin: coin}, {#cryptoCurrency: cryptoCurrency},
), ),
returnValue: _i5.Future<void>.value(), returnValue: _i5.Future<void>.value(),
returnValueForMissingStub: _i5.Future<void>.value(), returnValueForMissingStub: _i5.Future<void>.value(),
@ -642,7 +643,7 @@ class MockCachedElectrumXClient extends _i1.Mock
/// ///
/// See the documentation for Mockito's code generation for more information. /// See the documentation for Mockito's code generation for more information.
class MockTransactionNotificationTracker extends _i1.Mock class MockTransactionNotificationTracker extends _i1.Mock
implements _i8.TransactionNotificationTracker { implements _i7.TransactionNotificationTracker {
MockTransactionNotificationTracker() { MockTransactionNotificationTracker() {
_i1.throwOnMissingStub(this); _i1.throwOnMissingStub(this);
} }

View file

@ -10,8 +10,7 @@ import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6; import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
import 'package:stackwallet/services/transaction_notification_tracker.dart' import 'package:stackwallet/services/transaction_notification_tracker.dart'
as _i8; as _i7;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i2; as _i2;
@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getAnonymitySet({ _i5.Future<Map<String, dynamic>> getAnonymitySet({
required String? groupId, required String? groupId,
String? blockhash = r'', String? blockhash = r'',
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{ {
#groupId: groupId, #groupId: groupId,
#blockhash: blockhash, #blockhash: blockhash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
}, },
), ),
returnValue: returnValue:
@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getSparkAnonymitySet({ _i5.Future<Map<String, dynamic>> getSparkAnonymitySet({
required String? groupId, required String? groupId,
String? blockhash = r'', String? blockhash = r'',
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
required bool? useOnlyCacheIfNotEmpty, required bool? useOnlyCacheIfNotEmpty,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{ {
#groupId: groupId, #groupId: groupId,
#blockhash: blockhash, #blockhash: blockhash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
#useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty,
}, },
), ),
@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock
@override @override
_i5.Future<Map<String, dynamic>> getTransaction({ _i5.Future<Map<String, dynamic>> getTransaction({
required String? txHash, required String? txHash,
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
bool? verbose = true, bool? verbose = true,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock
[], [],
{ {
#txHash: txHash, #txHash: txHash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
#verbose: verbose, #verbose: verbose,
}, },
), ),
@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock
) as _i5.Future<Map<String, dynamic>>); ) as _i5.Future<Map<String, dynamic>>);
@override @override
_i5.Future<List<String>> getUsedCoinSerials({ _i5.Future<List<String>> getUsedCoinSerials({
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
int? startNumber = 0, int? startNumber = 0,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock
#getUsedCoinSerials, #getUsedCoinSerials,
[], [],
{ {
#coin: coin, #cryptoCurrency: cryptoCurrency,
#startNumber: startNumber, #startNumber: startNumber,
}, },
), ),
returnValue: _i5.Future<List<String>>.value(<String>[]), returnValue: _i5.Future<List<String>>.value(<String>[]),
) as _i5.Future<List<String>>); ) as _i5.Future<List<String>>);
@override @override
_i5.Future<Set<String>> getSparkUsedCoinsTags({required _i7.Coin? coin}) => _i5.Future<Set<String>> getSparkUsedCoinsTags(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#getSparkUsedCoinsTags, #getSparkUsedCoinsTags,
[], [],
{#coin: coin}, {#cryptoCurrency: cryptoCurrency},
), ),
returnValue: _i5.Future<Set<String>>.value(<String>{}), returnValue: _i5.Future<Set<String>>.value(<String>{}),
) as _i5.Future<Set<String>>); ) as _i5.Future<Set<String>>);
@override @override
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) => _i5.Future<void> clearSharedTransactionCache(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#clearSharedTransactionCache, #clearSharedTransactionCache,
[], [],
{#coin: coin}, {#cryptoCurrency: cryptoCurrency},
), ),
returnValue: _i5.Future<void>.value(), returnValue: _i5.Future<void>.value(),
returnValueForMissingStub: _i5.Future<void>.value(), returnValueForMissingStub: _i5.Future<void>.value(),
@ -642,7 +643,7 @@ class MockCachedElectrumXClient extends _i1.Mock
/// ///
/// See the documentation for Mockito's code generation for more information. /// See the documentation for Mockito's code generation for more information.
class MockTransactionNotificationTracker extends _i1.Mock class MockTransactionNotificationTracker extends _i1.Mock
implements _i8.TransactionNotificationTracker { implements _i7.TransactionNotificationTracker {
MockTransactionNotificationTracker() { MockTransactionNotificationTracker() {
_i1.throwOnMissingStub(this); _i1.throwOnMissingStub(this);
} }

View file

@ -10,8 +10,7 @@ import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6; import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4; import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
import 'package:stackwallet/services/transaction_notification_tracker.dart' import 'package:stackwallet/services/transaction_notification_tracker.dart'
as _i8; as _i7;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i2; as _i2;
@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getAnonymitySet({ _i5.Future<Map<String, dynamic>> getAnonymitySet({
required String? groupId, required String? groupId,
String? blockhash = r'', String? blockhash = r'',
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{ {
#groupId: groupId, #groupId: groupId,
#blockhash: blockhash, #blockhash: blockhash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
}, },
), ),
returnValue: returnValue:
@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getSparkAnonymitySet({ _i5.Future<Map<String, dynamic>> getSparkAnonymitySet({
required String? groupId, required String? groupId,
String? blockhash = r'', String? blockhash = r'',
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
required bool? useOnlyCacheIfNotEmpty, required bool? useOnlyCacheIfNotEmpty,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{ {
#groupId: groupId, #groupId: groupId,
#blockhash: blockhash, #blockhash: blockhash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
#useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty,
}, },
), ),
@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock
@override @override
_i5.Future<Map<String, dynamic>> getTransaction({ _i5.Future<Map<String, dynamic>> getTransaction({
required String? txHash, required String? txHash,
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
bool? verbose = true, bool? verbose = true,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock
[], [],
{ {
#txHash: txHash, #txHash: txHash,
#coin: coin, #cryptoCurrency: cryptoCurrency,
#verbose: verbose, #verbose: verbose,
}, },
), ),
@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock
) as _i5.Future<Map<String, dynamic>>); ) as _i5.Future<Map<String, dynamic>>);
@override @override
_i5.Future<List<String>> getUsedCoinSerials({ _i5.Future<List<String>> getUsedCoinSerials({
required _i7.Coin? coin, required _i2.CryptoCurrency? cryptoCurrency,
int? startNumber = 0, int? startNumber = 0,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock
#getUsedCoinSerials, #getUsedCoinSerials,
[], [],
{ {
#coin: coin, #cryptoCurrency: cryptoCurrency,
#startNumber: startNumber, #startNumber: startNumber,
}, },
), ),
returnValue: _i5.Future<List<String>>.value(<String>[]), returnValue: _i5.Future<List<String>>.value(<String>[]),
) as _i5.Future<List<String>>); ) as _i5.Future<List<String>>);
@override @override
_i5.Future<Set<String>> getSparkUsedCoinsTags({required _i7.Coin? coin}) => _i5.Future<Set<String>> getSparkUsedCoinsTags(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#getSparkUsedCoinsTags, #getSparkUsedCoinsTags,
[], [],
{#coin: coin}, {#cryptoCurrency: cryptoCurrency},
), ),
returnValue: _i5.Future<Set<String>>.value(<String>{}), returnValue: _i5.Future<Set<String>>.value(<String>{}),
) as _i5.Future<Set<String>>); ) as _i5.Future<Set<String>>);
@override @override
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) => _i5.Future<void> clearSharedTransactionCache(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#clearSharedTransactionCache, #clearSharedTransactionCache,
[], [],
{#coin: coin}, {#cryptoCurrency: cryptoCurrency},
), ),
returnValue: _i5.Future<void>.value(), returnValue: _i5.Future<void>.value(),
returnValueForMissingStub: _i5.Future<void>.value(), returnValueForMissingStub: _i5.Future<void>.value(),
@ -642,7 +643,7 @@ class MockCachedElectrumXClient extends _i1.Mock
/// ///
/// See the documentation for Mockito's code generation for more information. /// See the documentation for Mockito's code generation for more information.
class MockTransactionNotificationTracker extends _i1.Mock class MockTransactionNotificationTracker extends _i1.Mock
implements _i8.TransactionNotificationTracker { implements _i7.TransactionNotificationTracker {
MockTransactionNotificationTracker() { MockTransactionNotificationTracker() {
_i1.throwOnMissingStub(this); _i1.throwOnMissingStub(this);
} }

View file

@ -5,20 +5,19 @@
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i10; import 'dart:async' as _i10;
import 'dart:typed_data' as _i15; import 'dart:typed_data' as _i15;
import 'dart:ui' as _i20; import 'dart:ui' as _i19;
import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/isar/main_db.dart' as _i3; 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 _i14;
import 'package:stackwallet/models/node_model.dart' as _i22; import 'package:stackwallet/models/node_model.dart' as _i21;
import 'package:stackwallet/networking/http.dart' as _i6; import 'package:stackwallet/networking/http.dart' as _i6;
import 'package:stackwallet/services/locale_service.dart' as _i21; import 'package:stackwallet/services/locale_service.dart' as _i20;
import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/wallets.dart' as _i9; import 'package:stackwallet/services/wallets.dart' as _i9;
import 'package:stackwallet/themes/theme_service.dart' as _i13; import 'package:stackwallet/themes/theme_service.dart' as _i13;
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i18; import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i18;
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i17; import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i17;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i19;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i16; import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i16;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i8; as _i8;
@ -761,7 +760,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: _i10.Future<void>.value(), returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
_i18.AmountUnit amountUnit(_i19.Coin? coin) => (super.noSuchMethod( _i18.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#amountUnit, #amountUnit,
[coin], [coin],
@ -770,7 +769,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
) as _i18.AmountUnit); ) as _i18.AmountUnit);
@override @override
void updateAmountUnit({ void updateAmountUnit({
required _i19.Coin? coin, required _i4.CryptoCurrency? coin,
required _i18.AmountUnit? amountUnit, required _i18.AmountUnit? amountUnit,
}) => }) =>
super.noSuchMethod( super.noSuchMethod(
@ -785,7 +784,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
int maxDecimals(_i19.Coin? coin) => (super.noSuchMethod( int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#maxDecimals, #maxDecimals,
[coin], [coin],
@ -794,7 +793,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
) as int); ) as int);
@override @override
void updateMaxDecimals({ void updateMaxDecimals({
required _i19.Coin? coin, required _i4.CryptoCurrency? coin,
required int? maxDecimals, required int? maxDecimals,
}) => }) =>
super.noSuchMethod( super.noSuchMethod(
@ -809,7 +808,8 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
_i7.FusionInfo getFusionServerInfo(_i19.Coin? coin) => (super.noSuchMethod( _i7.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getFusionServerInfo, #getFusionServerInfo,
[coin], [coin],
@ -824,7 +824,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
) as _i7.FusionInfo); ) as _i7.FusionInfo);
@override @override
void setFusionServerInfo( void setFusionServerInfo(
_i19.Coin? coin, _i4.CryptoCurrency? coin,
_i7.FusionInfo? fusionServerInfo, _i7.FusionInfo? fusionServerInfo,
) => ) =>
super.noSuchMethod( super.noSuchMethod(
@ -838,7 +838,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( void addListener(_i19.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#addListener, #addListener,
[listener], [listener],
@ -846,7 +846,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#removeListener, #removeListener,
[listener], [listener],
@ -874,7 +874,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
/// A class which mocks [LocaleService]. /// A class which mocks [LocaleService].
/// ///
/// See the documentation for Mockito's code generation for more information. /// See the documentation for Mockito's code generation for more information.
class MockLocaleService extends _i1.Mock implements _i21.LocaleService { class MockLocaleService extends _i1.Mock implements _i20.LocaleService {
MockLocaleService() { MockLocaleService() {
_i1.throwOnMissingStub(this); _i1.throwOnMissingStub(this);
} }
@ -900,7 +900,7 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService {
returnValueForMissingStub: _i10.Future<void>.value(), returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( void addListener(_i19.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#addListener, #addListener,
[listener], [listener],
@ -908,7 +908,7 @@ class MockLocaleService extends _i1.Mock implements _i21.LocaleService {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#removeListener, #removeListener,
[listener], [listener],
@ -946,15 +946,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
), ),
) as _i8.SecureStorageInterface); ) as _i8.SecureStorageInterface);
@override @override
List<_i22.NodeModel> get primaryNodes => (super.noSuchMethod( List<_i21.NodeModel> get primaryNodes => (super.noSuchMethod(
Invocation.getter(#primaryNodes), Invocation.getter(#primaryNodes),
returnValue: <_i22.NodeModel>[], returnValue: <_i21.NodeModel>[],
) as List<_i22.NodeModel>); ) as List<_i21.NodeModel>);
@override @override
List<_i22.NodeModel> get nodes => (super.noSuchMethod( List<_i21.NodeModel> get nodes => (super.noSuchMethod(
Invocation.getter(#nodes), Invocation.getter(#nodes),
returnValue: <_i22.NodeModel>[], returnValue: <_i21.NodeModel>[],
) as List<_i22.NodeModel>); ) as List<_i21.NodeModel>);
@override @override
bool get hasListeners => (super.noSuchMethod( bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners), Invocation.getter(#hasListeners),
@ -971,8 +971,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
_i10.Future<void> setPrimaryNodeFor({ _i10.Future<void> setPrimaryNodeFor({
required _i19.Coin? coin, required _i4.CryptoCurrency? coin,
required _i22.NodeModel? node, required _i21.NodeModel? node,
bool? shouldNotifyListeners = false, bool? shouldNotifyListeners = false,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -989,40 +989,42 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: _i10.Future<void>.value(), returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
_i22.NodeModel? getPrimaryNodeFor({required _i19.Coin? coin}) => _i21.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor, #getPrimaryNodeFor,
[], [],
{#coin: coin}, {#currency: currency},
)) as _i22.NodeModel?); )) as _i21.NodeModel?);
@override @override
List<_i22.NodeModel> getNodesFor(_i19.Coin? coin) => (super.noSuchMethod( List<_i21.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getNodesFor, #getNodesFor,
[coin], [coin],
), ),
returnValue: <_i22.NodeModel>[], returnValue: <_i21.NodeModel>[],
) as List<_i22.NodeModel>); ) as List<_i21.NodeModel>);
@override @override
_i22.NodeModel? getNodeById({required String? id}) => _i21.NodeModel? getNodeById({required String? id}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getNodeById, #getNodeById,
[], [],
{#id: id}, {#id: id},
)) as _i22.NodeModel?); )) as _i21.NodeModel?);
@override @override
List<_i22.NodeModel> failoverNodesFor({required _i19.Coin? coin}) => List<_i21.NodeModel> failoverNodesFor(
{required _i4.CryptoCurrency? currency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#failoverNodesFor, #failoverNodesFor,
[], [],
{#coin: coin}, {#currency: currency},
), ),
returnValue: <_i22.NodeModel>[], returnValue: <_i21.NodeModel>[],
) as List<_i22.NodeModel>); ) as List<_i21.NodeModel>);
@override @override
_i10.Future<void> add( _i10.Future<void> add(
_i22.NodeModel? node, _i21.NodeModel? node,
String? password, String? password,
bool? shouldNotifyListeners, bool? shouldNotifyListeners,
) => ) =>
@ -1074,7 +1076,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
_i10.Future<void> edit( _i10.Future<void> edit(
_i22.NodeModel? editedNode, _i21.NodeModel? editedNode,
String? password, String? password,
bool? shouldNotifyListeners, bool? shouldNotifyListeners,
) => ) =>
@ -1100,7 +1102,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: _i10.Future<void>.value(), returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( void addListener(_i19.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#addListener, #addListener,
[listener], [listener],
@ -1108,7 +1110,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#removeListener, #removeListener,
[listener], [listener],

View file

@ -9,9 +9,10 @@ import 'dart:ui' as _i7;
import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/models/node_model.dart' as _i4; import 'package:stackwallet/models/node_model.dart' as _i4;
import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/node_service.dart' as _i3;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i2; as _i2;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i6;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_redundant_argument_values
@ -77,7 +78,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i5.Future<void> setPrimaryNodeFor({ _i5.Future<void> setPrimaryNodeFor({
required _i6.Coin? coin, required _i6.CryptoCurrency? coin,
required _i4.NodeModel? node, required _i4.NodeModel? node,
bool? shouldNotifyListeners = false, bool? shouldNotifyListeners = false,
}) => }) =>
@ -95,14 +96,15 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
returnValueForMissingStub: _i5.Future<void>.value(), returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>); ) as _i5.Future<void>);
@override @override
_i4.NodeModel? getPrimaryNodeFor({required _i6.Coin? coin}) => _i4.NodeModel? getPrimaryNodeFor({required _i6.CryptoCurrency? currency}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor, #getPrimaryNodeFor,
[], [],
{#coin: coin}, {#currency: currency},
)) as _i4.NodeModel?); )) as _i4.NodeModel?);
@override @override
List<_i4.NodeModel> getNodesFor(_i6.Coin? coin) => (super.noSuchMethod( List<_i4.NodeModel> getNodesFor(_i6.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getNodesFor, #getNodesFor,
[coin], [coin],
@ -117,12 +119,13 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
{#id: id}, {#id: id},
)) as _i4.NodeModel?); )) as _i4.NodeModel?);
@override @override
List<_i4.NodeModel> failoverNodesFor({required _i6.Coin? coin}) => List<_i4.NodeModel> failoverNodesFor(
{required _i6.CryptoCurrency? currency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#failoverNodesFor, #failoverNodesFor,
[], [],
{#coin: coin}, {#currency: currency},
), ),
returnValue: <_i4.NodeModel>[], returnValue: <_i4.NodeModel>[],
) as List<_i4.NodeModel>); ) as List<_i4.NodeModel>);

View file

@ -5,19 +5,18 @@
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i10; import 'dart:async' as _i10;
import 'dart:io' as _i8; import 'dart:io' as _i8;
import 'dart:ui' as _i17; import 'dart:ui' as _i16;
import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/isar/main_db.dart' as _i3; import 'package:stackwallet/db/isar/main_db.dart' as _i3;
import 'package:stackwallet/models/node_model.dart' as _i18; import 'package:stackwallet/models/node_model.dart' as _i17;
import 'package:stackwallet/services/event_bus/events/global/tor_connection_status_changed_event.dart' import 'package:stackwallet/services/event_bus/events/global/tor_connection_status_changed_event.dart'
as _i20; as _i19;
import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/tor_service.dart' as _i19; import 'package:stackwallet/services/tor_service.dart' as _i18;
import 'package:stackwallet/services/wallets.dart' as _i9; import 'package:stackwallet/services/wallets.dart' as _i9;
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i15; 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/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/enums/sync_type_enum.dart' as _i13;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i7; as _i7;
@ -28,7 +27,7 @@ import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i11;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart' import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart'
as _i6; as _i6;
import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i21; import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i20;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_redundant_argument_values
@ -647,7 +646,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: _i10.Future<void>.value(), returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
_i15.AmountUnit amountUnit(_i16.Coin? coin) => (super.noSuchMethod( _i15.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#amountUnit, #amountUnit,
[coin], [coin],
@ -656,7 +655,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
) as _i15.AmountUnit); ) as _i15.AmountUnit);
@override @override
void updateAmountUnit({ void updateAmountUnit({
required _i16.Coin? coin, required _i4.CryptoCurrency? coin,
required _i15.AmountUnit? amountUnit, required _i15.AmountUnit? amountUnit,
}) => }) =>
super.noSuchMethod( super.noSuchMethod(
@ -671,7 +670,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
int maxDecimals(_i16.Coin? coin) => (super.noSuchMethod( int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#maxDecimals, #maxDecimals,
[coin], [coin],
@ -680,7 +679,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
) as int); ) as int);
@override @override
void updateMaxDecimals({ void updateMaxDecimals({
required _i16.Coin? coin, required _i4.CryptoCurrency? coin,
required int? maxDecimals, required int? maxDecimals,
}) => }) =>
super.noSuchMethod( super.noSuchMethod(
@ -695,7 +694,8 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
_i6.FusionInfo getFusionServerInfo(_i16.Coin? coin) => (super.noSuchMethod( _i6.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getFusionServerInfo, #getFusionServerInfo,
[coin], [coin],
@ -710,7 +710,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
) as _i6.FusionInfo); ) as _i6.FusionInfo);
@override @override
void setFusionServerInfo( void setFusionServerInfo(
_i16.Coin? coin, _i4.CryptoCurrency? coin,
_i6.FusionInfo? fusionServerInfo, _i6.FusionInfo? fusionServerInfo,
) => ) =>
super.noSuchMethod( super.noSuchMethod(
@ -724,7 +724,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#addListener, #addListener,
[listener], [listener],
@ -732,7 +732,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#removeListener, #removeListener,
[listener], [listener],
@ -774,15 +774,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
), ),
) as _i7.SecureStorageInterface); ) as _i7.SecureStorageInterface);
@override @override
List<_i18.NodeModel> get primaryNodes => (super.noSuchMethod( List<_i17.NodeModel> get primaryNodes => (super.noSuchMethod(
Invocation.getter(#primaryNodes), Invocation.getter(#primaryNodes),
returnValue: <_i18.NodeModel>[], returnValue: <_i17.NodeModel>[],
) as List<_i18.NodeModel>); ) as List<_i17.NodeModel>);
@override @override
List<_i18.NodeModel> get nodes => (super.noSuchMethod( List<_i17.NodeModel> get nodes => (super.noSuchMethod(
Invocation.getter(#nodes), Invocation.getter(#nodes),
returnValue: <_i18.NodeModel>[], returnValue: <_i17.NodeModel>[],
) as List<_i18.NodeModel>); ) as List<_i17.NodeModel>);
@override @override
bool get hasListeners => (super.noSuchMethod( bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners), Invocation.getter(#hasListeners),
@ -799,8 +799,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
_i10.Future<void> setPrimaryNodeFor({ _i10.Future<void> setPrimaryNodeFor({
required _i16.Coin? coin, required _i4.CryptoCurrency? coin,
required _i18.NodeModel? node, required _i17.NodeModel? node,
bool? shouldNotifyListeners = false, bool? shouldNotifyListeners = false,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -817,40 +817,42 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: _i10.Future<void>.value(), returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
_i18.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) => _i17.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor, #getPrimaryNodeFor,
[], [],
{#coin: coin}, {#currency: currency},
)) as _i18.NodeModel?); )) as _i17.NodeModel?);
@override @override
List<_i18.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod( List<_i17.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getNodesFor, #getNodesFor,
[coin], [coin],
), ),
returnValue: <_i18.NodeModel>[], returnValue: <_i17.NodeModel>[],
) as List<_i18.NodeModel>); ) as List<_i17.NodeModel>);
@override @override
_i18.NodeModel? getNodeById({required String? id}) => _i17.NodeModel? getNodeById({required String? id}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getNodeById, #getNodeById,
[], [],
{#id: id}, {#id: id},
)) as _i18.NodeModel?); )) as _i17.NodeModel?);
@override @override
List<_i18.NodeModel> failoverNodesFor({required _i16.Coin? coin}) => List<_i17.NodeModel> failoverNodesFor(
{required _i4.CryptoCurrency? currency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#failoverNodesFor, #failoverNodesFor,
[], [],
{#coin: coin}, {#currency: currency},
), ),
returnValue: <_i18.NodeModel>[], returnValue: <_i17.NodeModel>[],
) as List<_i18.NodeModel>); ) as List<_i17.NodeModel>);
@override @override
_i10.Future<void> add( _i10.Future<void> add(
_i18.NodeModel? node, _i17.NodeModel? node,
String? password, String? password,
bool? shouldNotifyListeners, bool? shouldNotifyListeners,
) => ) =>
@ -902,7 +904,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
_i10.Future<void> edit( _i10.Future<void> edit(
_i18.NodeModel? editedNode, _i17.NodeModel? editedNode,
String? password, String? password,
bool? shouldNotifyListeners, bool? shouldNotifyListeners,
) => ) =>
@ -928,7 +930,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: _i10.Future<void>.value(), returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>); ) as _i10.Future<void>);
@override @override
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#addListener, #addListener,
[listener], [listener],
@ -936,7 +938,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#removeListener, #removeListener,
[listener], [listener],
@ -964,16 +966,16 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
/// A class which mocks [TorService]. /// A class which mocks [TorService].
/// ///
/// See the documentation for Mockito's code generation for more information. /// See the documentation for Mockito's code generation for more information.
class MockTorService extends _i1.Mock implements _i19.TorService { class MockTorService extends _i1.Mock implements _i18.TorService {
MockTorService() { MockTorService() {
_i1.throwOnMissingStub(this); _i1.throwOnMissingStub(this);
} }
@override @override
_i20.TorConnectionStatus get status => (super.noSuchMethod( _i19.TorConnectionStatus get status => (super.noSuchMethod(
Invocation.getter(#status), Invocation.getter(#status),
returnValue: _i20.TorConnectionStatus.disconnected, returnValue: _i19.TorConnectionStatus.disconnected,
) as _i20.TorConnectionStatus); ) as _i19.TorConnectionStatus);
@override @override
({_i8.InternetAddress host, int port}) getProxyInfo() => (super.noSuchMethod( ({_i8.InternetAddress host, int port}) getProxyInfo() => (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -994,7 +996,7 @@ class MockTorService extends _i1.Mock implements _i19.TorService {
@override @override
void init({ void init({
required String? torDataDirPath, required String? torDataDirPath,
_i21.Tor? mockableOverride, _i20.Tor? mockableOverride,
}) => }) =>
super.noSuchMethod( super.noSuchMethod(
Invocation.method( Invocation.method(

View file

@ -4,28 +4,27 @@
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i11; import 'dart:async' as _i11;
import 'dart:typed_data' as _i25; import 'dart:typed_data' as _i24;
import 'dart:ui' as _i16; import 'dart:ui' as _i16;
import 'package:decimal/decimal.dart' as _i22; import 'package:decimal/decimal.dart' as _i21;
import 'package:isar/isar.dart' as _i9; import 'package:isar/isar.dart' as _i9;
import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/isar/main_db.dart' as _i3; import 'package:stackwallet/db/isar/main_db.dart' as _i3;
import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i27; import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i26;
import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart' import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart'
as _i29; as _i28;
import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i26; import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i25;
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i28; import 'package:stackwallet/models/isar/models/isar_models.dart' as _i27;
import 'package:stackwallet/models/isar/stack_theme.dart' as _i24; import 'package:stackwallet/models/isar/stack_theme.dart' as _i23;
import 'package:stackwallet/networking/http.dart' as _i8; import 'package:stackwallet/networking/http.dart' as _i8;
import 'package:stackwallet/services/locale_service.dart' as _i15; import 'package:stackwallet/services/locale_service.dart' as _i15;
import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/price_service.dart' as _i21; import 'package:stackwallet/services/price_service.dart' as _i20;
import 'package:stackwallet/services/wallets.dart' as _i10; import 'package:stackwallet/services/wallets.dart' as _i10;
import 'package:stackwallet/themes/theme_service.dart' as _i23; import 'package:stackwallet/themes/theme_service.dart' as _i22;
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i19; import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i19;
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i18; import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i18;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i20;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i17; import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i17;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i13; as _i13;
@ -747,7 +746,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
returnValueForMissingStub: _i11.Future<void>.value(), returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>); ) as _i11.Future<void>);
@override @override
_i19.AmountUnit amountUnit(_i20.Coin? coin) => (super.noSuchMethod( _i19.AmountUnit amountUnit(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#amountUnit, #amountUnit,
[coin], [coin],
@ -756,7 +755,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
) as _i19.AmountUnit); ) as _i19.AmountUnit);
@override @override
void updateAmountUnit({ void updateAmountUnit({
required _i20.Coin? coin, required _i4.CryptoCurrency? coin,
required _i19.AmountUnit? amountUnit, required _i19.AmountUnit? amountUnit,
}) => }) =>
super.noSuchMethod( super.noSuchMethod(
@ -771,7 +770,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
int maxDecimals(_i20.Coin? coin) => (super.noSuchMethod( int maxDecimals(_i4.CryptoCurrency? coin) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#maxDecimals, #maxDecimals,
[coin], [coin],
@ -780,7 +779,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
) as int); ) as int);
@override @override
void updateMaxDecimals({ void updateMaxDecimals({
required _i20.Coin? coin, required _i4.CryptoCurrency? coin,
required int? maxDecimals, required int? maxDecimals,
}) => }) =>
super.noSuchMethod( super.noSuchMethod(
@ -795,7 +794,8 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
_i6.FusionInfo getFusionServerInfo(_i20.Coin? coin) => (super.noSuchMethod( _i6.FusionInfo getFusionServerInfo(_i4.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getFusionServerInfo, #getFusionServerInfo,
[coin], [coin],
@ -810,7 +810,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
) as _i6.FusionInfo); ) as _i6.FusionInfo);
@override @override
void setFusionServerInfo( void setFusionServerInfo(
_i20.Coin? coin, _i4.CryptoCurrency? coin,
_i6.FusionInfo? fusionServerInfo, _i6.FusionInfo? fusionServerInfo,
) => ) =>
super.noSuchMethod( super.noSuchMethod(
@ -860,7 +860,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
/// A class which mocks [PriceService]. /// A class which mocks [PriceService].
/// ///
/// See the documentation for Mockito's code generation for more information. /// See the documentation for Mockito's code generation for more information.
class MockPriceService extends _i1.Mock implements _i21.PriceService { class MockPriceService extends _i1.Mock implements _i20.PriceService {
MockPriceService() { MockPriceService() {
_i1.throwOnMissingStub(this); _i1.throwOnMissingStub(this);
} }
@ -898,35 +898,35 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService {
returnValue: false, returnValue: false,
) as bool); ) as bool);
@override @override
_i7.Tuple2<_i22.Decimal, double> getPrice(_i20.Coin? coin) => _i7.Tuple2<_i21.Decimal, double> getPrice(_i4.CryptoCurrency? coin) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#getPrice, #getPrice,
[coin], [coin],
), ),
returnValue: _FakeTuple2_5<_i22.Decimal, double>( returnValue: _FakeTuple2_5<_i21.Decimal, double>(
this, this,
Invocation.method( Invocation.method(
#getPrice, #getPrice,
[coin], [coin],
), ),
), ),
) as _i7.Tuple2<_i22.Decimal, double>); ) as _i7.Tuple2<_i21.Decimal, double>);
@override @override
_i7.Tuple2<_i22.Decimal, double> getTokenPrice(String? contractAddress) => _i7.Tuple2<_i21.Decimal, double> getTokenPrice(String? contractAddress) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#getTokenPrice, #getTokenPrice,
[contractAddress], [contractAddress],
), ),
returnValue: _FakeTuple2_5<_i22.Decimal, double>( returnValue: _FakeTuple2_5<_i21.Decimal, double>(
this, this,
Invocation.method( Invocation.method(
#getTokenPrice, #getTokenPrice,
[contractAddress], [contractAddress],
), ),
), ),
) as _i7.Tuple2<_i22.Decimal, double>); ) as _i7.Tuple2<_i21.Decimal, double>);
@override @override
_i11.Future<void> updatePrice() => (super.noSuchMethod( _i11.Future<void> updatePrice() => (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -989,7 +989,7 @@ class MockPriceService extends _i1.Mock implements _i21.PriceService {
/// A class which mocks [ThemeService]. /// A class which mocks [ThemeService].
/// ///
/// See the documentation for Mockito's code generation for more information. /// See the documentation for Mockito's code generation for more information.
class MockThemeService extends _i1.Mock implements _i23.ThemeService { class MockThemeService extends _i1.Mock implements _i22.ThemeService {
MockThemeService() { MockThemeService() {
_i1.throwOnMissingStub(this); _i1.throwOnMissingStub(this);
} }
@ -1019,10 +1019,10 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService {
), ),
) as _i3.MainDB); ) as _i3.MainDB);
@override @override
List<_i24.StackTheme> get installedThemes => (super.noSuchMethod( List<_i23.StackTheme> get installedThemes => (super.noSuchMethod(
Invocation.getter(#installedThemes), Invocation.getter(#installedThemes),
returnValue: <_i24.StackTheme>[], returnValue: <_i23.StackTheme>[],
) as List<_i24.StackTheme>); ) as List<_i23.StackTheme>);
@override @override
void init(_i3.MainDB? db) => super.noSuchMethod( void init(_i3.MainDB? db) => super.noSuchMethod(
Invocation.method( Invocation.method(
@ -1032,7 +1032,7 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
_i11.Future<void> install({required _i25.Uint8List? themeArchiveData}) => _i11.Future<void> install({required _i24.Uint8List? themeArchiveData}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#install, #install,
@ -1072,33 +1072,33 @@ class MockThemeService extends _i1.Mock implements _i23.ThemeService {
returnValue: _i11.Future<bool>.value(false), returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>); ) as _i11.Future<bool>);
@override @override
_i11.Future<List<_i23.StackThemeMetaData>> fetchThemes() => _i11.Future<List<_i22.StackThemeMetaData>> fetchThemes() =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#fetchThemes, #fetchThemes,
[], [],
), ),
returnValue: _i11.Future<List<_i23.StackThemeMetaData>>.value( returnValue: _i11.Future<List<_i22.StackThemeMetaData>>.value(
<_i23.StackThemeMetaData>[]), <_i22.StackThemeMetaData>[]),
) as _i11.Future<List<_i23.StackThemeMetaData>>); ) as _i11.Future<List<_i22.StackThemeMetaData>>);
@override @override
_i11.Future<_i25.Uint8List> fetchTheme( _i11.Future<_i24.Uint8List> fetchTheme(
{required _i23.StackThemeMetaData? themeMetaData}) => {required _i22.StackThemeMetaData? themeMetaData}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#fetchTheme, #fetchTheme,
[], [],
{#themeMetaData: themeMetaData}, {#themeMetaData: themeMetaData},
), ),
returnValue: _i11.Future<_i25.Uint8List>.value(_i25.Uint8List(0)), returnValue: _i11.Future<_i24.Uint8List>.value(_i24.Uint8List(0)),
) as _i11.Future<_i25.Uint8List>); ) as _i11.Future<_i24.Uint8List>);
@override @override
_i24.StackTheme? getTheme({required String? themeId}) => _i23.StackTheme? getTheme({required String? themeId}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getTheme, #getTheme,
[], [],
{#themeId: themeId}, {#themeId: themeId},
)) as _i24.StackTheme?); )) as _i23.StackTheme?);
} }
/// A class which mocks [MainDB]. /// A class which mocks [MainDB].
@ -1147,13 +1147,13 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValueForMissingStub: _i11.Future<void>.value(), returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>); ) as _i11.Future<void>);
@override @override
List<_i26.ContactEntry> getContactEntries() => (super.noSuchMethod( List<_i25.ContactEntry> getContactEntries() => (super.noSuchMethod(
Invocation.method( Invocation.method(
#getContactEntries, #getContactEntries,
[], [],
), ),
returnValue: <_i26.ContactEntry>[], returnValue: <_i25.ContactEntry>[],
) as List<_i26.ContactEntry>); ) as List<_i25.ContactEntry>);
@override @override
_i11.Future<bool> deleteContactEntry({required String? id}) => _i11.Future<bool> deleteContactEntry({required String? id}) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -1175,15 +1175,15 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValue: _i11.Future<bool>.value(false), returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>); ) as _i11.Future<bool>);
@override @override
_i26.ContactEntry? getContactEntry({required String? id}) => _i25.ContactEntry? getContactEntry({required String? id}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getContactEntry, #getContactEntry,
[], [],
{#id: id}, {#id: id},
)) as _i26.ContactEntry?); )) as _i25.ContactEntry?);
@override @override
_i11.Future<bool> putContactEntry( _i11.Future<bool> putContactEntry(
{required _i26.ContactEntry? contactEntry}) => {required _i25.ContactEntry? contactEntry}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putContactEntry, #putContactEntry,
@ -1193,16 +1193,16 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValue: _i11.Future<bool>.value(false), returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>); ) as _i11.Future<bool>);
@override @override
_i27.TransactionBlockExplorer? getTransactionBlockExplorer( _i26.TransactionBlockExplorer? getTransactionBlockExplorer(
{required _i20.Coin? coin}) => {required _i4.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getTransactionBlockExplorer, #getTransactionBlockExplorer,
[], [],
{#coin: coin}, {#cryptoCurrency: cryptoCurrency},
)) as _i27.TransactionBlockExplorer?); )) as _i26.TransactionBlockExplorer?);
@override @override
_i11.Future<int> putTransactionBlockExplorer( _i11.Future<int> putTransactionBlockExplorer(
_i27.TransactionBlockExplorer? explorer) => _i26.TransactionBlockExplorer? explorer) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putTransactionBlockExplorer, #putTransactionBlockExplorer,
@ -1211,13 +1211,13 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValue: _i11.Future<int>.value(0), returnValue: _i11.Future<int>.value(0),
) as _i11.Future<int>); ) as _i11.Future<int>);
@override @override
_i9.QueryBuilder<_i28.Address, _i28.Address, _i9.QAfterWhereClause> _i9.QueryBuilder<_i27.Address, _i27.Address, _i9.QAfterWhereClause>
getAddresses(String? walletId) => (super.noSuchMethod( getAddresses(String? walletId) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#getAddresses, #getAddresses,
[walletId], [walletId],
), ),
returnValue: _FakeQueryBuilder_8<_i28.Address, _i28.Address, returnValue: _FakeQueryBuilder_8<_i27.Address, _i27.Address,
_i9.QAfterWhereClause>( _i9.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
@ -1226,9 +1226,9 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
), ),
), ),
) as _i9 ) as _i9
.QueryBuilder<_i28.Address, _i28.Address, _i9.QAfterWhereClause>); .QueryBuilder<_i27.Address, _i27.Address, _i9.QAfterWhereClause>);
@override @override
_i11.Future<int> putAddress(_i28.Address? address) => (super.noSuchMethod( _i11.Future<int> putAddress(_i27.Address? address) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#putAddress, #putAddress,
[address], [address],
@ -1236,7 +1236,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValue: _i11.Future<int>.value(0), returnValue: _i11.Future<int>.value(0),
) as _i11.Future<int>); ) as _i11.Future<int>);
@override @override
_i11.Future<List<int>> putAddresses(List<_i28.Address>? addresses) => _i11.Future<List<int>> putAddresses(List<_i27.Address>? addresses) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putAddresses, #putAddresses,
@ -1245,7 +1245,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValue: _i11.Future<List<int>>.value(<int>[]), returnValue: _i11.Future<List<int>>.value(<int>[]),
) as _i11.Future<List<int>>); ) as _i11.Future<List<int>>);
@override @override
_i11.Future<List<int>> updateOrPutAddresses(List<_i28.Address>? addresses) => _i11.Future<List<int>> updateOrPutAddresses(List<_i27.Address>? addresses) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#updateOrPutAddresses, #updateOrPutAddresses,
@ -1254,7 +1254,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValue: _i11.Future<List<int>>.value(<int>[]), returnValue: _i11.Future<List<int>>.value(<int>[]),
) as _i11.Future<List<int>>); ) as _i11.Future<List<int>>);
@override @override
_i11.Future<_i28.Address?> getAddress( _i11.Future<_i27.Address?> getAddress(
String? walletId, String? walletId,
String? address, String? address,
) => ) =>
@ -1266,12 +1266,12 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
address, address,
], ],
), ),
returnValue: _i11.Future<_i28.Address?>.value(), returnValue: _i11.Future<_i27.Address?>.value(),
) as _i11.Future<_i28.Address?>); ) as _i11.Future<_i27.Address?>);
@override @override
_i11.Future<int> updateAddress( _i11.Future<int> updateAddress(
_i28.Address? oldAddress, _i27.Address? oldAddress,
_i28.Address? newAddress, _i27.Address? newAddress,
) => ) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -1284,13 +1284,13 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValue: _i11.Future<int>.value(0), returnValue: _i11.Future<int>.value(0),
) as _i11.Future<int>); ) as _i11.Future<int>);
@override @override
_i9.QueryBuilder<_i28.Transaction, _i28.Transaction, _i9.QAfterWhereClause> _i9.QueryBuilder<_i27.Transaction, _i27.Transaction, _i9.QAfterWhereClause>
getTransactions(String? walletId) => (super.noSuchMethod( getTransactions(String? walletId) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#getTransactions, #getTransactions,
[walletId], [walletId],
), ),
returnValue: _FakeQueryBuilder_8<_i28.Transaction, _i28.Transaction, returnValue: _FakeQueryBuilder_8<_i27.Transaction, _i27.Transaction,
_i9.QAfterWhereClause>( _i9.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
@ -1298,10 +1298,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
[walletId], [walletId],
), ),
), ),
) as _i9.QueryBuilder<_i28.Transaction, _i28.Transaction, ) as _i9.QueryBuilder<_i27.Transaction, _i27.Transaction,
_i9.QAfterWhereClause>); _i9.QAfterWhereClause>);
@override @override
_i11.Future<int> putTransaction(_i28.Transaction? transaction) => _i11.Future<int> putTransaction(_i27.Transaction? transaction) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putTransaction, #putTransaction,
@ -1311,7 +1311,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
) as _i11.Future<int>); ) as _i11.Future<int>);
@override @override
_i11.Future<List<int>> putTransactions( _i11.Future<List<int>> putTransactions(
List<_i28.Transaction>? transactions) => List<_i27.Transaction>? transactions) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putTransactions, #putTransactions,
@ -1320,7 +1320,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValue: _i11.Future<List<int>>.value(<int>[]), returnValue: _i11.Future<List<int>>.value(<int>[]),
) as _i11.Future<List<int>>); ) as _i11.Future<List<int>>);
@override @override
_i11.Future<_i28.Transaction?> getTransaction( _i11.Future<_i27.Transaction?> getTransaction(
String? walletId, String? walletId,
String? txid, String? txid,
) => ) =>
@ -1332,10 +1332,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
txid, txid,
], ],
), ),
returnValue: _i11.Future<_i28.Transaction?>.value(), returnValue: _i11.Future<_i27.Transaction?>.value(),
) as _i11.Future<_i28.Transaction?>); ) as _i11.Future<_i27.Transaction?>);
@override @override
_i11.Stream<_i28.Transaction?> watchTransaction({ _i11.Stream<_i27.Transaction?> watchTransaction({
required int? id, required int? id,
bool? fireImmediately = false, bool? fireImmediately = false,
}) => }) =>
@ -1348,10 +1348,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
#fireImmediately: fireImmediately, #fireImmediately: fireImmediately,
}, },
), ),
returnValue: _i11.Stream<_i28.Transaction?>.empty(), returnValue: _i11.Stream<_i27.Transaction?>.empty(),
) as _i11.Stream<_i28.Transaction?>); ) as _i11.Stream<_i27.Transaction?>);
@override @override
_i9.QueryBuilder<_i28.UTXO, _i28.UTXO, _i9.QAfterWhereClause> getUTXOs( _i9.QueryBuilder<_i27.UTXO, _i27.UTXO, _i9.QAfterWhereClause> getUTXOs(
String? walletId) => String? walletId) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -1359,16 +1359,16 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
[walletId], [walletId],
), ),
returnValue: returnValue:
_FakeQueryBuilder_8<_i28.UTXO, _i28.UTXO, _i9.QAfterWhereClause>( _FakeQueryBuilder_8<_i27.UTXO, _i27.UTXO, _i9.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
#getUTXOs, #getUTXOs,
[walletId], [walletId],
), ),
), ),
) as _i9.QueryBuilder<_i28.UTXO, _i28.UTXO, _i9.QAfterWhereClause>); ) as _i9.QueryBuilder<_i27.UTXO, _i27.UTXO, _i9.QAfterWhereClause>);
@override @override
_i9.QueryBuilder<_i28.UTXO, _i28.UTXO, _i9.QAfterFilterCondition> _i9.QueryBuilder<_i27.UTXO, _i27.UTXO, _i9.QAfterFilterCondition>
getUTXOsByAddress( getUTXOsByAddress(
String? walletId, String? walletId,
String? address, String? address,
@ -1381,7 +1381,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
address, address,
], ],
), ),
returnValue: _FakeQueryBuilder_8<_i28.UTXO, _i28.UTXO, returnValue: _FakeQueryBuilder_8<_i27.UTXO, _i27.UTXO,
_i9.QAfterFilterCondition>( _i9.QAfterFilterCondition>(
this, this,
Invocation.method( Invocation.method(
@ -1393,9 +1393,9 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
), ),
), ),
) as _i9 ) as _i9
.QueryBuilder<_i28.UTXO, _i28.UTXO, _i9.QAfterFilterCondition>); .QueryBuilder<_i27.UTXO, _i27.UTXO, _i9.QAfterFilterCondition>);
@override @override
_i11.Future<void> putUTXO(_i28.UTXO? utxo) => (super.noSuchMethod( _i11.Future<void> putUTXO(_i27.UTXO? utxo) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#putUTXO, #putUTXO,
[utxo], [utxo],
@ -1404,7 +1404,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValueForMissingStub: _i11.Future<void>.value(), returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>); ) as _i11.Future<void>);
@override @override
_i11.Future<void> putUTXOs(List<_i28.UTXO>? utxos) => (super.noSuchMethod( _i11.Future<void> putUTXOs(List<_i27.UTXO>? utxos) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#putUTXOs, #putUTXOs,
[utxos], [utxos],
@ -1415,7 +1415,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
@override @override
_i11.Future<bool> updateUTXOs( _i11.Future<bool> updateUTXOs(
String? walletId, String? walletId,
List<_i28.UTXO>? utxos, List<_i27.UTXO>? utxos,
) => ) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -1428,7 +1428,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValue: _i11.Future<bool>.value(false), returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>); ) as _i11.Future<bool>);
@override @override
_i11.Stream<_i28.UTXO?> watchUTXO({ _i11.Stream<_i27.UTXO?> watchUTXO({
required int? id, required int? id,
bool? fireImmediately = false, bool? fireImmediately = false,
}) => }) =>
@ -1441,10 +1441,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
#fireImmediately: fireImmediately, #fireImmediately: fireImmediately,
}, },
), ),
returnValue: _i11.Stream<_i28.UTXO?>.empty(), returnValue: _i11.Stream<_i27.UTXO?>.empty(),
) as _i11.Stream<_i28.UTXO?>); ) as _i11.Stream<_i27.UTXO?>);
@override @override
_i9.QueryBuilder<_i28.TransactionNote, _i28.TransactionNote, _i9.QueryBuilder<_i27.TransactionNote, _i27.TransactionNote,
_i9.QAfterWhereClause> getTransactionNotes( _i9.QAfterWhereClause> getTransactionNotes(
String? walletId) => String? walletId) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -1452,18 +1452,18 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
#getTransactionNotes, #getTransactionNotes,
[walletId], [walletId],
), ),
returnValue: _FakeQueryBuilder_8<_i28.TransactionNote, returnValue: _FakeQueryBuilder_8<_i27.TransactionNote,
_i28.TransactionNote, _i9.QAfterWhereClause>( _i27.TransactionNote, _i9.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
#getTransactionNotes, #getTransactionNotes,
[walletId], [walletId],
), ),
), ),
) as _i9.QueryBuilder<_i28.TransactionNote, _i28.TransactionNote, ) as _i9.QueryBuilder<_i27.TransactionNote, _i27.TransactionNote,
_i9.QAfterWhereClause>); _i9.QAfterWhereClause>);
@override @override
_i11.Future<void> putTransactionNote(_i28.TransactionNote? transactionNote) => _i11.Future<void> putTransactionNote(_i27.TransactionNote? transactionNote) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putTransactionNote, #putTransactionNote,
@ -1474,7 +1474,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
) as _i11.Future<void>); ) as _i11.Future<void>);
@override @override
_i11.Future<void> putTransactionNotes( _i11.Future<void> putTransactionNotes(
List<_i28.TransactionNote>? transactionNotes) => List<_i27.TransactionNote>? transactionNotes) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putTransactionNotes, #putTransactionNotes,
@ -1484,7 +1484,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValueForMissingStub: _i11.Future<void>.value(), returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>); ) as _i11.Future<void>);
@override @override
_i11.Future<_i28.TransactionNote?> getTransactionNote( _i11.Future<_i27.TransactionNote?> getTransactionNote(
String? walletId, String? walletId,
String? txid, String? txid,
) => ) =>
@ -1496,10 +1496,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
txid, txid,
], ],
), ),
returnValue: _i11.Future<_i28.TransactionNote?>.value(), returnValue: _i11.Future<_i27.TransactionNote?>.value(),
) as _i11.Future<_i28.TransactionNote?>); ) as _i11.Future<_i27.TransactionNote?>);
@override @override
_i11.Stream<_i28.TransactionNote?> watchTransactionNote({ _i11.Stream<_i27.TransactionNote?> watchTransactionNote({
required int? id, required int? id,
bool? fireImmediately = false, bool? fireImmediately = false,
}) => }) =>
@ -1512,27 +1512,27 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
#fireImmediately: fireImmediately, #fireImmediately: fireImmediately,
}, },
), ),
returnValue: _i11.Stream<_i28.TransactionNote?>.empty(), returnValue: _i11.Stream<_i27.TransactionNote?>.empty(),
) as _i11.Stream<_i28.TransactionNote?>); ) as _i11.Stream<_i27.TransactionNote?>);
@override @override
_i9.QueryBuilder<_i28.AddressLabel, _i28.AddressLabel, _i9.QAfterWhereClause> _i9.QueryBuilder<_i27.AddressLabel, _i27.AddressLabel, _i9.QAfterWhereClause>
getAddressLabels(String? walletId) => (super.noSuchMethod( getAddressLabels(String? walletId) => (super.noSuchMethod(
Invocation.method( Invocation.method(
#getAddressLabels, #getAddressLabels,
[walletId], [walletId],
), ),
returnValue: _FakeQueryBuilder_8<_i28.AddressLabel, returnValue: _FakeQueryBuilder_8<_i27.AddressLabel,
_i28.AddressLabel, _i9.QAfterWhereClause>( _i27.AddressLabel, _i9.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
#getAddressLabels, #getAddressLabels,
[walletId], [walletId],
), ),
), ),
) as _i9.QueryBuilder<_i28.AddressLabel, _i28.AddressLabel, ) as _i9.QueryBuilder<_i27.AddressLabel, _i27.AddressLabel,
_i9.QAfterWhereClause>); _i9.QAfterWhereClause>);
@override @override
_i11.Future<int> putAddressLabel(_i28.AddressLabel? addressLabel) => _i11.Future<int> putAddressLabel(_i27.AddressLabel? addressLabel) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putAddressLabel, #putAddressLabel,
@ -1541,7 +1541,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValue: _i11.Future<int>.value(0), returnValue: _i11.Future<int>.value(0),
) as _i11.Future<int>); ) as _i11.Future<int>);
@override @override
int putAddressLabelSync(_i28.AddressLabel? addressLabel) => int putAddressLabelSync(_i27.AddressLabel? addressLabel) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putAddressLabelSync, #putAddressLabelSync,
@ -1550,7 +1550,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValue: 0, returnValue: 0,
) as int); ) as int);
@override @override
_i11.Future<void> putAddressLabels(List<_i28.AddressLabel>? addressLabels) => _i11.Future<void> putAddressLabels(List<_i27.AddressLabel>? addressLabels) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putAddressLabels, #putAddressLabels,
@ -1560,7 +1560,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValueForMissingStub: _i11.Future<void>.value(), returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>); ) as _i11.Future<void>);
@override @override
_i11.Future<_i28.AddressLabel?> getAddressLabel( _i11.Future<_i27.AddressLabel?> getAddressLabel(
String? walletId, String? walletId,
String? addressString, String? addressString,
) => ) =>
@ -1572,10 +1572,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
addressString, addressString,
], ],
), ),
returnValue: _i11.Future<_i28.AddressLabel?>.value(), returnValue: _i11.Future<_i27.AddressLabel?>.value(),
) as _i11.Future<_i28.AddressLabel?>); ) as _i11.Future<_i27.AddressLabel?>);
@override @override
_i28.AddressLabel? getAddressLabelSync( _i27.AddressLabel? getAddressLabelSync(
String? walletId, String? walletId,
String? addressString, String? addressString,
) => ) =>
@ -1585,9 +1585,9 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
walletId, walletId,
addressString, addressString,
], ],
)) as _i28.AddressLabel?); )) as _i27.AddressLabel?);
@override @override
_i11.Stream<_i28.AddressLabel?> watchAddressLabel({ _i11.Stream<_i27.AddressLabel?> watchAddressLabel({
required int? id, required int? id,
bool? fireImmediately = false, bool? fireImmediately = false,
}) => }) =>
@ -1600,10 +1600,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
#fireImmediately: fireImmediately, #fireImmediately: fireImmediately,
}, },
), ),
returnValue: _i11.Stream<_i28.AddressLabel?>.empty(), returnValue: _i11.Stream<_i27.AddressLabel?>.empty(),
) as _i11.Stream<_i28.AddressLabel?>); ) as _i11.Stream<_i27.AddressLabel?>);
@override @override
_i11.Future<int> updateAddressLabel(_i28.AddressLabel? addressLabel) => _i11.Future<int> updateAddressLabel(_i27.AddressLabel? addressLabel) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#updateAddressLabel, #updateAddressLabel,
@ -1643,7 +1643,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
) as _i11.Future<void>); ) as _i11.Future<void>);
@override @override
_i11.Future<void> addNewTransactionData( _i11.Future<void> addNewTransactionData(
List<_i7.Tuple2<_i28.Transaction, _i28.Address?>>? transactionsData, List<_i7.Tuple2<_i27.Transaction, _i27.Address?>>? transactionsData,
String? walletId, String? walletId,
) => ) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -1659,7 +1659,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
) as _i11.Future<void>); ) as _i11.Future<void>);
@override @override
_i11.Future<List<int>> updateOrPutTransactionV2s( _i11.Future<List<int>> updateOrPutTransactionV2s(
List<_i29.TransactionV2>? transactions) => List<_i28.TransactionV2>? transactions) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#updateOrPutTransactionV2s, #updateOrPutTransactionV2s,
@ -1668,13 +1668,13 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValue: _i11.Future<List<int>>.value(<int>[]), returnValue: _i11.Future<List<int>>.value(<int>[]),
) as _i11.Future<List<int>>); ) as _i11.Future<List<int>>);
@override @override
_i9.QueryBuilder<_i28.EthContract, _i28.EthContract, _i9.QWhere> _i9.QueryBuilder<_i27.EthContract, _i27.EthContract, _i9.QWhere>
getEthContracts() => (super.noSuchMethod( getEthContracts() => (super.noSuchMethod(
Invocation.method( Invocation.method(
#getEthContracts, #getEthContracts,
[], [],
), ),
returnValue: _FakeQueryBuilder_8<_i28.EthContract, _i28.EthContract, returnValue: _FakeQueryBuilder_8<_i27.EthContract, _i27.EthContract,
_i9.QWhere>( _i9.QWhere>(
this, this,
Invocation.method( Invocation.method(
@ -1683,24 +1683,24 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
), ),
), ),
) as _i9 ) as _i9
.QueryBuilder<_i28.EthContract, _i28.EthContract, _i9.QWhere>); .QueryBuilder<_i27.EthContract, _i27.EthContract, _i9.QWhere>);
@override @override
_i11.Future<_i28.EthContract?> getEthContract(String? contractAddress) => _i11.Future<_i27.EthContract?> getEthContract(String? contractAddress) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#getEthContract, #getEthContract,
[contractAddress], [contractAddress],
), ),
returnValue: _i11.Future<_i28.EthContract?>.value(), returnValue: _i11.Future<_i27.EthContract?>.value(),
) as _i11.Future<_i28.EthContract?>); ) as _i11.Future<_i27.EthContract?>);
@override @override
_i28.EthContract? getEthContractSync(String? contractAddress) => _i27.EthContract? getEthContractSync(String? contractAddress) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getEthContractSync, #getEthContractSync,
[contractAddress], [contractAddress],
)) as _i28.EthContract?); )) as _i27.EthContract?);
@override @override
_i11.Future<int> putEthContract(_i28.EthContract? contract) => _i11.Future<int> putEthContract(_i27.EthContract? contract) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putEthContract, #putEthContract,
@ -1709,7 +1709,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValue: _i11.Future<int>.value(0), returnValue: _i11.Future<int>.value(0),
) as _i11.Future<int>); ) as _i11.Future<int>);
@override @override
_i11.Future<void> putEthContracts(List<_i28.EthContract>? contracts) => _i11.Future<void> putEthContracts(List<_i27.EthContract>? contracts) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#putEthContracts, #putEthContracts,
@ -1733,7 +1733,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
/// A class which mocks [IThemeAssets]. /// A class which mocks [IThemeAssets].
/// ///
/// See the documentation for Mockito's code generation for more information. /// See the documentation for Mockito's code generation for more information.
class MockIThemeAssets extends _i1.Mock implements _i24.IThemeAssets { class MockIThemeAssets extends _i1.Mock implements _i23.IThemeAssets {
MockIThemeAssets() { MockIThemeAssets() {
_i1.throwOnMissingStub(this); _i1.throwOnMissingStub(this);
} }

View file

@ -4,14 +4,13 @@
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i13; import 'dart:ui' as _i12;
import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/isar/main_db.dart' as _i3; import 'package:stackwallet/db/isar/main_db.dart' as _i3;
import 'package:stackwallet/models/node_model.dart' as _i11; import 'package:stackwallet/models/node_model.dart' as _i11;
import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/wallets.dart' as _i7; import 'package:stackwallet/services/wallets.dart' as _i7;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i12;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i6; as _i6;
import 'package:stackwallet/utilities/prefs.dart' as _i10; import 'package:stackwallet/utilities/prefs.dart' as _i10;
@ -231,7 +230,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
) as _i8.Future<void>); ) as _i8.Future<void>);
@override @override
_i8.Future<void> setPrimaryNodeFor({ _i8.Future<void> setPrimaryNodeFor({
required _i12.Coin? coin, required _i4.CryptoCurrency? coin,
required _i11.NodeModel? node, required _i11.NodeModel? node,
bool? shouldNotifyListeners = false, bool? shouldNotifyListeners = false,
}) => }) =>
@ -249,14 +248,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: _i8.Future<void>.value(), returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>); ) as _i8.Future<void>);
@override @override
_i11.NodeModel? getPrimaryNodeFor({required _i12.Coin? coin}) => _i11.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor, #getPrimaryNodeFor,
[], [],
{#coin: coin}, {#currency: currency},
)) as _i11.NodeModel?); )) as _i11.NodeModel?);
@override @override
List<_i11.NodeModel> getNodesFor(_i12.Coin? coin) => (super.noSuchMethod( List<_i11.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getNodesFor, #getNodesFor,
[coin], [coin],
@ -271,12 +271,13 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
{#id: id}, {#id: id},
)) as _i11.NodeModel?); )) as _i11.NodeModel?);
@override @override
List<_i11.NodeModel> failoverNodesFor({required _i12.Coin? coin}) => List<_i11.NodeModel> failoverNodesFor(
{required _i4.CryptoCurrency? currency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#failoverNodesFor, #failoverNodesFor,
[], [],
{#coin: coin}, {#currency: currency},
), ),
returnValue: <_i11.NodeModel>[], returnValue: <_i11.NodeModel>[],
) as List<_i11.NodeModel>); ) as List<_i11.NodeModel>);
@ -360,7 +361,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: _i8.Future<void>.value(), returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>); ) as _i8.Future<void>);
@override @override
void addListener(_i13.VoidCallback? listener) => super.noSuchMethod( void addListener(_i12.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#addListener, #addListener,
[listener], [listener],
@ -368,7 +369,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void removeListener(_i13.VoidCallback? listener) => super.noSuchMethod( void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#removeListener, #removeListener,
[listener], [listener],

View file

@ -5,7 +5,7 @@
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i9; import 'dart:async' as _i9;
import 'dart:typed_data' as _i14; import 'dart:typed_data' as _i14;
import 'dart:ui' as _i17; import 'dart:ui' as _i16;
import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/isar/main_db.dart' as _i3; import 'package:stackwallet/db/isar/main_db.dart' as _i3;
@ -15,7 +15,6 @@ import 'package:stackwallet/networking/http.dart' as _i6;
import 'package:stackwallet/services/node_service.dart' as _i2; import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/wallets.dart' as _i8; import 'package:stackwallet/services/wallets.dart' as _i8;
import 'package:stackwallet/themes/theme_service.dart' as _i12; import 'package:stackwallet/themes/theme_service.dart' as _i12;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i7; as _i7;
import 'package:stackwallet/utilities/prefs.dart' as _i11; import 'package:stackwallet/utilities/prefs.dart' as _i11;
@ -360,7 +359,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
) as _i9.Future<void>); ) as _i9.Future<void>);
@override @override
_i9.Future<void> setPrimaryNodeFor({ _i9.Future<void> setPrimaryNodeFor({
required _i16.Coin? coin, required _i4.CryptoCurrency? coin,
required _i15.NodeModel? node, required _i15.NodeModel? node,
bool? shouldNotifyListeners = false, bool? shouldNotifyListeners = false,
}) => }) =>
@ -378,14 +377,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: _i9.Future<void>.value(), returnValueForMissingStub: _i9.Future<void>.value(),
) as _i9.Future<void>); ) as _i9.Future<void>);
@override @override
_i15.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) => _i15.NodeModel? getPrimaryNodeFor({required _i4.CryptoCurrency? currency}) =>
(super.noSuchMethod(Invocation.method( (super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor, #getPrimaryNodeFor,
[], [],
{#coin: coin}, {#currency: currency},
)) as _i15.NodeModel?); )) as _i15.NodeModel?);
@override @override
List<_i15.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod( List<_i15.NodeModel> getNodesFor(_i4.CryptoCurrency? coin) =>
(super.noSuchMethod(
Invocation.method( Invocation.method(
#getNodesFor, #getNodesFor,
[coin], [coin],
@ -400,12 +400,13 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
{#id: id}, {#id: id},
)) as _i15.NodeModel?); )) as _i15.NodeModel?);
@override @override
List<_i15.NodeModel> failoverNodesFor({required _i16.Coin? coin}) => List<_i15.NodeModel> failoverNodesFor(
{required _i4.CryptoCurrency? currency}) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#failoverNodesFor, #failoverNodesFor,
[], [],
{#coin: coin}, {#currency: currency},
), ),
returnValue: <_i15.NodeModel>[], returnValue: <_i15.NodeModel>[],
) as List<_i15.NodeModel>); ) as List<_i15.NodeModel>);
@ -489,7 +490,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: _i9.Future<void>.value(), returnValueForMissingStub: _i9.Future<void>.value(),
) as _i9.Future<void>); ) as _i9.Future<void>);
@override @override
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#addListener, #addListener,
[listener], [listener],
@ -497,7 +498,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod(
Invocation.method( Invocation.method(
#removeListener, #removeListener,
[listener], [listener],