stack_wallet/test/services/coins/manager_test.mocks.dart

1297 lines
38 KiB
Dart
Raw Normal View History

// Mocks generated by Mockito 5.3.2 from annotations
2022-08-26 08:11:35 +00:00
// in stackwallet/test/services/coins/manager_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
2022-08-26 08:11:35 +00:00
import 'dart:async' as _i8;
import 'package:decimal/decimal.dart' as _i3;
import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i6;
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i5;
import 'package:stackwallet/models/lelantus_coin.dart' as _i10;
import 'package:stackwallet/models/models.dart' as _i4;
import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as _i7;
import 'package:stackwallet/services/transaction_notification_tracker.dart'
as _i2;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i9;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: comment_references
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
2022-08-26 08:11:35 +00:00
class _FakeTransactionNotificationTracker_0 extends _i1.SmartFake
implements _i2.TransactionNotificationTracker {
_FakeTransactionNotificationTracker_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
2022-08-26 08:11:35 +00:00
class _FakeDecimal_1 extends _i1.SmartFake implements _i3.Decimal {
_FakeDecimal_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
2022-08-26 08:11:35 +00:00
class _FakeTransactionData_2 extends _i1.SmartFake
implements _i4.TransactionData {
_FakeTransactionData_2(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
2022-08-26 08:11:35 +00:00
class _FakeUtxoData_3 extends _i1.SmartFake implements _i4.UtxoData {
_FakeUtxoData_3(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
2022-08-26 08:11:35 +00:00
class _FakeFeeObject_4 extends _i1.SmartFake implements _i4.FeeObject {
_FakeFeeObject_4(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
2022-08-26 08:11:35 +00:00
class _FakeElectrumX_5 extends _i1.SmartFake implements _i5.ElectrumX {
_FakeElectrumX_5(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
2022-08-26 08:11:35 +00:00
class _FakeCachedElectrumX_6 extends _i1.SmartFake
implements _i6.CachedElectrumX {
_FakeCachedElectrumX_6(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
2022-08-26 08:11:35 +00:00
/// A class which mocks [FiroWallet].
///
/// See the documentation for Mockito's code generation for more information.
class MockFiroWallet extends _i1.Mock implements _i7.FiroWallet {
MockFiroWallet() {
_i1.throwOnMissingStub(this);
}
@override
set timer(_i8.Timer? _timer) => super.noSuchMethod(
Invocation.setter(
#timer,
_timer,
),
returnValueForMissingStub: null,
);
@override
_i2.TransactionNotificationTracker get txTracker => (super.noSuchMethod(
Invocation.getter(#txTracker),
returnValue: _FakeTransactionNotificationTracker_0(
this,
Invocation.getter(#txTracker),
),
) as _i2.TransactionNotificationTracker);
2022-08-26 08:11:35 +00:00
@override
set txTracker(_i2.TransactionNotificationTracker? _txTracker) =>
super.noSuchMethod(
Invocation.setter(
#txTracker,
_txTracker,
),
returnValueForMissingStub: null,
);
@override
bool get refreshMutex => (super.noSuchMethod(
Invocation.getter(#refreshMutex),
returnValue: false,
) as bool);
@override
set refreshMutex(bool? _refreshMutex) => super.noSuchMethod(
Invocation.setter(
#refreshMutex,
_refreshMutex,
),
returnValueForMissingStub: null,
);
@override
bool get longMutex => (super.noSuchMethod(
Invocation.getter(#longMutex),
returnValue: false,
) as bool);
@override
set longMutex(bool? _longMutex) => super.noSuchMethod(
Invocation.setter(
#longMutex,
_longMutex,
),
returnValueForMissingStub: null,
);
@override
bool get isActive => (super.noSuchMethod(
Invocation.getter(#isActive),
returnValue: false,
) as bool);
@override
set isActive(bool? _isActive) => super.noSuchMethod(
Invocation.setter(
#isActive,
_isActive,
),
returnValueForMissingStub: null,
);
@override
bool get shouldAutoSync => (super.noSuchMethod(
Invocation.getter(#shouldAutoSync),
returnValue: false,
) as bool);
@override
set shouldAutoSync(bool? shouldAutoSync) => super.noSuchMethod(
Invocation.setter(
#shouldAutoSync,
shouldAutoSync,
),
returnValueForMissingStub: null,
);
@override
set isFavorite(bool? markFavorite) => super.noSuchMethod(
Invocation.setter(
#isFavorite,
markFavorite,
),
returnValueForMissingStub: null,
);
@override
bool get isFavorite => (super.noSuchMethod(
Invocation.getter(#isFavorite),
returnValue: false,
) as bool);
@override
_i9.Coin get coin => (super.noSuchMethod(
Invocation.getter(#coin),
returnValue: _i9.Coin.bitcoin,
) as _i9.Coin);
@override
_i8.Future<List<String>> get mnemonic => (super.noSuchMethod(
Invocation.getter(#mnemonic),
returnValue: _i8.Future<List<String>>.value(<String>[]),
) as _i8.Future<List<String>>);
@override
_i8.Future<_i3.Decimal> get availableBalance => (super.noSuchMethod(
Invocation.getter(#availableBalance),
returnValue: _i8.Future<_i3.Decimal>.value(_FakeDecimal_1(
this,
Invocation.getter(#availableBalance),
)),
) as _i8.Future<_i3.Decimal>);
@override
_i8.Future<_i3.Decimal> get pendingBalance => (super.noSuchMethod(
Invocation.getter(#pendingBalance),
returnValue: _i8.Future<_i3.Decimal>.value(_FakeDecimal_1(
this,
Invocation.getter(#pendingBalance),
)),
) as _i8.Future<_i3.Decimal>);
@override
_i8.Future<_i3.Decimal> get totalBalance => (super.noSuchMethod(
Invocation.getter(#totalBalance),
returnValue: _i8.Future<_i3.Decimal>.value(_FakeDecimal_1(
this,
Invocation.getter(#totalBalance),
)),
) as _i8.Future<_i3.Decimal>);
@override
_i8.Future<_i3.Decimal> get balanceMinusMaxFee => (super.noSuchMethod(
Invocation.getter(#balanceMinusMaxFee),
returnValue: _i8.Future<_i3.Decimal>.value(_FakeDecimal_1(
this,
Invocation.getter(#balanceMinusMaxFee),
)),
) as _i8.Future<_i3.Decimal>);
@override
_i8.Future<_i4.TransactionData> get transactionData => (super.noSuchMethod(
Invocation.getter(#transactionData),
returnValue:
_i8.Future<_i4.TransactionData>.value(_FakeTransactionData_2(
this,
Invocation.getter(#transactionData),
)),
) as _i8.Future<_i4.TransactionData>);
@override
_i8.Future<_i4.UtxoData> get utxoData => (super.noSuchMethod(
Invocation.getter(#utxoData),
returnValue: _i8.Future<_i4.UtxoData>.value(_FakeUtxoData_3(
this,
Invocation.getter(#utxoData),
)),
) as _i8.Future<_i4.UtxoData>);
2022-08-26 08:11:35 +00:00
@override
_i8.Future<List<_i4.UtxoObject>> get unspentOutputs => (super.noSuchMethod(
Invocation.getter(#unspentOutputs),
returnValue: _i8.Future<List<_i4.UtxoObject>>.value(<_i4.UtxoObject>[]),
) as _i8.Future<List<_i4.UtxoObject>>);
2022-08-26 08:11:35 +00:00
@override
_i8.Future<_i4.TransactionData> get lelantusTransactionData =>
(super.noSuchMethod(
Invocation.getter(#lelantusTransactionData),
returnValue:
_i8.Future<_i4.TransactionData>.value(_FakeTransactionData_2(
this,
Invocation.getter(#lelantusTransactionData),
)),
) as _i8.Future<_i4.TransactionData>);
@override
_i8.Future<int> get maxFee => (super.noSuchMethod(
Invocation.getter(#maxFee),
returnValue: _i8.Future<int>.value(0),
) as _i8.Future<int>);
@override
_i8.Future<List<_i3.Decimal>> get balances => (super.noSuchMethod(
Invocation.getter(#balances),
returnValue: _i8.Future<List<_i3.Decimal>>.value(<_i3.Decimal>[]),
) as _i8.Future<List<_i3.Decimal>>);
@override
_i8.Future<_i3.Decimal> get firoPrice => (super.noSuchMethod(
Invocation.getter(#firoPrice),
returnValue: _i8.Future<_i3.Decimal>.value(_FakeDecimal_1(
this,
Invocation.getter(#firoPrice),
)),
) as _i8.Future<_i3.Decimal>);
@override
_i8.Future<_i4.FeeObject> get fees => (super.noSuchMethod(
Invocation.getter(#fees),
returnValue: _i8.Future<_i4.FeeObject>.value(_FakeFeeObject_4(
this,
Invocation.getter(#fees),
)),
) as _i8.Future<_i4.FeeObject>);
@override
_i8.Future<String> get currentReceivingAddress => (super.noSuchMethod(
Invocation.getter(#currentReceivingAddress),
returnValue: _i8.Future<String>.value(''),
) as _i8.Future<String>);
@override
String get walletName => (super.noSuchMethod(
Invocation.getter(#walletName),
returnValue: '',
) as String);
@override
set walletName(String? newName) => super.noSuchMethod(
Invocation.setter(
#walletName,
newName,
),
returnValueForMissingStub: null,
);
@override
String get walletId => (super.noSuchMethod(
Invocation.getter(#walletId),
returnValue: '',
) as String);
@override
_i8.Future<List<String>> get allOwnAddresses => (super.noSuchMethod(
Invocation.getter(#allOwnAddresses),
returnValue: _i8.Future<List<String>>.value(<String>[]),
) as _i8.Future<List<String>>);
@override
bool get isConnected => (super.noSuchMethod(
Invocation.getter(#isConnected),
returnValue: false,
) as bool);
@override
_i5.ElectrumX get electrumXClient => (super.noSuchMethod(
Invocation.getter(#electrumXClient),
returnValue: _FakeElectrumX_5(
this,
Invocation.getter(#electrumXClient),
),
) as _i5.ElectrumX);
@override
_i6.CachedElectrumX get cachedElectrumXClient => (super.noSuchMethod(
Invocation.getter(#cachedElectrumXClient),
returnValue: _FakeCachedElectrumX_6(
this,
Invocation.getter(#cachedElectrumXClient),
),
) as _i6.CachedElectrumX);
@override
bool get isRefreshing => (super.noSuchMethod(
Invocation.getter(#isRefreshing),
returnValue: false,
) as bool);
@override
bool get hasCalledExit => (super.noSuchMethod(
Invocation.getter(#hasCalledExit),
returnValue: false,
) as bool);
2022-08-26 08:11:35 +00:00
@override
set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) =>
super.noSuchMethod(
Invocation.setter(
#onIsActiveWalletChanged,
_onIsActiveWalletChanged,
),
returnValueForMissingStub: null,
);
@override
bool validateAddress(String? address) => (super.noSuchMethod(
Invocation.method(
#validateAddress,
[address],
),
returnValue: false,
) as bool);
@override
_i8.Future<bool> testNetworkConnection() => (super.noSuchMethod(
Invocation.method(
#testNetworkConnection,
[],
),
returnValue: _i8.Future<bool>.value(false),
) as _i8.Future<bool>);
@override
void startNetworkAlivePinging() => super.noSuchMethod(
Invocation.method(
#startNetworkAlivePinging,
[],
),
returnValueForMissingStub: null,
);
@override
void stopNetworkAlivePinging() => super.noSuchMethod(
Invocation.method(
#stopNetworkAlivePinging,
[],
),
returnValueForMissingStub: null,
);
@override
_i8.Future<Map<String, dynamic>> prepareSendPublic({
required String? address,
required int? satoshiAmount,
Map<String, dynamic>? args,
}) =>
2022-09-09 17:23:15 +00:00
(super.noSuchMethod(
Invocation.method(
#prepareSendPublic,
[],
{
#address: address,
#satoshiAmount: satoshiAmount,
#args: args,
},
),
returnValue:
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i8.Future<Map<String, dynamic>>);
2022-09-09 17:23:15 +00:00
@override
_i8.Future<String> confirmSendPublic({dynamic txData}) => (super.noSuchMethod(
Invocation.method(
#confirmSendPublic,
[],
{#txData: txData},
),
returnValue: _i8.Future<String>.value(''),
) as _i8.Future<String>);
@override
_i8.Future<Map<String, dynamic>> prepareSend({
required String? address,
required int? satoshiAmount,
Map<String, dynamic>? args,
}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#prepareSend,
[],
{
#address: address,
#satoshiAmount: satoshiAmount,
#args: args,
},
),
returnValue:
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i8.Future<Map<String, dynamic>>);
@override
_i8.Future<String> confirmSend({required Map<String, dynamic>? txData}) =>
(super.noSuchMethod(
Invocation.method(
#confirmSend,
[],
{#txData: txData},
),
returnValue: _i8.Future<String>.value(''),
) as _i8.Future<String>);
@override
_i8.Future<String> send({
required String? toAddress,
required int? amount,
Map<String, String>? args = const {},
}) =>
(super.noSuchMethod(
Invocation.method(
#send,
[],
{
#toAddress: toAddress,
#amount: amount,
#args: args,
},
),
returnValue: _i8.Future<String>.value(''),
) as _i8.Future<String>);
@override
int estimateTxFee({
required int? vSize,
required int? feeRatePerKB,
}) =>
(super.noSuchMethod(
Invocation.method(
#estimateTxFee,
[],
{
#vSize: vSize,
#feeRatePerKB: feeRatePerKB,
},
),
returnValue: 0,
) as int);
@override
dynamic coinSelection(
int? satoshiAmountToSend,
int? selectedTxFeeRate,
String? _recipientAddress,
bool? isSendAll, {
int? additionalOutputs = 0,
List<_i4.UtxoObject>? utxos,
}) =>
super.noSuchMethod(Invocation.method(
#coinSelection,
[
satoshiAmountToSend,
selectedTxFeeRate,
_recipientAddress,
isSendAll,
],
{
#additionalOutputs: additionalOutputs,
#utxos: utxos,
},
));
2022-09-09 17:23:15 +00:00
@override
_i8.Future<Map<String, dynamic>> fetchBuildTxData(
List<_i4.UtxoObject>? utxosToUse) =>
(super.noSuchMethod(
Invocation.method(
#fetchBuildTxData,
[utxosToUse],
),
returnValue:
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i8.Future<Map<String, dynamic>>);
@override
_i8.Future<Map<String, dynamic>> buildTransaction({
required List<_i4.UtxoObject>? utxosToUse,
required Map<String, dynamic>? utxoSigningData,
required List<String>? recipients,
required List<int>? satoshiAmounts,
}) =>
(super.noSuchMethod(
Invocation.method(
#buildTransaction,
[],
{
#utxosToUse: utxosToUse,
#utxoSigningData: utxoSigningData,
#recipients: recipients,
#satoshiAmounts: satoshiAmounts,
},
),
returnValue:
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i8.Future<Map<String, dynamic>>);
@override
_i8.Future<void> updateNode(bool? shouldRefresh) => (super.noSuchMethod(
Invocation.method(
#updateNode,
[shouldRefresh],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<void> initializeNew() => (super.noSuchMethod(
Invocation.method(
#initializeNew,
[],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<void> initializeExisting() => (super.noSuchMethod(
Invocation.method(
#initializeExisting,
[],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<bool> refreshIfThereIsNewData() => (super.noSuchMethod(
Invocation.method(
#refreshIfThereIsNewData,
[],
),
returnValue: _i8.Future<bool>.value(false),
) as _i8.Future<bool>);
2022-08-26 08:11:35 +00:00
@override
_i8.Future<void> getAllTxsToWatch(
_i4.TransactionData? txData,
_i4.TransactionData? lTxData,
) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#getAllTxsToWatch,
[
txData,
lTxData,
],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<void> refresh() => (super.noSuchMethod(
Invocation.method(
#refresh,
[],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
2022-08-26 08:11:35 +00:00
@override
List<Map<dynamic, _i10.LelantusCoin>> getLelantusCoinMap() =>
(super.noSuchMethod(
Invocation.method(
#getLelantusCoinMap,
[],
),
returnValue: <Map<dynamic, _i10.LelantusCoin>>[],
) as List<Map<dynamic, _i10.LelantusCoin>>);
@override
_i8.Future<void> anonymizeAllPublicFunds() => (super.noSuchMethod(
Invocation.method(
#anonymizeAllPublicFunds,
[],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
2022-08-26 08:11:35 +00:00
@override
_i8.Future<List<Map<String, dynamic>>> createMintsFromAmount(int? total) =>
(super.noSuchMethod(
Invocation.method(
#createMintsFromAmount,
[total],
),
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
<Map<String, dynamic>>[]),
) as _i8.Future<List<Map<String, dynamic>>>);
@override
_i8.Future<String> submitHexToNetwork(String? hex) => (super.noSuchMethod(
Invocation.method(
#submitHexToNetwork,
[hex],
),
returnValue: _i8.Future<String>.value(''),
) as _i8.Future<String>);
2022-08-26 08:11:35 +00:00
@override
_i8.Future<Map<String, dynamic>> buildMintTransaction(
List<_i4.UtxoObject>? utxosToUse,
int? satoshisPerRecipient,
List<Map<String, dynamic>>? mintsMap,
) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#buildMintTransaction,
[
utxosToUse,
satoshisPerRecipient,
mintsMap,
],
),
returnValue:
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i8.Future<Map<String, dynamic>>);
2022-08-26 08:11:35 +00:00
@override
_i8.Future<void> checkReceivingAddressForTransactions() =>
(super.noSuchMethod(
Invocation.method(
#checkReceivingAddressForTransactions,
[],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
2022-08-26 08:11:35 +00:00
@override
2022-09-09 17:23:15 +00:00
_i8.Future<void> checkChangeAddressForTransactions() => (super.noSuchMethod(
Invocation.method(
#checkChangeAddressForTransactions,
[],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<void> fillAddresses(
String? suppliedMnemonic, {
int? perBatch = 50,
int? numberOfThreads = 4,
}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#fillAddresses,
[suppliedMnemonic],
{
#perBatch: perBatch,
#numberOfThreads: numberOfThreads,
},
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<void> incrementAddressIndexForChain(int? chain) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#incrementAddressIndexForChain,
[chain],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<void> addToAddressesArrayForChain(
String? address,
int? chain,
) =>
(super.noSuchMethod(
Invocation.method(
#addToAddressesArrayForChain,
[
address,
chain,
],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
2022-08-26 08:11:35 +00:00
@override
_i8.Future<void> fullRescan(
int? maxUnusedAddressGap,
int? maxNumberOfIndexesToCheck,
) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#fullRescan,
[
maxUnusedAddressGap,
maxNumberOfIndexesToCheck,
],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<void> recoverFromMnemonic({
required String? mnemonic,
required int? maxUnusedAddressGap,
required int? maxNumberOfIndexesToCheck,
required int? height,
}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#recoverFromMnemonic,
[],
{
2022-08-26 08:11:35 +00:00
#mnemonic: mnemonic,
#maxUnusedAddressGap: maxUnusedAddressGap,
#maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck,
#height: height,
},
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
2022-08-26 08:11:35 +00:00
@override
2022-09-09 17:23:15 +00:00
_i8.Future<Map<int, dynamic>> getSetDataMap(int? latestSetId) =>
(super.noSuchMethod(
Invocation.method(
#getSetDataMap,
[latestSetId],
),
returnValue: _i8.Future<Map<int, dynamic>>.value(<int, dynamic>{}),
) as _i8.Future<Map<int, dynamic>>);
2022-09-09 17:23:15 +00:00
@override
2022-08-26 08:11:35 +00:00
_i8.Future<List<Map<String, dynamic>>> fetchAnonymitySets() =>
(super.noSuchMethod(
Invocation.method(
#fetchAnonymitySets,
[],
),
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
<Map<String, dynamic>>[]),
) as _i8.Future<List<Map<String, dynamic>>>);
@override
_i8.Future<int> getLatestSetId() => (super.noSuchMethod(
Invocation.method(
#getLatestSetId,
[],
),
returnValue: _i8.Future<int>.value(0),
) as _i8.Future<int>);
@override
_i8.Future<List<dynamic>> getUsedCoinSerials() => (super.noSuchMethod(
Invocation.method(
#getUsedCoinSerials,
[],
),
returnValue: _i8.Future<List<dynamic>>.value(<dynamic>[]),
) as _i8.Future<List<dynamic>>);
@override
_i8.Future<void> exit() => (super.noSuchMethod(
Invocation.method(
#exit,
[],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<dynamic> getCoinsToJoinSplit(int? required) => (super.noSuchMethod(
Invocation.method(
#getCoinsToJoinSplit,
[required],
),
returnValue: _i8.Future<dynamic>.value(),
) as _i8.Future<dynamic>);
2022-08-26 15:15:10 +00:00
@override
_i8.Future<int> estimateJoinSplitFee(int? spendAmount) => (super.noSuchMethod(
Invocation.method(
#estimateJoinSplitFee,
[spendAmount],
),
returnValue: _i8.Future<int>.value(0),
) as _i8.Future<int>);
@override
_i8.Future<int> estimateFeeFor(
int? satoshiAmount,
int? feeRate,
) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#estimateFeeFor,
[
satoshiAmount,
feeRate,
],
),
returnValue: _i8.Future<int>.value(0),
) as _i8.Future<int>);
@override
_i8.Future<int> estimateFeeForPublic(
int? satoshiAmount,
int? feeRate,
) =>
2022-09-09 17:23:15 +00:00
(super.noSuchMethod(
Invocation.method(
#estimateFeeForPublic,
[
satoshiAmount,
feeRate,
],
),
returnValue: _i8.Future<int>.value(0),
) as _i8.Future<int>);
@override
int roughFeeEstimate(
int? inputCount,
int? outputCount,
int? feeRatePerKB,
) =>
2022-09-09 17:23:15 +00:00
(super.noSuchMethod(
Invocation.method(
#roughFeeEstimate,
[
inputCount,
outputCount,
feeRatePerKB,
],
),
returnValue: 0,
) as int);
@override
int sweepAllEstimate(int? feeRate) => (super.noSuchMethod(
Invocation.method(
#sweepAllEstimate,
[feeRate],
),
returnValue: 0,
) as int);
2022-09-09 17:23:15 +00:00
@override
_i8.Future<List<Map<String, dynamic>>> fastFetch(List<String>? allTxHashes) =>
(super.noSuchMethod(
Invocation.method(
#fastFetch,
[allTxHashes],
),
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
<Map<String, dynamic>>[]),
) as _i8.Future<List<Map<String, dynamic>>>);
2022-09-09 17:23:15 +00:00
@override
2022-08-26 08:11:35 +00:00
_i8.Future<List<_i4.Transaction>> getJMintTransactions(
_i6.CachedElectrumX? cachedClient,
List<String>? transactions,
String? currency,
_i9.Coin? coin,
_i3.Decimal? currentPrice,
String? locale,
) =>
(super.noSuchMethod(
Invocation.method(
#getJMintTransactions,
[
cachedClient,
transactions,
currency,
coin,
currentPrice,
locale,
],
),
returnValue:
_i8.Future<List<_i4.Transaction>>.value(<_i4.Transaction>[]),
) as _i8.Future<List<_i4.Transaction>>);
@override
_i8.Future<bool> generateNewAddress() => (super.noSuchMethod(
Invocation.method(
#generateNewAddress,
[],
),
returnValue: _i8.Future<bool>.value(false),
) as _i8.Future<bool>);
@override
_i8.Future<_i3.Decimal> availablePrivateBalance() => (super.noSuchMethod(
Invocation.method(
#availablePrivateBalance,
[],
),
returnValue: _i8.Future<_i3.Decimal>.value(_FakeDecimal_1(
this,
Invocation.method(
#availablePrivateBalance,
[],
),
)),
) as _i8.Future<_i3.Decimal>);
@override
_i8.Future<_i3.Decimal> availablePublicBalance() => (super.noSuchMethod(
Invocation.method(
#availablePublicBalance,
[],
),
returnValue: _i8.Future<_i3.Decimal>.value(_FakeDecimal_1(
this,
Invocation.method(
#availablePublicBalance,
[],
),
)),
) as _i8.Future<_i3.Decimal>);
2022-08-26 08:11:35 +00:00
}
/// A class which mocks [ElectrumX].
///
/// See the documentation for Mockito's code generation for more information.
class MockElectrumX extends _i1.Mock implements _i5.ElectrumX {
MockElectrumX() {
_i1.throwOnMissingStub(this);
}
@override
set failovers(List<_i5.ElectrumXNode>? _failovers) => super.noSuchMethod(
Invocation.setter(
#failovers,
_failovers,
),
returnValueForMissingStub: null,
);
2022-08-26 08:11:35 +00:00
@override
int get currentFailoverIndex => (super.noSuchMethod(
Invocation.getter(#currentFailoverIndex),
returnValue: 0,
) as int);
2022-08-26 08:11:35 +00:00
@override
set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod(
Invocation.setter(
#currentFailoverIndex,
_currentFailoverIndex,
),
returnValueForMissingStub: null,
);
@override
String get host => (super.noSuchMethod(
Invocation.getter(#host),
returnValue: '',
) as String);
@override
int get port => (super.noSuchMethod(
Invocation.getter(#port),
returnValue: 0,
) as int);
@override
bool get useSSL => (super.noSuchMethod(
Invocation.getter(#useSSL),
returnValue: false,
) as bool);
@override
_i8.Future<dynamic> request({
required String? command,
List<dynamic>? args = const [],
Duration? connectionTimeout = const Duration(seconds: 60),
String? requestID,
int? retries = 2,
}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#request,
[],
{
2022-08-26 08:11:35 +00:00
#command: command,
#args: args,
#connectionTimeout: connectionTimeout,
#requestID: requestID,
#retries: retries,
},
),
returnValue: _i8.Future<dynamic>.value(),
) as _i8.Future<dynamic>);
@override
_i8.Future<List<Map<String, dynamic>>> batchRequest({
required String? command,
required Map<String, List<dynamic>>? args,
Duration? connectionTimeout = const Duration(seconds: 60),
int? retries = 2,
}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#batchRequest,
[],
{
#command: command,
#args: args,
#connectionTimeout: connectionTimeout,
#retries: retries,
},
),
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
<Map<String, dynamic>>[]),
) as _i8.Future<List<Map<String, dynamic>>>);
@override
_i8.Future<bool> ping({
String? requestID,
int? retryCount = 1,
}) =>
(super.noSuchMethod(
Invocation.method(
#ping,
[],
{
#requestID: requestID,
#retryCount: retryCount,
},
),
returnValue: _i8.Future<bool>.value(false),
) as _i8.Future<bool>);
2022-08-26 08:11:35 +00:00
@override
_i8.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
(super.noSuchMethod(
Invocation.method(
#getBlockHeadTip,
[],
{#requestID: requestID},
),
returnValue:
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i8.Future<Map<String, dynamic>>);
2022-08-26 08:11:35 +00:00
@override
_i8.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
(super.noSuchMethod(
Invocation.method(
#getServerFeatures,
[],
{#requestID: requestID},
),
returnValue:
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i8.Future<Map<String, dynamic>>);
@override
_i8.Future<String> broadcastTransaction({
required String? rawTx,
String? requestID,
}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#broadcastTransaction,
[],
{
#rawTx: rawTx,
#requestID: requestID,
},
),
returnValue: _i8.Future<String>.value(''),
) as _i8.Future<String>);
@override
_i8.Future<Map<String, dynamic>> getBalance({
required String? scripthash,
String? requestID,
}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#getBalance,
[],
{
#scripthash: scripthash,
#requestID: requestID,
},
),
returnValue:
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i8.Future<Map<String, dynamic>>);
@override
_i8.Future<List<Map<String, dynamic>>> getHistory({
required String? scripthash,
String? requestID,
}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#getHistory,
[],
{
#scripthash: scripthash,
#requestID: requestID,
},
),
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
<Map<String, dynamic>>[]),
) as _i8.Future<List<Map<String, dynamic>>>);
2022-08-26 08:11:35 +00:00
@override
_i8.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
{required Map<String, List<dynamic>>? args}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#getBatchHistory,
[],
{#args: args},
),
returnValue: _i8.Future<Map<String, List<Map<String, dynamic>>>>.value(
<String, List<Map<String, dynamic>>>{}),
) as _i8.Future<Map<String, List<Map<String, dynamic>>>>);
@override
_i8.Future<List<Map<String, dynamic>>> getUTXOs({
required String? scripthash,
String? requestID,
}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#getUTXOs,
[],
{
#scripthash: scripthash,
#requestID: requestID,
},
),
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
<Map<String, dynamic>>[]),
) as _i8.Future<List<Map<String, dynamic>>>);
2022-08-26 08:11:35 +00:00
@override
_i8.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
{required Map<String, List<dynamic>>? args}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#getBatchUTXOs,
[],
{#args: args},
),
returnValue: _i8.Future<Map<String, List<Map<String, dynamic>>>>.value(
<String, List<Map<String, dynamic>>>{}),
) as _i8.Future<Map<String, List<Map<String, dynamic>>>>);
@override
_i8.Future<Map<String, dynamic>> getTransaction({
required String? txHash,
bool? verbose = true,
String? requestID,
}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#getTransaction,
[],
{
#txHash: txHash,
#verbose: verbose,
#requestID: requestID,
},
),
returnValue:
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i8.Future<Map<String, dynamic>>);
@override
_i8.Future<Map<String, dynamic>> getAnonymitySet({
String? groupId = r'1',
String? blockhash = r'',
String? requestID,
}) =>
(super.noSuchMethod(
Invocation.method(
#getAnonymitySet,
[],
{
#groupId: groupId,
#blockhash: blockhash,
#requestID: requestID,
},
),
returnValue:
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i8.Future<Map<String, dynamic>>);
@override
_i8.Future<dynamic> getMintData({
dynamic mints,
String? requestID,
}) =>
(super.noSuchMethod(
Invocation.method(
#getMintData,
[],
{
#mints: mints,
#requestID: requestID,
},
),
returnValue: _i8.Future<dynamic>.value(),
) as _i8.Future<dynamic>);
@override
_i8.Future<Map<String, dynamic>> getUsedCoinSerials({
String? requestID,
required int? startNumber,
}) =>
(super.noSuchMethod(
Invocation.method(
#getUsedCoinSerials,
[],
{
#requestID: requestID,
#startNumber: startNumber,
},
),
returnValue:
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i8.Future<Map<String, dynamic>>);
2022-08-26 08:11:35 +00:00
@override
_i8.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
Invocation.method(
#getLatestCoinId,
[],
{#requestID: requestID},
),
returnValue: _i8.Future<int>.value(0),
) as _i8.Future<int>);
@override
_i8.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
(super.noSuchMethod(
Invocation.method(
#getFeeRate,
[],
{#requestID: requestID},
),
returnValue:
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i8.Future<Map<String, dynamic>>);
@override
_i8.Future<_i3.Decimal> estimateFee({
String? requestID,
required int? blocks,
}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
#estimateFee,
[],
{
#requestID: requestID,
#blocks: blocks,
},
),
returnValue: _i8.Future<_i3.Decimal>.value(_FakeDecimal_1(
this,
Invocation.method(
#estimateFee,
[],
{
#requestID: requestID,
#blocks: blocks,
},
),
)),
) as _i8.Future<_i3.Decimal>);
2022-08-26 08:11:35 +00:00
@override
_i8.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
Invocation.method(
#relayFee,
[],
{#requestID: requestID},
),
returnValue: _i8.Future<_i3.Decimal>.value(_FakeDecimal_1(
this,
Invocation.method(
#relayFee,
[],
{#requestID: requestID},
),
)),
) as _i8.Future<_i3.Decimal>);
2022-08-26 08:11:35 +00:00
}