mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49:22 +00:00
build runner
This commit is contained in:
parent
afdc496331
commit
40af5e5206
8 changed files with 200 additions and 81 deletions
|
@ -17,22 +17,23 @@ import 'package:stackwallet/models/isar/models/isar_models.dart' as _i22;
|
|||
import 'package:stackwallet/models/node_model.dart' as _i20;
|
||||
import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9;
|
||||
import 'package:stackwallet/pages/exchange_view/sub_widgets/exchange_rate_sheet.dart'
|
||||
as _i25;
|
||||
as _i26;
|
||||
import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i21;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i14;
|
||||
import 'package:stackwallet/services/coins/manager.dart' as _i6;
|
||||
import 'package:stackwallet/services/locale_service.dart' as _i23;
|
||||
import 'package:stackwallet/services/locale_service.dart' as _i24;
|
||||
import 'package:stackwallet/services/node_service.dart' as _i3;
|
||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||
as _i8;
|
||||
import 'package:stackwallet/services/wallets.dart' as _i15;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i2;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i26;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i27;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i24;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i25;
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||
as _i7;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i18;
|
||||
import 'package:tuple/tuple.dart' as _i23;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: avoid_redundant_argument_values
|
||||
|
@ -1580,12 +1581,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet {
|
|||
),
|
||||
returnValue: _i17.Future<bool>.value(false),
|
||||
) as _i17.Future<bool>);
|
||||
@override
|
||||
_i17.Future<void> addNewTransactionData(
|
||||
List<
|
||||
_i23.Tuple4<_i22.Transaction, List<_i22.Output>,
|
||||
List<_i22.Input>, _i22.Address?>>?
|
||||
transactionsData) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addNewTransactionData,
|
||||
[transactionsData],
|
||||
),
|
||||
returnValue: _i17.Future<void>.value(),
|
||||
returnValueForMissingStub: _i17.Future<void>.value(),
|
||||
) as _i17.Future<void>);
|
||||
}
|
||||
|
||||
/// A class which mocks [LocaleService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockLocaleService extends _i1.Mock implements _i23.LocaleService {
|
||||
class MockLocaleService extends _i1.Mock implements _i24.LocaleService {
|
||||
MockLocaleService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -1703,12 +1718,12 @@ class MockPrefs extends _i1.Mock implements _i18.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i24.SyncingType get syncType => (super.noSuchMethod(
|
||||
_i25.SyncingType get syncType => (super.noSuchMethod(
|
||||
Invocation.getter(#syncType),
|
||||
returnValue: _i24.SyncingType.currentWalletOnly,
|
||||
) as _i24.SyncingType);
|
||||
returnValue: _i25.SyncingType.currentWalletOnly,
|
||||
) as _i25.SyncingType);
|
||||
@override
|
||||
set syncType(_i24.SyncingType? syncType) => super.noSuchMethod(
|
||||
set syncType(_i25.SyncingType? syncType) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#syncType,
|
||||
syncType,
|
||||
|
@ -1768,12 +1783,12 @@ class MockPrefs extends _i1.Mock implements _i18.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i25.ExchangeRateType get exchangeRateType => (super.noSuchMethod(
|
||||
_i26.ExchangeRateType get exchangeRateType => (super.noSuchMethod(
|
||||
Invocation.getter(#exchangeRateType),
|
||||
returnValue: _i25.ExchangeRateType.estimated,
|
||||
) as _i25.ExchangeRateType);
|
||||
returnValue: _i26.ExchangeRateType.estimated,
|
||||
) as _i26.ExchangeRateType);
|
||||
@override
|
||||
set exchangeRateType(_i25.ExchangeRateType? exchangeRateType) =>
|
||||
set exchangeRateType(_i26.ExchangeRateType? exchangeRateType) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#exchangeRateType,
|
||||
|
@ -1855,12 +1870,12 @@ class MockPrefs extends _i1.Mock implements _i18.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i26.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
_i27.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
Invocation.getter(#backupFrequencyType),
|
||||
returnValue: _i26.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i26.BackupFrequencyType);
|
||||
returnValue: _i27.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i27.BackupFrequencyType);
|
||||
@override
|
||||
set backupFrequencyType(_i26.BackupFrequencyType? backupFrequencyType) =>
|
||||
set backupFrequencyType(_i27.BackupFrequencyType? backupFrequencyType) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#backupFrequencyType,
|
||||
|
|
|
@ -18,6 +18,7 @@ import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as _i9;
|
|||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||
as _i2;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i11;
|
||||
import 'package:tuple/tuple.dart' as _i14;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: avoid_redundant_argument_values
|
||||
|
@ -1008,6 +1009,20 @@ class MockFiroWallet extends _i1.Mock implements _i9.FiroWallet {
|
|||
returnValue: _i10.Future<bool>.value(false),
|
||||
) as _i10.Future<bool>);
|
||||
@override
|
||||
_i10.Future<void> addNewTransactionData(
|
||||
List<
|
||||
_i14.Tuple4<_i12.Transaction, List<_i12.Output>,
|
||||
List<_i12.Input>, _i12.Address?>>?
|
||||
transactionsData) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addNewTransactionData,
|
||||
[transactionsData],
|
||||
),
|
||||
returnValue: _i10.Future<void>.value(),
|
||||
returnValueForMissingStub: _i10.Future<void>.value(),
|
||||
) as _i10.Future<void>);
|
||||
@override
|
||||
void initFiroHive(String? walletId) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#initFiroHive,
|
||||
|
|
|
@ -14,12 +14,12 @@ import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i10;
|
|||
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9;
|
||||
import 'package:stackwallet/models/balance.dart' as _i11;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i21;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i23;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i24;
|
||||
import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8;
|
||||
import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i20;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i14;
|
||||
import 'package:stackwallet/services/coins/manager.dart' as _i6;
|
||||
import 'package:stackwallet/services/locale_service.dart' as _i22;
|
||||
import 'package:stackwallet/services/locale_service.dart' as _i23;
|
||||
import 'package:stackwallet/services/node_service.dart' as _i3;
|
||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||
as _i7;
|
||||
|
@ -29,6 +29,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16;
|
|||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||
as _i13;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i18;
|
||||
import 'package:tuple/tuple.dart' as _i22;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: avoid_redundant_argument_values
|
||||
|
@ -1370,12 +1371,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet {
|
|||
),
|
||||
returnValue: _i17.Future<bool>.value(false),
|
||||
) as _i17.Future<bool>);
|
||||
@override
|
||||
_i17.Future<void> addNewTransactionData(
|
||||
List<
|
||||
_i22.Tuple4<_i21.Transaction, List<_i21.Output>,
|
||||
List<_i21.Input>, _i21.Address?>>?
|
||||
transactionsData) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addNewTransactionData,
|
||||
[transactionsData],
|
||||
),
|
||||
returnValue: _i17.Future<void>.value(),
|
||||
returnValueForMissingStub: _i17.Future<void>.value(),
|
||||
) as _i17.Future<void>);
|
||||
}
|
||||
|
||||
/// A class which mocks [LocaleService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockLocaleService extends _i1.Mock implements _i22.LocaleService {
|
||||
class MockLocaleService extends _i1.Mock implements _i23.LocaleService {
|
||||
MockLocaleService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -1447,15 +1462,15 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
) as _i13.SecureStorageInterface);
|
||||
@override
|
||||
List<_i23.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
List<_i24.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i23.NodeModel>[],
|
||||
) as List<_i23.NodeModel>);
|
||||
returnValue: <_i24.NodeModel>[],
|
||||
) as List<_i24.NodeModel>);
|
||||
@override
|
||||
List<_i23.NodeModel> get nodes => (super.noSuchMethod(
|
||||
List<_i24.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i23.NodeModel>[],
|
||||
) as List<_i23.NodeModel>);
|
||||
returnValue: <_i24.NodeModel>[],
|
||||
) as List<_i24.NodeModel>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
|
@ -1473,7 +1488,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
@override
|
||||
_i17.Future<void> setPrimaryNodeFor({
|
||||
required _i16.Coin? coin,
|
||||
required _i23.NodeModel? node,
|
||||
required _i24.NodeModel? node,
|
||||
bool? shouldNotifyListeners = false,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -1490,40 +1505,40 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValueForMissingStub: _i17.Future<void>.value(),
|
||||
) as _i17.Future<void>);
|
||||
@override
|
||||
_i23.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) =>
|
||||
_i24.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getPrimaryNodeFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
)) as _i23.NodeModel?);
|
||||
)) as _i24.NodeModel?);
|
||||
@override
|
||||
List<_i23.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
List<_i24.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getNodesFor,
|
||||
[coin],
|
||||
),
|
||||
returnValue: <_i23.NodeModel>[],
|
||||
) as List<_i23.NodeModel>);
|
||||
returnValue: <_i24.NodeModel>[],
|
||||
) as List<_i24.NodeModel>);
|
||||
@override
|
||||
_i23.NodeModel? getNodeById({required String? id}) =>
|
||||
_i24.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getNodeById,
|
||||
[],
|
||||
{#id: id},
|
||||
)) as _i23.NodeModel?);
|
||||
)) as _i24.NodeModel?);
|
||||
@override
|
||||
List<_i23.NodeModel> failoverNodesFor({required _i16.Coin? coin}) =>
|
||||
List<_i24.NodeModel> failoverNodesFor({required _i16.Coin? coin}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#failoverNodesFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
),
|
||||
returnValue: <_i23.NodeModel>[],
|
||||
) as List<_i23.NodeModel>);
|
||||
returnValue: <_i24.NodeModel>[],
|
||||
) as List<_i24.NodeModel>);
|
||||
@override
|
||||
_i17.Future<void> add(
|
||||
_i23.NodeModel? node,
|
||||
_i24.NodeModel? node,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -1575,7 +1590,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
) as _i17.Future<void>);
|
||||
@override
|
||||
_i17.Future<void> edit(
|
||||
_i23.NodeModel? editedNode,
|
||||
_i24.NodeModel? editedNode,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
|
|
@ -25,6 +25,7 @@ import 'package:stackwallet/services/wallets.dart' as _i14;
|
|||
import 'package:stackwallet/services/wallets_service.dart' as _i2;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i15;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i17;
|
||||
import 'package:tuple/tuple.dart' as _i21;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: avoid_redundant_argument_values
|
||||
|
@ -1355,6 +1356,20 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet {
|
|||
),
|
||||
returnValue: _i16.Future<bool>.value(false),
|
||||
) as _i16.Future<bool>);
|
||||
@override
|
||||
_i16.Future<void> addNewTransactionData(
|
||||
List<
|
||||
_i21.Tuple4<_i20.Transaction, List<_i20.Output>,
|
||||
List<_i20.Input>, _i20.Address?>>?
|
||||
transactionsData) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addNewTransactionData,
|
||||
[transactionsData],
|
||||
),
|
||||
returnValue: _i16.Future<void>.value(),
|
||||
returnValueForMissingStub: _i16.Future<void>.value(),
|
||||
) as _i16.Future<void>);
|
||||
}
|
||||
|
||||
/// A class which mocks [Manager].
|
||||
|
|
|
@ -1938,6 +1938,20 @@ class MockFiroWallet extends _i1.Mock implements _i22.FiroWallet {
|
|||
returnValue: _i18.Future<bool>.value(false),
|
||||
) as _i18.Future<bool>);
|
||||
@override
|
||||
_i18.Future<void> addNewTransactionData(
|
||||
List<
|
||||
_i15.Tuple4<_i21.Transaction, List<_i21.Output>,
|
||||
List<_i21.Input>, _i21.Address?>>?
|
||||
transactionsData) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addNewTransactionData,
|
||||
[transactionsData],
|
||||
),
|
||||
returnValue: _i18.Future<void>.value(),
|
||||
returnValueForMissingStub: _i18.Future<void>.value(),
|
||||
) as _i18.Future<void>);
|
||||
@override
|
||||
void initFiroHive(String? walletId) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#initFiroHive,
|
||||
|
|
|
@ -17,7 +17,7 @@ import 'package:stackwallet/models/isar/models/isar_models.dart' as _i19;
|
|||
import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8;
|
||||
import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i18;
|
||||
import 'package:stackwallet/services/coins/manager.dart' as _i6;
|
||||
import 'package:stackwallet/services/locale_service.dart' as _i20;
|
||||
import 'package:stackwallet/services/locale_service.dart' as _i21;
|
||||
import 'package:stackwallet/services/node_service.dart' as _i3;
|
||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||
as _i7;
|
||||
|
@ -25,6 +25,7 @@ import 'package:stackwallet/services/wallets.dart' as _i13;
|
|||
import 'package:stackwallet/services/wallets_service.dart' as _i2;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i14;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i16;
|
||||
import 'package:tuple/tuple.dart' as _i20;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: avoid_redundant_argument_values
|
||||
|
@ -1118,12 +1119,26 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet {
|
|||
),
|
||||
returnValue: _i15.Future<bool>.value(false),
|
||||
) as _i15.Future<bool>);
|
||||
@override
|
||||
_i15.Future<void> addNewTransactionData(
|
||||
List<
|
||||
_i20.Tuple4<_i19.Transaction, List<_i19.Output>,
|
||||
List<_i19.Input>, _i19.Address?>>?
|
||||
transactionsData) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addNewTransactionData,
|
||||
[transactionsData],
|
||||
),
|
||||
returnValue: _i15.Future<void>.value(),
|
||||
returnValueForMissingStub: _i15.Future<void>.value(),
|
||||
) as _i15.Future<void>);
|
||||
}
|
||||
|
||||
/// A class which mocks [LocaleService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockLocaleService extends _i1.Mock implements _i20.LocaleService {
|
||||
class MockLocaleService extends _i1.Mock implements _i21.LocaleService {
|
||||
MockLocaleService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i10;
|
|||
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9;
|
||||
import 'package:stackwallet/models/balance.dart' as _i11;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i21;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i22;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i23;
|
||||
import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8;
|
||||
import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i20;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i14;
|
||||
|
@ -28,6 +28,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16;
|
|||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||
as _i13;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i18;
|
||||
import 'package:tuple/tuple.dart' as _i22;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: avoid_redundant_argument_values
|
||||
|
@ -1369,6 +1370,20 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet {
|
|||
),
|
||||
returnValue: _i17.Future<bool>.value(false),
|
||||
) as _i17.Future<bool>);
|
||||
@override
|
||||
_i17.Future<void> addNewTransactionData(
|
||||
List<
|
||||
_i22.Tuple4<_i21.Transaction, List<_i21.Output>,
|
||||
List<_i21.Input>, _i21.Address?>>?
|
||||
transactionsData) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addNewTransactionData,
|
||||
[transactionsData],
|
||||
),
|
||||
returnValue: _i17.Future<void>.value(),
|
||||
returnValueForMissingStub: _i17.Future<void>.value(),
|
||||
) as _i17.Future<void>);
|
||||
}
|
||||
|
||||
/// A class which mocks [NodeService].
|
||||
|
@ -1384,15 +1399,15 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
) as _i13.SecureStorageInterface);
|
||||
@override
|
||||
List<_i22.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
List<_i23.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i22.NodeModel>[],
|
||||
) as List<_i22.NodeModel>);
|
||||
returnValue: <_i23.NodeModel>[],
|
||||
) as List<_i23.NodeModel>);
|
||||
@override
|
||||
List<_i22.NodeModel> get nodes => (super.noSuchMethod(
|
||||
List<_i23.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i22.NodeModel>[],
|
||||
) as List<_i22.NodeModel>);
|
||||
returnValue: <_i23.NodeModel>[],
|
||||
) as List<_i23.NodeModel>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
|
@ -1410,7 +1425,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
@override
|
||||
_i17.Future<void> setPrimaryNodeFor({
|
||||
required _i16.Coin? coin,
|
||||
required _i22.NodeModel? node,
|
||||
required _i23.NodeModel? node,
|
||||
bool? shouldNotifyListeners = false,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -1427,40 +1442,40 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValueForMissingStub: _i17.Future<void>.value(),
|
||||
) as _i17.Future<void>);
|
||||
@override
|
||||
_i22.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) =>
|
||||
_i23.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getPrimaryNodeFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
)) as _i22.NodeModel?);
|
||||
)) as _i23.NodeModel?);
|
||||
@override
|
||||
List<_i22.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
List<_i23.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getNodesFor,
|
||||
[coin],
|
||||
),
|
||||
returnValue: <_i22.NodeModel>[],
|
||||
) as List<_i22.NodeModel>);
|
||||
returnValue: <_i23.NodeModel>[],
|
||||
) as List<_i23.NodeModel>);
|
||||
@override
|
||||
_i22.NodeModel? getNodeById({required String? id}) =>
|
||||
_i23.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getNodeById,
|
||||
[],
|
||||
{#id: id},
|
||||
)) as _i22.NodeModel?);
|
||||
)) as _i23.NodeModel?);
|
||||
@override
|
||||
List<_i22.NodeModel> failoverNodesFor({required _i16.Coin? coin}) =>
|
||||
List<_i23.NodeModel> failoverNodesFor({required _i16.Coin? coin}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#failoverNodesFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
),
|
||||
returnValue: <_i22.NodeModel>[],
|
||||
) as List<_i22.NodeModel>);
|
||||
returnValue: <_i23.NodeModel>[],
|
||||
) as List<_i23.NodeModel>);
|
||||
@override
|
||||
_i17.Future<void> add(
|
||||
_i22.NodeModel? node,
|
||||
_i23.NodeModel? node,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -1512,7 +1527,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
) as _i17.Future<void>);
|
||||
@override
|
||||
_i17.Future<void> edit(
|
||||
_i22.NodeModel? editedNode,
|
||||
_i23.NodeModel? editedNode,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
|
|
@ -14,7 +14,7 @@ import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i10;
|
|||
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9;
|
||||
import 'package:stackwallet/models/balance.dart' as _i11;
|
||||
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i21;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i22;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i23;
|
||||
import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8;
|
||||
import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i20;
|
||||
import 'package:stackwallet/services/coins/coin_service.dart' as _i14;
|
||||
|
@ -28,6 +28,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i16;
|
|||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||
as _i13;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i18;
|
||||
import 'package:tuple/tuple.dart' as _i22;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: avoid_redundant_argument_values
|
||||
|
@ -1369,6 +1370,20 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet {
|
|||
),
|
||||
returnValue: _i17.Future<bool>.value(false),
|
||||
) as _i17.Future<bool>);
|
||||
@override
|
||||
_i17.Future<void> addNewTransactionData(
|
||||
List<
|
||||
_i22.Tuple4<_i21.Transaction, List<_i21.Output>,
|
||||
List<_i21.Input>, _i21.Address?>>?
|
||||
transactionsData) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addNewTransactionData,
|
||||
[transactionsData],
|
||||
),
|
||||
returnValue: _i17.Future<void>.value(),
|
||||
returnValueForMissingStub: _i17.Future<void>.value(),
|
||||
) as _i17.Future<void>);
|
||||
}
|
||||
|
||||
/// A class which mocks [NodeService].
|
||||
|
@ -1384,15 +1399,15 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
),
|
||||
) as _i13.SecureStorageInterface);
|
||||
@override
|
||||
List<_i22.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
List<_i23.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i22.NodeModel>[],
|
||||
) as List<_i22.NodeModel>);
|
||||
returnValue: <_i23.NodeModel>[],
|
||||
) as List<_i23.NodeModel>);
|
||||
@override
|
||||
List<_i22.NodeModel> get nodes => (super.noSuchMethod(
|
||||
List<_i23.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i22.NodeModel>[],
|
||||
) as List<_i22.NodeModel>);
|
||||
returnValue: <_i23.NodeModel>[],
|
||||
) as List<_i23.NodeModel>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
|
@ -1410,7 +1425,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
@override
|
||||
_i17.Future<void> setPrimaryNodeFor({
|
||||
required _i16.Coin? coin,
|
||||
required _i22.NodeModel? node,
|
||||
required _i23.NodeModel? node,
|
||||
bool? shouldNotifyListeners = false,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -1427,40 +1442,40 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValueForMissingStub: _i17.Future<void>.value(),
|
||||
) as _i17.Future<void>);
|
||||
@override
|
||||
_i22.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) =>
|
||||
_i23.NodeModel? getPrimaryNodeFor({required _i16.Coin? coin}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getPrimaryNodeFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
)) as _i22.NodeModel?);
|
||||
)) as _i23.NodeModel?);
|
||||
@override
|
||||
List<_i22.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
List<_i23.NodeModel> getNodesFor(_i16.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getNodesFor,
|
||||
[coin],
|
||||
),
|
||||
returnValue: <_i22.NodeModel>[],
|
||||
) as List<_i22.NodeModel>);
|
||||
returnValue: <_i23.NodeModel>[],
|
||||
) as List<_i23.NodeModel>);
|
||||
@override
|
||||
_i22.NodeModel? getNodeById({required String? id}) =>
|
||||
_i23.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getNodeById,
|
||||
[],
|
||||
{#id: id},
|
||||
)) as _i22.NodeModel?);
|
||||
)) as _i23.NodeModel?);
|
||||
@override
|
||||
List<_i22.NodeModel> failoverNodesFor({required _i16.Coin? coin}) =>
|
||||
List<_i23.NodeModel> failoverNodesFor({required _i16.Coin? coin}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#failoverNodesFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
),
|
||||
returnValue: <_i22.NodeModel>[],
|
||||
) as List<_i22.NodeModel>);
|
||||
returnValue: <_i23.NodeModel>[],
|
||||
) as List<_i23.NodeModel>);
|
||||
@override
|
||||
_i17.Future<void> add(
|
||||
_i22.NodeModel? node,
|
||||
_i23.NodeModel? node,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -1512,7 +1527,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
) as _i17.Future<void>);
|
||||
@override
|
||||
_i17.Future<void> edit(
|
||||
_i22.NodeModel? editedNode,
|
||||
_i23.NodeModel? editedNode,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
|
Loading…
Reference in a new issue