updated mocks

This commit is contained in:
julian 2023-05-09 14:45:52 -06:00
parent 9de6d0619d
commit 39f06f1654
6 changed files with 384 additions and 316 deletions

View file

@ -4,7 +4,7 @@
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4;
import 'dart:ui' as _i9;
import 'dart:ui' as _i8;
import 'package:decimal/decimal.dart' as _i2;
import 'package:mockito/mockito.dart' as _i1;
@ -12,7 +12,6 @@ import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i3;
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i7;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i6;
import 'package:stackwallet/utilities/prefs.dart' as _i5;
import 'package:stackwallet/utilities/theme/color_theme.dart' as _i8;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
@ -510,6 +509,19 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
returnValueForMissingStub: null,
);
@override
bool get randomizePIN => (super.noSuchMethod(
Invocation.getter(#randomizePIN),
returnValue: false,
) as bool);
@override
set randomizePIN(bool? randomizePIN) => super.noSuchMethod(
Invocation.setter(
#randomizePIN,
randomizePIN,
),
returnValueForMissingStub: null,
);
@override
bool get useBiometrics => (super.noSuchMethod(
Invocation.getter(#useBiometrics),
returnValue: false,
@ -680,43 +692,43 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
returnValueForMissingStub: null,
);
@override
_i8.ThemeType get themeId => (super.noSuchMethod(
Invocation.getter(#theme),
returnValue: _i8.ThemeType.light,
) as _i8.ThemeType);
String get themeId => (super.noSuchMethod(
Invocation.getter(#themeId),
returnValue: '',
) as String);
@override
set themeId(_i8.ThemeType? theme) => super.noSuchMethod(
set themeId(String? themeId) => super.noSuchMethod(
Invocation.setter(
#theme,
theme,
#themeId,
themeId,
),
returnValueForMissingStub: null,
);
@override
_i8.ThemeType get systemBrightnessLightThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessLightTheme),
returnValue: _i8.ThemeType.light,
) as _i8.ThemeType);
String get systemBrightnessLightThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessLightThemeId),
returnValue: '',
) as String);
@override
set systemBrightnessLightThemeId(_i8.ThemeType? systemBrightnessLightTheme) =>
set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) =>
super.noSuchMethod(
Invocation.setter(
#systemBrightnessLightTheme,
systemBrightnessLightTheme,
#systemBrightnessLightThemeId,
systemBrightnessLightThemeId,
),
returnValueForMissingStub: null,
);
@override
_i8.ThemeType get systemBrightnessDarkThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessDarkTheme),
returnValue: _i8.ThemeType.light,
) as _i8.ThemeType);
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessDarkThemeId),
returnValue: '',
) as String);
@override
set systemBrightnessDarkThemeId(_i8.ThemeType? systemBrightnessDarkTheme) =>
set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) =>
super.noSuchMethod(
Invocation.setter(
#systemBrightnessDarkTheme,
systemBrightnessDarkTheme,
#systemBrightnessDarkThemeId,
systemBrightnessDarkThemeId,
),
returnValueForMissingStub: null,
);
@ -770,7 +782,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>);
@override
void addListener(_i9.VoidCallback? listener) => super.noSuchMethod(
void addListener(_i8.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#addListener,
[listener],
@ -778,7 +790,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
returnValueForMissingStub: null,
);
@override
void removeListener(_i9.VoidCallback? listener) => super.noSuchMethod(
void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#removeListener,
[listener],

View file

@ -4,14 +4,13 @@
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3;
import 'dart:ui' as _i8;
import 'dart:ui' as _i7;
import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/electrumx_rpc/rpc.dart' as _i2;
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i6;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i5;
import 'package:stackwallet/utilities/prefs.dart' as _i4;
import 'package:stackwallet/utilities/theme/color_theme.dart' as _i7;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
@ -231,6 +230,19 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
returnValueForMissingStub: null,
);
@override
bool get randomizePIN => (super.noSuchMethod(
Invocation.getter(#randomizePIN),
returnValue: false,
) as bool);
@override
set randomizePIN(bool? randomizePIN) => super.noSuchMethod(
Invocation.setter(
#randomizePIN,
randomizePIN,
),
returnValueForMissingStub: null,
);
@override
bool get useBiometrics => (super.noSuchMethod(
Invocation.getter(#useBiometrics),
returnValue: false,
@ -401,43 +413,43 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
returnValueForMissingStub: null,
);
@override
_i7.ThemeType get themeId => (super.noSuchMethod(
Invocation.getter(#theme),
returnValue: _i7.ThemeType.light,
) as _i7.ThemeType);
String get themeId => (super.noSuchMethod(
Invocation.getter(#themeId),
returnValue: '',
) as String);
@override
set themeId(_i7.ThemeType? theme) => super.noSuchMethod(
set themeId(String? themeId) => super.noSuchMethod(
Invocation.setter(
#theme,
theme,
#themeId,
themeId,
),
returnValueForMissingStub: null,
);
@override
_i7.ThemeType get systemBrightnessLightThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessLightTheme),
returnValue: _i7.ThemeType.light,
) as _i7.ThemeType);
String get systemBrightnessLightThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessLightThemeId),
returnValue: '',
) as String);
@override
set systemBrightnessLightThemeId(_i7.ThemeType? systemBrightnessLightTheme) =>
set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) =>
super.noSuchMethod(
Invocation.setter(
#systemBrightnessLightTheme,
systemBrightnessLightTheme,
#systemBrightnessLightThemeId,
systemBrightnessLightThemeId,
),
returnValueForMissingStub: null,
);
@override
_i7.ThemeType get systemBrightnessDarkThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessDarkTheme),
returnValue: _i7.ThemeType.light,
) as _i7.ThemeType);
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessDarkThemeId),
returnValue: '',
) as String);
@override
set systemBrightnessDarkThemeId(_i7.ThemeType? systemBrightnessDarkTheme) =>
set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) =>
super.noSuchMethod(
Invocation.setter(
#systemBrightnessDarkTheme,
systemBrightnessDarkTheme,
#systemBrightnessDarkThemeId,
systemBrightnessDarkThemeId,
),
returnValueForMissingStub: null,
);
@ -491,7 +503,7 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
returnValueForMissingStub: _i3.Future<void>.value(),
) as _i3.Future<void>);
@override
void addListener(_i8.VoidCallback? listener) => super.noSuchMethod(
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#addListener,
[listener],
@ -499,7 +511,7 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
returnValueForMissingStub: null,
);
@override
void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod(
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#removeListener,
[listener],

View file

@ -38,7 +38,6 @@ import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i32;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i7;
import 'package:stackwallet/utilities/prefs.dart' as _i24;
import 'package:stackwallet/utilities/theme/color_theme.dart' as _i34;
import 'package:tuple/tuple.dart' as _i16;
// ignore_for_file: type=lint
@ -2350,6 +2349,19 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs {
returnValueForMissingStub: null,
);
@override
bool get randomizePIN => (super.noSuchMethod(
Invocation.getter(#randomizePIN),
returnValue: false,
) as bool);
@override
set randomizePIN(bool? randomizePIN) => super.noSuchMethod(
Invocation.setter(
#randomizePIN,
randomizePIN,
),
returnValueForMissingStub: null,
);
@override
bool get useBiometrics => (super.noSuchMethod(
Invocation.getter(#useBiometrics),
returnValue: false,
@ -2520,44 +2532,43 @@ class MockPrefs extends _i1.Mock implements _i24.Prefs {
returnValueForMissingStub: null,
);
@override
_i34.ThemeType get themeId => (super.noSuchMethod(
Invocation.getter(#theme),
returnValue: _i34.ThemeType.light,
) as _i34.ThemeType);
String get themeId => (super.noSuchMethod(
Invocation.getter(#themeId),
returnValue: '',
) as String);
@override
set themeId(_i34.ThemeType? theme) => super.noSuchMethod(
set themeId(String? themeId) => super.noSuchMethod(
Invocation.setter(
#theme,
theme,
#themeId,
themeId,
),
returnValueForMissingStub: null,
);
@override
_i34.ThemeType get systemBrightnessLightThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessLightTheme),
returnValue: _i34.ThemeType.light,
) as _i34.ThemeType);
String get systemBrightnessLightThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessLightThemeId),
returnValue: '',
) as String);
@override
set systemBrightnessLightThemeId(
_i34.ThemeType? systemBrightnessLightTheme) =>
set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) =>
super.noSuchMethod(
Invocation.setter(
#systemBrightnessLightTheme,
systemBrightnessLightTheme,
#systemBrightnessLightThemeId,
systemBrightnessLightThemeId,
),
returnValueForMissingStub: null,
);
@override
_i34.ThemeType get systemBrightnessDarkThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessDarkTheme),
returnValue: _i34.ThemeType.light,
) as _i34.ThemeType);
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessDarkThemeId),
returnValue: '',
) as String);
@override
set systemBrightnessDarkThemeId(_i34.ThemeType? systemBrightnessDarkTheme) =>
set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) =>
super.noSuchMethod(
Invocation.setter(
#systemBrightnessDarkTheme,
systemBrightnessDarkTheme,
#systemBrightnessDarkThemeId,
systemBrightnessDarkThemeId,
),
returnValueForMissingStub: null,
);

