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

1376 lines
40 KiB
Dart

// Mocks generated by Mockito 5.3.2 from annotations
// in stackwallet/test/services/coins/manager_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i10;
import 'package:decimal/decimal.dart' as _i8;
import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/main_db.dart' as _i7;
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i5;
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i4;
import 'package:stackwallet/models/balance.dart' as _i6;
import 'package:stackwallet/models/isar/models/isar_models.dart' as _i12;
import 'package:stackwallet/models/lelantus_coin.dart' as _i13;
import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i3;
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;
// 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
class _FakeTransactionNotificationTracker_0 extends _i1.SmartFake
implements _i2.TransactionNotificationTracker {
_FakeTransactionNotificationTracker_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeFeeObject_1 extends _i1.SmartFake implements _i3.FeeObject {
_FakeFeeObject_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeElectrumX_2 extends _i1.SmartFake implements _i4.ElectrumX {
_FakeElectrumX_2(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeCachedElectrumX_3 extends _i1.SmartFake
implements _i5.CachedElectrumX {
_FakeCachedElectrumX_3(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeBalance_4 extends _i1.SmartFake implements _i6.Balance {
_FakeBalance_4(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeMainDB_5 extends _i1.SmartFake implements _i7.MainDB {
_FakeMainDB_5(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeDecimal_6 extends _i1.SmartFake implements _i8.Decimal {
_FakeDecimal_6(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
/// A class which mocks [FiroWallet].
///
/// See the documentation for Mockito's code generation for more information.
class MockFiroWallet extends _i1.Mock implements _i9.FiroWallet {
MockFiroWallet() {
_i1.throwOnMissingStub(this);
}
@override
set timer(_i10.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);
@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
_i11.Coin get coin => (super.noSuchMethod(
Invocation.getter(#coin),
returnValue: _i11.Coin.bitcoin,
) as _i11.Coin);
@override
_i10.Future<List<String>> get mnemonic => (super.noSuchMethod(
Invocation.getter(#mnemonic),
returnValue: _i10.Future<List<String>>.value(<String>[]),
) as _i10.Future<List<String>>);
@override
_i10.Future<int> get maxFee => (super.noSuchMethod(
Invocation.getter(#maxFee),
returnValue: _i10.Future<int>.value(0),
) as _i10.Future<int>);
@override
_i10.Future<_i3.FeeObject> get fees => (super.noSuchMethod(
Invocation.getter(#fees),
returnValue: _i10.Future<_i3.FeeObject>.value(_FakeFeeObject_1(
this,
Invocation.getter(#fees),
)),
) as _i10.Future<_i3.FeeObject>);
@override
_i10.Future<String> get currentReceivingAddress => (super.noSuchMethod(
Invocation.getter(#currentReceivingAddress),
returnValue: _i10.Future<String>.value(''),
) as _i10.Future<String>);
@override
_i10.Future<String> get currentChangeAddress => (super.noSuchMethod(
Invocation.getter(#currentChangeAddress),
returnValue: _i10.Future<String>.value(''),
) as _i10.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
bool get isConnected => (super.noSuchMethod(
Invocation.getter(#isConnected),
returnValue: false,
) as bool);
@override
_i4.ElectrumX get electrumXClient => (super.noSuchMethod(
Invocation.getter(#electrumXClient),
returnValue: _FakeElectrumX_2(
this,
Invocation.getter(#electrumXClient),
),
) as _i4.ElectrumX);
@override
_i5.CachedElectrumX get cachedElectrumXClient => (super.noSuchMethod(
Invocation.getter(#cachedElectrumXClient),
returnValue: _FakeCachedElectrumX_3(
this,
Invocation.getter(#cachedElectrumXClient),
),
) as _i5.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);
@override
_i10.Future<int> get chainHeight => (super.noSuchMethod(
Invocation.getter(#chainHeight),
returnValue: _i10.Future<int>.value(0),
) as _i10.Future<int>);
@override
int get storedChainHeight => (super.noSuchMethod(
Invocation.getter(#storedChainHeight),
returnValue: 0,
) as int);
@override
_i6.Balance get balance => (super.noSuchMethod(
Invocation.getter(#balance),
returnValue: _FakeBalance_4(
this,
Invocation.getter(#balance),
),
) as _i6.Balance);
@override
_i6.Balance get balancePrivate => (super.noSuchMethod(
Invocation.getter(#balancePrivate),
returnValue: _FakeBalance_4(
this,
Invocation.getter(#balancePrivate),
),
) as _i6.Balance);
@override
_i10.Future<List<_i12.UTXO>> get utxos => (super.noSuchMethod(
Invocation.getter(#utxos),
returnValue: _i10.Future<List<_i12.UTXO>>.value(<_i12.UTXO>[]),
) as _i10.Future<List<_i12.UTXO>>);
@override
_i10.Future<List<_i12.Transaction>> get transactions => (super.noSuchMethod(
Invocation.getter(#transactions),
returnValue:
_i10.Future<List<_i12.Transaction>>.value(<_i12.Transaction>[]),
) as _i10.Future<List<_i12.Transaction>>);
@override
set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) =>
super.noSuchMethod(
Invocation.setter(
#onIsActiveWalletChanged,
_onIsActiveWalletChanged,
),
returnValueForMissingStub: null,
);
@override
_i7.MainDB get db => (super.noSuchMethod(
Invocation.getter(#db),
returnValue: _FakeMainDB_5(
this,
Invocation.getter(#db),
),
) as _i7.MainDB);
@override
bool validateAddress(String? address) => (super.noSuchMethod(
Invocation.method(
#validateAddress,
[address],
),
returnValue: false,
) as bool);
@override
_i10.Future<void> updateSentCachedTxData(Map<String, dynamic>? txData) =>
(super.noSuchMethod(
Invocation.method(
#updateSentCachedTxData,
[txData],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<bool> testNetworkConnection() => (super.noSuchMethod(
Invocation.method(
#testNetworkConnection,
[],
),
returnValue: _i10.Future<bool>.value(false),
) as _i10.Future<bool>);
@override
void startNetworkAlivePinging() => super.noSuchMethod(
Invocation.method(
#startNetworkAlivePinging,
[],
),
returnValueForMissingStub: null,
);
@override
void stopNetworkAlivePinging() => super.noSuchMethod(
Invocation.method(
#stopNetworkAlivePinging,
[],
),
returnValueForMissingStub: null,
);
@override
_i10.Future<Map<String, dynamic>> prepareSendPublic({
required String? address,
required int? satoshiAmount,
Map<String, dynamic>? args,
}) =>
(super.noSuchMethod(
Invocation.method(
#prepareSendPublic,
[],
{
#address: address,
#satoshiAmount: satoshiAmount,
#args: args,
},
),
returnValue:
_i10.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i10.Future<Map<String, dynamic>>);
@override
_i10.Future<String> confirmSendPublic({dynamic txData}) =>
(super.noSuchMethod(
Invocation.method(
#confirmSendPublic,
[],
{#txData: txData},
),
returnValue: _i10.Future<String>.value(''),
) as _i10.Future<String>);
@override
_i10.Future<Map<String, dynamic>> prepareSend({
required String? address,
required int? satoshiAmount,
Map<String, dynamic>? args,
}) =>
(super.noSuchMethod(
Invocation.method(
#prepareSend,
[],
{
#address: address,
#satoshiAmount: satoshiAmount,
#args: args,
},
),
returnValue:
_i10.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i10.Future<Map<String, dynamic>>);
@override
_i10.Future<String> confirmSend({required Map<String, dynamic>? txData}) =>
(super.noSuchMethod(
Invocation.method(
#confirmSend,
[],
{#txData: txData},
),
returnValue: _i10.Future<String>.value(''),
) as _i10.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<_i12.UTXO>? utxos,
}) =>
super.noSuchMethod(Invocation.method(
#coinSelection,
[
satoshiAmountToSend,
selectedTxFeeRate,
_recipientAddress,
isSendAll,
],
{
#additionalOutputs: additionalOutputs,
#utxos: utxos,
},
));
@override
_i10.Future<Map<String, dynamic>> fetchBuildTxData(
List<_i12.UTXO>? utxosToUse) =>
(super.noSuchMethod(
Invocation.method(
#fetchBuildTxData,
[utxosToUse],
),
returnValue:
_i10.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i10.Future<Map<String, dynamic>>);
@override
_i10.Future<Map<String, dynamic>> buildTransaction({
required List<_i12.UTXO>? 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:
_i10.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i10.Future<Map<String, dynamic>>);
@override
_i10.Future<void> updateNode(bool? shouldRefresh) => (super.noSuchMethod(
Invocation.method(
#updateNode,
[shouldRefresh],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<void> initializeNew() => (super.noSuchMethod(
Invocation.method(
#initializeNew,
[],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<void> initializeExisting() => (super.noSuchMethod(
Invocation.method(
#initializeExisting,
[],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<bool> refreshIfThereIsNewData() => (super.noSuchMethod(
Invocation.method(
#refreshIfThereIsNewData,
[],
),
returnValue: _i10.Future<bool>.value(false),
) as _i10.Future<bool>);
@override
_i10.Future<void> getAllTxsToWatch() => (super.noSuchMethod(
Invocation.method(
#getAllTxsToWatch,
[],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<void> refresh() => (super.noSuchMethod(
Invocation.method(
#refresh,
[],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
List<Map<dynamic, _i13.LelantusCoin>> getLelantusCoinMap() =>
(super.noSuchMethod(
Invocation.method(
#getLelantusCoinMap,
[],
),
returnValue: <Map<dynamic, _i13.LelantusCoin>>[],
) as List<Map<dynamic, _i13.LelantusCoin>>);
@override
_i10.Future<void> anonymizeAllPublicFunds() => (super.noSuchMethod(
Invocation.method(
#anonymizeAllPublicFunds,
[],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<List<Map<String, dynamic>>> createMintsFromAmount(int? total) =>
(super.noSuchMethod(
Invocation.method(
#createMintsFromAmount,
[total],
),
returnValue: _i10.Future<List<Map<String, dynamic>>>.value(
<Map<String, dynamic>>[]),
) as _i10.Future<List<Map<String, dynamic>>>);
@override
_i10.Future<String> submitHexToNetwork(String? hex) => (super.noSuchMethod(
Invocation.method(
#submitHexToNetwork,
[hex],
),
returnValue: _i10.Future<String>.value(''),
) as _i10.Future<String>);
@override
_i10.Future<Map<String, dynamic>> buildMintTransaction(
List<_i12.UTXO>? utxosToUse,
int? satoshisPerRecipient,
List<Map<String, dynamic>>? mintsMap,
) =>
(super.noSuchMethod(
Invocation.method(
#buildMintTransaction,
[
utxosToUse,
satoshisPerRecipient,
mintsMap,
],
),
returnValue:
_i10.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i10.Future<Map<String, dynamic>>);
@override
_i10.Future<void> checkReceivingAddressForTransactions() =>
(super.noSuchMethod(
Invocation.method(
#checkReceivingAddressForTransactions,
[],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<void> checkChangeAddressForTransactions() => (super.noSuchMethod(
Invocation.method(
#checkChangeAddressForTransactions,
[],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<void> fillAddresses(
String? suppliedMnemonic, {
int? perBatch = 50,
int? numberOfThreads = 4,
}) =>
(super.noSuchMethod(
Invocation.method(
#fillAddresses,
[suppliedMnemonic],
{
#perBatch: perBatch,
#numberOfThreads: numberOfThreads,
},
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<void> fullRescan(
int? maxUnusedAddressGap,
int? maxNumberOfIndexesToCheck,
) =>
(super.noSuchMethod(
Invocation.method(
#fullRescan,
[
maxUnusedAddressGap,
maxNumberOfIndexesToCheck,
],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<void> recoverFromMnemonic({
required String? mnemonic,
required int? maxUnusedAddressGap,
required int? maxNumberOfIndexesToCheck,
required int? height,
}) =>
(super.noSuchMethod(
Invocation.method(
#recoverFromMnemonic,
[],
{
#mnemonic: mnemonic,
#maxUnusedAddressGap: maxUnusedAddressGap,
#maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck,
#height: height,
},
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<Map<int, dynamic>> getSetDataMap(int? latestSetId) =>
(super.noSuchMethod(
Invocation.method(
#getSetDataMap,
[latestSetId],
),
returnValue: _i10.Future<Map<int, dynamic>>.value(<int, dynamic>{}),
) as _i10.Future<Map<int, dynamic>>);
@override
_i10.Future<List<Map<String, dynamic>>> fetchAnonymitySets() =>
(super.noSuchMethod(
Invocation.method(
#fetchAnonymitySets,
[],
),
returnValue: _i10.Future<List<Map<String, dynamic>>>.value(
<Map<String, dynamic>>[]),
) as _i10.Future<List<Map<String, dynamic>>>);
@override
_i10.Future<int> getLatestSetId() => (super.noSuchMethod(
Invocation.method(
#getLatestSetId,
[],
),
returnValue: _i10.Future<int>.value(0),
) as _i10.Future<int>);
@override
_i10.Future<List<dynamic>> getUsedCoinSerials() => (super.noSuchMethod(
Invocation.method(
#getUsedCoinSerials,
[],
),
returnValue: _i10.Future<List<dynamic>>.value(<dynamic>[]),
) as _i10.Future<List<dynamic>>);
@override
_i10.Future<void> exit() => (super.noSuchMethod(
Invocation.method(
#exit,
[],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<dynamic> getCoinsToJoinSplit(int? required) =>
(super.noSuchMethod(
Invocation.method(
#getCoinsToJoinSplit,
[required],
),
returnValue: _i10.Future<dynamic>.value(),
) as _i10.Future<dynamic>);
@override
_i10.Future<int> estimateJoinSplitFee(int? spendAmount) =>
(super.noSuchMethod(
Invocation.method(
#estimateJoinSplitFee,
[spendAmount],
),
returnValue: _i10.Future<int>.value(0),
) as _i10.Future<int>);
@override
_i10.Future<int> estimateFeeFor(
int? satoshiAmount,
int? feeRate,
) =>
(super.noSuchMethod(
Invocation.method(
#estimateFeeFor,
[
satoshiAmount,
feeRate,
],
),
returnValue: _i10.Future<int>.value(0),
) as _i10.Future<int>);
@override
_i10.Future<int> estimateFeeForPublic(
int? satoshiAmount,
int? feeRate,
) =>
(super.noSuchMethod(
Invocation.method(
#estimateFeeForPublic,
[
satoshiAmount,
feeRate,
],
),
returnValue: _i10.Future<int>.value(0),
) as _i10.Future<int>);
@override
int roughFeeEstimate(
int? inputCount,
int? outputCount,
int? feeRatePerKB,
) =>
(super.noSuchMethod(
Invocation.method(
#roughFeeEstimate,
[
inputCount,
outputCount,
feeRatePerKB,
],
),
returnValue: 0,
) as int);
@override
_i10.Future<int> sweepAllEstimate(int? feeRate) => (super.noSuchMethod(
Invocation.method(
#sweepAllEstimate,
[feeRate],
),
returnValue: _i10.Future<int>.value(0),
) as _i10.Future<int>);
@override
_i10.Future<List<Map<String, dynamic>>> fastFetch(
List<String>? allTxHashes) =>
(super.noSuchMethod(
Invocation.method(
#fastFetch,
[allTxHashes],
),
returnValue: _i10.Future<List<Map<String, dynamic>>>.value(
<Map<String, dynamic>>[]),
) as _i10.Future<List<Map<String, dynamic>>>);
@override
_i10.Future<Map<_i12.Address, _i12.Transaction>> getJMintTransactions(
_i5.CachedElectrumX? cachedClient,
List<String>? transactions,
_i11.Coin? coin,
) =>
(super.noSuchMethod(
Invocation.method(
#getJMintTransactions,
[
cachedClient,
transactions,
coin,
],
),
returnValue: _i10.Future<Map<_i12.Address, _i12.Transaction>>.value(
<_i12.Address, _i12.Transaction>{}),
) as _i10.Future<Map<_i12.Address, _i12.Transaction>>);
@override
_i10.Future<bool> generateNewAddress() => (super.noSuchMethod(
Invocation.method(
#generateNewAddress,
[],
),
returnValue: _i10.Future<bool>.value(false),
) as _i10.Future<bool>);
@override
_i8.Decimal availablePrivateBalance() => (super.noSuchMethod(
Invocation.method(
#availablePrivateBalance,
[],
),
returnValue: _FakeDecimal_6(
this,
Invocation.method(
#availablePrivateBalance,
[],
),
),
) as _i8.Decimal);
@override
_i8.Decimal availablePublicBalance() => (super.noSuchMethod(
Invocation.method(
#availablePublicBalance,
[],
),
returnValue: _FakeDecimal_6(
this,
Invocation.method(
#availablePublicBalance,
[],
),
),
) as _i8.Decimal);
@override
void initCache(
String? walletId,
_i11.Coin? coin,
) =>
super.noSuchMethod(
Invocation.method(
#initCache,
[
walletId,
coin,
],
),
returnValueForMissingStub: null,
);
@override
_i10.Future<void> updateCachedId(String? id) => (super.noSuchMethod(
Invocation.method(
#updateCachedId,
[id],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
int getCachedChainHeight() => (super.noSuchMethod(
Invocation.method(
#getCachedChainHeight,
[],
),
returnValue: 0,
) as int);
@override
_i10.Future<void> updateCachedChainHeight(int? height) => (super.noSuchMethod(
Invocation.method(
#updateCachedChainHeight,
[height],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
bool getCachedIsFavorite() => (super.noSuchMethod(
Invocation.method(
#getCachedIsFavorite,
[],
),
returnValue: false,
) as bool);
@override
_i10.Future<void> updateCachedIsFavorite(bool? isFavorite) =>
(super.noSuchMethod(
Invocation.method(
#updateCachedIsFavorite,
[isFavorite],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i6.Balance getCachedBalance() => (super.noSuchMethod(
Invocation.method(
#getCachedBalance,
[],
),
returnValue: _FakeBalance_4(
this,
Invocation.method(
#getCachedBalance,
[],
),
),
) as _i6.Balance);
@override
_i10.Future<void> updateCachedBalance(_i6.Balance? balance) =>
(super.noSuchMethod(
Invocation.method(
#updateCachedBalance,
[balance],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i6.Balance getCachedBalanceSecondary() => (super.noSuchMethod(
Invocation.method(
#getCachedBalanceSecondary,
[],
),
returnValue: _FakeBalance_4(
this,
Invocation.method(
#getCachedBalanceSecondary,
[],
),
),
) as _i6.Balance);
@override
_i10.Future<void> updateCachedBalanceSecondary(_i6.Balance? balance) =>
(super.noSuchMethod(
Invocation.method(
#updateCachedBalanceSecondary,
[balance],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
void initWalletDB({_i7.MainDB? mockableOverride}) => super.noSuchMethod(
Invocation.method(
#initWalletDB,
[],
{#mockableOverride: mockableOverride},
),
returnValueForMissingStub: null,
);
@override
void initFiroHive(String? walletId) => super.noSuchMethod(
Invocation.method(
#initFiroHive,
[walletId],
),
returnValueForMissingStub: null,
);
@override
_i10.Future<void> firoUpdateJIndex(List<dynamic>? jIndex) =>
(super.noSuchMethod(
Invocation.method(
#firoUpdateJIndex,
[jIndex],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<void> firoUpdateLelantusCoins(List<dynamic>? lelantusCoins) =>
(super.noSuchMethod(
Invocation.method(
#firoUpdateLelantusCoins,
[lelantusCoins],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
@override
_i10.Future<void> firoUpdateMintIndex(int? mintIndex) => (super.noSuchMethod(
Invocation.method(
#firoUpdateMintIndex,
[mintIndex],
),
returnValue: _i10.Future<void>.value(),
returnValueForMissingStub: _i10.Future<void>.value(),
) as _i10.Future<void>);
}
/// A class which mocks [ElectrumX].
///
/// See the documentation for Mockito's code generation for more information.
class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
MockElectrumX() {
_i1.throwOnMissingStub(this);
}
@override
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
Invocation.setter(
#failovers,
_failovers,
),
returnValueForMissingStub: null,
);
@override
int get currentFailoverIndex => (super.noSuchMethod(
Invocation.getter(#currentFailoverIndex),
returnValue: 0,
) as int);
@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
_i10.Future<dynamic> request({
required String? command,
List<dynamic>? args = const [],
Duration? connectionTimeout = const Duration(seconds: 60),
String? requestID,
int? retries = 2,
}) =>
(super.noSuchMethod(
Invocation.method(
#request,
[],
{
#command: command,
#args: args,
#connectionTimeout: connectionTimeout,
#requestID: requestID,
#retries: retries,
},
),
returnValue: _i10.Future<dynamic>.value(),
) as _i10.Future<dynamic>);
@override
_i10.Future<List<Map<String, dynamic>>> batchRequest({
required String? command,
required Map<String, List<dynamic>>? args,
Duration? connectionTimeout = const Duration(seconds: 60),
int? retries = 2,
}) =>
(super.noSuchMethod(
Invocation.method(
#batchRequest,
[],
{
#command: command,
#args: args,
#connectionTimeout: connectionTimeout,
#retries: retries,
},
),
returnValue: _i10.Future<List<Map<String, dynamic>>>.value(
<Map<String, dynamic>>[]),
) as _i10.Future<List<Map<String, dynamic>>>);
@override
_i10.Future<bool> ping({
String? requestID,
int? retryCount = 1,
}) =>
(super.noSuchMethod(
Invocation.method(
#ping,
[],
{
#requestID: requestID,
#retryCount: retryCount,
},
),
returnValue: _i10.Future<bool>.value(false),
) as _i10.Future<bool>);
@override
_i10.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
(super.noSuchMethod(
Invocation.method(
#getBlockHeadTip,
[],
{#requestID: requestID},
),
returnValue:
_i10.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i10.Future<Map<String, dynamic>>);
@override
_i10.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
(super.noSuchMethod(
Invocation.method(
#getServerFeatures,
[],
{#requestID: requestID},
),
returnValue:
_i10.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i10.Future<Map<String, dynamic>>);
@override
_i10.Future<String> broadcastTransaction({
required String? rawTx,
String? requestID,
}) =>
(super.noSuchMethod(
Invocation.method(
#broadcastTransaction,
[],
{
#rawTx: rawTx,
#requestID: requestID,
},
),
returnValue: _i10.Future<String>.value(''),
) as _i10.Future<String>);
@override
_i10.Future<Map<String, dynamic>> getBalance({
required String? scripthash,
String? requestID,
}) =>
(super.noSuchMethod(
Invocation.method(
#getBalance,
[],
{
#scripthash: scripthash,
#requestID: requestID,
},
),
returnValue:
_i10.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i10.Future<Map<String, dynamic>>);
@override
_i10.Future<List<Map<String, dynamic>>> getHistory({
required String? scripthash,
String? requestID,
}) =>
(super.noSuchMethod(
Invocation.method(
#getHistory,
[],
{
#scripthash: scripthash,
#requestID: requestID,
},
),
returnValue: _i10.Future<List<Map<String, dynamic>>>.value(
<Map<String, dynamic>>[]),
) as _i10.Future<List<Map<String, dynamic>>>);
@override
_i10.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
{required Map<String, List<dynamic>>? args}) =>
(super.noSuchMethod(
Invocation.method(
#getBatchHistory,
[],
{#args: args},
),
returnValue: _i10.Future<Map<String, List<Map<String, dynamic>>>>.value(
<String, List<Map<String, dynamic>>>{}),
) as _i10.Future<Map<String, List<Map<String, dynamic>>>>);
@override
_i10.Future<List<Map<String, dynamic>>> getUTXOs({
required String? scripthash,
String? requestID,
}) =>
(super.noSuchMethod(
Invocation.method(
#getUTXOs,
[],
{
#scripthash: scripthash,
#requestID: requestID,
},
),
returnValue: _i10.Future<List<Map<String, dynamic>>>.value(
<Map<String, dynamic>>[]),
) as _i10.Future<List<Map<String, dynamic>>>);
@override
_i10.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
{required Map<String, List<dynamic>>? args}) =>
(super.noSuchMethod(
Invocation.method(
#getBatchUTXOs,
[],
{#args: args},
),
returnValue: _i10.Future<Map<String, List<Map<String, dynamic>>>>.value(
<String, List<Map<String, dynamic>>>{}),
) as _i10.Future<Map<String, List<Map<String, dynamic>>>>);
@override
_i10.Future<Map<String, dynamic>> getTransaction({
required String? txHash,
bool? verbose = true,
String? requestID,
}) =>
(super.noSuchMethod(
Invocation.method(
#getTransaction,
[],
{
#txHash: txHash,
#verbose: verbose,
#requestID: requestID,
},
),
returnValue:
_i10.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i10.Future<Map<String, dynamic>>);
@override
_i10.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:
_i10.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i10.Future<Map<String, dynamic>>);
@override
_i10.Future<dynamic> getMintData({
dynamic mints,
String? requestID,
}) =>
(super.noSuchMethod(
Invocation.method(
#getMintData,
[],
{
#mints: mints,
#requestID: requestID,
},
),
returnValue: _i10.Future<dynamic>.value(),
) as _i10.Future<dynamic>);
@override
_i10.Future<Map<String, dynamic>> getUsedCoinSerials({
String? requestID,
required int? startNumber,
}) =>
(super.noSuchMethod(
Invocation.method(
#getUsedCoinSerials,
[],
{
#requestID: requestID,
#startNumber: startNumber,
},
),
returnValue:
_i10.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i10.Future<Map<String, dynamic>>);
@override
_i10.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
Invocation.method(
#getLatestCoinId,
[],
{#requestID: requestID},
),
returnValue: _i10.Future<int>.value(0),
) as _i10.Future<int>);
@override
_i10.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
(super.noSuchMethod(
Invocation.method(
#getFeeRate,
[],
{#requestID: requestID},
),
returnValue:
_i10.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i10.Future<Map<String, dynamic>>);
@override
_i10.Future<_i8.Decimal> estimateFee({
String? requestID,
required int? blocks,
}) =>
(super.noSuchMethod(
Invocation.method(
#estimateFee,
[],
{
#requestID: requestID,
#blocks: blocks,
},
),
returnValue: _i10.Future<_i8.Decimal>.value(_FakeDecimal_6(
this,
Invocation.method(
#estimateFee,
[],
{
#requestID: requestID,
#blocks: blocks,
},
),
)),
) as _i10.Future<_i8.Decimal>);
@override
_i10.Future<_i8.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
Invocation.method(
#relayFee,
[],
{#requestID: requestID},
),
returnValue: _i10.Future<_i8.Decimal>.value(_FakeDecimal_6(
this,
Invocation.method(
#relayFee,
[],
{#requestID: requestID},
),
)),
) as _i10.Future<_i8.Decimal>);
}