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

View file

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

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

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

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

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

View file

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

View file

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

View file

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

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/services/wallets_service.dart' as _i9;
import 'package:stackwallet/utilities/biometrics.dart' as _i8;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i5;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i5;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
@ -58,7 +59,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i4.Future<Map<String, dynamic>> getAnonymitySet({
required String? groupId,
String? blockhash = r'',
required _i5.Coin? coin,
required _i5.CryptoCurrency? cryptoCurrency,
}) =>
(super.noSuchMethod(
Invocation.method(
@ -67,7 +68,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{
#groupId: groupId,
#blockhash: blockhash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
},
),
returnValue:
@ -77,7 +78,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i4.Future<Map<String, dynamic>> getSparkAnonymitySet({
required String? groupId,
String? blockhash = r'',
required _i5.Coin? coin,
required _i5.CryptoCurrency? cryptoCurrency,
required bool? useOnlyCacheIfNotEmpty,
}) =>
(super.noSuchMethod(
@ -87,7 +88,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{
#groupId: groupId,
#blockhash: blockhash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty,
},
),
@ -113,7 +114,7 @@ class MockCachedElectrumXClient extends _i1.Mock
@override
_i4.Future<Map<String, dynamic>> getTransaction({
required String? txHash,
required _i5.Coin? coin,
required _i5.CryptoCurrency? cryptoCurrency,
bool? verbose = true,
}) =>
(super.noSuchMethod(
@ -122,7 +123,7 @@ class MockCachedElectrumXClient extends _i1.Mock
[],
{
#txHash: txHash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#verbose: verbose,
},
),
@ -131,7 +132,7 @@ class MockCachedElectrumXClient extends _i1.Mock
) as _i4.Future<Map<String, dynamic>>);
@override
_i4.Future<List<String>> getUsedCoinSerials({
required _i5.Coin? coin,
required _i5.CryptoCurrency? cryptoCurrency,
int? startNumber = 0,
}) =>
(super.noSuchMethod(
@ -139,29 +140,31 @@ class MockCachedElectrumXClient extends _i1.Mock
#getUsedCoinSerials,
[],
{
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#startNumber: startNumber,
},
),
returnValue: _i4.Future<List<String>>.value(<String>[]),
) as _i4.Future<List<String>>);
@override
_i4.Future<Set<String>> getSparkUsedCoinsTags({required _i5.Coin? coin}) =>
_i4.Future<Set<String>> getSparkUsedCoinsTags(
{required _i5.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod(
Invocation.method(
#getSparkUsedCoinsTags,
[],
{#coin: coin},
{#cryptoCurrency: cryptoCurrency},
),
returnValue: _i4.Future<Set<String>>.value(<String>{}),
) as _i4.Future<Set<String>>);
@override
_i4.Future<void> clearSharedTransactionCache({required _i5.Coin? coin}) =>
_i4.Future<void> clearSharedTransactionCache(
{required _i5.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod(
Invocation.method(
#clearSharedTransactionCache,
[],
{#coin: coin},
{#cryptoCurrency: cryptoCurrency},
),
returnValue: _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/electrumx_client.dart' as _i4;
import 'package:stackwallet/services/transaction_notification_tracker.dart'
as _i8;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
as _i7;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i2;
@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getAnonymitySet({
required String? groupId,
String? blockhash = r'',
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
}) =>
(super.noSuchMethod(
Invocation.method(
@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{
#groupId: groupId,
#blockhash: blockhash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
},
),
returnValue:
@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getSparkAnonymitySet({
required String? groupId,
String? blockhash = r'',
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
required bool? useOnlyCacheIfNotEmpty,
}) =>
(super.noSuchMethod(
@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{
#groupId: groupId,
#blockhash: blockhash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty,
},
),
@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock
@override
_i5.Future<Map<String, dynamic>> getTransaction({
required String? txHash,
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
bool? verbose = true,
}) =>
(super.noSuchMethod(
@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock
[],
{
#txHash: txHash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#verbose: verbose,
},
),
@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock
) as _i5.Future<Map<String, dynamic>>);
@override
_i5.Future<List<String>> getUsedCoinSerials({
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
int? startNumber = 0,
}) =>
(super.noSuchMethod(
@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock
#getUsedCoinSerials,
[],
{
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#startNumber: startNumber,
},
),
returnValue: _i5.Future<List<String>>.value(<String>[]),
) as _i5.Future<List<String>>);
@override
_i5.Future<Set<String>> getSparkUsedCoinsTags({required _i7.Coin? coin}) =>
_i5.Future<Set<String>> getSparkUsedCoinsTags(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod(
Invocation.method(
#getSparkUsedCoinsTags,
[],
{#coin: coin},
{#cryptoCurrency: cryptoCurrency},
),
returnValue: _i5.Future<Set<String>>.value(<String>{}),
) as _i5.Future<Set<String>>);
@override
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) =>
_i5.Future<void> clearSharedTransactionCache(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod(
Invocation.method(
#clearSharedTransactionCache,
[],
{#coin: coin},
{#cryptoCurrency: cryptoCurrency},
),
returnValue: _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.
class MockTransactionNotificationTracker extends _i1.Mock
implements _i8.TransactionNotificationTracker {
implements _i7.TransactionNotificationTracker {
MockTransactionNotificationTracker() {
_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/electrumx_client.dart' as _i4;
import 'package:stackwallet/services/transaction_notification_tracker.dart'
as _i8;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
as _i7;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i2;
@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getAnonymitySet({
required String? groupId,
String? blockhash = r'',
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
}) =>
(super.noSuchMethod(
Invocation.method(
@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{
#groupId: groupId,
#blockhash: blockhash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
},
),
returnValue:
@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getSparkAnonymitySet({
required String? groupId,
String? blockhash = r'',
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
required bool? useOnlyCacheIfNotEmpty,
}) =>
(super.noSuchMethod(
@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{
#groupId: groupId,
#blockhash: blockhash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty,
},
),
@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock
@override
_i5.Future<Map<String, dynamic>> getTransaction({
required String? txHash,
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
bool? verbose = true,
}) =>
(super.noSuchMethod(
@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock
[],
{
#txHash: txHash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#verbose: verbose,
},
),
@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock
) as _i5.Future<Map<String, dynamic>>);
@override
_i5.Future<List<String>> getUsedCoinSerials({
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
int? startNumber = 0,
}) =>
(super.noSuchMethod(
@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock
#getUsedCoinSerials,
[],
{
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#startNumber: startNumber,
},
),
returnValue: _i5.Future<List<String>>.value(<String>[]),
) as _i5.Future<List<String>>);
@override
_i5.Future<Set<String>> getSparkUsedCoinsTags({required _i7.Coin? coin}) =>
_i5.Future<Set<String>> getSparkUsedCoinsTags(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod(
Invocation.method(
#getSparkUsedCoinsTags,
[],
{#coin: coin},
{#cryptoCurrency: cryptoCurrency},
),
returnValue: _i5.Future<Set<String>>.value(<String>{}),
) as _i5.Future<Set<String>>);
@override
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) =>
_i5.Future<void> clearSharedTransactionCache(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod(
Invocation.method(
#clearSharedTransactionCache,
[],
{#coin: coin},
{#cryptoCurrency: cryptoCurrency},
),
returnValue: _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.
class MockTransactionNotificationTracker extends _i1.Mock
implements _i8.TransactionNotificationTracker {
implements _i7.TransactionNotificationTracker {
MockTransactionNotificationTracker() {
_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/electrumx_client.dart' as _i4;
import 'package:stackwallet/services/transaction_notification_tracker.dart'
as _i8;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
as _i7;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i2;
@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getAnonymitySet({
required String? groupId,
String? blockhash = r'',
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
}) =>
(super.noSuchMethod(
Invocation.method(
@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{
#groupId: groupId,
#blockhash: blockhash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
},
),
returnValue:
@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getSparkAnonymitySet({
required String? groupId,
String? blockhash = r'',
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
required bool? useOnlyCacheIfNotEmpty,
}) =>
(super.noSuchMethod(
@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{
#groupId: groupId,
#blockhash: blockhash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty,
},
),
@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock
@override
_i5.Future<Map<String, dynamic>> getTransaction({
required String? txHash,
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
bool? verbose = true,
}) =>
(super.noSuchMethod(
@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock
[],
{
#txHash: txHash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#verbose: verbose,
},
),
@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock
) as _i5.Future<Map<String, dynamic>>);
@override
_i5.Future<List<String>> getUsedCoinSerials({
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
int? startNumber = 0,
}) =>
(super.noSuchMethod(
@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock
#getUsedCoinSerials,
[],
{
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#startNumber: startNumber,
},
),
returnValue: _i5.Future<List<String>>.value(<String>[]),
) as _i5.Future<List<String>>);
@override
_i5.Future<Set<String>> getSparkUsedCoinsTags({required _i7.Coin? coin}) =>
_i5.Future<Set<String>> getSparkUsedCoinsTags(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod(
Invocation.method(
#getSparkUsedCoinsTags,
[],
{#coin: coin},
{#cryptoCurrency: cryptoCurrency},
),
returnValue: _i5.Future<Set<String>>.value(<String>{}),
) as _i5.Future<Set<String>>);
@override
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) =>
_i5.Future<void> clearSharedTransactionCache(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod(
Invocation.method(
#clearSharedTransactionCache,
[],
{#coin: coin},
{#cryptoCurrency: cryptoCurrency},
),
returnValue: _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.
class MockTransactionNotificationTracker extends _i1.Mock
implements _i8.TransactionNotificationTracker {
implements _i7.TransactionNotificationTracker {
MockTransactionNotificationTracker() {
_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/electrumx_client.dart' as _i4;
import 'package:stackwallet/services/transaction_notification_tracker.dart'
as _i8;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
as _i7;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i2;
@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getAnonymitySet({
required String? groupId,
String? blockhash = r'',
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
}) =>
(super.noSuchMethod(
Invocation.method(
@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{
#groupId: groupId,
#blockhash: blockhash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
},
),
returnValue:
@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getSparkAnonymitySet({
required String? groupId,
String? blockhash = r'',
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
required bool? useOnlyCacheIfNotEmpty,
}) =>
(super.noSuchMethod(
@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{
#groupId: groupId,
#blockhash: blockhash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty,
},
),
@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock
@override
_i5.Future<Map<String, dynamic>> getTransaction({
required String? txHash,
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
bool? verbose = true,
}) =>
(super.noSuchMethod(
@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock
[],
{
#txHash: txHash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#verbose: verbose,
},
),
@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock
) as _i5.Future<Map<String, dynamic>>);
@override
_i5.Future<List<String>> getUsedCoinSerials({
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
int? startNumber = 0,
}) =>
(super.noSuchMethod(
@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock
#getUsedCoinSerials,
[],
{
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#startNumber: startNumber,
},
),
returnValue: _i5.Future<List<String>>.value(<String>[]),
) as _i5.Future<List<String>>);
@override
_i5.Future<Set<String>> getSparkUsedCoinsTags({required _i7.Coin? coin}) =>
_i5.Future<Set<String>> getSparkUsedCoinsTags(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod(
Invocation.method(
#getSparkUsedCoinsTags,
[],
{#coin: coin},
{#cryptoCurrency: cryptoCurrency},
),
returnValue: _i5.Future<Set<String>>.value(<String>{}),
) as _i5.Future<Set<String>>);
@override
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) =>
_i5.Future<void> clearSharedTransactionCache(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod(
Invocation.method(
#clearSharedTransactionCache,
[],
{#coin: coin},
{#cryptoCurrency: cryptoCurrency},
),
returnValue: _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.
class MockTransactionNotificationTracker extends _i1.Mock
implements _i8.TransactionNotificationTracker {
implements _i7.TransactionNotificationTracker {
MockTransactionNotificationTracker() {
_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/electrumx_client.dart' as _i4;
import 'package:stackwallet/services/transaction_notification_tracker.dart'
as _i8;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
as _i7;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i2;
@ -528,7 +527,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getAnonymitySet({
required String? groupId,
String? blockhash = r'',
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
}) =>
(super.noSuchMethod(
Invocation.method(
@ -537,7 +536,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{
#groupId: groupId,
#blockhash: blockhash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
},
),
returnValue:
@ -547,7 +546,7 @@ class MockCachedElectrumXClient extends _i1.Mock
_i5.Future<Map<String, dynamic>> getSparkAnonymitySet({
required String? groupId,
String? blockhash = r'',
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
required bool? useOnlyCacheIfNotEmpty,
}) =>
(super.noSuchMethod(
@ -557,7 +556,7 @@ class MockCachedElectrumXClient extends _i1.Mock
{
#groupId: groupId,
#blockhash: blockhash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty,
},
),
@ -583,7 +582,7 @@ class MockCachedElectrumXClient extends _i1.Mock
@override
_i5.Future<Map<String, dynamic>> getTransaction({
required String? txHash,
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
bool? verbose = true,
}) =>
(super.noSuchMethod(
@ -592,7 +591,7 @@ class MockCachedElectrumXClient extends _i1.Mock
[],
{
#txHash: txHash,
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#verbose: verbose,
},
),
@ -601,7 +600,7 @@ class MockCachedElectrumXClient extends _i1.Mock
) as _i5.Future<Map<String, dynamic>>);
@override
_i5.Future<List<String>> getUsedCoinSerials({
required _i7.Coin? coin,
required _i2.CryptoCurrency? cryptoCurrency,
int? startNumber = 0,
}) =>
(super.noSuchMethod(
@ -609,29 +608,31 @@ class MockCachedElectrumXClient extends _i1.Mock
#getUsedCoinSerials,
[],
{
#coin: coin,
#cryptoCurrency: cryptoCurrency,
#startNumber: startNumber,
},
),
returnValue: _i5.Future<List<String>>.value(<String>[]),
) as _i5.Future<List<String>>);
@override
_i5.Future<Set<String>> getSparkUsedCoinsTags({required _i7.Coin? coin}) =>
_i5.Future<Set<String>> getSparkUsedCoinsTags(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod(
Invocation.method(
#getSparkUsedCoinsTags,
[],
{#coin: coin},
{#cryptoCurrency: cryptoCurrency},
),
returnValue: _i5.Future<Set<String>>.value(<String>{}),
) as _i5.Future<Set<String>>);
@override
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) =>
_i5.Future<void> clearSharedTransactionCache(
{required _i2.CryptoCurrency? cryptoCurrency}) =>
(super.noSuchMethod(
Invocation.method(
#clearSharedTransactionCache,
[],
{#coin: coin},
{#cryptoCurrency: cryptoCurrency},
),
returnValue: _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.
class MockTransactionNotificationTracker extends _i1.Mock
implements _i8.TransactionNotificationTracker {
implements _i7.TransactionNotificationTracker {
MockTransactionNotificationTracker() {
_i1.throwOnMissingStub(this);
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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