View file

@ -3,37 +3,35 @@
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i7;
import 'dart:ui' as _i8;
import 'dart:async' as _i6;
import 'dart:ui' as _i7;
import 'package:decimal/decimal.dart' as _i15;
import 'package:http/http.dart' as _i13;
import 'package:decimal/decimal.dart' as _i14;
import 'package:http/http.dart' as _i12;
import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/models/exchange/change_now/cn_exchange_estimate.dart'
as _i18;
import 'package:stackwallet/models/exchange/change_now/exchange_transaction.dart'
as _i20;
import 'package:stackwallet/models/exchange/change_now/exchange_transaction_status.dart'
as _i21;
import 'package:stackwallet/models/exchange/response_objects/estimate.dart'
as _i17;
import 'package:stackwallet/models/exchange/response_objects/fixed_rate_market.dart'
import 'package:stackwallet/models/exchange/change_now/exchange_transaction.dart'
as _i19;
import 'package:stackwallet/models/exchange/response_objects/range.dart'
import 'package:stackwallet/models/exchange/change_now/exchange_transaction_status.dart'
as _i20;
import 'package:stackwallet/models/exchange/response_objects/estimate.dart'
as _i16;
import 'package:stackwallet/models/exchange/response_objects/trade.dart'
as _i10;
import 'package:stackwallet/models/isar/exchange_cache/currency.dart' as _i14;
import 'package:stackwallet/models/isar/exchange_cache/pair.dart' as _i22;
import 'package:stackwallet/models/exchange/response_objects/fixed_rate_market.dart'
as _i18;
import 'package:stackwallet/models/exchange/response_objects/range.dart'
as _i15;
import 'package:stackwallet/models/exchange/response_objects/trade.dart' as _i9;
import 'package:stackwallet/models/isar/exchange_cache/currency.dart' as _i13;
import 'package:stackwallet/models/isar/exchange_cache/pair.dart' as _i21;
import 'package:stackwallet/services/exchange/change_now/change_now_api.dart'
as _i12;
as _i11;
import 'package:stackwallet/services/exchange/exchange_response.dart' as _i2;
import 'package:stackwallet/services/trade_notes_service.dart' as _i11;
import 'package:stackwallet/services/trade_service.dart' as _i9;
import 'package:stackwallet/services/trade_notes_service.dart' as _i10;
import 'package:stackwallet/services/trade_service.dart' as _i8;
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i5;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i4;
import 'package:stackwallet/utilities/prefs.dart' as _i3;
import 'package:stackwallet/utilities/theme/color_theme.dart' as _i6;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
@ -181,6 +179,19 @@ class MockPrefs extends _i1.Mock implements _i3.Prefs {
returnValueForMissingStub: null,
);
@override
bool get randomizePIN => (super.noSuchMethod(
Invocation.getter(#randomizePIN),
returnValue: false,
) as bool);
@override
set randomizePIN(bool? randomizePIN) => super.noSuchMethod(
Invocation.setter(
#randomizePIN,
randomizePIN,
),
returnValueForMissingStub: null,
);
@override
bool get useBiometrics => (super.noSuchMethod(
Invocation.getter(#useBiometrics),
returnValue: false,
@ -351,43 +362,43 @@ class MockPrefs extends _i1.Mock implements _i3.Prefs {
returnValueForMissingStub: null,
);
@override
_i6.ThemeType get themeId => (super.noSuchMethod(
Invocation.getter(#theme),
returnValue: _i6.ThemeType.light,
) as _i6.ThemeType);
String get themeId => (super.noSuchMethod(
Invocation.getter(#themeId),
returnValue: '',
) as String);
@override
set themeId(_i6.ThemeType? theme) => super.noSuchMethod(
set themeId(String? themeId) => super.noSuchMethod(
Invocation.setter(
#theme,
theme,
#themeId,
themeId,
),
returnValueForMissingStub: null,
);
@override
_i6.ThemeType get systemBrightnessLightThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessLightTheme),
returnValue: _i6.ThemeType.light,
) as _i6.ThemeType);
String get systemBrightnessLightThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessLightThemeId),
returnValue: '',
) as String);
@override
set systemBrightnessLightThemeId(_i6.ThemeType? systemBrightnessLightTheme) =>
set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) =>
super.noSuchMethod(
Invocation.setter(
#systemBrightnessLightTheme,
systemBrightnessLightTheme,
#systemBrightnessLightThemeId,
systemBrightnessLightThemeId,
),
returnValueForMissingStub: null,
);
@override
_i6.ThemeType get systemBrightnessDarkThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessDarkTheme),
returnValue: _i6.ThemeType.light,
) as _i6.ThemeType);
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessDarkThemeId),
returnValue: '',
) as String);
@override
set systemBrightnessDarkThemeId(_i6.ThemeType? systemBrightnessDarkTheme) =>
set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) =>
super.noSuchMethod(
Invocation.setter(
#systemBrightnessDarkTheme,
systemBrightnessDarkTheme,
#systemBrightnessDarkThemeId,
systemBrightnessDarkThemeId,
),
returnValueForMissingStub: null,
);
@ -397,51 +408,51 @@ class MockPrefs extends _i1.Mock implements _i3.Prefs {
returnValue: false,
) as bool);
@override
_i7.Future<void> init() => (super.noSuchMethod(
_i6.Future<void> init() => (super.noSuchMethod(
Invocation.method(
#init,
[],
),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
) as _i7.Future<void>);
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
_i7.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
_i6.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
Invocation.method(
#incrementCurrentNotificationIndex,
[],
),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
) as _i7.Future<void>);
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
_i7.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
_i6.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
Invocation.method(
#isExternalCallsSet,
[],
),
returnValue: _i7.Future<bool>.value(false),
) as _i7.Future<bool>);
returnValue: _i6.Future<bool>.value(false),
) as _i6.Future<bool>);
@override
_i7.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
_i6.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
Invocation.method(
#saveUserID,
[userId],
),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
) as _i7.Future<void>);
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
_i7.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
_i6.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
Invocation.method(
#saveSignupEpoch,
[signupEpoch],
),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
) as _i7.Future<void>);
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
void addListener(_i8.VoidCallback? listener) => super.noSuchMethod(
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#addListener,
[listener],
@ -449,7 +460,7 @@ class MockPrefs extends _i1.Mock implements _i3.Prefs {
returnValueForMissingStub: null,
);
@override
void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod(
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#removeListener,
[listener],
@ -477,29 +488,29 @@ class MockPrefs extends _i1.Mock implements _i3.Prefs {
/// A class which mocks [TradesService].
///
/// See the documentation for Mockito's code generation for more information.
class MockTradesService extends _i1.Mock implements _i9.TradesService {
class MockTradesService extends _i1.Mock implements _i8.TradesService {
MockTradesService() {
_i1.throwOnMissingStub(this);
}
@override
List<_i10.Trade> get trades => (super.noSuchMethod(
List<_i9.Trade> get trades => (super.noSuchMethod(
Invocation.getter(#trades),
returnValue: <_i10.Trade>[],
) as List<_i10.Trade>);
returnValue: <_i9.Trade>[],
) as List<_i9.Trade>);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
) as bool);
@override
_i10.Trade? get(String? tradeId) => (super.noSuchMethod(Invocation.method(
_i9.Trade? get(String? tradeId) => (super.noSuchMethod(Invocation.method(
#get,
[tradeId],
)) as _i10.Trade?);
)) as _i9.Trade?);
@override
_i7.Future<void> add({
required _i10.Trade? trade,
_i6.Future<void> add({
required _i9.Trade? trade,
required bool? shouldNotifyListeners,
}) =>
(super.noSuchMethod(
@ -511,12 +522,12 @@ class MockTradesService extends _i1.Mock implements _i9.TradesService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
) as _i7.Future<void>);
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
_i7.Future<void> edit({
required _i10.Trade? trade,
_i6.Future<void> edit({
required _i9.Trade? trade,
required bool? shouldNotifyListeners,
}) =>
(super.noSuchMethod(
@ -528,12 +539,12 @@ class MockTradesService extends _i1.Mock implements _i9.TradesService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
) as _i7.Future<void>);
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
_i7.Future<void> delete({
required _i10.Trade? trade,
_i6.Future<void> delete({
required _i9.Trade? trade,
required bool? shouldNotifyListeners,
}) =>
(super.noSuchMethod(
@ -545,11 +556,11 @@ class MockTradesService extends _i1.Mock implements _i9.TradesService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
) as _i7.Future<void>);
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
_i7.Future<void> deleteByUuid({
_i6.Future<void> deleteByUuid({
required String? uuid,
required bool? shouldNotifyListeners,
}) =>
@ -562,11 +573,11 @@ class MockTradesService extends _i1.Mock implements _i9.TradesService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
) as _i7.Future<void>);
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
void addListener(_i8.VoidCallback? listener) => super.noSuchMethod(
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#addListener,
[listener],
@ -574,7 +585,7 @@ class MockTradesService extends _i1.Mock implements _i9.TradesService {
returnValueForMissingStub: null,
);
@override
void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod(
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#removeListener,
[listener],
@ -602,7 +613,7 @@ class MockTradesService extends _i1.Mock implements _i9.TradesService {
/// A class which mocks [TradeNotesService].
///
/// See the documentation for Mockito's code generation for more information.
class MockTradeNotesService extends _i1.Mock implements _i11.TradeNotesService {
class MockTradeNotesService extends _i1.Mock implements _i10.TradeNotesService {
MockTradeNotesService() {
_i1.throwOnMissingStub(this);
}
@ -627,7 +638,7 @@ class MockTradeNotesService extends _i1.Mock implements _i11.TradeNotesService {
returnValue: '',
) as String);
@override
_i7.Future<void> set({
_i6.Future<void> set({
required String? tradeId,
required String? note,
}) =>
@ -640,21 +651,21 @@ class MockTradeNotesService extends _i1.Mock implements _i11.TradeNotesService {
#note: note,
},
),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
) as _i7.Future<void>);
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
_i7.Future<void> delete({required String? tradeId}) => (super.noSuchMethod(
_i6.Future<void> delete({required String? tradeId}) => (super.noSuchMethod(
Invocation.method(
#delete,
[],
{#tradeId: tradeId},
),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
) as _i7.Future<void>);
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
void addListener(_i8.VoidCallback? listener) => super.noSuchMethod(
void addListener(_i7.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#addListener,
[listener],
@ -662,7 +673,7 @@ class MockTradeNotesService extends _i1.Mock implements _i11.TradeNotesService {
returnValueForMissingStub: null,
);
@override
void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod(
void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#removeListener,
[listener],
@ -690,13 +701,13 @@ class MockTradeNotesService extends _i1.Mock implements _i11.TradeNotesService {
/// A class which mocks [ChangeNowAPI].
///
/// See the documentation for Mockito's code generation for more information.
class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
class MockChangeNowAPI extends _i1.Mock implements _i11.ChangeNowAPI {
MockChangeNowAPI() {
_i1.throwOnMissingStub(this);
}
@override
set client(_i13.Client? _client) => super.noSuchMethod(
set client(_i12.Client? _client) => super.noSuchMethod(
Invocation.setter(
#client,
_client,
@ -704,7 +715,7 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
returnValueForMissingStub: null,
);
@override
_i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>> getAvailableCurrencies({
_i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>> getAvailableCurrencies({
bool? fixedRate,
bool? active,
}) =>
@ -718,8 +729,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
},
),
returnValue:
_i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>>.value(
_FakeExchangeResponse_0<List<_i14.Currency>>(
_i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>>.value(
_FakeExchangeResponse_0<List<_i13.Currency>>(
this,
Invocation.method(
#getAvailableCurrencies,
@ -730,26 +741,26 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
},
),
)),
) as _i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>>);
) as _i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>>);
@override
_i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>> getCurrenciesV2() =>
_i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>> getCurrenciesV2() =>
(super.noSuchMethod(
Invocation.method(
#getCurrenciesV2,
[],
),
returnValue:
_i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>>.value(
_FakeExchangeResponse_0<List<_i14.Currency>>(
_i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>>.value(
_FakeExchangeResponse_0<List<_i13.Currency>>(
this,
Invocation.method(
#getCurrenciesV2,
[],
),
)),
) as _i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>>);
) as _i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>>);
@override
_i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>> getPairedCurrencies({
_i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>> getPairedCurrencies({
required String? ticker,
bool? fixedRate,
}) =>
@ -763,8 +774,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
},
),
returnValue:
_i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>>.value(
_FakeExchangeResponse_0<List<_i14.Currency>>(
_i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>>.value(
_FakeExchangeResponse_0<List<_i13.Currency>>(
this,
Invocation.method(
#getPairedCurrencies,
@ -775,9 +786,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
},
),
)),
) as _i7.Future<_i2.ExchangeResponse<List<_i14.Currency>>>);
) as _i6.Future<_i2.ExchangeResponse<List<_i13.Currency>>>);
@override
_i7.Future<_i2.ExchangeResponse<_i15.Decimal>> getMinimalExchangeAmount({
_i6.Future<_i2.ExchangeResponse<_i14.Decimal>> getMinimalExchangeAmount({
required String? fromTicker,
required String? toTicker,
String? apiKey,
@ -792,8 +803,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
#apiKey: apiKey,
},
),
returnValue: _i7.Future<_i2.ExchangeResponse<_i15.Decimal>>.value(
_FakeExchangeResponse_0<_i15.Decimal>(
returnValue: _i6.Future<_i2.ExchangeResponse<_i14.Decimal>>.value(
_FakeExchangeResponse_0<_i14.Decimal>(
this,
Invocation.method(
#getMinimalExchangeAmount,
@ -805,9 +816,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
},
),
)),
) as _i7.Future<_i2.ExchangeResponse<_i15.Decimal>>);
) as _i6.Future<_i2.ExchangeResponse<_i14.Decimal>>);
@override
_i7.Future<_i2.ExchangeResponse<_i16.Range>> getRange({
_i6.Future<_i2.ExchangeResponse<_i15.Range>> getRange({
required String? fromTicker,
required String? toTicker,
required bool? isFixedRate,
@ -824,8 +835,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
#apiKey: apiKey,
},
),
returnValue: _i7.Future<_i2.ExchangeResponse<_i16.Range>>.value(
_FakeExchangeResponse_0<_i16.Range>(
returnValue: _i6.Future<_i2.ExchangeResponse<_i15.Range>>.value(
_FakeExchangeResponse_0<_i15.Range>(
this,
Invocation.method(
#getRange,
@ -838,12 +849,12 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
},
),
)),
) as _i7.Future<_i2.ExchangeResponse<_i16.Range>>);
) as _i6.Future<_i2.ExchangeResponse<_i15.Range>>);
@override
_i7.Future<_i2.ExchangeResponse<_i17.Estimate>> getEstimatedExchangeAmount({
_i6.Future<_i2.ExchangeResponse<_i16.Estimate>> getEstimatedExchangeAmount({
required String? fromTicker,
required String? toTicker,
required _i15.Decimal? fromAmount,
required _i14.Decimal? fromAmount,
String? apiKey,
}) =>
(super.noSuchMethod(
@ -857,8 +868,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
#apiKey: apiKey,
},
),
returnValue: _i7.Future<_i2.ExchangeResponse<_i17.Estimate>>.value(
_FakeExchangeResponse_0<_i17.Estimate>(
returnValue: _i6.Future<_i2.ExchangeResponse<_i16.Estimate>>.value(
_FakeExchangeResponse_0<_i16.Estimate>(
this,
Invocation.method(
#getEstimatedExchangeAmount,
@ -871,13 +882,13 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
},
),
)),
) as _i7.Future<_i2.ExchangeResponse<_i17.Estimate>>);
) as _i6.Future<_i2.ExchangeResponse<_i16.Estimate>>);
@override
_i7.Future<_i2.ExchangeResponse<_i17.Estimate>>
_i6.Future<_i2.ExchangeResponse<_i16.Estimate>>
getEstimatedExchangeAmountFixedRate({
required String? fromTicker,
required String? toTicker,
required _i15.Decimal? fromAmount,
required _i14.Decimal? fromAmount,
required bool? reversed,
bool? useRateId = true,
String? apiKey,
@ -895,8 +906,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
#apiKey: apiKey,
},
),
returnValue: _i7.Future<_i2.ExchangeResponse<_i17.Estimate>>.value(
_FakeExchangeResponse_0<_i17.Estimate>(
returnValue: _i6.Future<_i2.ExchangeResponse<_i16.Estimate>>.value(
_FakeExchangeResponse_0<_i16.Estimate>(
this,
Invocation.method(
#getEstimatedExchangeAmountFixedRate,
@ -911,17 +922,17 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
},
),
)),
) as _i7.Future<_i2.ExchangeResponse<_i17.Estimate>>);
) as _i6.Future<_i2.ExchangeResponse<_i16.Estimate>>);
@override
_i7.Future<_i2.ExchangeResponse<_i18.CNExchangeEstimate>>
_i6.Future<_i2.ExchangeResponse<_i17.CNExchangeEstimate>>
getEstimatedExchangeAmountV2({
required String? fromTicker,
required String? toTicker,
required _i18.CNEstimateType? fromOrTo,
required _i15.Decimal? amount,
required _i17.CNEstimateType? fromOrTo,
required _i14.Decimal? amount,
String? fromNetwork,
String? toNetwork,
_i18.CNFlowType? flow = _i18.CNFlowType.standard,
_i17.CNFlowType? flow = _i17.CNFlowType.standard,
String? apiKey,
}) =>
(super.noSuchMethod(
@ -940,8 +951,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
},
),
returnValue:
_i7.Future<_i2.ExchangeResponse<_i18.CNExchangeEstimate>>.value(
_FakeExchangeResponse_0<_i18.CNExchangeEstimate>(
_i6.Future<_i2.ExchangeResponse<_i17.CNExchangeEstimate>>.value(
_FakeExchangeResponse_0<_i17.CNExchangeEstimate>(
this,
Invocation.method(
#getEstimatedExchangeAmountV2,
@ -958,18 +969,18 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
},
),
)),
) as _i7.Future<_i2.ExchangeResponse<_i18.CNExchangeEstimate>>);
) as _i6.Future<_i2.ExchangeResponse<_i17.CNExchangeEstimate>>);
@override
_i7.Future<_i2.ExchangeResponse<List<_i19.FixedRateMarket>>>
_i6.Future<_i2.ExchangeResponse<List<_i18.FixedRateMarket>>>
getAvailableFixedRateMarkets({String? apiKey}) => (super.noSuchMethod(
Invocation.method(
#getAvailableFixedRateMarkets,
[],
{#apiKey: apiKey},
),
returnValue: _i7.Future<
_i2.ExchangeResponse<List<_i19.FixedRateMarket>>>.value(
_FakeExchangeResponse_0<List<_i19.FixedRateMarket>>(
returnValue: _i6.Future<
_i2.ExchangeResponse<List<_i18.FixedRateMarket>>>.value(
_FakeExchangeResponse_0<List<_i18.FixedRateMarket>>(
this,
Invocation.method(
#getAvailableFixedRateMarkets,
@ -977,14 +988,14 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
{#apiKey: apiKey},
),
)),
) as _i7.Future<_i2.ExchangeResponse<List<_i19.FixedRateMarket>>>);
) as _i6.Future<_i2.ExchangeResponse<List<_i18.FixedRateMarket>>>);
@override
_i7.Future<_i2.ExchangeResponse<_i20.ExchangeTransaction>>
_i6.Future<_i2.ExchangeResponse<_i19.ExchangeTransaction>>
createStandardExchangeTransaction({
required String? fromTicker,
required String? toTicker,
required String? receivingAddress,
required _i15.Decimal? amount,
required _i14.Decimal? amount,
String? extraId = r'',
String? userId = r'',
String? contactEmail = r'',
@ -1009,9 +1020,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
#apiKey: apiKey,
},
),
returnValue: _i7.Future<
_i2.ExchangeResponse<_i20.ExchangeTransaction>>.value(
_FakeExchangeResponse_0<_i20.ExchangeTransaction>(
returnValue: _i6.Future<
_i2.ExchangeResponse<_i19.ExchangeTransaction>>.value(
_FakeExchangeResponse_0<_i19.ExchangeTransaction>(
this,
Invocation.method(
#createStandardExchangeTransaction,
@ -1030,14 +1041,14 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
},
),
)),
) as _i7.Future<_i2.ExchangeResponse<_i20.ExchangeTransaction>>);
) as _i6.Future<_i2.ExchangeResponse<_i19.ExchangeTransaction>>);
@override
_i7.Future<_i2.ExchangeResponse<_i20.ExchangeTransaction>>
_i6.Future<_i2.ExchangeResponse<_i19.ExchangeTransaction>>
createFixedRateExchangeTransaction({
required String? fromTicker,
required String? toTicker,
required String? receivingAddress,
required _i15.Decimal? amount,
required _i14.Decimal? amount,
required String? rateId,
required bool? reversed,
String? extraId = r'',
@ -1066,9 +1077,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
#apiKey: apiKey,
},
),
returnValue: _i7.Future<
_i2.ExchangeResponse<_i20.ExchangeTransaction>>.value(
_FakeExchangeResponse_0<_i20.ExchangeTransaction>(
returnValue: _i6.Future<
_i2.ExchangeResponse<_i19.ExchangeTransaction>>.value(
_FakeExchangeResponse_0<_i19.ExchangeTransaction>(
this,
Invocation.method(
#createFixedRateExchangeTransaction,
@ -1089,9 +1100,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
},
),
)),
) as _i7.Future<_i2.ExchangeResponse<_i20.ExchangeTransaction>>);
) as _i6.Future<_i2.ExchangeResponse<_i19.ExchangeTransaction>>);
@override
_i7.Future<_i2.ExchangeResponse<_i21.ExchangeTransactionStatus>>
_i6.Future<_i2.ExchangeResponse<_i20.ExchangeTransactionStatus>>
getTransactionStatus({
required String? id,
String? apiKey,
@ -1105,9 +1116,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
#apiKey: apiKey,
},
),
returnValue: _i7.Future<
_i2.ExchangeResponse<_i21.ExchangeTransactionStatus>>.value(
_FakeExchangeResponse_0<_i21.ExchangeTransactionStatus>(
returnValue: _i6.Future<
_i2.ExchangeResponse<_i20.ExchangeTransactionStatus>>.value(
_FakeExchangeResponse_0<_i20.ExchangeTransactionStatus>(
this,
Invocation.method(
#getTransactionStatus,
@ -1118,10 +1129,10 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
},
),
)),
) as _i7
.Future<_i2.ExchangeResponse<_i21.ExchangeTransactionStatus>>);
) as _i6
.Future<_i2.ExchangeResponse<_i20.ExchangeTransactionStatus>>);
@override
_i7.Future<_i2.ExchangeResponse<List<_i22.Pair>>>
_i6.Future<_i2.ExchangeResponse<List<_i21.Pair>>>
getAvailableFloatingRatePairs({bool? includePartners = false}) =>
(super.noSuchMethod(
Invocation.method(
@ -1130,8 +1141,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
{#includePartners: includePartners},
),
returnValue:
_i7.Future<_i2.ExchangeResponse<List<_i22.Pair>>>.value(
_FakeExchangeResponse_0<List<_i22.Pair>>(
_i6.Future<_i2.ExchangeResponse<List<_i21.Pair>>>.value(
_FakeExchangeResponse_0<List<_i21.Pair>>(
this,
Invocation.method(
#getAvailableFloatingRatePairs,
@ -1139,5 +1150,5 @@ class MockChangeNowAPI extends _i1.Mock implements _i12.ChangeNowAPI {
{#includePartners: includePartners},
),
)),
) as _i7.Future<_i2.ExchangeResponse<List<_i22.Pair>>>);
) as _i6.Future<_i2.ExchangeResponse<List<_i21.Pair>>>);
}

View file

@ -9,7 +9,7 @@ import 'dart:ui' as _i13;
import 'package:flutter/foundation.dart' as _i4;
import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5;
import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/models/node_model.dart' as _i17;
import 'package:stackwallet/models/node_model.dart' as _i16;
import 'package:stackwallet/services/coins/manager.dart' as _i6;
import 'package:stackwallet/services/node_service.dart' as _i3;
import 'package:stackwallet/services/wallets.dart' as _i8;
@ -20,7 +20,6 @@ import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i14;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i7;
import 'package:stackwallet/utilities/prefs.dart' as _i12;
import 'package:stackwallet/utilities/theme/color_theme.dart' as _i16;
import 'package:tuple/tuple.dart' as _i10;
// ignore_for_file: type=lint
@ -419,6 +418,19 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null,
);
@override
bool get randomizePIN => (super.noSuchMethod(
Invocation.getter(#randomizePIN),
returnValue: false,
) as bool);
@override
set randomizePIN(bool? randomizePIN) => super.noSuchMethod(
Invocation.setter(
#randomizePIN,
randomizePIN,
),
returnValueForMissingStub: null,
);
@override
bool get useBiometrics => (super.noSuchMethod(
Invocation.getter(#useBiometrics),
returnValue: false,
@ -589,44 +601,43 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null,
);
@override
_i16.ThemeType get themeId => (super.noSuchMethod(
Invocation.getter(#theme),
returnValue: _i16.ThemeType.light,
) as _i16.ThemeType);
String get themeId => (super.noSuchMethod(
Invocation.getter(#themeId),
returnValue: '',
) as String);
@override
set themeId(_i16.ThemeType? theme) => super.noSuchMethod(
set themeId(String? themeId) => super.noSuchMethod(
Invocation.setter(
#theme,
theme,
#themeId,
themeId,
),
returnValueForMissingStub: null,
);
@override
_i16.ThemeType get systemBrightnessLightThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessLightTheme),
returnValue: _i16.ThemeType.light,
) as _i16.ThemeType);
String get systemBrightnessLightThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessLightThemeId),
returnValue: '',
) as String);
@override
set systemBrightnessLightThemeId(
_i16.ThemeType? systemBrightnessLightTheme) =>
set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) =>
super.noSuchMethod(
Invocation.setter(
#systemBrightnessLightTheme,
systemBrightnessLightTheme,
#systemBrightnessLightThemeId,
systemBrightnessLightThemeId,
),
returnValueForMissingStub: null,
);
@override
_i16.ThemeType get systemBrightnessDarkThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessDarkTheme),
returnValue: _i16.ThemeType.light,
) as _i16.ThemeType);
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessDarkThemeId),
returnValue: '',
) as String);
@override
set systemBrightnessDarkThemeId(_i16.ThemeType? systemBrightnessDarkTheme) =>
set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) =>
super.noSuchMethod(
Invocation.setter(
#systemBrightnessDarkTheme,
systemBrightnessDarkTheme,
#systemBrightnessDarkThemeId,
systemBrightnessDarkThemeId,
),
returnValueForMissingStub: null,
);
@ -730,15 +741,15 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
),
) as _i7.SecureStorageInterface);
@override
List<_i17.NodeModel> get primaryNodes => (super.noSuchMethod(
List<_i16.NodeModel> get primaryNodes => (super.noSuchMethod(
Invocation.getter(#primaryNodes),
returnValue: <_i17.NodeModel>[],
) as List<_i17.NodeModel>);
returnValue: <_i16.NodeModel>[],
) as List<_i16.NodeModel>);
@override
List<_i17.NodeModel> get nodes => (super.noSuchMethod(
List<_i16.NodeModel> get nodes => (super.noSuchMethod(
Invocation.getter(#nodes),
returnValue: <_i17.NodeModel>[],
) as List<_i17.NodeModel>);
returnValue: <_i16.NodeModel>[],
) as List<_i16.NodeModel>);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
@ -756,7 +767,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
@override
_i11.Future<void> setPrimaryNodeFor({
required _i9.Coin? coin,
required _i17.NodeModel? node,
required _i16.NodeModel? node,
bool? shouldNotifyListeners = false,
}) =>
(super.noSuchMethod(
@ -773,40 +784,40 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i17.NodeModel? getPrimaryNodeFor({required _i9.Coin? coin}) =>
_i16.NodeModel? getPrimaryNodeFor({required _i9.Coin? coin}) =>
(super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor,
[],
{#coin: coin},
)) as _i17.NodeModel?);
)) as _i16.NodeModel?);
@override
List<_i17.NodeModel> getNodesFor(_i9.Coin? coin) => (super.noSuchMethod(
List<_i16.NodeModel> getNodesFor(_i9.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getNodesFor,
[coin],
),
returnValue: <_i17.NodeModel>[],
) as List<_i17.NodeModel>);
returnValue: <_i16.NodeModel>[],
) as List<_i16.NodeModel>);
@override
_i17.NodeModel? getNodeById({required String? id}) =>
_i16.NodeModel? getNodeById({required String? id}) =>
(super.noSuchMethod(Invocation.method(
#getNodeById,
[],
{#id: id},
)) as _i17.NodeModel?);
)) as _i16.NodeModel?);
@override
List<_i17.NodeModel> failoverNodesFor({required _i9.Coin? coin}) =>
List<_i16.NodeModel> failoverNodesFor({required _i9.Coin? coin}) =>
(super.noSuchMethod(
Invocation.method(
#failoverNodesFor,
[],
{#coin: coin},
),
returnValue: <_i17.NodeModel>[],
) as List<_i17.NodeModel>);
returnValue: <_i16.NodeModel>[],
) as List<_i16.NodeModel>);
@override
_i11.Future<void> add(
_i17.NodeModel? node,
_i16.NodeModel? node,
String? password,
bool? shouldNotifyListeners,
) =>
@ -858,7 +869,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
) as _i11.Future<void>);
@override
_i11.Future<void> edit(
_i17.NodeModel? editedNode,
_i16.NodeModel? editedNode,
String? password,
bool? shouldNotifyListeners,
) =>

