build runner

This commit is contained in:
julian 2023-11-16 10:59:09 -06:00
parent c6150b23d9
commit 2811063699
10 changed files with 1660 additions and 1761 deletions

View file

@ -176,7 +176,7 @@ WalletInfo _walletInfoDeserialize(
cachedChainHeight: reader.readLongOrNull(offsets[1]) ?? 0,
cachedReceivingAddress: reader.readStringOrNull(offsets[2]) ?? "",
coinName: reader.readString(offsets[3]),
favouriteOrderIndex: reader.readLongOrNull(offsets[4]) ?? 0,
favouriteOrderIndex: reader.readLongOrNull(offsets[4]) ?? -1,
isMnemonicVerified: reader.readBoolOrNull(offsets[6]) ?? false,
mainAddressType: _WalletInfomainAddressTypeValueEnumMap[
reader.readByteOrNull(offsets[7])] ??
@ -206,7 +206,7 @@ P _walletInfoDeserializeProp<P>(
case 3:
return (reader.readString(offset)) as P;
case 4:
return (reader.readLongOrNull(offset) ?? 0) as P;
return (reader.readLongOrNull(offset) ?? -1) as P;
case 5:
return (reader.readBool(offset)) as P;
case 6:

View file

@ -22,7 +22,7 @@ void main() {
});
group("getAnonymitySet", () {
// test("empty set cache call", () async {
// final client = MockElectrumX();
// final client = MockElectrumXClient();
// when(
// client.getAnonymitySet(
// groupId: "1",
@ -58,7 +58,7 @@ void main() {
// final box = await Hive.openBox('Some coinName_anonymitySetCache');
// await box.put("1", storedData);
//
// final client = MockElectrumX();
// final client = MockElectrumXClient();
// when(
// client.getAnonymitySet(
// groupId: "1",
@ -90,7 +90,7 @@ void main() {
// });
// test("getAnonymitySet throws", () async {
// final client = MockElectrumX();
// final client = MockElectrumXClient();
// when(
// client.getAnonymitySet(
// groupId: "1",
@ -116,7 +116,7 @@ void main() {
});
test("getTransaction throws", () async {
final client = MockElectrumX();
final client = MockElectrumXClient();
when(
client.getTransaction(
txHash: "some hash",
@ -137,7 +137,7 @@ void main() {
test("clearSharedTransactionCache", () async {
final cachedClient = CachedElectrumXClient(
electrumXClient: MockElectrumX(),
electrumXClient: MockElectrumXClient(),
);
bool didThrow = false;
@ -164,7 +164,8 @@ void main() {
useSSL: true,
);
final client = CachedElectrumXClient.from(electrumXClient: MockElectrumX());
final client =
CachedElectrumXClient.from(electrumXClient: MockElectrumXClient());
expect(client, isA<CachedElectrumXClient>());
});

View file

@ -3,7 +3,7 @@
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i14;
import 'dart:async' as _i13;
import 'dart:typed_data' as _i22;
import 'dart:ui' as _i17;
@ -19,16 +19,16 @@ import 'package:stackwallet/services/coins/coin_service.dart' as _i26;
import 'package:stackwallet/services/locale_service.dart' as _i19;
import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/wallets.dart' as _i12;
import 'package:stackwallet/services/wallets_service.dart' as _i16;
import 'package:stackwallet/services/wallets_service.dart' as _i15;
import 'package:stackwallet/themes/theme_service.dart' as _i20;
import 'package:stackwallet/utilities/amount/amount.dart' as _i11;
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i25;
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i24;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i13;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i23;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i6;
import 'package:stackwallet/utilities/prefs.dart' as _i15;
import 'package:stackwallet/utilities/prefs.dart' as _i14;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4;
import 'package:stackwallet/wallets/wallet/mixins/cash_fusion.dart' as _i8;
@ -188,19 +188,6 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
@override
List<({_i13.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})>
get walletsByCoin => (super.noSuchMethod(
Invocation.getter(#walletsByCoin),
returnValue: <({
_i13.Coin coin,
List<_i5.Wallet<_i4.CryptoCurrency>> wallets
})>[],
) as List<
({
_i13.Coin coin,
List<_i5.Wallet<_i4.CryptoCurrency>> wallets
})>);
@override
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
(super.noSuchMethod(
Invocation.method(
@ -224,7 +211,7 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
returnValueForMissingStub: null,
);
@override
_i14.Future<void> deleteWallet(
_i13.Future<void> deleteWallet(
String? walletId,
_i6.SecureStorageInterface? secureStorage,
) =>
@ -236,12 +223,12 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
secureStorage,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> load(
_i15.Prefs? prefs,
_i13.Future<void> load(
_i14.Prefs? prefs,
_i3.MainDB? mainDB,
) =>
(super.noSuchMethod(
@ -252,12 +239,12 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
mainDB,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> loadAfterStackRestore(
_i15.Prefs? prefs,
_i13.Future<void> loadAfterStackRestore(
_i14.Prefs? prefs,
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
) =>
(super.noSuchMethod(
@ -268,33 +255,33 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
wallets,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
}
/// A class which mocks [WalletsService].
///
/// See the documentation for Mockito's code generation for more information.
class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
MockWalletsService() {
_i1.throwOnMissingStub(this);
}
@override
_i14.Future<Map<String, _i16.WalletInfo>> get walletNames =>
_i13.Future<Map<String, _i15.WalletInfo>> get walletNames =>
(super.noSuchMethod(
Invocation.getter(#walletNames),
returnValue: _i14.Future<Map<String, _i16.WalletInfo>>.value(
<String, _i16.WalletInfo>{}),
) as _i14.Future<Map<String, _i16.WalletInfo>>);
returnValue: _i13.Future<Map<String, _i15.WalletInfo>>.value(
<String, _i15.WalletInfo>{}),
) as _i13.Future<Map<String, _i15.WalletInfo>>);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
) as bool);
@override
_i14.Future<bool> renameWallet({
_i13.Future<bool> renameWallet({
required String? from,
required String? to,
required bool? shouldNotifyListeners,
@ -309,21 +296,21 @@ class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
Map<String, _i16.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
Map<String, _i15.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
Invocation.method(
#fetchWalletsData,
[],
),
returnValue: <String, _i16.WalletInfo>{},
) as Map<String, _i16.WalletInfo>);
returnValue: <String, _i15.WalletInfo>{},
) as Map<String, _i15.WalletInfo>);
@override
_i14.Future<void> addExistingStackWallet({
_i13.Future<void> addExistingStackWallet({
required String? name,
required String? walletId,
required _i13.Coin? coin,
required _i16.Coin? coin,
required bool? shouldNotifyListeners,
}) =>
(super.noSuchMethod(
@ -337,13 +324,13 @@ class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<String?> addNewWallet({
_i13.Future<String?> addNewWallet({
required String? name,
required _i13.Coin? coin,
required _i16.Coin? coin,
required bool? shouldNotifyListeners,
}) =>
(super.noSuchMethod(
@ -356,46 +343,46 @@ class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i14.Future<String?>.value(),
) as _i14.Future<String?>);
returnValue: _i13.Future<String?>.value(),
) as _i13.Future<String?>);
@override
_i14.Future<List<String>> getFavoriteWalletIds() => (super.noSuchMethod(
_i13.Future<List<String>> getFavoriteWalletIds() => (super.noSuchMethod(
Invocation.method(
#getFavoriteWalletIds,
[],
),
returnValue: _i14.Future<List<String>>.value(<String>[]),
) as _i14.Future<List<String>>);
returnValue: _i13.Future<List<String>>.value(<String>[]),
) as _i13.Future<List<String>>);
@override
_i14.Future<void> saveFavoriteWalletIds(List<String>? walletIds) =>
_i13.Future<void> saveFavoriteWalletIds(List<String>? walletIds) =>
(super.noSuchMethod(
Invocation.method(
#saveFavoriteWalletIds,
[walletIds],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> addFavorite(String? walletId) => (super.noSuchMethod(
_i13.Future<void> addFavorite(String? walletId) => (super.noSuchMethod(
Invocation.method(
#addFavorite,
[walletId],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> removeFavorite(String? walletId) => (super.noSuchMethod(
_i13.Future<void> removeFavorite(String? walletId) => (super.noSuchMethod(
Invocation.method(
#removeFavorite,
[walletId],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> moveFavorite({
_i13.Future<void> moveFavorite({
required int? fromIndex,
required int? toIndex,
}) =>
@ -408,48 +395,48 @@ class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
#toIndex: toIndex,
},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<bool> checkForDuplicate(String? name) => (super.noSuchMethod(
_i13.Future<bool> checkForDuplicate(String? name) => (super.noSuchMethod(
Invocation.method(
#checkForDuplicate,
[name],
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
_i14.Future<String?> getWalletId(String? walletName) => (super.noSuchMethod(
_i13.Future<String?> getWalletId(String? walletName) => (super.noSuchMethod(
Invocation.method(
#getWalletId,
[walletName],
),
returnValue: _i14.Future<String?>.value(),
) as _i14.Future<String?>);
returnValue: _i13.Future<String?>.value(),
) as _i13.Future<String?>);
@override
_i14.Future<bool> isMnemonicVerified({required String? walletId}) =>
_i13.Future<bool> isMnemonicVerified({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#isMnemonicVerified,
[],
{#walletId: walletId},
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
_i14.Future<void> setMnemonicVerified({required String? walletId}) =>
_i13.Future<void> setMnemonicVerified({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#setMnemonicVerified,
[],
{#walletId: walletId},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<int> deleteWallet(
_i13.Future<int> deleteWallet(
String? name,
bool? shouldNotifyListeners,
) =>
@ -461,18 +448,18 @@ class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
shouldNotifyListeners,
],
),
returnValue: _i14.Future<int>.value(0),
) as _i14.Future<int>);
returnValue: _i13.Future<int>.value(0),
) as _i13.Future<int>);
@override
_i14.Future<void> refreshWallets(bool? shouldNotifyListeners) =>
_i13.Future<void> refreshWallets(bool? shouldNotifyListeners) =>
(super.noSuchMethod(
Invocation.method(
#refreshWallets,
[shouldNotifyListeners],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
@ -539,17 +526,17 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValue: false,
) as bool);
@override
_i14.Future<void> updateDefaults() => (super.noSuchMethod(
_i13.Future<void> updateDefaults() => (super.noSuchMethod(
Invocation.method(
#updateDefaults,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> setPrimaryNodeFor({
required _i13.Coin? coin,
_i13.Future<void> setPrimaryNodeFor({
required _i16.Coin? coin,
required _i18.NodeModel? node,
bool? shouldNotifyListeners = false,
}) =>
@ -563,18 +550,18 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i18.NodeModel? getPrimaryNodeFor({required _i13.Coin? coin}) =>
_i18.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) =>
(super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor,
[],
{#coin: coin},
)) as _i18.NodeModel?);
@override
List<_i18.NodeModel> getNodesFor(_i13.Coin? coin) => (super.noSuchMethod(
List<_i18.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getNodesFor,
[coin],
@ -589,7 +576,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
{#id: id},
)) as _i18.NodeModel?);
@override
List<_i18.NodeModel> failoverNodesFor({required _i13.Coin? coin}) =>
List<_i18.NodeModel> failoverNodesFor({required _i16.Coin? coin}) =>
(super.noSuchMethod(
Invocation.method(
#failoverNodesFor,
@ -599,7 +586,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValue: <_i18.NodeModel>[],
) as List<_i18.NodeModel>);
@override
_i14.Future<void> add(
_i13.Future<void> add(
_i18.NodeModel? node,
String? password,
bool? shouldNotifyListeners,
@ -613,11 +600,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> delete(
_i13.Future<void> delete(
String? id,
bool? shouldNotifyListeners,
) =>
@ -629,11 +616,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> setEnabledState(
_i13.Future<void> setEnabledState(
String? id,
bool? enabled,
bool? shouldNotifyListeners,
@ -647,11 +634,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> edit(
_i13.Future<void> edit(
_i18.NodeModel? editedNode,
String? password,
bool? shouldNotifyListeners,
@ -665,18 +652,18 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> updateCommunityNodes() => (super.noSuchMethod(
_i13.Future<void> updateCommunityNodes() => (super.noSuchMethod(
Invocation.method(
#updateCommunityNodes,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
@ -730,15 +717,15 @@ class MockLocaleService extends _i1.Mock implements _i19.LocaleService {
returnValue: false,
) as bool);
@override
_i14.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
_i13.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
Invocation.method(
#loadLocale,
[],
{#notify: notify},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
@ -819,57 +806,57 @@ class MockThemeService extends _i1.Mock implements _i20.ThemeService {
returnValueForMissingStub: null,
);
@override
_i14.Future<void> install({required _i22.Uint8List? themeArchiveData}) =>
_i13.Future<void> install({required _i22.Uint8List? themeArchiveData}) =>
(super.noSuchMethod(
Invocation.method(
#install,
[],
{#themeArchiveData: themeArchiveData},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
_i13.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
Invocation.method(
#remove,
[],
{#themeId: themeId},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
_i13.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
Invocation.method(
#checkDefaultThemesOnStartup,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<bool> verifyInstalled({required String? themeId}) =>
_i13.Future<bool> verifyInstalled({required String? themeId}) =>
(super.noSuchMethod(
Invocation.method(
#verifyInstalled,
[],
{#themeId: themeId},
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
_i14.Future<List<_i20.StackThemeMetaData>> fetchThemes() =>
_i13.Future<List<_i20.StackThemeMetaData>> fetchThemes() =>
(super.noSuchMethod(
Invocation.method(
#fetchThemes,
[],
),
returnValue: _i14.Future<List<_i20.StackThemeMetaData>>.value(
returnValue: _i13.Future<List<_i20.StackThemeMetaData>>.value(
<_i20.StackThemeMetaData>[]),
) as _i14.Future<List<_i20.StackThemeMetaData>>);
) as _i13.Future<List<_i20.StackThemeMetaData>>);
@override
_i14.Future<_i22.Uint8List> fetchTheme(
_i13.Future<_i22.Uint8List> fetchTheme(
{required _i20.StackThemeMetaData? themeMetaData}) =>
(super.noSuchMethod(
Invocation.method(
@ -877,8 +864,8 @@ class MockThemeService extends _i1.Mock implements _i20.ThemeService {
[],
{#themeMetaData: themeMetaData},
),
returnValue: _i14.Future<_i22.Uint8List>.value(_i22.Uint8List(0)),
) as _i14.Future<_i22.Uint8List>);
returnValue: _i13.Future<_i22.Uint8List>.value(_i22.Uint8List(0)),
) as _i13.Future<_i22.Uint8List>);
@override
_i21.StackTheme? getTheme({required String? themeId}) =>
(super.noSuchMethod(Invocation.method(
@ -891,7 +878,7 @@ class MockThemeService extends _i1.Mock implements _i20.ThemeService {
/// A class which mocks [Prefs].
///
/// See the documentation for Mockito's code generation for more information.
class MockPrefs extends _i1.Mock implements _i15.Prefs {
class MockPrefs extends _i1.Mock implements _i14.Prefs {
MockPrefs() {
_i1.throwOnMissingStub(this);
}
@ -1267,51 +1254,51 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
returnValue: false,
) as bool);
@override
_i14.Future<void> init() => (super.noSuchMethod(
_i13.Future<void> init() => (super.noSuchMethod(
Invocation.method(
#init,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
_i13.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
Invocation.method(
#incrementCurrentNotificationIndex,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
_i13.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
Invocation.method(
#isExternalCallsSet,
[],
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
_i14.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
_i13.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
Invocation.method(
#saveUserID,
[userId],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
_i13.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
Invocation.method(
#saveSignupEpoch,
[signupEpoch],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i25.AmountUnit amountUnit(_i13.Coin? coin) => (super.noSuchMethod(
_i25.AmountUnit amountUnit(_i16.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#amountUnit,
[coin],
@ -1320,7 +1307,7 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
) as _i25.AmountUnit);
@override
void updateAmountUnit({
required _i13.Coin? coin,
required _i16.Coin? coin,
required _i25.AmountUnit? amountUnit,
}) =>
super.noSuchMethod(
@ -1335,7 +1322,7 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
returnValueForMissingStub: null,
);
@override
int maxDecimals(_i13.Coin? coin) => (super.noSuchMethod(
int maxDecimals(_i16.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#maxDecimals,
[coin],
@ -1344,7 +1331,7 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
) as int);
@override
void updateMaxDecimals({
required _i13.Coin? coin,
required _i16.Coin? coin,
required int? maxDecimals,
}) =>
super.noSuchMethod(
@ -1359,7 +1346,7 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
returnValueForMissingStub: null,
);
@override
_i8.FusionInfo getFusionServerInfo(_i13.Coin? coin) => (super.noSuchMethod(
_i8.FusionInfo getFusionServerInfo(_i16.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getFusionServerInfo,
[coin],
@ -1374,7 +1361,7 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
) as _i8.FusionInfo);
@override
void setFusionServerInfo(
_i13.Coin? coin,
_i16.Coin? coin,
_i8.FusionInfo? fusionServerInfo,
) =>
super.noSuchMethod(
@ -1435,10 +1422,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
returnValueForMissingStub: null,
);
@override
_i13.Coin get coin => (super.noSuchMethod(
_i16.Coin get coin => (super.noSuchMethod(
Invocation.getter(#coin),
returnValue: _i13.Coin.bitcoin,
) as _i13.Coin);
returnValue: _i16.Coin.bitcoin,
) as _i16.Coin);
@override
bool get isRefreshing => (super.noSuchMethod(
Invocation.getter(#isRefreshing),
@ -1471,23 +1458,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
returnValueForMissingStub: null,
);
@override
_i14.Future<_i9.FeeObject> get fees => (super.noSuchMethod(
_i13.Future<_i9.FeeObject> get fees => (super.noSuchMethod(
Invocation.getter(#fees),
returnValue: _i14.Future<_i9.FeeObject>.value(_FakeFeeObject_6(
returnValue: _i13.Future<_i9.FeeObject>.value(_FakeFeeObject_6(
this,
Invocation.getter(#fees),
)),
) as _i14.Future<_i9.FeeObject>);
) as _i13.Future<_i9.FeeObject>);
@override
_i14.Future<int> get maxFee => (super.noSuchMethod(
_i13.Future<int> get maxFee => (super.noSuchMethod(
Invocation.getter(#maxFee),
returnValue: _i14.Future<int>.value(0),
) as _i14.Future<int>);
returnValue: _i13.Future<int>.value(0),
) as _i13.Future<int>);
@override
_i14.Future<String> get currentReceivingAddress => (super.noSuchMethod(
_i13.Future<String> get currentReceivingAddress => (super.noSuchMethod(
Invocation.getter(#currentReceivingAddress),
returnValue: _i14.Future<String>.value(''),
) as _i14.Future<String>);
returnValue: _i13.Future<String>.value(''),
) as _i13.Future<String>);
@override
_i10.Balance get balance => (super.noSuchMethod(
Invocation.getter(#balance),
@ -1497,16 +1484,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
),
) as _i10.Balance);
@override
_i14.Future<List<_i27.Transaction>> get transactions => (super.noSuchMethod(
_i13.Future<List<_i27.Transaction>> get transactions => (super.noSuchMethod(
Invocation.getter(#transactions),
returnValue:
_i14.Future<List<_i27.Transaction>>.value(<_i27.Transaction>[]),
) as _i14.Future<List<_i27.Transaction>>);
_i13.Future<List<_i27.Transaction>>.value(<_i27.Transaction>[]),
) as _i13.Future<List<_i27.Transaction>>);
@override
_i14.Future<List<_i27.UTXO>> get utxos => (super.noSuchMethod(
_i13.Future<List<_i27.UTXO>> get utxos => (super.noSuchMethod(
Invocation.getter(#utxos),
returnValue: _i14.Future<List<_i27.UTXO>>.value(<_i27.UTXO>[]),
) as _i14.Future<List<_i27.UTXO>>);
returnValue: _i13.Future<List<_i27.UTXO>>.value(<_i27.UTXO>[]),
) as _i13.Future<List<_i27.UTXO>>);
@override
set walletName(String? newName) => super.noSuchMethod(
Invocation.setter(
@ -1526,20 +1513,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
returnValue: '',
) as String);
@override
_i14.Future<List<String>> get mnemonic => (super.noSuchMethod(
_i13.Future<List<String>> get mnemonic => (super.noSuchMethod(
Invocation.getter(#mnemonic),
returnValue: _i14.Future<List<String>>.value(<String>[]),
) as _i14.Future<List<String>>);
returnValue: _i13.Future<List<String>>.value(<String>[]),
) as _i13.Future<List<String>>);
@override
_i14.Future<String?> get mnemonicString => (super.noSuchMethod(
_i13.Future<String?> get mnemonicString => (super.noSuchMethod(
Invocation.getter(#mnemonicString),
returnValue: _i14.Future<String?>.value(),
) as _i14.Future<String?>);
returnValue: _i13.Future<String?>.value(),
) as _i13.Future<String?>);
@override
_i14.Future<String?> get mnemonicPassphrase => (super.noSuchMethod(
_i13.Future<String?> get mnemonicPassphrase => (super.noSuchMethod(
Invocation.getter(#mnemonicPassphrase),
returnValue: _i14.Future<String?>.value(),
) as _i14.Future<String?>);
returnValue: _i13.Future<String?>.value(),
) as _i13.Future<String?>);
@override
bool get hasCalledExit => (super.noSuchMethod(
Invocation.getter(#hasCalledExit),
@ -1556,7 +1543,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
returnValue: 0,
) as int);
@override
_i14.Future<Map<String, dynamic>> prepareSend({
_i13.Future<Map<String, dynamic>> prepareSend({
required String? address,
required _i11.Amount? amount,
Map<String, dynamic>? args,
@ -1572,36 +1559,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
},
),
returnValue:
_i14.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i14.Future<Map<String, dynamic>>);
_i13.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i13.Future<Map<String, dynamic>>);
@override
_i14.Future<String> confirmSend({required Map<String, dynamic>? txData}) =>
_i13.Future<String> confirmSend({required Map<String, dynamic>? txData}) =>
(super.noSuchMethod(
Invocation.method(
#confirmSend,
[],
{#txData: txData},
),
returnValue: _i14.Future<String>.value(''),
) as _i14.Future<String>);
returnValue: _i13.Future<String>.value(''),
) as _i13.Future<String>);
@override
_i14.Future<void> refresh() => (super.noSuchMethod(
_i13.Future<void> refresh() => (super.noSuchMethod(
Invocation.method(
#refresh,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> updateNode(bool? shouldRefresh) => (super.noSuchMethod(
_i13.Future<void> updateNode(bool? shouldRefresh) => (super.noSuchMethod(
Invocation.method(
#updateNode,
[shouldRefresh],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
bool validateAddress(String? address) => (super.noSuchMethod(
Invocation.method(
@ -1611,15 +1598,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
returnValue: false,
) as bool);
@override
_i14.Future<bool> testNetworkConnection() => (super.noSuchMethod(
_i13.Future<bool> testNetworkConnection() => (super.noSuchMethod(
Invocation.method(
#testNetworkConnection,
[],
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
_i14.Future<void> recoverFromMnemonic({
_i13.Future<void> recoverFromMnemonic({
required String? mnemonic,
String? mnemonicPassphrase,
required int? maxUnusedAddressGap,
@ -1638,40 +1625,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
#height: height,
},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> initializeNew(
_i13.Future<void> initializeNew(
({String mnemonicPassphrase, int wordCount})? data) =>
(super.noSuchMethod(
Invocation.method(
#initializeNew,
[data],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> initializeExisting() => (super.noSuchMethod(
_i13.Future<void> initializeExisting() => (super.noSuchMethod(
Invocation.method(
#initializeExisting,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> exit() => (super.noSuchMethod(
_i13.Future<void> exit() => (super.noSuchMethod(
Invocation.method(
#exit,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> fullRescan(
_i13.Future<void> fullRescan(
int? maxUnusedAddressGap,
int? maxNumberOfIndexesToCheck,
) =>
@ -1683,11 +1670,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
maxNumberOfIndexesToCheck,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<_i11.Amount> estimateFeeFor(
_i13.Future<_i11.Amount> estimateFeeFor(
_i11.Amount? amount,
int? feeRate,
) =>
@ -1699,7 +1686,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
feeRate,
],
),
returnValue: _i14.Future<_i11.Amount>.value(_FakeAmount_8(
returnValue: _i13.Future<_i11.Amount>.value(_FakeAmount_8(
this,
Invocation.method(
#estimateFeeFor,
@ -1709,23 +1696,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
],
),
)),
) as _i14.Future<_i11.Amount>);
) as _i13.Future<_i11.Amount>);
@override
_i14.Future<bool> generateNewAddress() => (super.noSuchMethod(
_i13.Future<bool> generateNewAddress() => (super.noSuchMethod(
Invocation.method(
#generateNewAddress,
[],
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
_i14.Future<void> updateSentCachedTxData(Map<String, dynamic>? txData) =>
_i13.Future<void> updateSentCachedTxData(Map<String, dynamic>? txData) =>
(super.noSuchMethod(
Invocation.method(
#updateSentCachedTxData,
[txData],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
}

View file

@ -3,7 +3,7 @@
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i14;
import 'dart:async' as _i13;
import 'dart:typed_data' as _i20;
import 'dart:ui' as _i17;
@ -19,16 +19,16 @@ import 'package:stackwallet/services/coins/coin_service.dart' as _i26;
import 'package:stackwallet/services/locale_service.dart' as _i24;
import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/wallets.dart' as _i12;
import 'package:stackwallet/services/wallets_service.dart' as _i16;
import 'package:stackwallet/services/wallets_service.dart' as _i15;
import 'package:stackwallet/themes/theme_service.dart' as _i18;
import 'package:stackwallet/utilities/amount/amount.dart' as _i11;
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i23;
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i22;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i13;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i21;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i8;
import 'package:stackwallet/utilities/prefs.dart' as _i15;
import 'package:stackwallet/utilities/prefs.dart' as _i14;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4;
import 'package:stackwallet/wallets/wallet/mixins/cash_fusion.dart' as _i7;
@ -188,19 +188,6 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
@override
List<({_i13.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})>
get walletsByCoin => (super.noSuchMethod(
Invocation.getter(#walletsByCoin),
returnValue: <({
_i13.Coin coin,
List<_i5.Wallet<_i4.CryptoCurrency>> wallets
})>[],
) as List<
({
_i13.Coin coin,
List<_i5.Wallet<_i4.CryptoCurrency>> wallets
})>);
@override
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
(super.noSuchMethod(
Invocation.method(
@ -224,7 +211,7 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
returnValueForMissingStub: null,
);
@override
_i14.Future<void> deleteWallet(
_i13.Future<void> deleteWallet(
String? walletId,
_i8.SecureStorageInterface? secureStorage,
) =>
@ -236,12 +223,12 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
secureStorage,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> load(
_i15.Prefs? prefs,
_i13.Future<void> load(
_i14.Prefs? prefs,
_i3.MainDB? mainDB,
) =>
(super.noSuchMethod(
@ -252,12 +239,12 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
mainDB,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> loadAfterStackRestore(
_i15.Prefs? prefs,
_i13.Future<void> loadAfterStackRestore(
_i14.Prefs? prefs,
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
) =>
(super.noSuchMethod(
@ -268,33 +255,33 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
wallets,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
}
/// A class which mocks [WalletsService].
///
/// See the documentation for Mockito's code generation for more information.
class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
MockWalletsService() {
_i1.throwOnMissingStub(this);
}
@override
_i14.Future<Map<String, _i16.WalletInfo>> get walletNames =>
_i13.Future<Map<String, _i15.WalletInfo>> get walletNames =>
(super.noSuchMethod(
Invocation.getter(#walletNames),
returnValue: _i14.Future<Map<String, _i16.WalletInfo>>.value(
<String, _i16.WalletInfo>{}),
) as _i14.Future<Map<String, _i16.WalletInfo>>);
returnValue: _i13.Future<Map<String, _i15.WalletInfo>>.value(
<String, _i15.WalletInfo>{}),
) as _i13.Future<Map<String, _i15.WalletInfo>>);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
) as bool);
@override
_i14.Future<bool> renameWallet({
_i13.Future<bool> renameWallet({
required String? from,
required String? to,
required bool? shouldNotifyListeners,
@ -309,21 +296,21 @@ class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
Map<String, _i16.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
Map<String, _i15.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
Invocation.method(
#fetchWalletsData,
[],
),
returnValue: <String, _i16.WalletInfo>{},
) as Map<String, _i16.WalletInfo>);
returnValue: <String, _i15.WalletInfo>{},
) as Map<String, _i15.WalletInfo>);
@override
_i14.Future<void> addExistingStackWallet({
_i13.Future<void> addExistingStackWallet({
required String? name,
required String? walletId,
required _i13.Coin? coin,
required _i16.Coin? coin,
required bool? shouldNotifyListeners,
}) =>
(super.noSuchMethod(
@ -337,13 +324,13 @@ class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<String?> addNewWallet({
_i13.Future<String?> addNewWallet({
required String? name,
required _i13.Coin? coin,
required _i16.Coin? coin,
required bool? shouldNotifyListeners,
}) =>
(super.noSuchMethod(
@ -356,46 +343,46 @@ class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i14.Future<String?>.value(),
) as _i14.Future<String?>);
returnValue: _i13.Future<String?>.value(),
) as _i13.Future<String?>);
@override
_i14.Future<List<String>> getFavoriteWalletIds() => (super.noSuchMethod(
_i13.Future<List<String>> getFavoriteWalletIds() => (super.noSuchMethod(
Invocation.method(
#getFavoriteWalletIds,
[],
),
returnValue: _i14.Future<List<String>>.value(<String>[]),
) as _i14.Future<List<String>>);
returnValue: _i13.Future<List<String>>.value(<String>[]),
) as _i13.Future<List<String>>);
@override
_i14.Future<void> saveFavoriteWalletIds(List<String>? walletIds) =>
_i13.Future<void> saveFavoriteWalletIds(List<String>? walletIds) =>
(super.noSuchMethod(
Invocation.method(
#saveFavoriteWalletIds,
[walletIds],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> addFavorite(String? walletId) => (super.noSuchMethod(
_i13.Future<void> addFavorite(String? walletId) => (super.noSuchMethod(
Invocation.method(
#addFavorite,
[walletId],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> removeFavorite(String? walletId) => (super.noSuchMethod(
_i13.Future<void> removeFavorite(String? walletId) => (super.noSuchMethod(
Invocation.method(
#removeFavorite,
[walletId],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> moveFavorite({
_i13.Future<void> moveFavorite({
required int? fromIndex,
required int? toIndex,
}) =>
@ -408,48 +395,48 @@ class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
#toIndex: toIndex,
},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<bool> checkForDuplicate(String? name) => (super.noSuchMethod(
_i13.Future<bool> checkForDuplicate(String? name) => (super.noSuchMethod(
Invocation.method(
#checkForDuplicate,
[name],
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
_i14.Future<String?> getWalletId(String? walletName) => (super.noSuchMethod(
_i13.Future<String?> getWalletId(String? walletName) => (super.noSuchMethod(
Invocation.method(
#getWalletId,
[walletName],
),
returnValue: _i14.Future<String?>.value(),
) as _i14.Future<String?>);
returnValue: _i13.Future<String?>.value(),
) as _i13.Future<String?>);
@override
_i14.Future<bool> isMnemonicVerified({required String? walletId}) =>
_i13.Future<bool> isMnemonicVerified({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#isMnemonicVerified,
[],
{#walletId: walletId},
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
_i14.Future<void> setMnemonicVerified({required String? walletId}) =>
_i13.Future<void> setMnemonicVerified({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#setMnemonicVerified,
[],
{#walletId: walletId},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<int> deleteWallet(
_i13.Future<int> deleteWallet(
String? name,
bool? shouldNotifyListeners,
) =>
@ -461,18 +448,18 @@ class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
shouldNotifyListeners,
],
),
returnValue: _i14.Future<int>.value(0),
) as _i14.Future<int>);
returnValue: _i13.Future<int>.value(0),
) as _i13.Future<int>);
@override
_i14.Future<void> refreshWallets(bool? shouldNotifyListeners) =>
_i13.Future<void> refreshWallets(bool? shouldNotifyListeners) =>
(super.noSuchMethod(
Invocation.method(
#refreshWallets,
[shouldNotifyListeners],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
@ -553,57 +540,57 @@ class MockThemeService extends _i1.Mock implements _i18.ThemeService {
returnValueForMissingStub: null,
);
@override
_i14.Future<void> install({required _i20.Uint8List? themeArchiveData}) =>
_i13.Future<void> install({required _i20.Uint8List? themeArchiveData}) =>
(super.noSuchMethod(
Invocation.method(
#install,
[],
{#themeArchiveData: themeArchiveData},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
_i13.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
Invocation.method(
#remove,
[],
{#themeId: themeId},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
_i13.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
Invocation.method(
#checkDefaultThemesOnStartup,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<bool> verifyInstalled({required String? themeId}) =>
_i13.Future<bool> verifyInstalled({required String? themeId}) =>
(super.noSuchMethod(
Invocation.method(
#verifyInstalled,
[],
{#themeId: themeId},
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
_i14.Future<List<_i18.StackThemeMetaData>> fetchThemes() =>
_i13.Future<List<_i18.StackThemeMetaData>> fetchThemes() =>
(super.noSuchMethod(
Invocation.method(
#fetchThemes,
[],
),
returnValue: _i14.Future<List<_i18.StackThemeMetaData>>.value(
returnValue: _i13.Future<List<_i18.StackThemeMetaData>>.value(
<_i18.StackThemeMetaData>[]),
) as _i14.Future<List<_i18.StackThemeMetaData>>);
) as _i13.Future<List<_i18.StackThemeMetaData>>);
@override
_i14.Future<_i20.Uint8List> fetchTheme(
_i13.Future<_i20.Uint8List> fetchTheme(
{required _i18.StackThemeMetaData? themeMetaData}) =>
(super.noSuchMethod(
Invocation.method(
@ -611,8 +598,8 @@ class MockThemeService extends _i1.Mock implements _i18.ThemeService {
[],
{#themeMetaData: themeMetaData},
),
returnValue: _i14.Future<_i20.Uint8List>.value(_i20.Uint8List(0)),
) as _i14.Future<_i20.Uint8List>);
returnValue: _i13.Future<_i20.Uint8List>.value(_i20.Uint8List(0)),
) as _i13.Future<_i20.Uint8List>);
@override
_i19.StackTheme? getTheme({required String? themeId}) =>
(super.noSuchMethod(Invocation.method(
@ -625,7 +612,7 @@ class MockThemeService extends _i1.Mock implements _i18.ThemeService {
/// A class which mocks [Prefs].
///
/// See the documentation for Mockito's code generation for more information.
class MockPrefs extends _i1.Mock implements _i15.Prefs {
class MockPrefs extends _i1.Mock implements _i14.Prefs {
MockPrefs() {
_i1.throwOnMissingStub(this);
}
@ -1001,51 +988,51 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
returnValue: false,
) as bool);
@override
_i14.Future<void> init() => (super.noSuchMethod(
_i13.Future<void> init() => (super.noSuchMethod(
Invocation.method(
#init,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
_i13.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
Invocation.method(
#incrementCurrentNotificationIndex,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
_i13.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
Invocation.method(
#isExternalCallsSet,
[],
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
_i14.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
_i13.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
Invocation.method(
#saveUserID,
[userId],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
_i13.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
Invocation.method(
#saveSignupEpoch,
[signupEpoch],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i23.AmountUnit amountUnit(_i13.Coin? coin) => (super.noSuchMethod(
_i23.AmountUnit amountUnit(_i16.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#amountUnit,
[coin],
@ -1054,7 +1041,7 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
) as _i23.AmountUnit);
@override
void updateAmountUnit({
required _i13.Coin? coin,
required _i16.Coin? coin,
required _i23.AmountUnit? amountUnit,
}) =>
super.noSuchMethod(
@ -1069,7 +1056,7 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
returnValueForMissingStub: null,
);
@override
int maxDecimals(_i13.Coin? coin) => (super.noSuchMethod(
int maxDecimals(_i16.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#maxDecimals,
[coin],
@ -1078,7 +1065,7 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
) as int);
@override
void updateMaxDecimals({
required _i13.Coin? coin,
required _i16.Coin? coin,
required int? maxDecimals,
}) =>
super.noSuchMethod(
@ -1093,7 +1080,7 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
returnValueForMissingStub: null,
);
@override
_i7.FusionInfo getFusionServerInfo(_i13.Coin? coin) => (super.noSuchMethod(
_i7.FusionInfo getFusionServerInfo(_i16.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getFusionServerInfo,
[coin],
@ -1108,7 +1095,7 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
) as _i7.FusionInfo);
@override
void setFusionServerInfo(
_i13.Coin? coin,
_i16.Coin? coin,
_i7.FusionInfo? fusionServerInfo,
) =>
super.noSuchMethod(
@ -1174,15 +1161,15 @@ class MockLocaleService extends _i1.Mock implements _i24.LocaleService {
returnValue: false,
) as bool);
@override
_i14.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
_i13.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
Invocation.method(
#loadLocale,
[],
{#notify: notify},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
@ -1245,17 +1232,17 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValue: false,
) as bool);
@override
_i14.Future<void> updateDefaults() => (super.noSuchMethod(
_i13.Future<void> updateDefaults() => (super.noSuchMethod(
Invocation.method(
#updateDefaults,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> setPrimaryNodeFor({
required _i13.Coin? coin,
_i13.Future<void> setPrimaryNodeFor({
required _i16.Coin? coin,
required _i25.NodeModel? node,
bool? shouldNotifyListeners = false,
}) =>
@ -1269,18 +1256,18 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i25.NodeModel? getPrimaryNodeFor({required _i13.Coin? coin}) =>
_i25.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) =>
(super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor,
[],
{#coin: coin},
)) as _i25.NodeModel?);
@override
List<_i25.NodeModel> getNodesFor(_i13.Coin? coin) => (super.noSuchMethod(
List<_i25.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getNodesFor,
[coin],
@ -1295,7 +1282,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
{#id: id},
)) as _i25.NodeModel?);
@override
List<_i25.NodeModel> failoverNodesFor({required _i13.Coin? coin}) =>
List<_i25.NodeModel> failoverNodesFor({required _i16.Coin? coin}) =>
(super.noSuchMethod(
Invocation.method(
#failoverNodesFor,
@ -1305,7 +1292,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValue: <_i25.NodeModel>[],
) as List<_i25.NodeModel>);
@override
_i14.Future<void> add(
_i13.Future<void> add(
_i25.NodeModel? node,
String? password,
bool? shouldNotifyListeners,
@ -1319,11 +1306,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> delete(
_i13.Future<void> delete(
String? id,
bool? shouldNotifyListeners,
) =>
@ -1335,11 +1322,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> setEnabledState(
_i13.Future<void> setEnabledState(
String? id,
bool? enabled,
bool? shouldNotifyListeners,
@ -1353,11 +1340,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> edit(
_i13.Future<void> edit(
_i25.NodeModel? editedNode,
String? password,
bool? shouldNotifyListeners,
@ -1371,18 +1358,18 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> updateCommunityNodes() => (super.noSuchMethod(
_i13.Future<void> updateCommunityNodes() => (super.noSuchMethod(
Invocation.method(
#updateCommunityNodes,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
@ -1431,10 +1418,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
returnValueForMissingStub: null,
);
@override
_i13.Coin get coin => (super.noSuchMethod(
_i16.Coin get coin => (super.noSuchMethod(
Invocation.getter(#coin),
returnValue: _i13.Coin.bitcoin,
) as _i13.Coin);
returnValue: _i16.Coin.bitcoin,
) as _i16.Coin);
@override
bool get isRefreshing => (super.noSuchMethod(
Invocation.getter(#isRefreshing),
@ -1467,23 +1454,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
returnValueForMissingStub: null,
);
@override
_i14.Future<_i9.FeeObject> get fees => (super.noSuchMethod(
_i13.Future<_i9.FeeObject> get fees => (super.noSuchMethod(
Invocation.getter(#fees),
returnValue: _i14.Future<_i9.FeeObject>.value(_FakeFeeObject_6(
returnValue: _i13.Future<_i9.FeeObject>.value(_FakeFeeObject_6(
this,
Invocation.getter(#fees),
)),
) as _i14.Future<_i9.FeeObject>);
) as _i13.Future<_i9.FeeObject>);
@override
_i14.Future<int> get maxFee => (super.noSuchMethod(
_i13.Future<int> get maxFee => (super.noSuchMethod(
Invocation.getter(#maxFee),
returnValue: _i14.Future<int>.value(0),
) as _i14.Future<int>);
returnValue: _i13.Future<int>.value(0),
) as _i13.Future<int>);
@override
_i14.Future<String> get currentReceivingAddress => (super.noSuchMethod(
_i13.Future<String> get currentReceivingAddress => (super.noSuchMethod(
Invocation.getter(#currentReceivingAddress),
returnValue: _i14.Future<String>.value(''),
) as _i14.Future<String>);
returnValue: _i13.Future<String>.value(''),
) as _i13.Future<String>);
@override
_i10.Balance get balance => (super.noSuchMethod(
Invocation.getter(#balance),
@ -1493,16 +1480,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
),
) as _i10.Balance);
@override
_i14.Future<List<_i27.Transaction>> get transactions => (super.noSuchMethod(
_i13.Future<List<_i27.Transaction>> get transactions => (super.noSuchMethod(
Invocation.getter(#transactions),
returnValue:
_i14.Future<List<_i27.Transaction>>.value(<_i27.Transaction>[]),
) as _i14.Future<List<_i27.Transaction>>);
_i13.Future<List<_i27.Transaction>>.value(<_i27.Transaction>[]),
) as _i13.Future<List<_i27.Transaction>>);
@override
_i14.Future<List<_i27.UTXO>> get utxos => (super.noSuchMethod(
_i13.Future<List<_i27.UTXO>> get utxos => (super.noSuchMethod(
Invocation.getter(#utxos),
returnValue: _i14.Future<List<_i27.UTXO>>.value(<_i27.UTXO>[]),
) as _i14.Future<List<_i27.UTXO>>);
returnValue: _i13.Future<List<_i27.UTXO>>.value(<_i27.UTXO>[]),
) as _i13.Future<List<_i27.UTXO>>);
@override
set walletName(String? newName) => super.noSuchMethod(
Invocation.setter(
@ -1522,20 +1509,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
returnValue: '',
) as String);
@override
_i14.Future<List<String>> get mnemonic => (super.noSuchMethod(
_i13.Future<List<String>> get mnemonic => (super.noSuchMethod(
Invocation.getter(#mnemonic),
returnValue: _i14.Future<List<String>>.value(<String>[]),
) as _i14.Future<List<String>>);
returnValue: _i13.Future<List<String>>.value(<String>[]),
) as _i13.Future<List<String>>);
@override
_i14.Future<String?> get mnemonicString => (super.noSuchMethod(
_i13.Future<String?> get mnemonicString => (super.noSuchMethod(
Invocation.getter(#mnemonicString),
returnValue: _i14.Future<String?>.value(),
) as _i14.Future<String?>);
returnValue: _i13.Future<String?>.value(),
) as _i13.Future<String?>);
@override
_i14.Future<String?> get mnemonicPassphrase => (super.noSuchMethod(
_i13.Future<String?> get mnemonicPassphrase => (super.noSuchMethod(
Invocation.getter(#mnemonicPassphrase),
returnValue: _i14.Future<String?>.value(),
) as _i14.Future<String?>);
returnValue: _i13.Future<String?>.value(),
) as _i13.Future<String?>);
@override
bool get hasCalledExit => (super.noSuchMethod(
Invocation.getter(#hasCalledExit),
@ -1552,7 +1539,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
returnValue: 0,
) as int);
@override
_i14.Future<Map<String, dynamic>> prepareSend({
_i13.Future<Map<String, dynamic>> prepareSend({
required String? address,
required _i11.Amount? amount,
Map<String, dynamic>? args,
@ -1568,36 +1555,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
},
),
returnValue:
_i14.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i14.Future<Map<String, dynamic>>);
_i13.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i13.Future<Map<String, dynamic>>);
@override
_i14.Future<String> confirmSend({required Map<String, dynamic>? txData}) =>
_i13.Future<String> confirmSend({required Map<String, dynamic>? txData}) =>
(super.noSuchMethod(
Invocation.method(
#confirmSend,
[],
{#txData: txData},
),
returnValue: _i14.Future<String>.value(''),
) as _i14.Future<String>);
returnValue: _i13.Future<String>.value(''),
) as _i13.Future<String>);
@override
_i14.Future<void> refresh() => (super.noSuchMethod(
_i13.Future<void> refresh() => (super.noSuchMethod(
Invocation.method(
#refresh,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> updateNode(bool? shouldRefresh) => (super.noSuchMethod(
_i13.Future<void> updateNode(bool? shouldRefresh) => (super.noSuchMethod(
Invocation.method(
#updateNode,
[shouldRefresh],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
bool validateAddress(String? address) => (super.noSuchMethod(
Invocation.method(
@ -1607,15 +1594,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
returnValue: false,
) as bool);
@override
_i14.Future<bool> testNetworkConnection() => (super.noSuchMethod(
_i13.Future<bool> testNetworkConnection() => (super.noSuchMethod(
Invocation.method(
#testNetworkConnection,
[],
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
_i14.Future<void> recoverFromMnemonic({
_i13.Future<void> recoverFromMnemonic({
required String? mnemonic,
String? mnemonicPassphrase,
required int? maxUnusedAddressGap,
@ -1634,40 +1621,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
#height: height,
},
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> initializeNew(
_i13.Future<void> initializeNew(
({String mnemonicPassphrase, int wordCount})? data) =>
(super.noSuchMethod(
Invocation.method(
#initializeNew,
[data],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> initializeExisting() => (super.noSuchMethod(
_i13.Future<void> initializeExisting() => (super.noSuchMethod(
Invocation.method(
#initializeExisting,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> exit() => (super.noSuchMethod(
_i13.Future<void> exit() => (super.noSuchMethod(
Invocation.method(
#exit,
[],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<void> fullRescan(
_i13.Future<void> fullRescan(
int? maxUnusedAddressGap,
int? maxNumberOfIndexesToCheck,
) =>
@ -1679,11 +1666,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
maxNumberOfIndexesToCheck,
],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
@override
_i14.Future<_i11.Amount> estimateFeeFor(
_i13.Future<_i11.Amount> estimateFeeFor(
_i11.Amount? amount,
int? feeRate,
) =>
@ -1695,7 +1682,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
feeRate,
],
),
returnValue: _i14.Future<_i11.Amount>.value(_FakeAmount_8(
returnValue: _i13.Future<_i11.Amount>.value(_FakeAmount_8(
this,
Invocation.method(
#estimateFeeFor,
@ -1705,23 +1692,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
],
),
)),
) as _i14.Future<_i11.Amount>);
) as _i13.Future<_i11.Amount>);
@override
_i14.Future<bool> generateNewAddress() => (super.noSuchMethod(
_i13.Future<bool> generateNewAddress() => (super.noSuchMethod(
Invocation.method(
#generateNewAddress,
[],
),
returnValue: _i14.Future<bool>.value(false),
) as _i14.Future<bool>);
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
@override
_i14.Future<void> updateSentCachedTxData(Map<String, dynamic>? txData) =>
_i13.Future<void> updateSentCachedTxData(Map<String, dynamic>? txData) =>
(super.noSuchMethod(
Invocation.method(
#updateSentCachedTxData,
[txData],
),
returnValue: _i14.Future<void>.value(),
returnValueForMissingStub: _i14.Future<void>.value(),
) as _i14.Future<void>);
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
}

View file

@ -3,7 +3,7 @@
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i11;
import 'dart:async' as _i10;
import 'dart:io' as _i8;
import 'dart:ui' as _i16;
@ -15,13 +15,13 @@ import 'package:stackwallet/services/event_bus/events/global/tor_connection_stat
import 'package:stackwallet/services/node_service.dart' as _i2;
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 _i10;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i13;
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i14;
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i13;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i12;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i7;
import 'package:stackwallet/utilities/prefs.dart' as _i12;
import 'package:stackwallet/utilities/prefs.dart' as _i11;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4;
import 'package:stackwallet/wallets/wallet/mixins/cash_fusion.dart' as _i6;
@ -153,19 +153,6 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
@override
List<({_i10.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})>
get walletsByCoin => (super.noSuchMethod(
Invocation.getter(#walletsByCoin),
returnValue: <({
_i10.Coin coin,
List<_i5.Wallet<_i4.CryptoCurrency>> wallets
})>[],
) as List<
({
_i10.Coin coin,
List<_i5.Wallet<_i4.CryptoCurrency>> wallets
})>);
@override
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
(super.noSuchMethod(
Invocation.method(
@ -189,7 +176,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
returnValueForMissingStub: null,
);
@override
_i11.Future<void> deleteWallet(
_i10.Future<void> deleteWallet(
String? walletId,
_i7.SecureStorageInterface? secureStorage,
) =>
@ -201,12 +188,12 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
secureStorage,
],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i11.Future<void> load(
_i12.Prefs? prefs,
_i10.Future<void> load(
_i11.Prefs? prefs,
_i3.MainDB? mainDB,
) =>
(super.noSuchMethod(
@ -217,12 +204,12 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
mainDB,
],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i11.Future<void> loadAfterStackRestore(
_i12.Prefs? prefs,
_i10.Future<void> loadAfterStackRestore(
_i11.Prefs? prefs,
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
) =>
(super.noSuchMethod(
@ -233,15 +220,15 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
wallets,
],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
}
/// A class which mocks [Prefs].
///
/// See the documentation for Mockito's code generation for more information.
class MockPrefs extends _i1.Mock implements _i12.Prefs {
class MockPrefs extends _i1.Mock implements _i11.Prefs {
MockPrefs() {
_i1.throwOnMissingStub(this);
}
@ -297,12 +284,12 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null,
);
@override
_i13.SyncingType get syncType => (super.noSuchMethod(
_i12.SyncingType get syncType => (super.noSuchMethod(
Invocation.getter(#syncType),
returnValue: _i13.SyncingType.currentWalletOnly,
) as _i13.SyncingType);
returnValue: _i12.SyncingType.currentWalletOnly,
) as _i12.SyncingType);
@override
set syncType(_i13.SyncingType? syncType) => super.noSuchMethod(
set syncType(_i12.SyncingType? syncType) => super.noSuchMethod(
Invocation.setter(
#syncType,
syncType,
@ -461,12 +448,12 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null,
);
@override
_i14.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
_i13.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
Invocation.getter(#backupFrequencyType),
returnValue: _i14.BackupFrequencyType.everyTenMinutes,
) as _i14.BackupFrequencyType);
returnValue: _i13.BackupFrequencyType.everyTenMinutes,
) as _i13.BackupFrequencyType);
@override
set backupFrequencyType(_i14.BackupFrequencyType? backupFrequencyType) =>
set backupFrequencyType(_i13.BackupFrequencyType? backupFrequencyType) =>
super.noSuchMethod(
Invocation.setter(
#backupFrequencyType,
@ -617,61 +604,61 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValue: false,
) as bool);
@override
_i11.Future<void> init() => (super.noSuchMethod(
_i10.Future<void> init() => (super.noSuchMethod(
Invocation.method(
#init,
[],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i11.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
_i10.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
Invocation.method(
#incrementCurrentNotificationIndex,
[],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i11.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
_i10.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
Invocation.method(
#isExternalCallsSet,
[],
),
returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>);
returnValue: _i10.Future<bool>.value(false),
) as _i10.Future<bool>);
@override
_i11.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
_i10.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
Invocation.method(
#saveUserID,
[userId],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i11.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
_i10.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
Invocation.method(
#saveSignupEpoch,
[signupEpoch],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i15.AmountUnit amountUnit(_i10.Coin? coin) => (super.noSuchMethod(
_i14.AmountUnit amountUnit(_i15.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#amountUnit,
[coin],
),
returnValue: _i15.AmountUnit.normal,
) as _i15.AmountUnit);
returnValue: _i14.AmountUnit.normal,
) as _i14.AmountUnit);
@override
void updateAmountUnit({
required _i10.Coin? coin,
required _i15.AmountUnit? amountUnit,
required _i15.Coin? coin,
required _i14.AmountUnit? amountUnit,
}) =>
super.noSuchMethod(
Invocation.method(
@ -685,7 +672,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null,
);
@override
int maxDecimals(_i10.Coin? coin) => (super.noSuchMethod(
int maxDecimals(_i15.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#maxDecimals,
[coin],
@ -694,7 +681,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
) as int);
@override
void updateMaxDecimals({
required _i10.Coin? coin,
required _i15.Coin? coin,
required int? maxDecimals,
}) =>
super.noSuchMethod(
@ -709,7 +696,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null,
);
@override
_i6.FusionInfo getFusionServerInfo(_i10.Coin? coin) => (super.noSuchMethod(
_i6.FusionInfo getFusionServerInfo(_i15.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getFusionServerInfo,
[coin],
@ -724,7 +711,7 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
) as _i6.FusionInfo);
@override
void setFusionServerInfo(
_i10.Coin? coin,
_i15.Coin? coin,
_i6.FusionInfo? fusionServerInfo,
) =>
super.noSuchMethod(
@ -803,17 +790,17 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValue: false,
) as bool);
@override
_i11.Future<void> updateDefaults() => (super.noSuchMethod(
_i10.Future<void> updateDefaults() => (super.noSuchMethod(
Invocation.method(
#updateDefaults,
[],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i11.Future<void> setPrimaryNodeFor({
required _i10.Coin? coin,
_i10.Future<void> setPrimaryNodeFor({
required _i15.Coin? coin,
required _i17.NodeModel? node,
bool? shouldNotifyListeners = false,
}) =>
@ -827,18 +814,18 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i17.NodeModel? getPrimaryNodeFor({required _i10.Coin? coin}) =>
_i17.NodeModel? getPrimaryNodeFor({required _i15.Coin? coin}) =>
(super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor,
[],
{#coin: coin},
)) as _i17.NodeModel?);
@override
List<_i17.NodeModel> getNodesFor(_i10.Coin? coin) => (super.noSuchMethod(
List<_i17.NodeModel> getNodesFor(_i15.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getNodesFor,
[coin],
@ -853,7 +840,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
{#id: id},
)) as _i17.NodeModel?);
@override
List<_i17.NodeModel> failoverNodesFor({required _i10.Coin? coin}) =>
List<_i17.NodeModel> failoverNodesFor({required _i15.Coin? coin}) =>
(super.noSuchMethod(
Invocation.method(
#failoverNodesFor,
@ -863,7 +850,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValue: <_i17.NodeModel>[],
) as List<_i17.NodeModel>);
@override
_i11.Future<void> add(
_i10.Future<void> add(
_i17.NodeModel? node,
String? password,
bool? shouldNotifyListeners,
@ -877,11 +864,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i11.Future<void> delete(
_i10.Future<void> delete(
String? id,
bool? shouldNotifyListeners,
) =>
@ -893,11 +880,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i11.Future<void> setEnabledState(
_i10.Future<void> setEnabledState(
String? id,
bool? enabled,
bool? shouldNotifyListeners,
@ -911,11 +898,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i11.Future<void> edit(
_i10.Future<void> edit(
_i17.NodeModel? editedNode,
String? password,
bool? shouldNotifyListeners,
@ -929,18 +916,18 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i11.Future<void> updateCommunityNodes() => (super.noSuchMethod(
_i10.Future<void> updateCommunityNodes() => (super.noSuchMethod(
Invocation.method(
#updateCommunityNodes,
[],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
@ -1022,21 +1009,21 @@ class MockTorService extends _i1.Mock implements _i18.TorService {
returnValueForMissingStub: null,
);
@override
_i11.Future<void> start() => (super.noSuchMethod(
_i10.Future<void> start() => (super.noSuchMethod(
Invocation.method(
#start,
[],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i11.Future<void> disable() => (super.noSuchMethod(
_i10.Future<void> disable() => (super.noSuchMethod(
Invocation.method(
#disable,
[],
),
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
}

View file

@ -3,7 +3,7 @@
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i12;
import 'dart:async' as _i11;
import 'dart:typed_data' as _i19;
import 'dart:ui' as _i16;
@ -17,13 +17,13 @@ import 'package:stackwallet/networking/http.dart' as _i6;
import 'package:stackwallet/services/coins/coin_service.dart' as _i20;
import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/wallets.dart' as _i10;
import 'package:stackwallet/services/wallets_service.dart' as _i15;
import 'package:stackwallet/services/wallets_service.dart' as _i14;
import 'package:stackwallet/themes/theme_service.dart' as _i17;
import 'package:stackwallet/utilities/amount/amount.dart' as _i9;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i11;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i13;
import 'package:stackwallet/utilities/prefs.dart' as _i14;
as _i12;
import 'package:stackwallet/utilities/prefs.dart' as _i13;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
@ -161,19 +161,6 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
@override
List<({_i11.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})>
get walletsByCoin => (super.noSuchMethod(
Invocation.getter(#walletsByCoin),
returnValue: <({
_i11.Coin coin,
List<_i5.Wallet<_i4.CryptoCurrency>> wallets
})>[],
) as List<
({
_i11.Coin coin,
List<_i5.Wallet<_i4.CryptoCurrency>> wallets
})>);
@override
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
(super.noSuchMethod(
Invocation.method(
@ -197,9 +184,9 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
returnValueForMissingStub: null,
);
@override
_i12.Future<void> deleteWallet(
_i11.Future<void> deleteWallet(
String? walletId,
_i13.SecureStorageInterface? secureStorage,
_i12.SecureStorageInterface? secureStorage,
) =>
(super.noSuchMethod(
Invocation.method(
@ -209,12 +196,12 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
secureStorage,
],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> load(
_i14.Prefs? prefs,
_i11.Future<void> load(
_i13.Prefs? prefs,
_i3.MainDB? mainDB,
) =>
(super.noSuchMethod(
@ -225,12 +212,12 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
mainDB,
],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> loadAfterStackRestore(
_i14.Prefs? prefs,
_i11.Future<void> loadAfterStackRestore(
_i13.Prefs? prefs,
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
) =>
(super.noSuchMethod(
@ -241,33 +228,33 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
wallets,
],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
}
/// A class which mocks [WalletsService].
///
/// See the documentation for Mockito's code generation for more information.
class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
MockWalletsService() {
_i1.throwOnMissingStub(this);
}
@override
_i12.Future<Map<String, _i15.WalletInfo>> get walletNames =>
_i11.Future<Map<String, _i14.WalletInfo>> get walletNames =>
(super.noSuchMethod(
Invocation.getter(#walletNames),
returnValue: _i12.Future<Map<String, _i15.WalletInfo>>.value(
<String, _i15.WalletInfo>{}),
) as _i12.Future<Map<String, _i15.WalletInfo>>);
returnValue: _i11.Future<Map<String, _i14.WalletInfo>>.value(
<String, _i14.WalletInfo>{}),
) as _i11.Future<Map<String, _i14.WalletInfo>>);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
) as bool);
@override
_i12.Future<bool> renameWallet({
_i11.Future<bool> renameWallet({
required String? from,
required String? to,
required bool? shouldNotifyListeners,
@ -282,21 +269,21 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>);
@override
Map<String, _i15.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
Map<String, _i14.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
Invocation.method(
#fetchWalletsData,
[],
),
returnValue: <String, _i15.WalletInfo>{},
) as Map<String, _i15.WalletInfo>);
returnValue: <String, _i14.WalletInfo>{},
) as Map<String, _i14.WalletInfo>);
@override
_i12.Future<void> addExistingStackWallet({
_i11.Future<void> addExistingStackWallet({
required String? name,
required String? walletId,
required _i11.Coin? coin,
required _i15.Coin? coin,
required bool? shouldNotifyListeners,
}) =>
(super.noSuchMethod(
@ -310,13 +297,13 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<String?> addNewWallet({
_i11.Future<String?> addNewWallet({
required String? name,
required _i11.Coin? coin,
required _i15.Coin? coin,
required bool? shouldNotifyListeners,
}) =>
(super.noSuchMethod(
@ -329,46 +316,46 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i12.Future<String?>.value(),
) as _i12.Future<String?>);
returnValue: _i11.Future<String?>.value(),
) as _i11.Future<String?>);
@override
_i12.Future<List<String>> getFavoriteWalletIds() => (super.noSuchMethod(
_i11.Future<List<String>> getFavoriteWalletIds() => (super.noSuchMethod(
Invocation.method(
#getFavoriteWalletIds,
[],
),
returnValue: _i12.Future<List<String>>.value(<String>[]),
) as _i12.Future<List<String>>);
returnValue: _i11.Future<List<String>>.value(<String>[]),
) as _i11.Future<List<String>>);
@override
_i12.Future<void> saveFavoriteWalletIds(List<String>? walletIds) =>
_i11.Future<void> saveFavoriteWalletIds(List<String>? walletIds) =>
(super.noSuchMethod(
Invocation.method(
#saveFavoriteWalletIds,
[walletIds],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> addFavorite(String? walletId) => (super.noSuchMethod(
_i11.Future<void> addFavorite(String? walletId) => (super.noSuchMethod(
Invocation.method(
#addFavorite,
[walletId],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> removeFavorite(String? walletId) => (super.noSuchMethod(
_i11.Future<void> removeFavorite(String? walletId) => (super.noSuchMethod(
Invocation.method(
#removeFavorite,
[walletId],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> moveFavorite({
_i11.Future<void> moveFavorite({
required int? fromIndex,
required int? toIndex,
}) =>
@ -381,48 +368,48 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
#toIndex: toIndex,
},
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<bool> checkForDuplicate(String? name) => (super.noSuchMethod(
_i11.Future<bool> checkForDuplicate(String? name) => (super.noSuchMethod(
Invocation.method(
#checkForDuplicate,
[name],
),
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>);
@override
_i12.Future<String?> getWalletId(String? walletName) => (super.noSuchMethod(
_i11.Future<String?> getWalletId(String? walletName) => (super.noSuchMethod(
Invocation.method(
#getWalletId,
[walletName],
),
returnValue: _i12.Future<String?>.value(),
) as _i12.Future<String?>);
returnValue: _i11.Future<String?>.value(),
) as _i11.Future<String?>);
@override
_i12.Future<bool> isMnemonicVerified({required String? walletId}) =>
_i11.Future<bool> isMnemonicVerified({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#isMnemonicVerified,
[],
{#walletId: walletId},
),
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>);
@override
_i12.Future<void> setMnemonicVerified({required String? walletId}) =>
_i11.Future<void> setMnemonicVerified({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#setMnemonicVerified,
[],
{#walletId: walletId},
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<int> deleteWallet(
_i11.Future<int> deleteWallet(
String? name,
bool? shouldNotifyListeners,
) =>
@ -434,18 +421,18 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
shouldNotifyListeners,
],
),
returnValue: _i12.Future<int>.value(0),
) as _i12.Future<int>);
returnValue: _i11.Future<int>.value(0),
) as _i11.Future<int>);
@override
_i12.Future<void> refreshWallets(bool? shouldNotifyListeners) =>
_i11.Future<void> refreshWallets(bool? shouldNotifyListeners) =>
(super.noSuchMethod(
Invocation.method(
#refreshWallets,
[shouldNotifyListeners],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
@ -526,57 +513,57 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
returnValueForMissingStub: null,
);
@override
_i12.Future<void> install({required _i19.Uint8List? themeArchiveData}) =>
_i11.Future<void> install({required _i19.Uint8List? themeArchiveData}) =>
(super.noSuchMethod(
Invocation.method(
#install,
[],
{#themeArchiveData: themeArchiveData},
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
_i11.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
Invocation.method(
#remove,
[],
{#themeId: themeId},
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
_i11.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
Invocation.method(
#checkDefaultThemesOnStartup,
[],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<bool> verifyInstalled({required String? themeId}) =>
_i11.Future<bool> verifyInstalled({required String? themeId}) =>
(super.noSuchMethod(
Invocation.method(
#verifyInstalled,
[],
{#themeId: themeId},
),
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>);
@override
_i12.Future<List<_i17.StackThemeMetaData>> fetchThemes() =>
_i11.Future<List<_i17.StackThemeMetaData>> fetchThemes() =>
(super.noSuchMethod(
Invocation.method(
#fetchThemes,
[],
),
returnValue: _i12.Future<List<_i17.StackThemeMetaData>>.value(
returnValue: _i11.Future<List<_i17.StackThemeMetaData>>.value(
<_i17.StackThemeMetaData>[]),
) as _i12.Future<List<_i17.StackThemeMetaData>>);
) as _i11.Future<List<_i17.StackThemeMetaData>>);
@override
_i12.Future<_i19.Uint8List> fetchTheme(
_i11.Future<_i19.Uint8List> fetchTheme(
{required _i17.StackThemeMetaData? themeMetaData}) =>
(super.noSuchMethod(
Invocation.method(
@ -584,8 +571,8 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
[],
{#themeMetaData: themeMetaData},
),
returnValue: _i12.Future<_i19.Uint8List>.value(_i19.Uint8List(0)),
) as _i12.Future<_i19.Uint8List>);
returnValue: _i11.Future<_i19.Uint8List>.value(_i19.Uint8List(0)),
) as _i11.Future<_i19.Uint8List>);
@override
_i18.StackTheme? getTheme({required String? themeId}) =>
(super.noSuchMethod(Invocation.method(
@ -609,10 +596,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
returnValueForMissingStub: null,
);
@override
_i11.Coin get coin => (super.noSuchMethod(
_i15.Coin get coin => (super.noSuchMethod(
Invocation.getter(#coin),
returnValue: _i11.Coin.bitcoin,
) as _i11.Coin);
returnValue: _i15.Coin.bitcoin,
) as _i15.Coin);
@override
bool get isRefreshing => (super.noSuchMethod(
Invocation.getter(#isRefreshing),
@ -645,23 +632,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
returnValueForMissingStub: null,
);
@override
_i12.Future<_i7.FeeObject> get fees => (super.noSuchMethod(
_i11.Future<_i7.FeeObject> get fees => (super.noSuchMethod(
Invocation.getter(#fees),
returnValue: _i12.Future<_i7.FeeObject>.value(_FakeFeeObject_4(
returnValue: _i11.Future<_i7.FeeObject>.value(_FakeFeeObject_4(
this,
Invocation.getter(#fees),
)),
) as _i12.Future<_i7.FeeObject>);
) as _i11.Future<_i7.FeeObject>);
@override
_i12.Future<int> get maxFee => (super.noSuchMethod(
_i11.Future<int> get maxFee => (super.noSuchMethod(
Invocation.getter(#maxFee),
returnValue: _i12.Future<int>.value(0),
) as _i12.Future<int>);
returnValue: _i11.Future<int>.value(0),
) as _i11.Future<int>);
@override
_i12.Future<String> get currentReceivingAddress => (super.noSuchMethod(
_i11.Future<String> get currentReceivingAddress => (super.noSuchMethod(
Invocation.getter(#currentReceivingAddress),
returnValue: _i12.Future<String>.value(''),
) as _i12.Future<String>);
returnValue: _i11.Future<String>.value(''),
) as _i11.Future<String>);
@override
_i8.Balance get balance => (super.noSuchMethod(
Invocation.getter(#balance),
@ -671,16 +658,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
),
) as _i8.Balance);
@override
_i12.Future<List<_i21.Transaction>> get transactions => (super.noSuchMethod(
_i11.Future<List<_i21.Transaction>> get transactions => (super.noSuchMethod(
Invocation.getter(#transactions),
returnValue:
_i12.Future<List<_i21.Transaction>>.value(<_i21.Transaction>[]),
) as _i12.Future<List<_i21.Transaction>>);
_i11.Future<List<_i21.Transaction>>.value(<_i21.Transaction>[]),
) as _i11.Future<List<_i21.Transaction>>);
@override
_i12.Future<List<_i21.UTXO>> get utxos => (super.noSuchMethod(
_i11.Future<List<_i21.UTXO>> get utxos => (super.noSuchMethod(
Invocation.getter(#utxos),
returnValue: _i12.Future<List<_i21.UTXO>>.value(<_i21.UTXO>[]),
) as _i12.Future<List<_i21.UTXO>>);
returnValue: _i11.Future<List<_i21.UTXO>>.value(<_i21.UTXO>[]),
) as _i11.Future<List<_i21.UTXO>>);
@override
set walletName(String? newName) => super.noSuchMethod(
Invocation.setter(
@ -700,20 +687,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
returnValue: '',
) as String);
@override
_i12.Future<List<String>> get mnemonic => (super.noSuchMethod(
_i11.Future<List<String>> get mnemonic => (super.noSuchMethod(
Invocation.getter(#mnemonic),
returnValue: _i12.Future<List<String>>.value(<String>[]),
) as _i12.Future<List<String>>);
returnValue: _i11.Future<List<String>>.value(<String>[]),
) as _i11.Future<List<String>>);
@override
_i12.Future<String?> get mnemonicString => (super.noSuchMethod(
_i11.Future<String?> get mnemonicString => (super.noSuchMethod(
Invocation.getter(#mnemonicString),
returnValue: _i12.Future<String?>.value(),
) as _i12.Future<String?>);
returnValue: _i11.Future<String?>.value(),
) as _i11.Future<String?>);
@override
_i12.Future<String?> get mnemonicPassphrase => (super.noSuchMethod(
_i11.Future<String?> get mnemonicPassphrase => (super.noSuchMethod(
Invocation.getter(#mnemonicPassphrase),
returnValue: _i12.Future<String?>.value(),
) as _i12.Future<String?>);
returnValue: _i11.Future<String?>.value(),
) as _i11.Future<String?>);
@override
bool get hasCalledExit => (super.noSuchMethod(
Invocation.getter(#hasCalledExit),
@ -730,7 +717,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
returnValue: 0,
) as int);
@override
_i12.Future<Map<String, dynamic>> prepareSend({
_i11.Future<Map<String, dynamic>> prepareSend({
required String? address,
required _i9.Amount? amount,
Map<String, dynamic>? args,
@ -746,36 +733,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
},
),
returnValue:
_i12.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i12.Future<Map<String, dynamic>>);
_i11.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i11.Future<Map<String, dynamic>>);
@override
_i12.Future<String> confirmSend({required Map<String, dynamic>? txData}) =>
_i11.Future<String> confirmSend({required Map<String, dynamic>? txData}) =>
(super.noSuchMethod(
Invocation.method(
#confirmSend,
[],
{#txData: txData},
),
returnValue: _i12.Future<String>.value(''),
) as _i12.Future<String>);
returnValue: _i11.Future<String>.value(''),
) as _i11.Future<String>);
@override
_i12.Future<void> refresh() => (super.noSuchMethod(
_i11.Future<void> refresh() => (super.noSuchMethod(
Invocation.method(
#refresh,
[],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> updateNode(bool? shouldRefresh) => (super.noSuchMethod(
_i11.Future<void> updateNode(bool? shouldRefresh) => (super.noSuchMethod(
Invocation.method(
#updateNode,
[shouldRefresh],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
bool validateAddress(String? address) => (super.noSuchMethod(
Invocation.method(
@ -785,15 +772,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
returnValue: false,
) as bool);
@override
_i12.Future<bool> testNetworkConnection() => (super.noSuchMethod(
_i11.Future<bool> testNetworkConnection() => (super.noSuchMethod(
Invocation.method(
#testNetworkConnection,
[],
),
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>);
@override
_i12.Future<void> recoverFromMnemonic({
_i11.Future<void> recoverFromMnemonic({
required String? mnemonic,
String? mnemonicPassphrase,
required int? maxUnusedAddressGap,
@ -812,40 +799,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
#height: height,
},
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> initializeNew(
_i11.Future<void> initializeNew(
({String mnemonicPassphrase, int wordCount})? data) =>
(super.noSuchMethod(
Invocation.method(
#initializeNew,
[data],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> initializeExisting() => (super.noSuchMethod(
_i11.Future<void> initializeExisting() => (super.noSuchMethod(
Invocation.method(
#initializeExisting,
[],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> exit() => (super.noSuchMethod(
_i11.Future<void> exit() => (super.noSuchMethod(
Invocation.method(
#exit,
[],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> fullRescan(
_i11.Future<void> fullRescan(
int? maxUnusedAddressGap,
int? maxNumberOfIndexesToCheck,
) =>
@ -857,11 +844,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
maxNumberOfIndexesToCheck,
],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<_i9.Amount> estimateFeeFor(
_i11.Future<_i9.Amount> estimateFeeFor(
_i9.Amount? amount,
int? feeRate,
) =>
@ -873,7 +860,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
feeRate,
],
),
returnValue: _i12.Future<_i9.Amount>.value(_FakeAmount_6(
returnValue: _i11.Future<_i9.Amount>.value(_FakeAmount_6(
this,
Invocation.method(
#estimateFeeFor,
@ -883,23 +870,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
],
),
)),
) as _i12.Future<_i9.Amount>);
) as _i11.Future<_i9.Amount>);
@override
_i12.Future<bool> generateNewAddress() => (super.noSuchMethod(
_i11.Future<bool> generateNewAddress() => (super.noSuchMethod(
Invocation.method(
#generateNewAddress,
[],
),
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>);
@override
_i12.Future<void> updateSentCachedTxData(Map<String, dynamic>? txData) =>
_i11.Future<void> updateSentCachedTxData(Map<String, dynamic>? txData) =>
(super.noSuchMethod(
Invocation.method(
#updateSentCachedTxData,
[txData],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
}

File diff suppressed because it is too large Load diff

View file

@ -3,22 +3,21 @@
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i9;
import 'dart:typed_data' as _i16;
import 'dart:ui' as _i13;
import 'dart:async' as _i8;
import 'dart:typed_data' as _i15;
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/isar/stack_theme.dart' as _i15;
import 'package:stackwallet/models/isar/stack_theme.dart' as _i14;
import 'package:stackwallet/networking/http.dart' as _i6;
import 'package:stackwallet/services/locale_service.dart' as _i12;
import 'package:stackwallet/services/locale_service.dart' as _i11;
import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/wallets.dart' as _i7;
import 'package:stackwallet/themes/theme_service.dart' as _i14;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i8;
import 'package:stackwallet/themes/theme_service.dart' as _i13;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i10;
import 'package:stackwallet/utilities/prefs.dart' as _i11;
as _i9;
import 'package:stackwallet/utilities/prefs.dart' as _i10;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
@ -126,16 +125,6 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
@override
List<({_i8.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})>
get walletsByCoin => (super.noSuchMethod(
Invocation.getter(#walletsByCoin),
returnValue: <({
_i8.Coin coin,
List<_i5.Wallet<_i4.CryptoCurrency>> wallets
})>[],
) as List<
({_i8.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})>);
@override
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
(super.noSuchMethod(
Invocation.method(
@ -159,9 +148,9 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
returnValueForMissingStub: null,
);
@override
_i9.Future<void> deleteWallet(
_i8.Future<void> deleteWallet(
String? walletId,
_i10.SecureStorageInterface? secureStorage,
_i9.SecureStorageInterface? secureStorage,
) =>
(super.noSuchMethod(
Invocation.method(
@ -171,12 +160,12 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
secureStorage,
],
),
returnValue: _i9.Future<void>.value(),
returnValueForMissingStub: _i9.Future<void>.value(),
) as _i9.Future<void>);
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i9.Future<void> load(
_i11.Prefs? prefs,
_i8.Future<void> load(
_i10.Prefs? prefs,
_i3.MainDB? mainDB,
) =>
(super.noSuchMethod(
@ -187,12 +176,12 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
mainDB,
],
),
returnValue: _i9.Future<void>.value(),
returnValueForMissingStub: _i9.Future<void>.value(),
) as _i9.Future<void>);
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i9.Future<void> loadAfterStackRestore(
_i11.Prefs? prefs,
_i8.Future<void> loadAfterStackRestore(
_i10.Prefs? prefs,
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
) =>
(super.noSuchMethod(
@ -203,15 +192,15 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
wallets,
],
),
returnValue: _i9.Future<void>.value(),
returnValueForMissingStub: _i9.Future<void>.value(),
) as _i9.Future<void>);
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
}
/// A class which mocks [LocaleService].
///
/// See the documentation for Mockito's code generation for more information.
class MockLocaleService extends _i1.Mock implements _i12.LocaleService {
class MockLocaleService extends _i1.Mock implements _i11.LocaleService {
MockLocaleService() {
_i1.throwOnMissingStub(this);
}
@ -227,17 +216,17 @@ class MockLocaleService extends _i1.Mock implements _i12.LocaleService {
returnValue: false,
) as bool);
@override
_i9.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
_i8.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
Invocation.method(
#loadLocale,
[],
{#notify: notify},
),
returnValue: _i9.Future<void>.value(),
returnValueForMissingStub: _i9.Future<void>.value(),
) as _i9.Future<void>);
returnValue: _i8.Future<void>.value(),
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],
@ -245,7 +234,7 @@ class MockLocaleService extends _i1.Mock implements _i12.LocaleService {
returnValueForMissingStub: null,
);
@override
void removeListener(_i13.VoidCallback? listener) => super.noSuchMethod(
void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#removeListener,
[listener],
@ -273,7 +262,7 @@ class MockLocaleService extends _i1.Mock implements _i12.LocaleService {
/// A class which mocks [ThemeService].
///
/// See the documentation for Mockito's code generation for more information.
class MockThemeService extends _i1.Mock implements _i14.ThemeService {
class MockThemeService extends _i1.Mock implements _i13.ThemeService {
MockThemeService() {
_i1.throwOnMissingStub(this);
}
@ -303,10 +292,10 @@ class MockThemeService extends _i1.Mock implements _i14.ThemeService {
),
) as _i3.MainDB);
@override
List<_i15.StackTheme> get installedThemes => (super.noSuchMethod(
List<_i14.StackTheme> get installedThemes => (super.noSuchMethod(
Invocation.getter(#installedThemes),
returnValue: <_i15.StackTheme>[],
) as List<_i15.StackTheme>);
returnValue: <_i14.StackTheme>[],
) as List<_i14.StackTheme>);
@override
void init(_i3.MainDB? db) => super.noSuchMethod(
Invocation.method(
@ -316,71 +305,71 @@ class MockThemeService extends _i1.Mock implements _i14.ThemeService {
returnValueForMissingStub: null,
);
@override
_i9.Future<void> install({required _i16.Uint8List? themeArchiveData}) =>
_i8.Future<void> install({required _i15.Uint8List? themeArchiveData}) =>
(super.noSuchMethod(
Invocation.method(
#install,
[],
{#themeArchiveData: themeArchiveData},
),
returnValue: _i9.Future<void>.value(),
returnValueForMissingStub: _i9.Future<void>.value(),
) as _i9.Future<void>);
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i9.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
_i8.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
Invocation.method(
#remove,
[],
{#themeId: themeId},
),
returnValue: _i9.Future<void>.value(),
returnValueForMissingStub: _i9.Future<void>.value(),
) as _i9.Future<void>);
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i9.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
_i8.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
Invocation.method(
#checkDefaultThemesOnStartup,
[],
),
returnValue: _i9.Future<void>.value(),
returnValueForMissingStub: _i9.Future<void>.value(),
) as _i9.Future<void>);
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i9.Future<bool> verifyInstalled({required String? themeId}) =>
_i8.Future<bool> verifyInstalled({required String? themeId}) =>
(super.noSuchMethod(
Invocation.method(
#verifyInstalled,
[],
{#themeId: themeId},
),
returnValue: _i9.Future<bool>.value(false),
) as _i9.Future<bool>);
returnValue: _i8.Future<bool>.value(false),
) as _i8.Future<bool>);
@override
_i9.Future<List<_i14.StackThemeMetaData>> fetchThemes() =>
_i8.Future<List<_i13.StackThemeMetaData>> fetchThemes() =>
(super.noSuchMethod(
Invocation.method(
#fetchThemes,
[],
),
returnValue: _i9.Future<List<_i14.StackThemeMetaData>>.value(
<_i14.StackThemeMetaData>[]),
) as _i9.Future<List<_i14.StackThemeMetaData>>);
returnValue: _i8.Future<List<_i13.StackThemeMetaData>>.value(
<_i13.StackThemeMetaData>[]),
) as _i8.Future<List<_i13.StackThemeMetaData>>);
@override
_i9.Future<_i16.Uint8List> fetchTheme(
{required _i14.StackThemeMetaData? themeMetaData}) =>
_i8.Future<_i15.Uint8List> fetchTheme(
{required _i13.StackThemeMetaData? themeMetaData}) =>
(super.noSuchMethod(
Invocation.method(
#fetchTheme,
[],
{#themeMetaData: themeMetaData},
),
returnValue: _i9.Future<_i16.Uint8List>.value(_i16.Uint8List(0)),
) as _i9.Future<_i16.Uint8List>);
returnValue: _i8.Future<_i15.Uint8List>.value(_i15.Uint8List(0)),
) as _i8.Future<_i15.Uint8List>);
@override
_i15.StackTheme? getTheme({required String? themeId}) =>
_i14.StackTheme? getTheme({required String? themeId}) =>
(super.noSuchMethod(Invocation.method(
#getTheme,
[],
{#themeId: themeId},
)) as _i15.StackTheme?);
)) as _i14.StackTheme?);
}

View file

@ -3,7 +3,7 @@
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i12;
import 'dart:async' as _i11;
import 'dart:ui' as _i15;
import 'package:mockito/mockito.dart' as _i1;
@ -15,12 +15,12 @@ import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i7;
import 'package:stackwallet/services/coins/coin_service.dart' as _i17;
import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/wallets.dart' as _i10;
import 'package:stackwallet/services/wallets_service.dart' as _i14;
import 'package:stackwallet/services/wallets_service.dart' as _i13;
import 'package:stackwallet/utilities/amount/amount.dart' as _i9;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i11;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i14;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i6;
import 'package:stackwallet/utilities/prefs.dart' as _i13;
import 'package:stackwallet/utilities/prefs.dart' as _i12;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
@ -159,19 +159,6 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
@override
List<({_i11.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})>
get walletsByCoin => (super.noSuchMethod(
Invocation.getter(#walletsByCoin),
returnValue: <({
_i11.Coin coin,
List<_i5.Wallet<_i4.CryptoCurrency>> wallets
})>[],
) as List<
({
_i11.Coin coin,
List<_i5.Wallet<_i4.CryptoCurrency>> wallets
})>);
@override
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
(super.noSuchMethod(
Invocation.method(
@ -195,7 +182,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
returnValueForMissingStub: null,
);
@override
_i12.Future<void> deleteWallet(
_i11.Future<void> deleteWallet(
String? walletId,
_i6.SecureStorageInterface? secureStorage,
) =>
@ -207,12 +194,12 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
secureStorage,
],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> load(
_i13.Prefs? prefs,
_i11.Future<void> load(
_i12.Prefs? prefs,
_i3.MainDB? mainDB,
) =>
(super.noSuchMethod(
@ -223,12 +210,12 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
mainDB,
],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> loadAfterStackRestore(
_i13.Prefs? prefs,
_i11.Future<void> loadAfterStackRestore(
_i12.Prefs? prefs,
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
) =>
(super.noSuchMethod(
@ -239,33 +226,33 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
wallets,
],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
}
/// A class which mocks [WalletsService].
///
/// See the documentation for Mockito's code generation for more information.
class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
class MockWalletsService extends _i1.Mock implements _i13.WalletsService {
MockWalletsService() {
_i1.throwOnMissingStub(this);
}
@override
_i12.Future<Map<String, _i14.WalletInfo>> get walletNames =>
_i11.Future<Map<String, _i13.WalletInfo>> get walletNames =>
(super.noSuchMethod(
Invocation.getter(#walletNames),
returnValue: _i12.Future<Map<String, _i14.WalletInfo>>.value(
<String, _i14.WalletInfo>{}),
) as _i12.Future<Map<String, _i14.WalletInfo>>);
returnValue: _i11.Future<Map<String, _i13.WalletInfo>>.value(
<String, _i13.WalletInfo>{}),
) as _i11.Future<Map<String, _i13.WalletInfo>>);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
) as bool);
@override
_i12.Future<bool> renameWallet({
_i11.Future<bool> renameWallet({
required String? from,
required String? to,
required bool? shouldNotifyListeners,
@ -280,21 +267,21 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>);
@override
Map<String, _i14.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
Map<String, _i13.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
Invocation.method(
#fetchWalletsData,
[],
),
returnValue: <String, _i14.WalletInfo>{},
) as Map<String, _i14.WalletInfo>);
returnValue: <String, _i13.WalletInfo>{},
) as Map<String, _i13.WalletInfo>);
@override
_i12.Future<void> addExistingStackWallet({
_i11.Future<void> addExistingStackWallet({
required String? name,
required String? walletId,
required _i11.Coin? coin,
required _i14.Coin? coin,
required bool? shouldNotifyListeners,
}) =>
(super.noSuchMethod(
@ -308,13 +295,13 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<String?> addNewWallet({
_i11.Future<String?> addNewWallet({
required String? name,
required _i11.Coin? coin,
required _i14.Coin? coin,
required bool? shouldNotifyListeners,
}) =>
(super.noSuchMethod(
@ -327,46 +314,46 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i12.Future<String?>.value(),
) as _i12.Future<String?>);
returnValue: _i11.Future<String?>.value(),
) as _i11.Future<String?>);
@override
_i12.Future<List<String>> getFavoriteWalletIds() => (super.noSuchMethod(
_i11.Future<List<String>> getFavoriteWalletIds() => (super.noSuchMethod(
Invocation.method(
#getFavoriteWalletIds,
[],
),
returnValue: _i12.Future<List<String>>.value(<String>[]),
) as _i12.Future<List<String>>);
returnValue: _i11.Future<List<String>>.value(<String>[]),
) as _i11.Future<List<String>>);
@override
_i12.Future<void> saveFavoriteWalletIds(List<String>? walletIds) =>
_i11.Future<void> saveFavoriteWalletIds(List<String>? walletIds) =>
(super.noSuchMethod(
Invocation.method(
#saveFavoriteWalletIds,
[walletIds],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> addFavorite(String? walletId) => (super.noSuchMethod(
_i11.Future<void> addFavorite(String? walletId) => (super.noSuchMethod(
Invocation.method(
#addFavorite,
[walletId],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> removeFavorite(String? walletId) => (super.noSuchMethod(
_i11.Future<void> removeFavorite(String? walletId) => (super.noSuchMethod(
Invocation.method(
#removeFavorite,
[walletId],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> moveFavorite({
_i11.Future<void> moveFavorite({
required int? fromIndex,
required int? toIndex,
}) =>
@ -379,48 +366,48 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
#toIndex: toIndex,
},
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<bool> checkForDuplicate(String? name) => (super.noSuchMethod(
_i11.Future<bool> checkForDuplicate(String? name) => (super.noSuchMethod(
Invocation.method(
#checkForDuplicate,
[name],
),
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>);
@override
_i12.Future<String?> getWalletId(String? walletName) => (super.noSuchMethod(
_i11.Future<String?> getWalletId(String? walletName) => (super.noSuchMethod(
Invocation.method(
#getWalletId,
[walletName],
),
returnValue: _i12.Future<String?>.value(),
) as _i12.Future<String?>);
returnValue: _i11.Future<String?>.value(),
) as _i11.Future<String?>);
@override
_i12.Future<bool> isMnemonicVerified({required String? walletId}) =>
_i11.Future<bool> isMnemonicVerified({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#isMnemonicVerified,
[],
{#walletId: walletId},
),
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>);
@override
_i12.Future<void> setMnemonicVerified({required String? walletId}) =>
_i11.Future<void> setMnemonicVerified({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#setMnemonicVerified,
[],
{#walletId: walletId},
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<int> deleteWallet(
_i11.Future<int> deleteWallet(
String? name,
bool? shouldNotifyListeners,
) =>
@ -432,18 +419,18 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
shouldNotifyListeners,
],
),
returnValue: _i12.Future<int>.value(0),
) as _i12.Future<int>);
returnValue: _i11.Future<int>.value(0),
) as _i11.Future<int>);
@override
_i12.Future<void> refreshWallets(bool? shouldNotifyListeners) =>
_i11.Future<void> refreshWallets(bool? shouldNotifyListeners) =>
(super.noSuchMethod(
Invocation.method(
#refreshWallets,
[shouldNotifyListeners],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
void addListener(_i15.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
@ -506,17 +493,17 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValue: false,
) as bool);
@override
_i12.Future<void> updateDefaults() => (super.noSuchMethod(
_i11.Future<void> updateDefaults() => (super.noSuchMethod(
Invocation.method(
#updateDefaults,
[],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> setPrimaryNodeFor({
required _i11.Coin? coin,
_i11.Future<void> setPrimaryNodeFor({
required _i14.Coin? coin,
required _i16.NodeModel? node,
bool? shouldNotifyListeners = false,
}) =>
@ -530,18 +517,18 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i16.NodeModel? getPrimaryNodeFor({required _i11.Coin? coin}) =>
_i16.NodeModel? getPrimaryNodeFor({required _i14.Coin? coin}) =>
(super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor,
[],
{#coin: coin},
)) as _i16.NodeModel?);
@override
List<_i16.NodeModel> getNodesFor(_i11.Coin? coin) => (super.noSuchMethod(
List<_i16.NodeModel> getNodesFor(_i14.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getNodesFor,
[coin],
@ -556,7 +543,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
{#id: id},
)) as _i16.NodeModel?);
@override
List<_i16.NodeModel> failoverNodesFor({required _i11.Coin? coin}) =>
List<_i16.NodeModel> failoverNodesFor({required _i14.Coin? coin}) =>
(super.noSuchMethod(
Invocation.method(
#failoverNodesFor,
@ -566,7 +553,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValue: <_i16.NodeModel>[],
) as List<_i16.NodeModel>);
@override
_i12.Future<void> add(
_i11.Future<void> add(
_i16.NodeModel? node,
String? password,
bool? shouldNotifyListeners,
@ -580,11 +567,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> delete(
_i11.Future<void> delete(
String? id,
bool? shouldNotifyListeners,
) =>
@ -596,11 +583,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> setEnabledState(
_i11.Future<void> setEnabledState(
String? id,
bool? enabled,
bool? shouldNotifyListeners,
@ -614,11 +601,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> edit(
_i11.Future<void> edit(
_i16.NodeModel? editedNode,
String? password,
bool? shouldNotifyListeners,
@ -632,18 +619,18 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> updateCommunityNodes() => (super.noSuchMethod(
_i11.Future<void> updateCommunityNodes() => (super.noSuchMethod(
Invocation.method(
#updateCommunityNodes,
[],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
void addListener(_i15.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
@ -692,10 +679,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
returnValueForMissingStub: null,
);
@override
_i11.Coin get coin => (super.noSuchMethod(
_i14.Coin get coin => (super.noSuchMethod(
Invocation.getter(#coin),
returnValue: _i11.Coin.bitcoin,
) as _i11.Coin);
returnValue: _i14.Coin.bitcoin,
) as _i14.Coin);
@override
bool get isRefreshing => (super.noSuchMethod(
Invocation.getter(#isRefreshing),
@ -728,23 +715,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
returnValueForMissingStub: null,
);
@override
_i12.Future<_i7.FeeObject> get fees => (super.noSuchMethod(
_i11.Future<_i7.FeeObject> get fees => (super.noSuchMethod(
Invocation.getter(#fees),
returnValue: _i12.Future<_i7.FeeObject>.value(_FakeFeeObject_4(
returnValue: _i11.Future<_i7.FeeObject>.value(_FakeFeeObject_4(
this,
Invocation.getter(#fees),
)),
) as _i12.Future<_i7.FeeObject>);
) as _i11.Future<_i7.FeeObject>);
@override
_i12.Future<int> get maxFee => (super.noSuchMethod(
_i11.Future<int> get maxFee => (super.noSuchMethod(
Invocation.getter(#maxFee),
returnValue: _i12.Future<int>.value(0),
) as _i12.Future<int>);
returnValue: _i11.Future<int>.value(0),
) as _i11.Future<int>);
@override
_i12.Future<String> get currentReceivingAddress => (super.noSuchMethod(
_i11.Future<String> get currentReceivingAddress => (super.noSuchMethod(
Invocation.getter(#currentReceivingAddress),
returnValue: _i12.Future<String>.value(''),
) as _i12.Future<String>);
returnValue: _i11.Future<String>.value(''),
) as _i11.Future<String>);
@override
_i8.Balance get balance => (super.noSuchMethod(
Invocation.getter(#balance),
@ -754,16 +741,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
),
) as _i8.Balance);
@override
_i12.Future<List<_i18.Transaction>> get transactions => (super.noSuchMethod(
_i11.Future<List<_i18.Transaction>> get transactions => (super.noSuchMethod(
Invocation.getter(#transactions),
returnValue:
_i12.Future<List<_i18.Transaction>>.value(<_i18.Transaction>[]),
) as _i12.Future<List<_i18.Transaction>>);
_i11.Future<List<_i18.Transaction>>.value(<_i18.Transaction>[]),
) as _i11.Future<List<_i18.Transaction>>);
@override
_i12.Future<List<_i18.UTXO>> get utxos => (super.noSuchMethod(
_i11.Future<List<_i18.UTXO>> get utxos => (super.noSuchMethod(
Invocation.getter(#utxos),
returnValue: _i12.Future<List<_i18.UTXO>>.value(<_i18.UTXO>[]),
) as _i12.Future<List<_i18.UTXO>>);
returnValue: _i11.Future<List<_i18.UTXO>>.value(<_i18.UTXO>[]),
) as _i11.Future<List<_i18.UTXO>>);
@override
set walletName(String? newName) => super.noSuchMethod(
Invocation.setter(
@ -783,20 +770,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
returnValue: '',
) as String);
@override
_i12.Future<List<String>> get mnemonic => (super.noSuchMethod(
_i11.Future<List<String>> get mnemonic => (super.noSuchMethod(
Invocation.getter(#mnemonic),
returnValue: _i12.Future<List<String>>.value(<String>[]),
) as _i12.Future<List<String>>);
returnValue: _i11.Future<List<String>>.value(<String>[]),
) as _i11.Future<List<String>>);
@override
_i12.Future<String?> get mnemonicString => (super.noSuchMethod(
_i11.Future<String?> get mnemonicString => (super.noSuchMethod(
Invocation.getter(#mnemonicString),
returnValue: _i12.Future<String?>.value(),
) as _i12.Future<String?>);
returnValue: _i11.Future<String?>.value(),
) as _i11.Future<String?>);
@override
_i12.Future<String?> get mnemonicPassphrase => (super.noSuchMethod(
_i11.Future<String?> get mnemonicPassphrase => (super.noSuchMethod(
Invocation.getter(#mnemonicPassphrase),
returnValue: _i12.Future<String?>.value(),
) as _i12.Future<String?>);
returnValue: _i11.Future<String?>.value(),
) as _i11.Future<String?>);
@override
bool get hasCalledExit => (super.noSuchMethod(
Invocation.getter(#hasCalledExit),
@ -813,7 +800,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
returnValue: 0,
) as int);
@override
_i12.Future<Map<String, dynamic>> prepareSend({
_i11.Future<Map<String, dynamic>> prepareSend({
required String? address,
required _i9.Amount? amount,
Map<String, dynamic>? args,
@ -829,36 +816,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
},
),
returnValue:
_i12.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i12.Future<Map<String, dynamic>>);
_i11.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i11.Future<Map<String, dynamic>>);
@override
_i12.Future<String> confirmSend({required Map<String, dynamic>? txData}) =>
_i11.Future<String> confirmSend({required Map<String, dynamic>? txData}) =>
(super.noSuchMethod(
Invocation.method(
#confirmSend,
[],
{#txData: txData},
),
returnValue: _i12.Future<String>.value(''),
) as _i12.Future<String>);
returnValue: _i11.Future<String>.value(''),
) as _i11.Future<String>);
@override
_i12.Future<void> refresh() => (super.noSuchMethod(
_i11.Future<void> refresh() => (super.noSuchMethod(
Invocation.method(
#refresh,
[],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> updateNode(bool? shouldRefresh) => (super.noSuchMethod(
_i11.Future<void> updateNode(bool? shouldRefresh) => (super.noSuchMethod(
Invocation.method(
#updateNode,
[shouldRefresh],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
bool validateAddress(String? address) => (super.noSuchMethod(
Invocation.method(
@ -868,15 +855,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
returnValue: false,
) as bool);
@override
_i12.Future<bool> testNetworkConnection() => (super.noSuchMethod(
_i11.Future<bool> testNetworkConnection() => (super.noSuchMethod(
Invocation.method(
#testNetworkConnection,
[],
),
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>);
@override
_i12.Future<void> recoverFromMnemonic({
_i11.Future<void> recoverFromMnemonic({
required String? mnemonic,
String? mnemonicPassphrase,
required int? maxUnusedAddressGap,
@ -895,40 +882,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
#height: height,
},
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> initializeNew(
_i11.Future<void> initializeNew(
({String mnemonicPassphrase, int wordCount})? data) =>
(super.noSuchMethod(
Invocation.method(
#initializeNew,
[data],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> initializeExisting() => (super.noSuchMethod(
_i11.Future<void> initializeExisting() => (super.noSuchMethod(
Invocation.method(
#initializeExisting,
[],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> exit() => (super.noSuchMethod(
_i11.Future<void> exit() => (super.noSuchMethod(
Invocation.method(
#exit,
[],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<void> fullRescan(
_i11.Future<void> fullRescan(
int? maxUnusedAddressGap,
int? maxNumberOfIndexesToCheck,
) =>
@ -940,11 +927,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
maxNumberOfIndexesToCheck,
],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
@override
_i12.Future<_i9.Amount> estimateFeeFor(
_i11.Future<_i9.Amount> estimateFeeFor(
_i9.Amount? amount,
int? feeRate,
) =>
@ -956,7 +943,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
feeRate,
],
),
returnValue: _i12.Future<_i9.Amount>.value(_FakeAmount_6(
returnValue: _i11.Future<_i9.Amount>.value(_FakeAmount_6(
this,
Invocation.method(
#estimateFeeFor,
@ -966,23 +953,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
],
),
)),
) as _i12.Future<_i9.Amount>);
) as _i11.Future<_i9.Amount>);
@override
_i12.Future<bool> generateNewAddress() => (super.noSuchMethod(
_i11.Future<bool> generateNewAddress() => (super.noSuchMethod(
Invocation.method(
#generateNewAddress,
[],
),
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
returnValue: _i11.Future<bool>.value(false),
) as _i11.Future<bool>);
@override
_i12.Future<void> updateSentCachedTxData(Map<String, dynamic>? txData) =>
_i11.Future<void> updateSentCachedTxData(Map<String, dynamic>? txData) =>
(super.noSuchMethod(
Invocation.method(
#updateSentCachedTxData,
[txData],
),
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
returnValue: _i11.Future<void>.value(),
returnValueForMissingStub: _i11.Future<void>.value(),
) as _i11.Future<void>);
}

View file

@ -3,7 +3,7 @@
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i13;
import 'dart:async' as _i12;
import 'dart:typed_data' as _i19;
import 'dart:ui' as _i16;
@ -18,13 +18,13 @@ import 'package:stackwallet/networking/http.dart' as _i6;
import 'package:stackwallet/services/coins/coin_service.dart' as _i21;
import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/wallets.dart' as _i11;
import 'package:stackwallet/services/wallets_service.dart' as _i15;
import 'package:stackwallet/services/wallets_service.dart' as _i14;
import 'package:stackwallet/themes/theme_service.dart' as _i17;
import 'package:stackwallet/utilities/amount/amount.dart' as _i10;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i12;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
as _i7;
import 'package:stackwallet/utilities/prefs.dart' as _i14;
import 'package:stackwallet/utilities/prefs.dart' as _i13;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
@ -173,19 +173,6 @@ class MockWallets extends _i1.Mock implements _i11.Wallets {
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
@override
List<({_i12.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})>
get walletsByCoin => (super.noSuchMethod(
Invocation.getter(#walletsByCoin),
returnValue: <({
_i12.Coin coin,
List<_i5.Wallet<_i4.CryptoCurrency>> wallets
})>[],
) as List<
({
_i12.Coin coin,
List<_i5.Wallet<_i4.CryptoCurrency>> wallets
})>);
@override
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
(super.noSuchMethod(
Invocation.method(
@ -209,7 +196,7 @@ class MockWallets extends _i1.Mock implements _i11.Wallets {
returnValueForMissingStub: null,
);
@override
_i13.Future<void> deleteWallet(
_i12.Future<void> deleteWallet(
String? walletId,
_i7.SecureStorageInterface? secureStorage,
) =>
@ -221,12 +208,12 @@ class MockWallets extends _i1.Mock implements _i11.Wallets {
secureStorage,
],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> load(
_i14.Prefs? prefs,
_i12.Future<void> load(
_i13.Prefs? prefs,
_i3.MainDB? mainDB,
) =>
(super.noSuchMethod(
@ -237,12 +224,12 @@ class MockWallets extends _i1.Mock implements _i11.Wallets {
mainDB,
],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> loadAfterStackRestore(
_i14.Prefs? prefs,
_i12.Future<void> loadAfterStackRestore(
_i13.Prefs? prefs,
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
) =>
(super.noSuchMethod(
@ -253,33 +240,33 @@ class MockWallets extends _i1.Mock implements _i11.Wallets {
wallets,
],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
}
/// A class which mocks [WalletsService].
///
/// See the documentation for Mockito's code generation for more information.
class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
MockWalletsService() {
_i1.throwOnMissingStub(this);
}
@override
_i13.Future<Map<String, _i15.WalletInfo>> get walletNames =>
_i12.Future<Map<String, _i14.WalletInfo>> get walletNames =>
(super.noSuchMethod(
Invocation.getter(#walletNames),
returnValue: _i13.Future<Map<String, _i15.WalletInfo>>.value(
<String, _i15.WalletInfo>{}),
) as _i13.Future<Map<String, _i15.WalletInfo>>);
returnValue: _i12.Future<Map<String, _i14.WalletInfo>>.value(
<String, _i14.WalletInfo>{}),
) as _i12.Future<Map<String, _i14.WalletInfo>>);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
) as bool);
@override
_i13.Future<bool> renameWallet({
_i12.Future<bool> renameWallet({
required String? from,
required String? to,
required bool? shouldNotifyListeners,
@ -294,21 +281,21 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
@override
Map<String, _i15.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
Map<String, _i14.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
Invocation.method(
#fetchWalletsData,
[],
),
returnValue: <String, _i15.WalletInfo>{},
) as Map<String, _i15.WalletInfo>);
returnValue: <String, _i14.WalletInfo>{},
) as Map<String, _i14.WalletInfo>);
@override
_i13.Future<void> addExistingStackWallet({
_i12.Future<void> addExistingStackWallet({
required String? name,
required String? walletId,
required _i12.Coin? coin,
required _i15.Coin? coin,
required bool? shouldNotifyListeners,
}) =>
(super.noSuchMethod(
@ -322,13 +309,13 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<String?> addNewWallet({
_i12.Future<String?> addNewWallet({
required String? name,
required _i12.Coin? coin,
required _i15.Coin? coin,
required bool? shouldNotifyListeners,
}) =>
(super.noSuchMethod(
@ -341,46 +328,46 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i13.Future<String?>.value(),
) as _i13.Future<String?>);
returnValue: _i12.Future<String?>.value(),
) as _i12.Future<String?>);
@override
_i13.Future<List<String>> getFavoriteWalletIds() => (super.noSuchMethod(
_i12.Future<List<String>> getFavoriteWalletIds() => (super.noSuchMethod(
Invocation.method(
#getFavoriteWalletIds,
[],
),
returnValue: _i13.Future<List<String>>.value(<String>[]),
) as _i13.Future<List<String>>);
returnValue: _i12.Future<List<String>>.value(<String>[]),
) as _i12.Future<List<String>>);
@override
_i13.Future<void> saveFavoriteWalletIds(List<String>? walletIds) =>
_i12.Future<void> saveFavoriteWalletIds(List<String>? walletIds) =>
(super.noSuchMethod(
Invocation.method(
#saveFavoriteWalletIds,
[walletIds],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> addFavorite(String? walletId) => (super.noSuchMethod(
_i12.Future<void> addFavorite(String? walletId) => (super.noSuchMethod(
Invocation.method(
#addFavorite,
[walletId],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> removeFavorite(String? walletId) => (super.noSuchMethod(
_i12.Future<void> removeFavorite(String? walletId) => (super.noSuchMethod(
Invocation.method(
#removeFavorite,
[walletId],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> moveFavorite({
_i12.Future<void> moveFavorite({
required int? fromIndex,
required int? toIndex,
}) =>
@ -393,48 +380,48 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
#toIndex: toIndex,
},
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<bool> checkForDuplicate(String? name) => (super.noSuchMethod(
_i12.Future<bool> checkForDuplicate(String? name) => (super.noSuchMethod(
Invocation.method(
#checkForDuplicate,
[name],
),
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
@override
_i13.Future<String?> getWalletId(String? walletName) => (super.noSuchMethod(
_i12.Future<String?> getWalletId(String? walletName) => (super.noSuchMethod(
Invocation.method(
#getWalletId,
[walletName],
),
returnValue: _i13.Future<String?>.value(),
) as _i13.Future<String?>);
returnValue: _i12.Future<String?>.value(),
) as _i12.Future<String?>);
@override
_i13.Future<bool> isMnemonicVerified({required String? walletId}) =>
_i12.Future<bool> isMnemonicVerified({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#isMnemonicVerified,
[],
{#walletId: walletId},
),
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
@override
_i13.Future<void> setMnemonicVerified({required String? walletId}) =>
_i12.Future<void> setMnemonicVerified({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#setMnemonicVerified,
[],
{#walletId: walletId},
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<int> deleteWallet(
_i12.Future<int> deleteWallet(
String? name,
bool? shouldNotifyListeners,
) =>
@ -446,18 +433,18 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
shouldNotifyListeners,
],
),
returnValue: _i13.Future<int>.value(0),
) as _i13.Future<int>);
returnValue: _i12.Future<int>.value(0),
) as _i12.Future<int>);
@override
_i13.Future<void> refreshWallets(bool? shouldNotifyListeners) =>
_i12.Future<void> refreshWallets(bool? shouldNotifyListeners) =>
(super.noSuchMethod(
Invocation.method(
#refreshWallets,
[shouldNotifyListeners],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
@ -538,57 +525,57 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
returnValueForMissingStub: null,
);
@override
_i13.Future<void> install({required _i19.Uint8List? themeArchiveData}) =>
_i12.Future<void> install({required _i19.Uint8List? themeArchiveData}) =>
(super.noSuchMethod(
Invocation.method(
#install,
[],
{#themeArchiveData: themeArchiveData},
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
_i12.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
Invocation.method(
#remove,
[],
{#themeId: themeId},
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
_i12.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
Invocation.method(
#checkDefaultThemesOnStartup,
[],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<bool> verifyInstalled({required String? themeId}) =>
_i12.Future<bool> verifyInstalled({required String? themeId}) =>
(super.noSuchMethod(
Invocation.method(
#verifyInstalled,
[],
{#themeId: themeId},
),
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
@override
_i13.Future<List<_i17.StackThemeMetaData>> fetchThemes() =>
_i12.Future<List<_i17.StackThemeMetaData>> fetchThemes() =>
(super.noSuchMethod(
Invocation.method(
#fetchThemes,
[],
),
returnValue: _i13.Future<List<_i17.StackThemeMetaData>>.value(
returnValue: _i12.Future<List<_i17.StackThemeMetaData>>.value(
<_i17.StackThemeMetaData>[]),
) as _i13.Future<List<_i17.StackThemeMetaData>>);
) as _i12.Future<List<_i17.StackThemeMetaData>>);
@override
_i13.Future<_i19.Uint8List> fetchTheme(
_i12.Future<_i19.Uint8List> fetchTheme(
{required _i17.StackThemeMetaData? themeMetaData}) =>
(super.noSuchMethod(
Invocation.method(
@ -596,8 +583,8 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
[],
{#themeMetaData: themeMetaData},
),
returnValue: _i13.Future<_i19.Uint8List>.value(_i19.Uint8List(0)),
) as _i13.Future<_i19.Uint8List>);
returnValue: _i12.Future<_i19.Uint8List>.value(_i19.Uint8List(0)),
) as _i12.Future<_i19.Uint8List>);
@override
_i18.StackTheme? getTheme({required String? themeId}) =>
(super.noSuchMethod(Invocation.method(
@ -635,17 +622,17 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValue: false,
) as bool);
@override
_i13.Future<void> updateDefaults() => (super.noSuchMethod(
_i12.Future<void> updateDefaults() => (super.noSuchMethod(
Invocation.method(
#updateDefaults,
[],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> setPrimaryNodeFor({
required _i12.Coin? coin,
_i12.Future<void> setPrimaryNodeFor({
required _i15.Coin? coin,
required _i20.NodeModel? node,
bool? shouldNotifyListeners = false,
}) =>
@ -659,18 +646,18 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
#shouldNotifyListeners: shouldNotifyListeners,
},
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i20.NodeModel? getPrimaryNodeFor({required _i12.Coin? coin}) =>
_i20.NodeModel? getPrimaryNodeFor({required _i15.Coin? coin}) =>
(super.noSuchMethod(Invocation.method(
#getPrimaryNodeFor,
[],
{#coin: coin},
)) as _i20.NodeModel?);
@override
List<_i20.NodeModel> getNodesFor(_i12.Coin? coin) => (super.noSuchMethod(
List<_i20.NodeModel> getNodesFor(_i15.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getNodesFor,
[coin],
@ -685,7 +672,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
{#id: id},
)) as _i20.NodeModel?);
@override
List<_i20.NodeModel> failoverNodesFor({required _i12.Coin? coin}) =>
List<_i20.NodeModel> failoverNodesFor({required _i15.Coin? coin}) =>
(super.noSuchMethod(
Invocation.method(
#failoverNodesFor,
@ -695,7 +682,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
returnValue: <_i20.NodeModel>[],
) as List<_i20.NodeModel>);
@override
_i13.Future<void> add(
_i12.Future<void> add(
_i20.NodeModel? node,
String? password,
bool? shouldNotifyListeners,
@ -709,11 +696,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> delete(
_i12.Future<void> delete(
String? id,
bool? shouldNotifyListeners,
) =>
@ -725,11 +712,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> setEnabledState(
_i12.Future<void> setEnabledState(
String? id,
bool? enabled,
bool? shouldNotifyListeners,
@ -743,11 +730,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> edit(
_i12.Future<void> edit(
_i20.NodeModel? editedNode,
String? password,
bool? shouldNotifyListeners,
@ -761,18 +748,18 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
shouldNotifyListeners,
],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> updateCommunityNodes() => (super.noSuchMethod(
_i12.Future<void> updateCommunityNodes() => (super.noSuchMethod(
Invocation.method(
#updateCommunityNodes,
[],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
@ -821,10 +808,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
returnValueForMissingStub: null,
);
@override
_i12.Coin get coin => (super.noSuchMethod(
_i15.Coin get coin => (super.noSuchMethod(
Invocation.getter(#coin),
returnValue: _i12.Coin.bitcoin,
) as _i12.Coin);
returnValue: _i15.Coin.bitcoin,
) as _i15.Coin);
@override
bool get isRefreshing => (super.noSuchMethod(
Invocation.getter(#isRefreshing),
@ -857,23 +844,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
returnValueForMissingStub: null,
);
@override
_i13.Future<_i8.FeeObject> get fees => (super.noSuchMethod(
_i12.Future<_i8.FeeObject> get fees => (super.noSuchMethod(
Invocation.getter(#fees),
returnValue: _i13.Future<_i8.FeeObject>.value(_FakeFeeObject_5(
returnValue: _i12.Future<_i8.FeeObject>.value(_FakeFeeObject_5(
this,
Invocation.getter(#fees),
)),
) as _i13.Future<_i8.FeeObject>);
) as _i12.Future<_i8.FeeObject>);
@override
_i13.Future<int> get maxFee => (super.noSuchMethod(
_i12.Future<int> get maxFee => (super.noSuchMethod(
Invocation.getter(#maxFee),
returnValue: _i13.Future<int>.value(0),
) as _i13.Future<int>);
returnValue: _i12.Future<int>.value(0),
) as _i12.Future<int>);
@override
_i13.Future<String> get currentReceivingAddress => (super.noSuchMethod(
_i12.Future<String> get currentReceivingAddress => (super.noSuchMethod(
Invocation.getter(#currentReceivingAddress),
returnValue: _i13.Future<String>.value(''),
) as _i13.Future<String>);
returnValue: _i12.Future<String>.value(''),
) as _i12.Future<String>);
@override
_i9.Balance get balance => (super.noSuchMethod(
Invocation.getter(#balance),
@ -883,16 +870,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
),
) as _i9.Balance);
@override
_i13.Future<List<_i22.Transaction>> get transactions => (super.noSuchMethod(
_i12.Future<List<_i22.Transaction>> get transactions => (super.noSuchMethod(
Invocation.getter(#transactions),
returnValue:
_i13.Future<List<_i22.Transaction>>.value(<_i22.Transaction>[]),
) as _i13.Future<List<_i22.Transaction>>);
_i12.Future<List<_i22.Transaction>>.value(<_i22.Transaction>[]),
) as _i12.Future<List<_i22.Transaction>>);
@override
_i13.Future<List<_i22.UTXO>> get utxos => (super.noSuchMethod(
_i12.Future<List<_i22.UTXO>> get utxos => (super.noSuchMethod(
Invocation.getter(#utxos),
returnValue: _i13.Future<List<_i22.UTXO>>.value(<_i22.UTXO>[]),
) as _i13.Future<List<_i22.UTXO>>);
returnValue: _i12.Future<List<_i22.UTXO>>.value(<_i22.UTXO>[]),
) as _i12.Future<List<_i22.UTXO>>);
@override
set walletName(String? newName) => super.noSuchMethod(
Invocation.setter(
@ -912,20 +899,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
returnValue: '',
) as String);
@override
_i13.Future<List<String>> get mnemonic => (super.noSuchMethod(
_i12.Future<List<String>> get mnemonic => (super.noSuchMethod(
Invocation.getter(#mnemonic),
returnValue: _i13.Future<List<String>>.value(<String>[]),
) as _i13.Future<List<String>>);
returnValue: _i12.Future<List<String>>.value(<String>[]),
) as _i12.Future<List<String>>);
@override
_i13.Future<String?> get mnemonicString => (super.noSuchMethod(
_i12.Future<String?> get mnemonicString => (super.noSuchMethod(
Invocation.getter(#mnemonicString),
returnValue: _i13.Future<String?>.value(),
) as _i13.Future<String?>);
returnValue: _i12.Future<String?>.value(),
) as _i12.Future<String?>);
@override
_i13.Future<String?> get mnemonicPassphrase => (super.noSuchMethod(
_i12.Future<String?> get mnemonicPassphrase => (super.noSuchMethod(
Invocation.getter(#mnemonicPassphrase),
returnValue: _i13.Future<String?>.value(),
) as _i13.Future<String?>);
returnValue: _i12.Future<String?>.value(),
) as _i12.Future<String?>);
@override
bool get hasCalledExit => (super.noSuchMethod(
Invocation.getter(#hasCalledExit),
@ -942,7 +929,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
returnValue: 0,
) as int);
@override
_i13.Future<Map<String, dynamic>> prepareSend({
_i12.Future<Map<String, dynamic>> prepareSend({
required String? address,
required _i10.Amount? amount,
Map<String, dynamic>? args,
@ -958,36 +945,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
},
),
returnValue:
_i13.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i13.Future<Map<String, dynamic>>);
_i12.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i12.Future<Map<String, dynamic>>);
@override
_i13.Future<String> confirmSend({required Map<String, dynamic>? txData}) =>
_i12.Future<String> confirmSend({required Map<String, dynamic>? txData}) =>
(super.noSuchMethod(
Invocation.method(
#confirmSend,
[],
{#txData: txData},
),
returnValue: _i13.Future<String>.value(''),
) as _i13.Future<String>);
returnValue: _i12.Future<String>.value(''),
) as _i12.Future<String>);
@override
_i13.Future<void> refresh() => (super.noSuchMethod(
_i12.Future<void> refresh() => (super.noSuchMethod(
Invocation.method(
#refresh,
[],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> updateNode(bool? shouldRefresh) => (super.noSuchMethod(
_i12.Future<void> updateNode(bool? shouldRefresh) => (super.noSuchMethod(
Invocation.method(
#updateNode,
[shouldRefresh],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
bool validateAddress(String? address) => (super.noSuchMethod(
Invocation.method(
@ -997,15 +984,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
returnValue: false,
) as bool);
@override
_i13.Future<bool> testNetworkConnection() => (super.noSuchMethod(
_i12.Future<bool> testNetworkConnection() => (super.noSuchMethod(
Invocation.method(
#testNetworkConnection,
[],
),
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
@override
_i13.Future<void> recoverFromMnemonic({
_i12.Future<void> recoverFromMnemonic({
required String? mnemonic,
String? mnemonicPassphrase,
required int? maxUnusedAddressGap,
@ -1024,40 +1011,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
#height: height,
},
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> initializeNew(
_i12.Future<void> initializeNew(
({String mnemonicPassphrase, int wordCount})? data) =>
(super.noSuchMethod(
Invocation.method(
#initializeNew,
[data],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> initializeExisting() => (super.noSuchMethod(
_i12.Future<void> initializeExisting() => (super.noSuchMethod(
Invocation.method(
#initializeExisting,
[],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> exit() => (super.noSuchMethod(
_i12.Future<void> exit() => (super.noSuchMethod(
Invocation.method(
#exit,
[],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<void> fullRescan(
_i12.Future<void> fullRescan(
int? maxUnusedAddressGap,
int? maxNumberOfIndexesToCheck,
) =>
@ -1069,11 +1056,11 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
maxNumberOfIndexesToCheck,
],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
@override
_i13.Future<_i10.Amount> estimateFeeFor(
_i12.Future<_i10.Amount> estimateFeeFor(
_i10.Amount? amount,
int? feeRate,
) =>
@ -1085,7 +1072,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
feeRate,
],
),
returnValue: _i13.Future<_i10.Amount>.value(_FakeAmount_7(
returnValue: _i12.Future<_i10.Amount>.value(_FakeAmount_7(
this,
Invocation.method(
#estimateFeeFor,
@ -1095,23 +1082,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
],
),
)),
) as _i13.Future<_i10.Amount>);
) as _i12.Future<_i10.Amount>);
@override
_i13.Future<bool> generateNewAddress() => (super.noSuchMethod(
_i12.Future<bool> generateNewAddress() => (super.noSuchMethod(
Invocation.method(
#generateNewAddress,
[],
),
returnValue: _i13.Future<bool>.value(false),
) as _i13.Future<bool>);
returnValue: _i12.Future<bool>.value(false),
) as _i12.Future<bool>);
@override
_i13.Future<void> updateSentCachedTxData(Map<String, dynamic>? txData) =>
_i12.Future<void> updateSentCachedTxData(Map<String, dynamic>? txData) =>
(super.noSuchMethod(
Invocation.method(
#updateSentCachedTxData,
[txData],
),
returnValue: _i13.Future<void>.value(),
returnValueForMissingStub: _i13.Future<void>.value(),
) as _i13.Future<void>);
returnValue: _i12.Future<void>.value(),
returnValueForMissingStub: _i12.Future<void>.value(),
) as _i12.Future<void>);
}