mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 11:29:23 +00:00
build runner
This commit is contained in:
parent
3e89136210
commit
0cb1e90097
19 changed files with 932 additions and 1923 deletions
|
@ -263,6 +263,7 @@ const _AddresstypeEnumValueMap = {
|
|||
'ethereum': 7,
|
||||
'nano': 8,
|
||||
'banano': 9,
|
||||
'spark': 10,
|
||||
};
|
||||
const _AddresstypeValueEnumMap = {
|
||||
0: AddressType.p2pkh,
|
||||
|
@ -275,6 +276,7 @@ const _AddresstypeValueEnumMap = {
|
|||
7: AddressType.ethereum,
|
||||
8: AddressType.nano,
|
||||
9: AddressType.banano,
|
||||
10: AddressType.spark,
|
||||
};
|
||||
|
||||
Id _addressGetId(Address object) {
|
||||
|
|
|
@ -271,6 +271,7 @@ const _WalletInfomainAddressTypeEnumValueMap = {
|
|||
'ethereum': 7,
|
||||
'nano': 8,
|
||||
'banano': 9,
|
||||
'spark': 10,
|
||||
};
|
||||
const _WalletInfomainAddressTypeValueEnumMap = {
|
||||
0: AddressType.p2pkh,
|
||||
|
@ -283,6 +284,7 @@ const _WalletInfomainAddressTypeValueEnumMap = {
|
|||
7: AddressType.ethereum,
|
||||
8: AddressType.nano,
|
||||
9: AddressType.banano,
|
||||
10: AddressType.spark,
|
||||
};
|
||||
|
||||
Id _walletInfoGetId(WalletInfo object) {
|
||||
|
|
|
@ -1,17 +1,10 @@
|
|||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:stackwallet/services/coins/firo/firo_wallet.dart';
|
||||
import 'package:stackwallet/utilities/address_utils.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
|
||||
void main() {
|
||||
const String firoAddress = "a6ESWKz7szru5syLtYAPRhHLdKvMq3Yt1j";
|
||||
|
||||
test("generate scripthash from a firo address", () {
|
||||
final hash = AddressUtils.convertToScriptHash(firoAddress, firoNetwork);
|
||||
expect(hash,
|
||||
"77090cea08e2b5accb185fac3cdc799b2b1d109e18c19c723011f4af2c0e5f76");
|
||||
});
|
||||
|
||||
test("condense address", () {
|
||||
final condensedAddress = AddressUtils.condenseAddress(firoAddress);
|
||||
expect(condensedAddress, "a6ESW...3Yt1j");
|
||||
|
|
|
@ -401,9 +401,9 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i5.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i5.Future<Map<String, dynamic>> getSparkMintMetaData({
|
||||
_i5.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||
String? requestID,
|
||||
required List<({int denom, String pubCoin})>? sparkCoinHashes,
|
||||
required List<String>? sparkCoinHashes,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -414,9 +414,9 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
|||
#sparkCoinHashes: sparkCoinHashes,
|
||||
},
|
||||
),
|
||||
returnValue:
|
||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i5.Future<Map<String, dynamic>>);
|
||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
||||
@override
|
||||
_i5.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
|
|
@ -4,33 +4,34 @@
|
|||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i13;
|
||||
import 'dart:typed_data' as _i22;
|
||||
import 'dart:ui' as _i17;
|
||||
import 'dart:typed_data' as _i23;
|
||||
import 'dart:ui' as _i18;
|
||||
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:stackwallet/db/isar/main_db.dart' as _i3;
|
||||
import 'package:stackwallet/models/balance.dart' as _i10;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i27;
|
||||
import 'package:stackwallet/models/isar/stack_theme.dart' as _i21;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i18;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i28;
|
||||
import 'package:stackwallet/models/isar/stack_theme.dart' as _i22;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i19;
|
||||
import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9;
|
||||
import 'package:stackwallet/networking/http.dart' as _i7;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i26;
|
||||
import 'package:stackwallet/services/locale_service.dart' as _i19;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i27;
|
||||
import 'package:stackwallet/services/locale_service.dart' as _i20;
|
||||
import 'package:stackwallet/services/node_service.dart' as _i2;
|
||||
import 'package:stackwallet/services/wallets.dart' as _i12;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i15;
|
||||
import 'package:stackwallet/themes/theme_service.dart' as _i20;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i16;
|
||||
import 'package:stackwallet/themes/theme_service.dart' as _i21;
|
||||
import 'package:stackwallet/utilities/amount/amount.dart' as _i11;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i25;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i24;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i23;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i26;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i25;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i17;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i24;
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||
as _i6;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i14;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i15;
|
||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||
as _i4;
|
||||
import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i14;
|
||||
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
|
||||
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart'
|
||||
as _i8;
|
||||
|
@ -213,14 +214,14 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
|
|||
);
|
||||
@override
|
||||
_i13.Future<void> deleteWallet(
|
||||
String? walletId,
|
||||
_i14.WalletInfo? info,
|
||||
_i6.SecureStorageInterface? secureStorage,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#deleteWallet,
|
||||
[
|
||||
walletId,
|
||||
info,
|
||||
secureStorage,
|
||||
],
|
||||
),
|
||||
|
@ -229,7 +230,7 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
|
|||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i13.Future<void> load(
|
||||
_i14.Prefs? prefs,
|
||||
_i15.Prefs? prefs,
|
||||
_i3.MainDB? mainDB,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -245,7 +246,7 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
|
|||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i13.Future<void> loadAfterStackRestore(
|
||||
_i14.Prefs? prefs,
|
||||
_i15.Prefs? prefs,
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -264,18 +265,18 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
|
|||
/// A class which mocks [WalletsService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
|
||||
class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
|
||||
MockWalletsService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i13.Future<Map<String, _i15.WalletInfo>> get walletNames =>
|
||||
_i13.Future<Map<String, _i16.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: _i13.Future<Map<String, _i16.WalletInfo>>.value(
|
||||
<String, _i16.WalletInfo>{}),
|
||||
) as _i13.Future<Map<String, _i16.WalletInfo>>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
|
@ -300,18 +301,18 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
|
|||
returnValue: _i13.Future<bool>.value(false),
|
||||
) as _i13.Future<bool>);
|
||||
@override
|
||||
Map<String, _i15.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
|
||||
Map<String, _i16.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchWalletsData,
|
||||
[],
|
||||
),
|
||||
returnValue: <String, _i15.WalletInfo>{},
|
||||
) as Map<String, _i15.WalletInfo>);
|
||||
returnValue: <String, _i16.WalletInfo>{},
|
||||
) as Map<String, _i16.WalletInfo>);
|
||||
@override
|
||||
_i13.Future<void> addExistingStackWallet({
|
||||
required String? name,
|
||||
required String? walletId,
|
||||
required _i16.Coin? coin,
|
||||
required _i17.Coin? coin,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -331,7 +332,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
|
|||
@override
|
||||
_i13.Future<String?> addNewWallet({
|
||||
required String? name,
|
||||
required _i16.Coin? coin,
|
||||
required _i17.Coin? coin,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -462,7 +463,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
|
|||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -470,7 +471,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -512,15 +513,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
) as _i6.SecureStorageInterface);
|
||||
@override
|
||||
List<_i18.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
List<_i19.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
returnValue: <_i19.NodeModel>[],
|
||||
) as List<_i19.NodeModel>);
|
||||
@override
|
||||
List<_i18.NodeModel> get nodes => (super.noSuchMethod(
|
||||
List<_i19.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
returnValue: <_i19.NodeModel>[],
|
||||
) as List<_i19.NodeModel>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
|
@ -537,8 +538,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i13.Future<void> setPrimaryNodeFor({
|
||||
required _i16.Coin? coin,
|
||||
required _i18.NodeModel? node,
|
||||
required _i17.Coin? coin,
|
||||
required _i19.NodeModel? node,
|
||||
bool? shouldNotifyListeners = false,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -555,40 +556,40 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i18.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) =>
|
||||
_i19.NodeModel? getPrimaryNodeFor({required _i17.Coin? coin}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getPrimaryNodeFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
)) as _i18.NodeModel?);
|
||||
)) as _i19.NodeModel?);
|
||||
@override
|
||||
List<_i18.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
List<_i19.NodeModel> getNodesFor(_i17.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getNodesFor,
|
||||
[coin],
|
||||
),
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
returnValue: <_i19.NodeModel>[],
|
||||
) as List<_i19.NodeModel>);
|
||||
@override
|
||||
_i18.NodeModel? getNodeById({required String? id}) =>
|
||||
_i19.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getNodeById,
|
||||
[],
|
||||
{#id: id},
|
||||
)) as _i18.NodeModel?);
|
||||
)) as _i19.NodeModel?);
|
||||
@override
|
||||
List<_i18.NodeModel> failoverNodesFor({required _i16.Coin? coin}) =>
|
||||
List<_i19.NodeModel> failoverNodesFor({required _i17.Coin? coin}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#failoverNodesFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
),
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
returnValue: <_i19.NodeModel>[],
|
||||
) as List<_i19.NodeModel>);
|
||||
@override
|
||||
_i13.Future<void> add(
|
||||
_i18.NodeModel? node,
|
||||
_i19.NodeModel? node,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -640,7 +641,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i13.Future<void> edit(
|
||||
_i18.NodeModel? editedNode,
|
||||
_i19.NodeModel? editedNode,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -666,7 +667,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -674,7 +675,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -702,7 +703,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
/// A class which mocks [LocaleService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockLocaleService extends _i1.Mock implements _i19.LocaleService {
|
||||
class MockLocaleService extends _i1.Mock implements _i20.LocaleService {
|
||||
MockLocaleService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -728,7 +729,7 @@ class MockLocaleService extends _i1.Mock implements _i19.LocaleService {
|
|||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -736,7 +737,7 @@ class MockLocaleService extends _i1.Mock implements _i19.LocaleService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -764,7 +765,7 @@ class MockLocaleService extends _i1.Mock implements _i19.LocaleService {
|
|||
/// A class which mocks [ThemeService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockThemeService extends _i1.Mock implements _i20.ThemeService {
|
||||
class MockThemeService extends _i1.Mock implements _i21.ThemeService {
|
||||
MockThemeService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -794,10 +795,10 @@ class MockThemeService extends _i1.Mock implements _i20.ThemeService {
|
|||
),
|
||||
) as _i3.MainDB);
|
||||
@override
|
||||
List<_i21.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
List<_i22.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i21.StackTheme>[],
|
||||
) as List<_i21.StackTheme>);
|
||||
returnValue: <_i22.StackTheme>[],
|
||||
) as List<_i22.StackTheme>);
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -807,7 +808,7 @@ class MockThemeService extends _i1.Mock implements _i20.ThemeService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i13.Future<void> install({required _i22.Uint8List? themeArchiveData}) =>
|
||||
_i13.Future<void> install({required _i23.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#install,
|
||||
|
@ -847,39 +848,39 @@ class MockThemeService extends _i1.Mock implements _i20.ThemeService {
|
|||
returnValue: _i13.Future<bool>.value(false),
|
||||
) as _i13.Future<bool>);
|
||||
@override
|
||||
_i13.Future<List<_i20.StackThemeMetaData>> fetchThemes() =>
|
||||
_i13.Future<List<_i21.StackThemeMetaData>> fetchThemes() =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchThemes,
|
||||
[],
|
||||
),
|
||||
returnValue: _i13.Future<List<_i20.StackThemeMetaData>>.value(
|
||||
<_i20.StackThemeMetaData>[]),
|
||||
) as _i13.Future<List<_i20.StackThemeMetaData>>);
|
||||
returnValue: _i13.Future<List<_i21.StackThemeMetaData>>.value(
|
||||
<_i21.StackThemeMetaData>[]),
|
||||
) as _i13.Future<List<_i21.StackThemeMetaData>>);
|
||||
@override
|
||||
_i13.Future<_i22.Uint8List> fetchTheme(
|
||||
{required _i20.StackThemeMetaData? themeMetaData}) =>
|
||||
_i13.Future<_i23.Uint8List> fetchTheme(
|
||||
{required _i21.StackThemeMetaData? themeMetaData}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchTheme,
|
||||
[],
|
||||
{#themeMetaData: themeMetaData},
|
||||
),
|
||||
returnValue: _i13.Future<_i22.Uint8List>.value(_i22.Uint8List(0)),
|
||||
) as _i13.Future<_i22.Uint8List>);
|
||||
returnValue: _i13.Future<_i23.Uint8List>.value(_i23.Uint8List(0)),
|
||||
) as _i13.Future<_i23.Uint8List>);
|
||||
@override
|
||||
_i21.StackTheme? getTheme({required String? themeId}) =>
|
||||
_i22.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getTheme,
|
||||
[],
|
||||
{#themeId: themeId},
|
||||
)) as _i21.StackTheme?);
|
||||
)) as _i22.StackTheme?);
|
||||
}
|
||||
|
||||
/// A class which mocks [Prefs].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
||||
class MockPrefs extends _i1.Mock implements _i15.Prefs {
|
||||
MockPrefs() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -935,12 +936,12 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i23.SyncingType get syncType => (super.noSuchMethod(
|
||||
_i24.SyncingType get syncType => (super.noSuchMethod(
|
||||
Invocation.getter(#syncType),
|
||||
returnValue: _i23.SyncingType.currentWalletOnly,
|
||||
) as _i23.SyncingType);
|
||||
returnValue: _i24.SyncingType.currentWalletOnly,
|
||||
) as _i24.SyncingType);
|
||||
@override
|
||||
set syncType(_i23.SyncingType? syncType) => super.noSuchMethod(
|
||||
set syncType(_i24.SyncingType? syncType) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#syncType,
|
||||
syncType,
|
||||
|
@ -1099,12 +1100,12 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i24.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
_i25.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
Invocation.getter(#backupFrequencyType),
|
||||
returnValue: _i24.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i24.BackupFrequencyType);
|
||||
returnValue: _i25.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i25.BackupFrequencyType);
|
||||
@override
|
||||
set backupFrequencyType(_i24.BackupFrequencyType? backupFrequencyType) =>
|
||||
set backupFrequencyType(_i25.BackupFrequencyType? backupFrequencyType) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#backupFrequencyType,
|
||||
|
@ -1299,17 +1300,17 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i25.AmountUnit amountUnit(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
_i26.AmountUnit amountUnit(_i17.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#amountUnit,
|
||||
[coin],
|
||||
),
|
||||
returnValue: _i25.AmountUnit.normal,
|
||||
) as _i25.AmountUnit);
|
||||
returnValue: _i26.AmountUnit.normal,
|
||||
) as _i26.AmountUnit);
|
||||
@override
|
||||
void updateAmountUnit({
|
||||
required _i16.Coin? coin,
|
||||
required _i25.AmountUnit? amountUnit,
|
||||
required _i17.Coin? coin,
|
||||
required _i26.AmountUnit? amountUnit,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1323,7 +1324,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
int maxDecimals(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
int maxDecimals(_i17.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#maxDecimals,
|
||||
[coin],
|
||||
|
@ -1332,7 +1333,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
) as int);
|
||||
@override
|
||||
void updateMaxDecimals({
|
||||
required _i16.Coin? coin,
|
||||
required _i17.Coin? coin,
|
||||
required int? maxDecimals,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -1347,7 +1348,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i8.FusionInfo getFusionServerInfo(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
_i8.FusionInfo getFusionServerInfo(_i17.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getFusionServerInfo,
|
||||
[coin],
|
||||
|
@ -1362,7 +1363,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
) as _i8.FusionInfo);
|
||||
@override
|
||||
void setFusionServerInfo(
|
||||
_i16.Coin? coin,
|
||||
_i17.Coin? coin,
|
||||
_i8.FusionInfo? fusionServerInfo,
|
||||
) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -1376,7 +1377,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -1384,7 +1385,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -1412,7 +1413,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
/// A class which mocks [CoinServiceAPI].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
|
||||
class MockCoinServiceAPI extends _i1.Mock implements _i27.CoinServiceAPI {
|
||||
@override
|
||||
set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -1423,10 +1424,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i16.Coin get coin => (super.noSuchMethod(
|
||||
_i17.Coin get coin => (super.noSuchMethod(
|
||||
Invocation.getter(#coin),
|
||||
returnValue: _i16.Coin.bitcoin,
|
||||
) as _i16.Coin);
|
||||
returnValue: _i17.Coin.bitcoin,
|
||||
) as _i17.Coin);
|
||||
@override
|
||||
bool get isRefreshing => (super.noSuchMethod(
|
||||
Invocation.getter(#isRefreshing),
|
||||
|
@ -1485,16 +1486,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
|
|||
),
|
||||
) as _i10.Balance);
|
||||
@override
|
||||
_i13.Future<List<_i27.Transaction>> get transactions => (super.noSuchMethod(
|
||||
_i13.Future<List<_i28.Transaction>> get transactions => (super.noSuchMethod(
|
||||
Invocation.getter(#transactions),
|
||||
returnValue:
|
||||
_i13.Future<List<_i27.Transaction>>.value(<_i27.Transaction>[]),
|
||||
) as _i13.Future<List<_i27.Transaction>>);
|
||||
_i13.Future<List<_i28.Transaction>>.value(<_i28.Transaction>[]),
|
||||
) as _i13.Future<List<_i28.Transaction>>);
|
||||
@override
|
||||
_i13.Future<List<_i27.UTXO>> get utxos => (super.noSuchMethod(
|
||||
_i13.Future<List<_i28.UTXO>> get utxos => (super.noSuchMethod(
|
||||
Invocation.getter(#utxos),
|
||||
returnValue: _i13.Future<List<_i27.UTXO>>.value(<_i27.UTXO>[]),
|
||||
) as _i13.Future<List<_i27.UTXO>>);
|
||||
returnValue: _i13.Future<List<_i28.UTXO>>.value(<_i28.UTXO>[]),
|
||||
) as _i13.Future<List<_i28.UTXO>>);
|
||||
@override
|
||||
set walletName(String? newName) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
|
|
@ -398,9 +398,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
|||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getSparkMintMetaData({
|
||||
_i4.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||
String? requestID,
|
||||
required List<({int denom, String pubCoin})>? sparkCoinHashes,
|
||||
required List<String>? sparkCoinHashes,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -411,9 +411,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
|||
#sparkCoinHashes: sparkCoinHashes,
|
||||
},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||
@override
|
||||
_i4.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
|
|
@ -398,9 +398,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
|||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getSparkMintMetaData({
|
||||
_i4.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||
String? requestID,
|
||||
required List<({int denom, String pubCoin})>? sparkCoinHashes,
|
||||
required List<String>? sparkCoinHashes,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -411,9 +411,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
|||
#sparkCoinHashes: sparkCoinHashes,
|
||||
},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||
@override
|
||||
_i4.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
|
|
@ -398,9 +398,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
|||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getSparkMintMetaData({
|
||||
_i4.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||
String? requestID,
|
||||
required List<({int denom, String pubCoin})>? sparkCoinHashes,
|
||||
required List<String>? sparkCoinHashes,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -411,9 +411,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
|||
#sparkCoinHashes: sparkCoinHashes,
|
||||
},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||
@override
|
||||
_i4.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
|
|
@ -428,9 +428,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
|||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i5.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i5.Future<Map<String, dynamic>> getSparkMintMetaData({
|
||||
_i5.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||
String? requestID,
|
||||
required List<({int denom, String pubCoin})>? sparkCoinHashes,
|
||||
required List<String>? sparkCoinHashes,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -441,9 +441,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
|||
#sparkCoinHashes: sparkCoinHashes,
|
||||
},
|
||||
),
|
||||
returnValue:
|
||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i5.Future<Map<String, dynamic>>);
|
||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
||||
@override
|
||||
_i5.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
|
|
@ -398,9 +398,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
|||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getSparkMintMetaData({
|
||||
_i4.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||
String? requestID,
|
||||
required List<({int denom, String pubCoin})>? sparkCoinHashes,
|
||||
required List<String>? sparkCoinHashes,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -411,9 +411,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
|||
#sparkCoinHashes: sparkCoinHashes,
|
||||
},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||
@override
|
||||
_i4.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
|
|
@ -398,9 +398,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
|||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getSparkMintMetaData({
|
||||
_i4.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||
String? requestID,
|
||||
required List<({int denom, String pubCoin})>? sparkCoinHashes,
|
||||
required List<String>? sparkCoinHashes,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -411,9 +411,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
|||
#sparkCoinHashes: sparkCoinHashes,
|
||||
},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||
@override
|
||||
_i4.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
|
|
|
@ -4,33 +4,34 @@
|
|||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i13;
|
||||
import 'dart:typed_data' as _i20;
|
||||
import 'dart:ui' as _i17;
|
||||
import 'dart:typed_data' as _i21;
|
||||
import 'dart:ui' as _i18;
|
||||
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:stackwallet/db/isar/main_db.dart' as _i3;
|
||||
import 'package:stackwallet/models/balance.dart' as _i10;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i27;
|
||||
import 'package:stackwallet/models/isar/stack_theme.dart' as _i19;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i25;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i28;
|
||||
import 'package:stackwallet/models/isar/stack_theme.dart' as _i20;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i26;
|
||||
import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9;
|
||||
import 'package:stackwallet/networking/http.dart' as _i6;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i26;
|
||||
import 'package:stackwallet/services/locale_service.dart' as _i24;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i27;
|
||||
import 'package:stackwallet/services/locale_service.dart' as _i25;
|
||||
import 'package:stackwallet/services/node_service.dart' as _i2;
|
||||
import 'package:stackwallet/services/wallets.dart' as _i12;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i15;
|
||||
import 'package:stackwallet/themes/theme_service.dart' as _i18;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i16;
|
||||
import 'package:stackwallet/themes/theme_service.dart' as _i19;
|
||||
import 'package:stackwallet/utilities/amount/amount.dart' as _i11;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i23;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i22;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i21;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i24;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i23;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i17;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i22;
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||
as _i8;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i14;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i15;
|
||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||
as _i4;
|
||||
import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i14;
|
||||
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
|
||||
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart'
|
||||
as _i7;
|
||||
|
@ -213,14 +214,14 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
|
|||
);
|
||||
@override
|
||||
_i13.Future<void> deleteWallet(
|
||||
String? walletId,
|
||||
_i14.WalletInfo? info,
|
||||
_i8.SecureStorageInterface? secureStorage,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#deleteWallet,
|
||||
[
|
||||
walletId,
|
||||
info,
|
||||
secureStorage,
|
||||
],
|
||||
),
|
||||
|
@ -229,7 +230,7 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
|
|||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i13.Future<void> load(
|
||||
_i14.Prefs? prefs,
|
||||
_i15.Prefs? prefs,
|
||||
_i3.MainDB? mainDB,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -245,7 +246,7 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
|
|||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i13.Future<void> loadAfterStackRestore(
|
||||
_i14.Prefs? prefs,
|
||||
_i15.Prefs? prefs,
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -264,18 +265,18 @@ class MockWallets extends _i1.Mock implements _i12.Wallets {
|
|||
/// A class which mocks [WalletsService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
|
||||
class MockWalletsService extends _i1.Mock implements _i16.WalletsService {
|
||||
MockWalletsService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i13.Future<Map<String, _i15.WalletInfo>> get walletNames =>
|
||||
_i13.Future<Map<String, _i16.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: _i13.Future<Map<String, _i16.WalletInfo>>.value(
|
||||
<String, _i16.WalletInfo>{}),
|
||||
) as _i13.Future<Map<String, _i16.WalletInfo>>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
|
@ -300,18 +301,18 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
|
|||
returnValue: _i13.Future<bool>.value(false),
|
||||
) as _i13.Future<bool>);
|
||||
@override
|
||||
Map<String, _i15.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
|
||||
Map<String, _i16.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchWalletsData,
|
||||
[],
|
||||
),
|
||||
returnValue: <String, _i15.WalletInfo>{},
|
||||
) as Map<String, _i15.WalletInfo>);
|
||||
returnValue: <String, _i16.WalletInfo>{},
|
||||
) as Map<String, _i16.WalletInfo>);
|
||||
@override
|
||||
_i13.Future<void> addExistingStackWallet({
|
||||
required String? name,
|
||||
required String? walletId,
|
||||
required _i16.Coin? coin,
|
||||
required _i17.Coin? coin,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -331,7 +332,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
|
|||
@override
|
||||
_i13.Future<String?> addNewWallet({
|
||||
required String? name,
|
||||
required _i16.Coin? coin,
|
||||
required _i17.Coin? coin,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -462,7 +463,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
|
|||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -470,7 +471,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -498,7 +499,7 @@ class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
|
|||
/// A class which mocks [ThemeService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockThemeService extends _i1.Mock implements _i18.ThemeService {
|
||||
class MockThemeService extends _i1.Mock implements _i19.ThemeService {
|
||||
MockThemeService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -528,10 +529,10 @@ class MockThemeService extends _i1.Mock implements _i18.ThemeService {
|
|||
),
|
||||
) as _i3.MainDB);
|
||||
@override
|
||||
List<_i19.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
List<_i20.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i19.StackTheme>[],
|
||||
) as List<_i19.StackTheme>);
|
||||
returnValue: <_i20.StackTheme>[],
|
||||
) as List<_i20.StackTheme>);
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -541,7 +542,7 @@ class MockThemeService extends _i1.Mock implements _i18.ThemeService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i13.Future<void> install({required _i20.Uint8List? themeArchiveData}) =>
|
||||
_i13.Future<void> install({required _i21.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#install,
|
||||
|
@ -581,39 +582,39 @@ class MockThemeService extends _i1.Mock implements _i18.ThemeService {
|
|||
returnValue: _i13.Future<bool>.value(false),
|
||||
) as _i13.Future<bool>);
|
||||
@override
|
||||
_i13.Future<List<_i18.StackThemeMetaData>> fetchThemes() =>
|
||||
_i13.Future<List<_i19.StackThemeMetaData>> fetchThemes() =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchThemes,
|
||||
[],
|
||||
),
|
||||
returnValue: _i13.Future<List<_i18.StackThemeMetaData>>.value(
|
||||
<_i18.StackThemeMetaData>[]),
|
||||
) as _i13.Future<List<_i18.StackThemeMetaData>>);
|
||||
returnValue: _i13.Future<List<_i19.StackThemeMetaData>>.value(
|
||||
<_i19.StackThemeMetaData>[]),
|
||||
) as _i13.Future<List<_i19.StackThemeMetaData>>);
|
||||
@override
|
||||
_i13.Future<_i20.Uint8List> fetchTheme(
|
||||
{required _i18.StackThemeMetaData? themeMetaData}) =>
|
||||
_i13.Future<_i21.Uint8List> fetchTheme(
|
||||
{required _i19.StackThemeMetaData? themeMetaData}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchTheme,
|
||||
[],
|
||||
{#themeMetaData: themeMetaData},
|
||||
),
|
||||
returnValue: _i13.Future<_i20.Uint8List>.value(_i20.Uint8List(0)),
|
||||
) as _i13.Future<_i20.Uint8List>);
|
||||
returnValue: _i13.Future<_i21.Uint8List>.value(_i21.Uint8List(0)),
|
||||
) as _i13.Future<_i21.Uint8List>);
|
||||
@override
|
||||
_i19.StackTheme? getTheme({required String? themeId}) =>
|
||||
_i20.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getTheme,
|
||||
[],
|
||||
{#themeId: themeId},
|
||||
)) as _i19.StackTheme?);
|
||||
)) as _i20.StackTheme?);
|
||||
}
|
||||
|
||||
/// A class which mocks [Prefs].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
||||
class MockPrefs extends _i1.Mock implements _i15.Prefs {
|
||||
MockPrefs() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -669,12 +670,12 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i21.SyncingType get syncType => (super.noSuchMethod(
|
||||
_i22.SyncingType get syncType => (super.noSuchMethod(
|
||||
Invocation.getter(#syncType),
|
||||
returnValue: _i21.SyncingType.currentWalletOnly,
|
||||
) as _i21.SyncingType);
|
||||
returnValue: _i22.SyncingType.currentWalletOnly,
|
||||
) as _i22.SyncingType);
|
||||
@override
|
||||
set syncType(_i21.SyncingType? syncType) => super.noSuchMethod(
|
||||
set syncType(_i22.SyncingType? syncType) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#syncType,
|
||||
syncType,
|
||||
|
@ -833,12 +834,12 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i22.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
_i23.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
Invocation.getter(#backupFrequencyType),
|
||||
returnValue: _i22.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i22.BackupFrequencyType);
|
||||
returnValue: _i23.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i23.BackupFrequencyType);
|
||||
@override
|
||||
set backupFrequencyType(_i22.BackupFrequencyType? backupFrequencyType) =>
|
||||
set backupFrequencyType(_i23.BackupFrequencyType? backupFrequencyType) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#backupFrequencyType,
|
||||
|
@ -1033,17 +1034,17 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i23.AmountUnit amountUnit(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
_i24.AmountUnit amountUnit(_i17.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#amountUnit,
|
||||
[coin],
|
||||
),
|
||||
returnValue: _i23.AmountUnit.normal,
|
||||
) as _i23.AmountUnit);
|
||||
returnValue: _i24.AmountUnit.normal,
|
||||
) as _i24.AmountUnit);
|
||||
@override
|
||||
void updateAmountUnit({
|
||||
required _i16.Coin? coin,
|
||||
required _i23.AmountUnit? amountUnit,
|
||||
required _i17.Coin? coin,
|
||||
required _i24.AmountUnit? amountUnit,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1057,7 +1058,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
int maxDecimals(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
int maxDecimals(_i17.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#maxDecimals,
|
||||
[coin],
|
||||
|
@ -1066,7 +1067,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
) as int);
|
||||
@override
|
||||
void updateMaxDecimals({
|
||||
required _i16.Coin? coin,
|
||||
required _i17.Coin? coin,
|
||||
required int? maxDecimals,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -1081,7 +1082,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i7.FusionInfo getFusionServerInfo(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
_i7.FusionInfo getFusionServerInfo(_i17.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getFusionServerInfo,
|
||||
[coin],
|
||||
|
@ -1096,7 +1097,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
) as _i7.FusionInfo);
|
||||
@override
|
||||
void setFusionServerInfo(
|
||||
_i16.Coin? coin,
|
||||
_i17.Coin? coin,
|
||||
_i7.FusionInfo? fusionServerInfo,
|
||||
) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -1110,7 +1111,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -1118,7 +1119,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -1146,7 +1147,7 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
|||
/// A class which mocks [LocaleService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockLocaleService extends _i1.Mock implements _i24.LocaleService {
|
||||
class MockLocaleService extends _i1.Mock implements _i25.LocaleService {
|
||||
MockLocaleService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -1172,7 +1173,7 @@ class MockLocaleService extends _i1.Mock implements _i24.LocaleService {
|
|||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -1180,7 +1181,7 @@ class MockLocaleService extends _i1.Mock implements _i24.LocaleService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -1218,15 +1219,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
) as _i8.SecureStorageInterface);
|
||||
@override
|
||||
List<_i25.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
List<_i26.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i25.NodeModel>[],
|
||||
) as List<_i25.NodeModel>);
|
||||
returnValue: <_i26.NodeModel>[],
|
||||
) as List<_i26.NodeModel>);
|
||||
@override
|
||||
List<_i25.NodeModel> get nodes => (super.noSuchMethod(
|
||||
List<_i26.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i25.NodeModel>[],
|
||||
) as List<_i25.NodeModel>);
|
||||
returnValue: <_i26.NodeModel>[],
|
||||
) as List<_i26.NodeModel>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
|
@ -1243,8 +1244,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i13.Future<void> setPrimaryNodeFor({
|
||||
required _i16.Coin? coin,
|
||||
required _i25.NodeModel? node,
|
||||
required _i17.Coin? coin,
|
||||
required _i26.NodeModel? node,
|
||||
bool? shouldNotifyListeners = false,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -1261,40 +1262,40 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i25.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) =>
|
||||
_i26.NodeModel? getPrimaryNodeFor({required _i17.Coin? coin}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getPrimaryNodeFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
)) as _i25.NodeModel?);
|
||||
)) as _i26.NodeModel?);
|
||||
@override
|
||||
List<_i25.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
List<_i26.NodeModel> getNodesFor(_i17.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getNodesFor,
|
||||
[coin],
|
||||
),
|
||||
returnValue: <_i25.NodeModel>[],
|
||||
) as List<_i25.NodeModel>);
|
||||
returnValue: <_i26.NodeModel>[],
|
||||
) as List<_i26.NodeModel>);
|
||||
@override
|
||||
_i25.NodeModel? getNodeById({required String? id}) =>
|
||||
_i26.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getNodeById,
|
||||
[],
|
||||
{#id: id},
|
||||
)) as _i25.NodeModel?);
|
||||
)) as _i26.NodeModel?);
|
||||
@override
|
||||
List<_i25.NodeModel> failoverNodesFor({required _i16.Coin? coin}) =>
|
||||
List<_i26.NodeModel> failoverNodesFor({required _i17.Coin? coin}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#failoverNodesFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
),
|
||||
returnValue: <_i25.NodeModel>[],
|
||||
) as List<_i25.NodeModel>);
|
||||
returnValue: <_i26.NodeModel>[],
|
||||
) as List<_i26.NodeModel>);
|
||||
@override
|
||||
_i13.Future<void> add(
|
||||
_i25.NodeModel? node,
|
||||
_i26.NodeModel? node,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -1346,7 +1347,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i13.Future<void> edit(
|
||||
_i25.NodeModel? editedNode,
|
||||
_i26.NodeModel? editedNode,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -1372,7 +1373,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -1380,7 +1381,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i18.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -1408,7 +1409,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
/// A class which mocks [CoinServiceAPI].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
|
||||
class MockCoinServiceAPI extends _i1.Mock implements _i27.CoinServiceAPI {
|
||||
@override
|
||||
set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -1419,10 +1420,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i16.Coin get coin => (super.noSuchMethod(
|
||||
_i17.Coin get coin => (super.noSuchMethod(
|
||||
Invocation.getter(#coin),
|
||||
returnValue: _i16.Coin.bitcoin,
|
||||
) as _i16.Coin);
|
||||
returnValue: _i17.Coin.bitcoin,
|
||||
) as _i17.Coin);
|
||||
@override
|
||||
bool get isRefreshing => (super.noSuchMethod(
|
||||
Invocation.getter(#isRefreshing),
|
||||
|
@ -1481,16 +1482,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI {
|
|||
),
|
||||
) as _i10.Balance);
|
||||
@override
|
||||
_i13.Future<List<_i27.Transaction>> get transactions => (super.noSuchMethod(
|
||||
_i13.Future<List<_i28.Transaction>> get transactions => (super.noSuchMethod(
|
||||
Invocation.getter(#transactions),
|
||||
returnValue:
|
||||
_i13.Future<List<_i27.Transaction>>.value(<_i27.Transaction>[]),
|
||||
) as _i13.Future<List<_i27.Transaction>>);
|
||||
_i13.Future<List<_i28.Transaction>>.value(<_i28.Transaction>[]),
|
||||
) as _i13.Future<List<_i28.Transaction>>);
|
||||
@override
|
||||
_i13.Future<List<_i27.UTXO>> get utxos => (super.noSuchMethod(
|
||||
_i13.Future<List<_i28.UTXO>> get utxos => (super.noSuchMethod(
|
||||
Invocation.getter(#utxos),
|
||||
returnValue: _i13.Future<List<_i27.UTXO>>.value(<_i27.UTXO>[]),
|
||||
) as _i13.Future<List<_i27.UTXO>>);
|
||||
returnValue: _i13.Future<List<_i28.UTXO>>.value(<_i28.UTXO>[]),
|
||||
) as _i13.Future<List<_i28.UTXO>>);
|
||||
@override
|
||||
set walletName(String? newName) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
|
|
@ -5,29 +5,30 @@
|
|||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i10;
|
||||
import 'dart:io' as _i8;
|
||||
import 'dart:ui' as _i16;
|
||||
import 'dart:ui' as _i17;
|
||||
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:stackwallet/db/isar/main_db.dart' as _i3;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i17;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i18;
|
||||
import 'package:stackwallet/services/event_bus/events/global/tor_connection_status_changed_event.dart'
|
||||
as _i19;
|
||||
as _i20;
|
||||
import 'package:stackwallet/services/node_service.dart' as _i2;
|
||||
import 'package:stackwallet/services/tor_service.dart' as _i18;
|
||||
import 'package:stackwallet/services/tor_service.dart' as _i19;
|
||||
import 'package:stackwallet/services/wallets.dart' as _i9;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i14;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i13;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i12;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i15;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i14;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i13;
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||
as _i7;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i11;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i12;
|
||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||
as _i4;
|
||||
import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i11;
|
||||
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
|
||||
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart'
|
||||
as _i6;
|
||||
import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i20;
|
||||
import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i21;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: avoid_redundant_argument_values
|
||||
|
@ -178,14 +179,14 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
);
|
||||
@override
|
||||
_i10.Future<void> deleteWallet(
|
||||
String? walletId,
|
||||
_i11.WalletInfo? info,
|
||||
_i7.SecureStorageInterface? secureStorage,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#deleteWallet,
|
||||
[
|
||||
walletId,
|
||||
info,
|
||||
secureStorage,
|
||||
],
|
||||
),
|
||||
|
@ -194,7 +195,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
) as _i10.Future<void>);
|
||||
@override
|
||||
_i10.Future<void> load(
|
||||
_i11.Prefs? prefs,
|
||||
_i12.Prefs? prefs,
|
||||
_i3.MainDB? mainDB,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -210,7 +211,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
) as _i10.Future<void>);
|
||||
@override
|
||||
_i10.Future<void> loadAfterStackRestore(
|
||||
_i11.Prefs? prefs,
|
||||
_i12.Prefs? prefs,
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -229,7 +230,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
/// A class which mocks [Prefs].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockPrefs extends _i1.Mock implements _i11.Prefs {
|
||||
class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
||||
MockPrefs() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -285,12 +286,12 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i12.SyncingType get syncType => (super.noSuchMethod(
|
||||
_i13.SyncingType get syncType => (super.noSuchMethod(
|
||||
Invocation.getter(#syncType),
|
||||
returnValue: _i12.SyncingType.currentWalletOnly,
|
||||
) as _i12.SyncingType);
|
||||
returnValue: _i13.SyncingType.currentWalletOnly,
|
||||
) as _i13.SyncingType);
|
||||
@override
|
||||
set syncType(_i12.SyncingType? syncType) => super.noSuchMethod(
|
||||
set syncType(_i13.SyncingType? syncType) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#syncType,
|
||||
syncType,
|
||||
|
@ -449,12 +450,12 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i13.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
_i14.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
Invocation.getter(#backupFrequencyType),
|
||||
returnValue: _i13.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i13.BackupFrequencyType);
|
||||
returnValue: _i14.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i14.BackupFrequencyType);
|
||||
@override
|
||||
set backupFrequencyType(_i13.BackupFrequencyType? backupFrequencyType) =>
|
||||
set backupFrequencyType(_i14.BackupFrequencyType? backupFrequencyType) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#backupFrequencyType,
|
||||
|
@ -649,17 +650,17 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs {
|
|||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
@override
|
||||
_i14.AmountUnit amountUnit(_i15.Coin? coin) => (super.noSuchMethod(
|
||||
_i15.AmountUnit amountUnit(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#amountUnit,
|
||||
[coin],
|
||||
),
|
||||
returnValue: _i14.AmountUnit.normal,
|
||||
) as _i14.AmountUnit);
|
||||
returnValue: _i15.AmountUnit.normal,
|
||||
) as _i15.AmountUnit);
|
||||
@override
|
||||
void updateAmountUnit({
|
||||
required _i15.Coin? coin,
|
||||
required _i14.AmountUnit? amountUnit,
|
||||
required _i16.Coin? coin,
|
||||
required _i15.AmountUnit? amountUnit,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -673,7 +674,7 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
int maxDecimals(_i15.Coin? coin) => (super.noSuchMethod(
|
||||
int maxDecimals(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#maxDecimals,
|
||||
[coin],
|
||||
|
@ -682,7 +683,7 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs {
|
|||
) as int);
|
||||
@override
|
||||
void updateMaxDecimals({
|
||||
required _i15.Coin? coin,
|
||||
required _i16.Coin? coin,
|
||||
required int? maxDecimals,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -697,7 +698,7 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i6.FusionInfo getFusionServerInfo(_i15.Coin? coin) => (super.noSuchMethod(
|
||||
_i6.FusionInfo getFusionServerInfo(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getFusionServerInfo,
|
||||
[coin],
|
||||
|
@ -712,7 +713,7 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs {
|
|||
) as _i6.FusionInfo);
|
||||
@override
|
||||
void setFusionServerInfo(
|
||||
_i15.Coin? coin,
|
||||
_i16.Coin? coin,
|
||||
_i6.FusionInfo? fusionServerInfo,
|
||||
) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -726,7 +727,7 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -734,7 +735,7 @@ class MockPrefs extends _i1.Mock implements _i11.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -776,15 +777,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
) as _i7.SecureStorageInterface);
|
||||
@override
|
||||
List<_i17.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
List<_i18.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i17.NodeModel>[],
|
||||
) as List<_i17.NodeModel>);
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
@override
|
||||
List<_i17.NodeModel> get nodes => (super.noSuchMethod(
|
||||
List<_i18.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i17.NodeModel>[],
|
||||
) as List<_i17.NodeModel>);
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
|
@ -801,8 +802,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
) as _i10.Future<void>);
|
||||
@override
|
||||
_i10.Future<void> setPrimaryNodeFor({
|
||||
required _i15.Coin? coin,
|
||||
required _i17.NodeModel? node,
|
||||
required _i16.Coin? coin,
|
||||
required _i18.NodeModel? node,
|
||||
bool? shouldNotifyListeners = false,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -819,40 +820,40 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
@override
|
||||
_i17.NodeModel? getPrimaryNodeFor({required _i15.Coin? coin}) =>
|
||||
_i18.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getPrimaryNodeFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
)) as _i17.NodeModel?);
|
||||
)) as _i18.NodeModel?);
|
||||
@override
|
||||
List<_i17.NodeModel> getNodesFor(_i15.Coin? coin) => (super.noSuchMethod(
|
||||
List<_i18.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getNodesFor,
|
||||
[coin],
|
||||
),
|
||||
returnValue: <_i17.NodeModel>[],
|
||||
) as List<_i17.NodeModel>);
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
@override
|
||||
_i17.NodeModel? getNodeById({required String? id}) =>
|
||||
_i18.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getNodeById,
|
||||
[],
|
||||
{#id: id},
|
||||
)) as _i17.NodeModel?);
|
||||
)) as _i18.NodeModel?);
|
||||
@override
|
||||
List<_i17.NodeModel> failoverNodesFor({required _i15.Coin? coin}) =>
|
||||
List<_i18.NodeModel> failoverNodesFor({required _i16.Coin? coin}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#failoverNodesFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
),
|
||||
returnValue: <_i17.NodeModel>[],
|
||||
) as List<_i17.NodeModel>);
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
@override
|
||||
_i10.Future<void> add(
|
||||
_i17.NodeModel? node,
|
||||
_i18.NodeModel? node,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -904,7 +905,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
) as _i10.Future<void>);
|
||||
@override
|
||||
_i10.Future<void> edit(
|
||||
_i17.NodeModel? editedNode,
|
||||
_i18.NodeModel? editedNode,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -930,7 +931,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
@override
|
||||
void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -938,7 +939,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -966,16 +967,16 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
/// A class which mocks [TorService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockTorService extends _i1.Mock implements _i18.TorService {
|
||||
class MockTorService extends _i1.Mock implements _i19.TorService {
|
||||
MockTorService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i19.TorConnectionStatus get status => (super.noSuchMethod(
|
||||
_i20.TorConnectionStatus get status => (super.noSuchMethod(
|
||||
Invocation.getter(#status),
|
||||
returnValue: _i19.TorConnectionStatus.disconnected,
|
||||
) as _i19.TorConnectionStatus);
|
||||
returnValue: _i20.TorConnectionStatus.disconnected,
|
||||
) as _i20.TorConnectionStatus);
|
||||
@override
|
||||
({_i8.InternetAddress host, int port}) getProxyInfo() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -996,7 +997,7 @@ class MockTorService extends _i1.Mock implements _i18.TorService {
|
|||
@override
|
||||
void init({
|
||||
required String? torDataDirPath,
|
||||
_i20.Tor? mockableOverride,
|
||||
_i21.Tor? mockableOverride,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
|
@ -4,28 +4,29 @@
|
|||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i11;
|
||||
import 'dart:typed_data' as _i19;
|
||||
import 'dart:ui' as _i16;
|
||||
import 'dart:typed_data' as _i20;
|
||||
import 'dart:ui' as _i17;
|
||||
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:stackwallet/db/isar/main_db.dart' as _i3;
|
||||
import 'package:stackwallet/models/balance.dart' as _i8;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i21;
|
||||
import 'package:stackwallet/models/isar/stack_theme.dart' as _i18;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i22;
|
||||
import 'package:stackwallet/models/isar/stack_theme.dart' as _i19;
|
||||
import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i7;
|
||||
import 'package:stackwallet/networking/http.dart' as _i6;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i20;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i21;
|
||||
import 'package:stackwallet/services/node_service.dart' as _i2;
|
||||
import 'package:stackwallet/services/wallets.dart' as _i10;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i14;
|
||||
import 'package:stackwallet/themes/theme_service.dart' as _i17;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i15;
|
||||
import 'package:stackwallet/themes/theme_service.dart' as _i18;
|
||||
import 'package:stackwallet/utilities/amount/amount.dart' as _i9;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16;
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||
as _i12;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i13;
|
||||
as _i13;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i14;
|
||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||
as _i4;
|
||||
import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i12;
|
||||
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
|
@ -185,14 +186,14 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
|
|||
);
|
||||
@override
|
||||
_i11.Future<void> deleteWallet(
|
||||
String? walletId,
|
||||
_i12.SecureStorageInterface? secureStorage,
|
||||
_i12.WalletInfo? info,
|
||||
_i13.SecureStorageInterface? secureStorage,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#deleteWallet,
|
||||
[
|
||||
walletId,
|
||||
info,
|
||||
secureStorage,
|
||||
],
|
||||
),
|
||||
|
@ -201,7 +202,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
|
|||
) as _i11.Future<void>);
|
||||
@override
|
||||
_i11.Future<void> load(
|
||||
_i13.Prefs? prefs,
|
||||
_i14.Prefs? prefs,
|
||||
_i3.MainDB? mainDB,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -217,7 +218,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
|
|||
) as _i11.Future<void>);
|
||||
@override
|
||||
_i11.Future<void> loadAfterStackRestore(
|
||||
_i13.Prefs? prefs,
|
||||
_i14.Prefs? prefs,
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -236,18 +237,18 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
|
|||
/// A class which mocks [WalletsService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
|
||||
class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
|
||||
MockWalletsService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i11.Future<Map<String, _i14.WalletInfo>> get walletNames =>
|
||||
_i11.Future<Map<String, _i15.WalletInfo>> get walletNames =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#walletNames),
|
||||
returnValue: _i11.Future<Map<String, _i14.WalletInfo>>.value(
|
||||
<String, _i14.WalletInfo>{}),
|
||||
) as _i11.Future<Map<String, _i14.WalletInfo>>);
|
||||
returnValue: _i11.Future<Map<String, _i15.WalletInfo>>.value(
|
||||
<String, _i15.WalletInfo>{}),
|
||||
) as _i11.Future<Map<String, _i15.WalletInfo>>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
|
@ -272,18 +273,18 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
|
|||
returnValue: _i11.Future<bool>.value(false),
|
||||
) as _i11.Future<bool>);
|
||||
@override
|
||||
Map<String, _i14.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
|
||||
Map<String, _i15.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchWalletsData,
|
||||
[],
|
||||
),
|
||||
returnValue: <String, _i14.WalletInfo>{},
|
||||
) as Map<String, _i14.WalletInfo>);
|
||||
returnValue: <String, _i15.WalletInfo>{},
|
||||
) as Map<String, _i15.WalletInfo>);
|
||||
@override
|
||||
_i11.Future<void> addExistingStackWallet({
|
||||
required String? name,
|
||||
required String? walletId,
|
||||
required _i15.Coin? coin,
|
||||
required _i16.Coin? coin,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -303,7 +304,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
|
|||
@override
|
||||
_i11.Future<String?> addNewWallet({
|
||||
required String? name,
|
||||
required _i15.Coin? coin,
|
||||
required _i16.Coin? coin,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -434,7 +435,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
|
|||
returnValueForMissingStub: _i11.Future<void>.value(),
|
||||
) as _i11.Future<void>);
|
||||
@override
|
||||
void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -442,7 +443,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -470,7 +471,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
|
|||
/// A class which mocks [ThemeService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
||||
class MockThemeService extends _i1.Mock implements _i18.ThemeService {
|
||||
MockThemeService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -500,10 +501,10 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
),
|
||||
) as _i3.MainDB);
|
||||
@override
|
||||
List<_i18.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
List<_i19.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i18.StackTheme>[],
|
||||
) as List<_i18.StackTheme>);
|
||||
returnValue: <_i19.StackTheme>[],
|
||||
) as List<_i19.StackTheme>);
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -513,7 +514,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i11.Future<void> install({required _i19.Uint8List? themeArchiveData}) =>
|
||||
_i11.Future<void> install({required _i20.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#install,
|
||||
|
@ -553,39 +554,39 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
returnValue: _i11.Future<bool>.value(false),
|
||||
) as _i11.Future<bool>);
|
||||
@override
|
||||
_i11.Future<List<_i17.StackThemeMetaData>> fetchThemes() =>
|
||||
_i11.Future<List<_i18.StackThemeMetaData>> fetchThemes() =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchThemes,
|
||||
[],
|
||||
),
|
||||
returnValue: _i11.Future<List<_i17.StackThemeMetaData>>.value(
|
||||
<_i17.StackThemeMetaData>[]),
|
||||
) as _i11.Future<List<_i17.StackThemeMetaData>>);
|
||||
returnValue: _i11.Future<List<_i18.StackThemeMetaData>>.value(
|
||||
<_i18.StackThemeMetaData>[]),
|
||||
) as _i11.Future<List<_i18.StackThemeMetaData>>);
|
||||
@override
|
||||
_i11.Future<_i19.Uint8List> fetchTheme(
|
||||
{required _i17.StackThemeMetaData? themeMetaData}) =>
|
||||
_i11.Future<_i20.Uint8List> fetchTheme(
|
||||
{required _i18.StackThemeMetaData? themeMetaData}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchTheme,
|
||||
[],
|
||||
{#themeMetaData: themeMetaData},
|
||||
),
|
||||
returnValue: _i11.Future<_i19.Uint8List>.value(_i19.Uint8List(0)),
|
||||
) as _i11.Future<_i19.Uint8List>);
|
||||
returnValue: _i11.Future<_i20.Uint8List>.value(_i20.Uint8List(0)),
|
||||
) as _i11.Future<_i20.Uint8List>);
|
||||
@override
|
||||
_i18.StackTheme? getTheme({required String? themeId}) =>
|
||||
_i19.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getTheme,
|
||||
[],
|
||||
{#themeId: themeId},
|
||||
)) as _i18.StackTheme?);
|
||||
)) as _i19.StackTheme?);
|
||||
}
|
||||
|
||||
/// A class which mocks [CoinServiceAPI].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
|
||||
class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
|
||||
@override
|
||||
set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -596,10 +597,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i15.Coin get coin => (super.noSuchMethod(
|
||||
_i16.Coin get coin => (super.noSuchMethod(
|
||||
Invocation.getter(#coin),
|
||||
returnValue: _i15.Coin.bitcoin,
|
||||
) as _i15.Coin);
|
||||
returnValue: _i16.Coin.bitcoin,
|
||||
) as _i16.Coin);
|
||||
@override
|
||||
bool get isRefreshing => (super.noSuchMethod(
|
||||
Invocation.getter(#isRefreshing),
|
||||
|
@ -658,16 +659,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI {
|
|||
),
|
||||
) as _i8.Balance);
|
||||
@override
|
||||
_i11.Future<List<_i21.Transaction>> get transactions => (super.noSuchMethod(
|
||||
_i11.Future<List<_i22.Transaction>> get transactions => (super.noSuchMethod(
|
||||
Invocation.getter(#transactions),
|
||||
returnValue:
|
||||
_i11.Future<List<_i21.Transaction>>.value(<_i21.Transaction>[]),
|
||||
) as _i11.Future<List<_i21.Transaction>>);
|
||||
_i11.Future<List<_i22.Transaction>>.value(<_i22.Transaction>[]),
|
||||
) as _i11.Future<List<_i22.Transaction>>);
|
||||
@override
|
||||
_i11.Future<List<_i21.UTXO>> get utxos => (super.noSuchMethod(
|
||||
_i11.Future<List<_i22.UTXO>> get utxos => (super.noSuchMethod(
|
||||
Invocation.getter(#utxos),
|
||||
returnValue: _i11.Future<List<_i21.UTXO>>.value(<_i21.UTXO>[]),
|
||||
) as _i11.Future<List<_i21.UTXO>>);
|
||||
returnValue: _i11.Future<List<_i22.UTXO>>.value(<_i22.UTXO>[]),
|
||||
) as _i11.Future<List<_i22.UTXO>>);
|
||||
@override
|
||||
set walletName(String? newName) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
|
|
@ -2,7 +2,6 @@ import 'package:mockito/annotations.dart';
|
|||
import 'package:stackwallet/db/isar/main_db.dart';
|
||||
import 'package:stackwallet/models/isar/stack_theme.dart';
|
||||
import 'package:stackwallet/services/coins/coin_service.dart';
|
||||
import 'package:stackwallet/services/coins/firo/firo_wallet.dart';
|
||||
import 'package:stackwallet/services/locale_service.dart';
|
||||
import 'package:stackwallet/services/price_service.dart';
|
||||
import 'package:stackwallet/services/wallets.dart';
|
||||
|
@ -12,7 +11,6 @@ import 'package:stackwallet/utilities/prefs.dart';
|
|||
@GenerateMocks([
|
||||
Wallets,
|
||||
CoinServiceAPI,
|
||||
FiroWallet,
|
||||
LocaleService,
|
||||
Prefs,
|
||||
PriceService,
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -4,22 +4,23 @@
|
|||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i8;
|
||||
import 'dart:typed_data' as _i15;
|
||||
import 'dart:ui' as _i12;
|
||||
import 'dart:typed_data' as _i16;
|
||||
import 'dart:ui' as _i13;
|
||||
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:stackwallet/db/isar/main_db.dart' as _i3;
|
||||
import 'package:stackwallet/models/isar/stack_theme.dart' as _i14;
|
||||
import 'package:stackwallet/models/isar/stack_theme.dart' as _i15;
|
||||
import 'package:stackwallet/networking/http.dart' as _i6;
|
||||
import 'package:stackwallet/services/locale_service.dart' as _i11;
|
||||
import 'package:stackwallet/services/locale_service.dart' as _i12;
|
||||
import 'package:stackwallet/services/node_service.dart' as _i2;
|
||||
import 'package:stackwallet/services/wallets.dart' as _i7;
|
||||
import 'package:stackwallet/themes/theme_service.dart' as _i13;
|
||||
import 'package:stackwallet/themes/theme_service.dart' as _i14;
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||
as _i9;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i10;
|
||||
as _i10;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i11;
|
||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||
as _i4;
|
||||
import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i9;
|
||||
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
|
@ -149,14 +150,14 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
);
|
||||
@override
|
||||
_i8.Future<void> deleteWallet(
|
||||
String? walletId,
|
||||
_i9.SecureStorageInterface? secureStorage,
|
||||
_i9.WalletInfo? info,
|
||||
_i10.SecureStorageInterface? secureStorage,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#deleteWallet,
|
||||
[
|
||||
walletId,
|
||||
info,
|
||||
secureStorage,
|
||||
],
|
||||
),
|
||||
|
@ -165,7 +166,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
) as _i8.Future<void>);
|
||||
@override
|
||||
_i8.Future<void> load(
|
||||
_i10.Prefs? prefs,
|
||||
_i11.Prefs? prefs,
|
||||
_i3.MainDB? mainDB,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -181,7 +182,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
) as _i8.Future<void>);
|
||||
@override
|
||||
_i8.Future<void> loadAfterStackRestore(
|
||||
_i10.Prefs? prefs,
|
||||
_i11.Prefs? prefs,
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -200,7 +201,7 @@ class MockWallets extends _i1.Mock implements _i7.Wallets {
|
|||
/// A class which mocks [LocaleService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockLocaleService extends _i1.Mock implements _i11.LocaleService {
|
||||
class MockLocaleService extends _i1.Mock implements _i12.LocaleService {
|
||||
MockLocaleService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -226,7 +227,7 @@ class MockLocaleService extends _i1.Mock implements _i11.LocaleService {
|
|||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
@override
|
||||
void addListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i13.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -234,7 +235,7 @@ class MockLocaleService extends _i1.Mock implements _i11.LocaleService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i13.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -262,7 +263,7 @@ class MockLocaleService extends _i1.Mock implements _i11.LocaleService {
|
|||
/// A class which mocks [ThemeService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
||||
class MockThemeService extends _i1.Mock implements _i14.ThemeService {
|
||||
MockThemeService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -292,10 +293,10 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
|||
),
|
||||
) as _i3.MainDB);
|
||||
@override
|
||||
List<_i14.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
List<_i15.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i14.StackTheme>[],
|
||||
) as List<_i14.StackTheme>);
|
||||
returnValue: <_i15.StackTheme>[],
|
||||
) as List<_i15.StackTheme>);
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -305,7 +306,7 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i8.Future<void> install({required _i15.Uint8List? themeArchiveData}) =>
|
||||
_i8.Future<void> install({required _i16.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#install,
|
||||
|
@ -345,31 +346,31 @@ class MockThemeService extends _i1.Mock implements _i13.ThemeService {
|
|||
returnValue: _i8.Future<bool>.value(false),
|
||||
) as _i8.Future<bool>);
|
||||
@override
|
||||
_i8.Future<List<_i13.StackThemeMetaData>> fetchThemes() =>
|
||||
_i8.Future<List<_i14.StackThemeMetaData>> fetchThemes() =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchThemes,
|
||||
[],
|
||||
),
|
||||
returnValue: _i8.Future<List<_i13.StackThemeMetaData>>.value(
|
||||
<_i13.StackThemeMetaData>[]),
|
||||
) as _i8.Future<List<_i13.StackThemeMetaData>>);
|
||||
returnValue: _i8.Future<List<_i14.StackThemeMetaData>>.value(
|
||||
<_i14.StackThemeMetaData>[]),
|
||||
) as _i8.Future<List<_i14.StackThemeMetaData>>);
|
||||
@override
|
||||
_i8.Future<_i15.Uint8List> fetchTheme(
|
||||
{required _i13.StackThemeMetaData? themeMetaData}) =>
|
||||
_i8.Future<_i16.Uint8List> fetchTheme(
|
||||
{required _i14.StackThemeMetaData? themeMetaData}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchTheme,
|
||||
[],
|
||||
{#themeMetaData: themeMetaData},
|
||||
),
|
||||
returnValue: _i8.Future<_i15.Uint8List>.value(_i15.Uint8List(0)),
|
||||
) as _i8.Future<_i15.Uint8List>);
|
||||
returnValue: _i8.Future<_i16.Uint8List>.value(_i16.Uint8List(0)),
|
||||
) as _i8.Future<_i16.Uint8List>);
|
||||
@override
|
||||
_i14.StackTheme? getTheme({required String? themeId}) =>
|
||||
_i15.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getTheme,
|
||||
[],
|
||||
{#themeId: themeId},
|
||||
)) as _i14.StackTheme?);
|
||||
)) as _i15.StackTheme?);
|
||||
}
|
||||
|
|
|
@ -4,25 +4,26 @@
|
|||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i11;
|
||||
import 'dart:ui' as _i15;
|
||||
import 'dart:ui' as _i16;
|
||||
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:stackwallet/db/isar/main_db.dart' as _i3;
|
||||
import 'package:stackwallet/models/balance.dart' as _i8;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i18;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i16;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i19;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i17;
|
||||
import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i7;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i17;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i18;
|
||||
import 'package:stackwallet/services/node_service.dart' as _i2;
|
||||
import 'package:stackwallet/services/wallets.dart' as _i10;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i13;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i14;
|
||||
import 'package:stackwallet/utilities/amount/amount.dart' as _i9;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i14;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15;
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||
as _i6;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i12;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i13;
|
||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||
as _i4;
|
||||
import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i12;
|
||||
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
|
@ -183,14 +184,14 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
|
|||
);
|
||||
@override
|
||||
_i11.Future<void> deleteWallet(
|
||||
String? walletId,
|
||||
_i12.WalletInfo? info,
|
||||
_i6.SecureStorageInterface? secureStorage,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#deleteWallet,
|
||||
[
|
||||
walletId,
|
||||
info,
|
||||
secureStorage,
|
||||
],
|
||||
),
|
||||
|
@ -199,7 +200,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
|
|||
) as _i11.Future<void>);
|
||||
@override
|
||||
_i11.Future<void> load(
|
||||
_i12.Prefs? prefs,
|
||||
_i13.Prefs? prefs,
|
||||
_i3.MainDB? mainDB,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -215,7 +216,7 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
|
|||
) as _i11.Future<void>);
|
||||
@override
|
||||
_i11.Future<void> loadAfterStackRestore(
|
||||
_i12.Prefs? prefs,
|
||||
_i13.Prefs? prefs,
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -234,18 +235,18 @@ class MockWallets extends _i1.Mock implements _i10.Wallets {
|
|||
/// A class which mocks [WalletsService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockWalletsService extends _i1.Mock implements _i13.WalletsService {
|
||||
class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
|
||||
MockWalletsService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i11.Future<Map<String, _i13.WalletInfo>> get walletNames =>
|
||||
_i11.Future<Map<String, _i14.WalletInfo>> get walletNames =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#walletNames),
|
||||
returnValue: _i11.Future<Map<String, _i13.WalletInfo>>.value(
|
||||
<String, _i13.WalletInfo>{}),
|
||||
) as _i11.Future<Map<String, _i13.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),
|
||||
|
@ -270,18 +271,18 @@ class MockWalletsService extends _i1.Mock implements _i13.WalletsService {
|
|||
returnValue: _i11.Future<bool>.value(false),
|
||||
) as _i11.Future<bool>);
|
||||
@override
|
||||
Map<String, _i13.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
|
||||
Map<String, _i14.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchWalletsData,
|
||||
[],
|
||||
),
|
||||
returnValue: <String, _i13.WalletInfo>{},
|
||||
) as Map<String, _i13.WalletInfo>);
|
||||
returnValue: <String, _i14.WalletInfo>{},
|
||||
) as Map<String, _i14.WalletInfo>);
|
||||
@override
|
||||
_i11.Future<void> addExistingStackWallet({
|
||||
required String? name,
|
||||
required String? walletId,
|
||||
required _i14.Coin? coin,
|
||||
required _i15.Coin? coin,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -301,7 +302,7 @@ class MockWalletsService extends _i1.Mock implements _i13.WalletsService {
|
|||
@override
|
||||
_i11.Future<String?> addNewWallet({
|
||||
required String? name,
|
||||
required _i14.Coin? coin,
|
||||
required _i15.Coin? coin,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -432,7 +433,7 @@ class MockWalletsService extends _i1.Mock implements _i13.WalletsService {
|
|||
returnValueForMissingStub: _i11.Future<void>.value(),
|
||||
) as _i11.Future<void>);
|
||||
@override
|
||||
void addListener(_i15.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -440,7 +441,7 @@ class MockWalletsService extends _i1.Mock implements _i13.WalletsService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -478,15 +479,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
) as _i6.SecureStorageInterface);
|
||||
@override
|
||||
List<_i16.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
List<_i17.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i16.NodeModel>[],
|
||||
) as List<_i16.NodeModel>);
|
||||
returnValue: <_i17.NodeModel>[],
|
||||
) as List<_i17.NodeModel>);
|
||||
@override
|
||||
List<_i16.NodeModel> get nodes => (super.noSuchMethod(
|
||||
List<_i17.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i16.NodeModel>[],
|
||||
) as List<_i16.NodeModel>);
|
||||
returnValue: <_i17.NodeModel>[],
|
||||
) as List<_i17.NodeModel>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
|
@ -503,8 +504,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
) as _i11.Future<void>);
|
||||
@override
|
||||
_i11.Future<void> setPrimaryNodeFor({
|
||||
required _i14.Coin? coin,
|
||||
required _i16.NodeModel? node,
|
||||
required _i15.Coin? coin,
|
||||
required _i17.NodeModel? node,
|
||||
bool? shouldNotifyListeners = false,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -521,40 +522,40 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: _i11.Future<void>.value(),
|
||||
) as _i11.Future<void>);
|
||||
@override
|
||||
_i16.NodeModel? getPrimaryNodeFor({required _i14.Coin? coin}) =>
|
||||
_i17.NodeModel? getPrimaryNodeFor({required _i15.Coin? coin}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getPrimaryNodeFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
)) as _i16.NodeModel?);
|
||||
)) as _i17.NodeModel?);
|
||||
@override
|
||||
List<_i16.NodeModel> getNodesFor(_i14.Coin? coin) => (super.noSuchMethod(
|
||||
List<_i17.NodeModel> getNodesFor(_i15.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getNodesFor,
|
||||
[coin],
|
||||
),
|
||||
returnValue: <_i16.NodeModel>[],
|
||||
) as List<_i16.NodeModel>);
|
||||
returnValue: <_i17.NodeModel>[],
|
||||
) as List<_i17.NodeModel>);
|
||||
@override
|
||||
_i16.NodeModel? getNodeById({required String? id}) =>
|
||||
_i17.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getNodeById,
|
||||
[],
|
||||
{#id: id},
|
||||
)) as _i16.NodeModel?);
|
||||
)) as _i17.NodeModel?);
|
||||
@override
|
||||
List<_i16.NodeModel> failoverNodesFor({required _i14.Coin? coin}) =>
|
||||
List<_i17.NodeModel> failoverNodesFor({required _i15.Coin? coin}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#failoverNodesFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
),
|
||||
returnValue: <_i16.NodeModel>[],
|
||||
) as List<_i16.NodeModel>);
|
||||
returnValue: <_i17.NodeModel>[],
|
||||
) as List<_i17.NodeModel>);
|
||||
@override
|
||||
_i11.Future<void> add(
|
||||
_i16.NodeModel? node,
|
||||
_i17.NodeModel? node,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -606,7 +607,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
) as _i11.Future<void>);
|
||||
@override
|
||||
_i11.Future<void> edit(
|
||||
_i16.NodeModel? editedNode,
|
||||
_i17.NodeModel? editedNode,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -632,7 +633,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: _i11.Future<void>.value(),
|
||||
) as _i11.Future<void>);
|
||||
@override
|
||||
void addListener(_i15.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -640,7 +641,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -668,7 +669,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
/// A class which mocks [CoinServiceAPI].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
|
||||
class MockCoinServiceAPI extends _i1.Mock implements _i18.CoinServiceAPI {
|
||||
@override
|
||||
set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -679,10 +680,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i14.Coin get coin => (super.noSuchMethod(
|
||||
_i15.Coin get coin => (super.noSuchMethod(
|
||||
Invocation.getter(#coin),
|
||||
returnValue: _i14.Coin.bitcoin,
|
||||
) as _i14.Coin);
|
||||
returnValue: _i15.Coin.bitcoin,
|
||||
) as _i15.Coin);
|
||||
@override
|
||||
bool get isRefreshing => (super.noSuchMethod(
|
||||
Invocation.getter(#isRefreshing),
|
||||
|
@ -741,16 +742,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI {
|
|||
),
|
||||
) as _i8.Balance);
|
||||
@override
|
||||
_i11.Future<List<_i18.Transaction>> get transactions => (super.noSuchMethod(
|
||||
_i11.Future<List<_i19.Transaction>> get transactions => (super.noSuchMethod(
|
||||
Invocation.getter(#transactions),
|
||||
returnValue:
|
||||
_i11.Future<List<_i18.Transaction>>.value(<_i18.Transaction>[]),
|
||||
) as _i11.Future<List<_i18.Transaction>>);
|
||||
_i11.Future<List<_i19.Transaction>>.value(<_i19.Transaction>[]),
|
||||
) as _i11.Future<List<_i19.Transaction>>);
|
||||
@override
|
||||
_i11.Future<List<_i18.UTXO>> get utxos => (super.noSuchMethod(
|
||||
_i11.Future<List<_i19.UTXO>> get utxos => (super.noSuchMethod(
|
||||
Invocation.getter(#utxos),
|
||||
returnValue: _i11.Future<List<_i18.UTXO>>.value(<_i18.UTXO>[]),
|
||||
) as _i11.Future<List<_i18.UTXO>>);
|
||||
returnValue: _i11.Future<List<_i19.UTXO>>.value(<_i19.UTXO>[]),
|
||||
) as _i11.Future<List<_i19.UTXO>>);
|
||||
@override
|
||||
set walletName(String? newName) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
|
|
@ -4,29 +4,30 @@
|
|||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i12;
|
||||
import 'dart:typed_data' as _i19;
|
||||
import 'dart:ui' as _i16;
|
||||
import 'dart:typed_data' as _i20;
|
||||
import 'dart:ui' as _i17;
|
||||
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:stackwallet/db/isar/main_db.dart' as _i3;
|
||||
import 'package:stackwallet/models/balance.dart' as _i9;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i22;
|
||||
import 'package:stackwallet/models/isar/stack_theme.dart' as _i18;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i20;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i23;
|
||||
import 'package:stackwallet/models/isar/stack_theme.dart' as _i19;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i21;
|
||||
import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8;
|
||||
import 'package:stackwallet/networking/http.dart' as _i6;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i21;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i22;
|
||||
import 'package:stackwallet/services/node_service.dart' as _i2;
|
||||
import 'package:stackwallet/services/wallets.dart' as _i11;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i14;
|
||||
import 'package:stackwallet/themes/theme_service.dart' as _i17;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i15;
|
||||
import 'package:stackwallet/themes/theme_service.dart' as _i18;
|
||||
import 'package:stackwallet/utilities/amount/amount.dart' as _i10;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16;
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||
as _i7;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i13;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i14;
|
||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||
as _i4;
|
||||
import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i13;
|
||||
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
|
@ -197,14 +198,14 @@ class MockWallets extends _i1.Mock implements _i11.Wallets {
|
|||
);
|
||||
@override
|
||||
_i12.Future<void> deleteWallet(
|
||||
String? walletId,
|
||||
_i13.WalletInfo? info,
|
||||
_i7.SecureStorageInterface? secureStorage,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#deleteWallet,
|
||||
[
|
||||
walletId,
|
||||
info,
|
||||
secureStorage,
|
||||
],
|
||||
),
|
||||
|
@ -213,7 +214,7 @@ class MockWallets extends _i1.Mock implements _i11.Wallets {
|
|||
) as _i12.Future<void>);
|
||||
@override
|
||||
_i12.Future<void> load(
|
||||
_i13.Prefs? prefs,
|
||||
_i14.Prefs? prefs,
|
||||
_i3.MainDB? mainDB,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -229,7 +230,7 @@ class MockWallets extends _i1.Mock implements _i11.Wallets {
|
|||
) as _i12.Future<void>);
|
||||
@override
|
||||
_i12.Future<void> loadAfterStackRestore(
|
||||
_i13.Prefs? prefs,
|
||||
_i14.Prefs? prefs,
|
||||
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -248,18 +249,18 @@ class MockWallets extends _i1.Mock implements _i11.Wallets {
|
|||
/// A class which mocks [WalletsService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
|
||||
class MockWalletsService extends _i1.Mock implements _i15.WalletsService {
|
||||
MockWalletsService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i12.Future<Map<String, _i14.WalletInfo>> get walletNames =>
|
||||
_i12.Future<Map<String, _i15.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: _i12.Future<Map<String, _i15.WalletInfo>>.value(
|
||||
<String, _i15.WalletInfo>{}),
|
||||
) as _i12.Future<Map<String, _i15.WalletInfo>>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
|
@ -284,18 +285,18 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
|
|||
returnValue: _i12.Future<bool>.value(false),
|
||||
) as _i12.Future<bool>);
|
||||
@override
|
||||
Map<String, _i14.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
|
||||
Map<String, _i15.WalletInfo> fetchWalletsData() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchWalletsData,
|
||||
[],
|
||||
),
|
||||
returnValue: <String, _i14.WalletInfo>{},
|
||||
) as Map<String, _i14.WalletInfo>);
|
||||
returnValue: <String, _i15.WalletInfo>{},
|
||||
) as Map<String, _i15.WalletInfo>);
|
||||
@override
|
||||
_i12.Future<void> addExistingStackWallet({
|
||||
required String? name,
|
||||
required String? walletId,
|
||||
required _i15.Coin? coin,
|
||||
required _i16.Coin? coin,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -315,7 +316,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
|
|||
@override
|
||||
_i12.Future<String?> addNewWallet({
|
||||
required String? name,
|
||||
required _i15.Coin? coin,
|
||||
required _i16.Coin? coin,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -446,7 +447,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
|
|||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
@override
|
||||
void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -454,7 +455,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -482,7 +483,7 @@ class MockWalletsService extends _i1.Mock implements _i14.WalletsService {
|
|||
/// A class which mocks [ThemeService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
||||
class MockThemeService extends _i1.Mock implements _i18.ThemeService {
|
||||
MockThemeService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -512,10 +513,10 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
),
|
||||
) as _i3.MainDB);
|
||||
@override
|
||||
List<_i18.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
List<_i19.StackTheme> get installedThemes => (super.noSuchMethod(
|
||||
Invocation.getter(#installedThemes),
|
||||
returnValue: <_i18.StackTheme>[],
|
||||
) as List<_i18.StackTheme>);
|
||||
returnValue: <_i19.StackTheme>[],
|
||||
) as List<_i19.StackTheme>);
|
||||
@override
|
||||
void init(_i3.MainDB? db) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -525,7 +526,7 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i12.Future<void> install({required _i19.Uint8List? themeArchiveData}) =>
|
||||
_i12.Future<void> install({required _i20.Uint8List? themeArchiveData}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#install,
|
||||
|
@ -565,33 +566,33 @@ class MockThemeService extends _i1.Mock implements _i17.ThemeService {
|
|||
returnValue: _i12.Future<bool>.value(false),
|
||||
) as _i12.Future<bool>);
|
||||
@override
|
||||
_i12.Future<List<_i17.StackThemeMetaData>> fetchThemes() =>
|
||||
_i12.Future<List<_i18.StackThemeMetaData>> fetchThemes() =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchThemes,
|
||||
[],
|
||||
),
|
||||
returnValue: _i12.Future<List<_i17.StackThemeMetaData>>.value(
|
||||
<_i17.StackThemeMetaData>[]),
|
||||
) as _i12.Future<List<_i17.StackThemeMetaData>>);
|
||||
returnValue: _i12.Future<List<_i18.StackThemeMetaData>>.value(
|
||||
<_i18.StackThemeMetaData>[]),
|
||||
) as _i12.Future<List<_i18.StackThemeMetaData>>);
|
||||
@override
|
||||
_i12.Future<_i19.Uint8List> fetchTheme(
|
||||
{required _i17.StackThemeMetaData? themeMetaData}) =>
|
||||
_i12.Future<_i20.Uint8List> fetchTheme(
|
||||
{required _i18.StackThemeMetaData? themeMetaData}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#fetchTheme,
|
||||
[],
|
||||
{#themeMetaData: themeMetaData},
|
||||
),
|
||||
returnValue: _i12.Future<_i19.Uint8List>.value(_i19.Uint8List(0)),
|
||||
) as _i12.Future<_i19.Uint8List>);
|
||||
returnValue: _i12.Future<_i20.Uint8List>.value(_i20.Uint8List(0)),
|
||||
) as _i12.Future<_i20.Uint8List>);
|
||||
@override
|
||||
_i18.StackTheme? getTheme({required String? themeId}) =>
|
||||
_i19.StackTheme? getTheme({required String? themeId}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getTheme,
|
||||
[],
|
||||
{#themeId: themeId},
|
||||
)) as _i18.StackTheme?);
|
||||
)) as _i19.StackTheme?);
|
||||
}
|
||||
|
||||
/// A class which mocks [NodeService].
|
||||
|
@ -607,15 +608,15 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
),
|
||||
) as _i7.SecureStorageInterface);
|
||||
@override
|
||||
List<_i20.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
List<_i21.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i20.NodeModel>[],
|
||||
) as List<_i20.NodeModel>);
|
||||
returnValue: <_i21.NodeModel>[],
|
||||
) as List<_i21.NodeModel>);
|
||||
@override
|
||||
List<_i20.NodeModel> get nodes => (super.noSuchMethod(
|
||||
List<_i21.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i20.NodeModel>[],
|
||||
) as List<_i20.NodeModel>);
|
||||
returnValue: <_i21.NodeModel>[],
|
||||
) as List<_i21.NodeModel>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
|
@ -632,8 +633,8 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
) as _i12.Future<void>);
|
||||
@override
|
||||
_i12.Future<void> setPrimaryNodeFor({
|
||||
required _i15.Coin? coin,
|
||||
required _i20.NodeModel? node,
|
||||
required _i16.Coin? coin,
|
||||
required _i21.NodeModel? node,
|
||||
bool? shouldNotifyListeners = false,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -650,40 +651,40 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
@override
|
||||
_i20.NodeModel? getPrimaryNodeFor({required _i15.Coin? coin}) =>
|
||||
_i21.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getPrimaryNodeFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
)) as _i20.NodeModel?);
|
||||
)) as _i21.NodeModel?);
|
||||
@override
|
||||
List<_i20.NodeModel> getNodesFor(_i15.Coin? coin) => (super.noSuchMethod(
|
||||
List<_i21.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getNodesFor,
|
||||
[coin],
|
||||
),
|
||||
returnValue: <_i20.NodeModel>[],
|
||||
) as List<_i20.NodeModel>);
|
||||
returnValue: <_i21.NodeModel>[],
|
||||
) as List<_i21.NodeModel>);
|
||||
@override
|
||||
_i20.NodeModel? getNodeById({required String? id}) =>
|
||||
_i21.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getNodeById,
|
||||
[],
|
||||
{#id: id},
|
||||
)) as _i20.NodeModel?);
|
||||
)) as _i21.NodeModel?);
|
||||
@override
|
||||
List<_i20.NodeModel> failoverNodesFor({required _i15.Coin? coin}) =>
|
||||
List<_i21.NodeModel> failoverNodesFor({required _i16.Coin? coin}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#failoverNodesFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
),
|
||||
returnValue: <_i20.NodeModel>[],
|
||||
) as List<_i20.NodeModel>);
|
||||
returnValue: <_i21.NodeModel>[],
|
||||
) as List<_i21.NodeModel>);
|
||||
@override
|
||||
_i12.Future<void> add(
|
||||
_i20.NodeModel? node,
|
||||
_i21.NodeModel? node,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -735,7 +736,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
) as _i12.Future<void>);
|
||||
@override
|
||||
_i12.Future<void> edit(
|
||||
_i20.NodeModel? editedNode,
|
||||
_i21.NodeModel? editedNode,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -761,7 +762,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
@override
|
||||
void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -769,7 +770,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -797,7 +798,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService {
|
|||
/// A class which mocks [CoinServiceAPI].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
|
||||
class MockCoinServiceAPI extends _i1.Mock implements _i22.CoinServiceAPI {
|
||||
@override
|
||||
set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -808,10 +809,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i15.Coin get coin => (super.noSuchMethod(
|
||||
_i16.Coin get coin => (super.noSuchMethod(
|
||||
Invocation.getter(#coin),
|
||||
returnValue: _i15.Coin.bitcoin,
|
||||
) as _i15.Coin);
|
||||
returnValue: _i16.Coin.bitcoin,
|
||||
) as _i16.Coin);
|
||||
@override
|
||||
bool get isRefreshing => (super.noSuchMethod(
|
||||
Invocation.getter(#isRefreshing),
|
||||
|
@ -870,16 +871,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI {
|
|||
),
|
||||
) as _i9.Balance);
|
||||
@override
|
||||
_i12.Future<List<_i22.Transaction>> get transactions => (super.noSuchMethod(
|
||||
_i12.Future<List<_i23.Transaction>> get transactions => (super.noSuchMethod(
|
||||
Invocation.getter(#transactions),
|
||||
returnValue:
|
||||
_i12.Future<List<_i22.Transaction>>.value(<_i22.Transaction>[]),
|
||||
) as _i12.Future<List<_i22.Transaction>>);
|
||||
_i12.Future<List<_i23.Transaction>>.value(<_i23.Transaction>[]),
|
||||
) as _i12.Future<List<_i23.Transaction>>);
|
||||
@override
|
||||
_i12.Future<List<_i22.UTXO>> get utxos => (super.noSuchMethod(
|
||||
_i12.Future<List<_i23.UTXO>> get utxos => (super.noSuchMethod(
|
||||
Invocation.getter(#utxos),
|
||||
returnValue: _i12.Future<List<_i22.UTXO>>.value(<_i22.UTXO>[]),
|
||||
) as _i12.Future<List<_i22.UTXO>>);
|
||||
returnValue: _i12.Future<List<_i23.UTXO>>.value(<_i23.UTXO>[]),
|
||||
) as _i12.Future<List<_i23.UTXO>>);
|
||||
@override
|
||||
set walletName(String? newName) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
|
Loading…
Reference in a new issue