View file

@ -6,7 +6,7 @@
import 'dart:async' as _i18;
import 'dart:ui' as _i20;
import 'package:decimal/decimal.dart' as _i29;
import 'package:decimal/decimal.dart' as _i28;
import 'package:flutter/foundation.dart' as _i4;
import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5;
import 'package:mockito/mockito.dart' as _i1;
@ -22,8 +22,8 @@ import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as _i22;
import 'package:stackwallet/services/coins/manager.dart' as _i6;
import 'package:stackwallet/services/locale_service.dart' as _i24;
import 'package:stackwallet/services/node_service.dart' as _i3;
import 'package:stackwallet/services/notes_service.dart' as _i30;
import 'package:stackwallet/services/price_service.dart' as _i28;
import 'package:stackwallet/services/notes_service.dart' as _i29;
import 'package:stackwallet/services/price_service.dart' as _i27;
import 'package:stackwallet/services/transaction_notification_tracker.dart'
as _i11;
import 'package:stackwallet/services/wallets.dart' as _i16;
@ -33,7 +33,6 @@ import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i26;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i17;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i25;
import 'package:stackwallet/utilities/prefs.dart' as _i19;
import 'package:stackwallet/utilities/theme/color_theme.dart' as _i27;
import 'package:tuple/tuple.dart' as _i15;
// ignore_for_file: type=lint
@ -2282,6 +2281,19 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs {
returnValueForMissingStub: null,
);
@override
bool get randomizePIN => (super.noSuchMethod(
Invocation.getter(#randomizePIN),
returnValue: false,
) as bool);
@override
set randomizePIN(bool? randomizePIN) => super.noSuchMethod(
Invocation.setter(
#randomizePIN,
randomizePIN,
),
returnValueForMissingStub: null,
);
@override
bool get useBiometrics => (super.noSuchMethod(
Invocation.getter(#useBiometrics),
returnValue: false,
@ -2452,44 +2464,43 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs {
returnValueForMissingStub: null,
);
@override
_i27.ThemeType get themeId => (super.noSuchMethod(
Invocation.getter(#theme),
returnValue: _i27.ThemeType.light,
) as _i27.ThemeType);
String get themeId => (super.noSuchMethod(
Invocation.getter(#themeId),
returnValue: '',
) as String);
@override
set themeId(_i27.ThemeType? theme) => super.noSuchMethod(
set themeId(String? themeId) => super.noSuchMethod(
Invocation.setter(
#theme,
theme,
#themeId,
themeId,
),
returnValueForMissingStub: null,
);
@override
_i27.ThemeType get systemBrightnessLightThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessLightTheme),
returnValue: _i27.ThemeType.light,
) as _i27.ThemeType);
String get systemBrightnessLightThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessLightThemeId),
returnValue: '',
) as String);
@override
set systemBrightnessLightThemeId(
_i27.ThemeType? systemBrightnessLightTheme) =>
set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) =>
super.noSuchMethod(
Invocation.setter(
#systemBrightnessLightTheme,
systemBrightnessLightTheme,
#systemBrightnessLightThemeId,
systemBrightnessLightThemeId,
),
returnValueForMissingStub: null,
);
@override
_i27.ThemeType get systemBrightnessDarkThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessDarkTheme),
returnValue: _i27.ThemeType.light,
) as _i27.ThemeType);
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
Invocation.getter(#systemBrightnessDarkThemeId),
returnValue: '',
) as String);
@override
set systemBrightnessDarkThemeId(_i27.ThemeType? systemBrightnessDarkTheme) =>
set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) =>
super.noSuchMethod(
Invocation.setter(
#systemBrightnessDarkTheme,
systemBrightnessDarkTheme,
#systemBrightnessDarkThemeId,
systemBrightnessDarkThemeId,
),
returnValueForMissingStub: null,
);
@ -2579,7 +2590,7 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs {
/// A class which mocks [PriceService].
///
/// See the documentation for Mockito's code generation for more information.
class MockPriceService extends _i1.Mock implements _i28.PriceService {
class MockPriceService extends _i1.Mock implements _i27.PriceService {
MockPriceService() {
_i1.throwOnMissingStub(this);
}
@ -2616,35 +2627,35 @@ class MockPriceService extends _i1.Mock implements _i28.PriceService {
returnValue: false,
) as bool);
@override
_i15.Tuple2<_i29.Decimal, double> getPrice(_i17.Coin? coin) =>
_i15.Tuple2<_i28.Decimal, double> getPrice(_i17.Coin? coin) =>
(super.noSuchMethod(
Invocation.method(
#getPrice,
[coin],
),
returnValue: _FakeTuple2_13<_i29.Decimal, double>(
returnValue: _FakeTuple2_13<_i28.Decimal, double>(
this,
Invocation.method(
#getPrice,
[coin],
),
),
) as _i15.Tuple2<_i29.Decimal, double>);
) as _i15.Tuple2<_i28.Decimal, double>);
@override
_i15.Tuple2<_i29.Decimal, double> getTokenPrice(String? contractAddress) =>
_i15.Tuple2<_i28.Decimal, double> getTokenPrice(String? contractAddress) =>
(super.noSuchMethod(
Invocation.method(
#getTokenPrice,
[contractAddress],
),
returnValue: _FakeTuple2_13<_i29.Decimal, double>(
returnValue: _FakeTuple2_13<_i28.Decimal, double>(
this,
Invocation.method(
#getTokenPrice,
[contractAddress],
),
),
) as _i15.Tuple2<_i29.Decimal, double>);
) as _i15.Tuple2<_i28.Decimal, double>);
@override
_i18.Future<void> updatePrice() => (super.noSuchMethod(
Invocation.method(
@ -2707,7 +2718,7 @@ class MockPriceService extends _i1.Mock implements _i28.PriceService {
/// A class which mocks [NotesService].
///
/// See the documentation for Mockito's code generation for more information.
class MockNotesService extends _i1.Mock implements _i30.NotesService {
class MockNotesService extends _i1.Mock implements _i29.NotesService {
MockNotesService() {
_i1.throwOnMissingStub(this);
}