mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 19:39:22 +00:00
update mocks
This commit is contained in:
parent
ec237d0001
commit
9716bed96f
6 changed files with 264 additions and 174 deletions
|
@ -1415,44 +1415,24 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet {
|
|||
returnValue: 0,
|
||||
) as int);
|
||||
@override
|
||||
_i22.Future<void> f({
|
||||
dynamic coinSelection({
|
||||
required int? satoshiAmountToSend,
|
||||
required int? selectedTxFeeRate,
|
||||
required String? recipientAddress,
|
||||
required List<_i16.UTXO>? utxos,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#f,
|
||||
[],
|
||||
{
|
||||
#satoshiAmountToSend: satoshiAmountToSend,
|
||||
#selectedTxFeeRate: selectedTxFeeRate,
|
||||
#recipientAddress: recipientAddress,
|
||||
#utxos: utxos,
|
||||
},
|
||||
),
|
||||
returnValue: _i22.Future<void>.value(),
|
||||
returnValueForMissingStub: _i22.Future<void>.value(),
|
||||
) as _i22.Future<void>);
|
||||
@override
|
||||
dynamic coinSelection(
|
||||
int? satoshiAmountToSend,
|
||||
int? selectedTxFeeRate,
|
||||
String? _recipientAddress,
|
||||
bool? isSendAll, {
|
||||
required bool? coinControl,
|
||||
required bool? isSendAll,
|
||||
int? additionalOutputs = 0,
|
||||
List<_i16.UTXO>? utxos,
|
||||
}) =>
|
||||
super.noSuchMethod(Invocation.method(
|
||||
#coinSelection,
|
||||
[
|
||||
satoshiAmountToSend,
|
||||
selectedTxFeeRate,
|
||||
_recipientAddress,
|
||||
isSendAll,
|
||||
],
|
||||
[],
|
||||
{
|
||||
#satoshiAmountToSend: satoshiAmountToSend,
|
||||
#selectedTxFeeRate: selectedTxFeeRate,
|
||||
#recipientAddress: recipientAddress,
|
||||
#coinControl: coinControl,
|
||||
#isSendAll: isSendAll,
|
||||
#additionalOutputs: additionalOutputs,
|
||||
#utxos: utxos,
|
||||
},
|
||||
|
@ -2189,6 +2169,41 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet {
|
|||
),
|
||||
returnValue: _i22.Future<String>.value(''),
|
||||
) as _i22.Future<String>);
|
||||
@override
|
||||
void initCoinControlInterface({
|
||||
required String? walletId,
|
||||
required String? walletName,
|
||||
required _i21.Coin? coin,
|
||||
required _i13.MainDB? db,
|
||||
required _i22.Future<int> Function()? getChainHeight,
|
||||
required _i22.Future<void> Function(_i12.Balance)? refreshedBalanceCallback,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#initCoinControlInterface,
|
||||
[],
|
||||
{
|
||||
#walletId: walletId,
|
||||
#walletName: walletName,
|
||||
#coin: coin,
|
||||
#db: db,
|
||||
#getChainHeight: getChainHeight,
|
||||
#refreshedBalanceCallback: refreshedBalanceCallback,
|
||||
},
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i22.Future<void> refreshBalance({bool? notify = false}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#refreshBalance,
|
||||
[],
|
||||
{#notify: notify},
|
||||
),
|
||||
returnValue: _i22.Future<void>.value(),
|
||||
returnValueForMissingStub: _i22.Future<void>.value(),
|
||||
) as _i22.Future<void>);
|
||||
}
|
||||
|
||||
/// A class which mocks [LocaleService].
|
||||
|
|
|
@ -1207,44 +1207,24 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet {
|
|||
returnValue: 0,
|
||||
) as int);
|
||||
@override
|
||||
_i22.Future<void> f({
|
||||
dynamic coinSelection({
|
||||
required int? satoshiAmountToSend,
|
||||
required int? selectedTxFeeRate,
|
||||
required String? recipientAddress,
|
||||
required List<_i15.UTXO>? utxos,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#f,
|
||||
[],
|
||||
{
|
||||
#satoshiAmountToSend: satoshiAmountToSend,
|
||||
#selectedTxFeeRate: selectedTxFeeRate,
|
||||
#recipientAddress: recipientAddress,
|
||||
#utxos: utxos,
|
||||
},
|
||||
),
|
||||
returnValue: _i22.Future<void>.value(),
|
||||
returnValueForMissingStub: _i22.Future<void>.value(),
|
||||
) as _i22.Future<void>);
|
||||
@override
|
||||
dynamic coinSelection(
|
||||
int? satoshiAmountToSend,
|
||||
int? selectedTxFeeRate,
|
||||
String? _recipientAddress,
|
||||
bool? isSendAll, {
|
||||
required bool? coinControl,
|
||||
required bool? isSendAll,
|
||||
int? additionalOutputs = 0,
|
||||
List<_i15.UTXO>? utxos,
|
||||
}) =>
|
||||
super.noSuchMethod(Invocation.method(
|
||||
#coinSelection,
|
||||
[
|
||||
satoshiAmountToSend,
|
||||
selectedTxFeeRate,
|
||||
_recipientAddress,
|
||||
isSendAll,
|
||||
],
|
||||
[],
|
||||
{
|
||||
#satoshiAmountToSend: satoshiAmountToSend,
|
||||
#selectedTxFeeRate: selectedTxFeeRate,
|
||||
#recipientAddress: recipientAddress,
|
||||
#coinControl: coinControl,
|
||||
#isSendAll: isSendAll,
|
||||
#additionalOutputs: additionalOutputs,
|
||||
#utxos: utxos,
|
||||
},
|
||||
|
@ -1981,6 +1961,41 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet {
|
|||
),
|
||||
returnValue: _i22.Future<String>.value(''),
|
||||
) as _i22.Future<String>);
|
||||
@override
|
||||
void initCoinControlInterface({
|
||||
required String? walletId,
|
||||
required String? walletName,
|
||||
required _i21.Coin? coin,
|
||||
required _i12.MainDB? db,
|
||||
required _i22.Future<int> Function()? getChainHeight,
|
||||
required _i22.Future<void> Function(_i11.Balance)? refreshedBalanceCallback,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#initCoinControlInterface,
|
||||
[],
|
||||
{
|
||||
#walletId: walletId,
|
||||
#walletName: walletName,
|
||||
#coin: coin,
|
||||
#db: db,
|
||||
#getChainHeight: getChainHeight,
|
||||
#refreshedBalanceCallback: refreshedBalanceCallback,
|
||||
},
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i22.Future<void> refreshBalance({bool? notify = false}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#refreshBalance,
|
||||
[],
|
||||
{#notify: notify},
|
||||
),
|
||||
returnValue: _i22.Future<void>.value(),
|
||||
returnValueForMissingStub: _i22.Future<void>.value(),
|
||||
) as _i22.Future<void>);
|
||||
}
|
||||
|
||||
/// A class which mocks [LocaleService].
|
||||
|
|
|
@ -1194,44 +1194,24 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet {
|
|||
returnValue: 0,
|
||||
) as int);
|
||||
@override
|
||||
_i21.Future<void> f({
|
||||
dynamic coinSelection({
|
||||
required int? satoshiAmountToSend,
|
||||
required int? selectedTxFeeRate,
|
||||
required String? recipientAddress,
|
||||
required List<_i15.UTXO>? utxos,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#f,
|
||||
[],
|
||||
{
|
||||
#satoshiAmountToSend: satoshiAmountToSend,
|
||||
#selectedTxFeeRate: selectedTxFeeRate,
|
||||
#recipientAddress: recipientAddress,
|
||||
#utxos: utxos,
|
||||
},
|
||||
),
|
||||
returnValue: _i21.Future<void>.value(),
|
||||
returnValueForMissingStub: _i21.Future<void>.value(),
|
||||
) as _i21.Future<void>);
|
||||
@override
|
||||
dynamic coinSelection(
|
||||
int? satoshiAmountToSend,
|
||||
int? selectedTxFeeRate,
|
||||
String? _recipientAddress,
|
||||
bool? isSendAll, {
|
||||
required bool? coinControl,
|
||||
required bool? isSendAll,
|
||||
int? additionalOutputs = 0,
|
||||
List<_i15.UTXO>? utxos,
|
||||
}) =>
|
||||
super.noSuchMethod(Invocation.method(
|
||||
#coinSelection,
|
||||
[
|
||||
satoshiAmountToSend,
|
||||
selectedTxFeeRate,
|
||||
_recipientAddress,
|
||||
isSendAll,
|
||||
],
|
||||
[],
|
||||
{
|
||||
#satoshiAmountToSend: satoshiAmountToSend,
|
||||
#selectedTxFeeRate: selectedTxFeeRate,
|
||||
#recipientAddress: recipientAddress,
|
||||
#coinControl: coinControl,
|
||||
#isSendAll: isSendAll,
|
||||
#additionalOutputs: additionalOutputs,
|
||||
#utxos: utxos,
|
||||
},
|
||||
|
@ -1968,6 +1948,41 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet {
|
|||
),
|
||||
returnValue: _i21.Future<String>.value(''),
|
||||
) as _i21.Future<String>);
|
||||
@override
|
||||
void initCoinControlInterface({
|
||||
required String? walletId,
|
||||
required String? walletName,
|
||||
required _i20.Coin? coin,
|
||||
required _i12.MainDB? db,
|
||||
required _i21.Future<int> Function()? getChainHeight,
|
||||
required _i21.Future<void> Function(_i11.Balance)? refreshedBalanceCallback,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#initCoinControlInterface,
|
||||
[],
|
||||
{
|
||||
#walletId: walletId,
|
||||
#walletName: walletName,
|
||||
#coin: coin,
|
||||
#db: db,
|
||||
#getChainHeight: getChainHeight,
|
||||
#refreshedBalanceCallback: refreshedBalanceCallback,
|
||||
},
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i21.Future<void> refreshBalance({bool? notify = false}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#refreshBalance,
|
||||
[],
|
||||
{#notify: notify},
|
||||
),
|
||||
returnValue: _i21.Future<void>.value(),
|
||||
returnValueForMissingStub: _i21.Future<void>.value(),
|
||||
) as _i21.Future<void>);
|
||||
}
|
||||
|
||||
/// A class which mocks [Manager].
|
||||
|
|
|
@ -957,44 +957,24 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet {
|
|||
returnValue: 0,
|
||||
) as int);
|
||||
@override
|
||||
_i20.Future<void> f({
|
||||
dynamic coinSelection({
|
||||
required int? satoshiAmountToSend,
|
||||
required int? selectedTxFeeRate,
|
||||
required String? recipientAddress,
|
||||
required List<_i15.UTXO>? utxos,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#f,
|
||||
[],
|
||||
{
|
||||
#satoshiAmountToSend: satoshiAmountToSend,
|
||||
#selectedTxFeeRate: selectedTxFeeRate,
|
||||
#recipientAddress: recipientAddress,
|
||||
#utxos: utxos,
|
||||
},
|
||||
),
|
||||
returnValue: _i20.Future<void>.value(),
|
||||
returnValueForMissingStub: _i20.Future<void>.value(),
|
||||
) as _i20.Future<void>);
|
||||
@override
|
||||
dynamic coinSelection(
|
||||
int? satoshiAmountToSend,
|
||||
int? selectedTxFeeRate,
|
||||
String? _recipientAddress,
|
||||
bool? isSendAll, {
|
||||
required bool? coinControl,
|
||||
required bool? isSendAll,
|
||||
int? additionalOutputs = 0,
|
||||
List<_i15.UTXO>? utxos,
|
||||
}) =>
|
||||
super.noSuchMethod(Invocation.method(
|
||||
#coinSelection,
|
||||
[
|
||||
satoshiAmountToSend,
|
||||
selectedTxFeeRate,
|
||||
_recipientAddress,
|
||||
isSendAll,
|
||||
],
|
||||
[],
|
||||
{
|
||||
#satoshiAmountToSend: satoshiAmountToSend,
|
||||
#selectedTxFeeRate: selectedTxFeeRate,
|
||||
#recipientAddress: recipientAddress,
|
||||
#coinControl: coinControl,
|
||||
#isSendAll: isSendAll,
|
||||
#additionalOutputs: additionalOutputs,
|
||||
#utxos: utxos,
|
||||
},
|
||||
|
@ -1731,6 +1711,41 @@ class MockBitcoinWallet extends _i1.Mock implements _i23.BitcoinWallet {
|
|||
),
|
||||
returnValue: _i20.Future<String>.value(''),
|
||||
) as _i20.Future<String>);
|
||||
@override
|
||||
void initCoinControlInterface({
|
||||
required String? walletId,
|
||||
required String? walletName,
|
||||
required _i19.Coin? coin,
|
||||
required _i12.MainDB? db,
|
||||
required _i20.Future<int> Function()? getChainHeight,
|
||||
required _i20.Future<void> Function(_i11.Balance)? refreshedBalanceCallback,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#initCoinControlInterface,
|
||||
[],
|
||||
{
|
||||
#walletId: walletId,
|
||||
#walletName: walletName,
|
||||
#coin: coin,
|
||||
#db: db,
|
||||
#getChainHeight: getChainHeight,
|
||||
#refreshedBalanceCallback: refreshedBalanceCallback,
|
||||
},
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i20.Future<void> refreshBalance({bool? notify = false}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#refreshBalance,
|
||||
[],
|
||||
{#notify: notify},
|
||||
),
|
||||
returnValue: _i20.Future<void>.value(),
|
||||
returnValueForMissingStub: _i20.Future<void>.value(),
|
||||
) as _i20.Future<void>);
|
||||
}
|
||||
|
||||
/// A class which mocks [LocaleService].
|
||||
|
|
|
@ -1206,44 +1206,24 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet {
|
|||
returnValue: 0,
|
||||
) as int);
|
||||
@override
|
||||
_i22.Future<void> f({
|
||||
dynamic coinSelection({
|
||||
required int? satoshiAmountToSend,
|
||||
required int? selectedTxFeeRate,
|
||||
required String? recipientAddress,
|
||||
required List<_i15.UTXO>? utxos,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#f,
|
||||
[],
|
||||
{
|
||||
#satoshiAmountToSend: satoshiAmountToSend,
|
||||
#selectedTxFeeRate: selectedTxFeeRate,
|
||||
#recipientAddress: recipientAddress,
|
||||
#utxos: utxos,
|
||||
},
|
||||
),
|
||||
returnValue: _i22.Future<void>.value(),
|
||||
returnValueForMissingStub: _i22.Future<void>.value(),
|
||||
) as _i22.Future<void>);
|
||||
@override
|
||||
dynamic coinSelection(
|
||||
int? satoshiAmountToSend,
|
||||
int? selectedTxFeeRate,
|
||||
String? _recipientAddress,
|
||||
bool? isSendAll, {
|
||||
required bool? coinControl,
|
||||
required bool? isSendAll,
|
||||
int? additionalOutputs = 0,
|
||||
List<_i15.UTXO>? utxos,
|
||||
}) =>
|
||||
super.noSuchMethod(Invocation.method(
|
||||
#coinSelection,
|
||||
[
|
||||
satoshiAmountToSend,
|
||||
selectedTxFeeRate,
|
||||
_recipientAddress,
|
||||
isSendAll,
|
||||
],
|
||||
[],
|
||||
{
|
||||
#satoshiAmountToSend: satoshiAmountToSend,
|
||||
#selectedTxFeeRate: selectedTxFeeRate,
|
||||
#recipientAddress: recipientAddress,
|
||||
#coinControl: coinControl,
|
||||
#isSendAll: isSendAll,
|
||||
#additionalOutputs: additionalOutputs,
|
||||
#utxos: utxos,
|
||||
},
|
||||
|
@ -1980,6 +1960,41 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet {
|
|||
),
|
||||
returnValue: _i22.Future<String>.value(''),
|
||||
) as _i22.Future<String>);
|
||||
@override
|
||||
void initCoinControlInterface({
|
||||
required String? walletId,
|
||||
required String? walletName,
|
||||
required _i21.Coin? coin,
|
||||
required _i12.MainDB? db,
|
||||
required _i22.Future<int> Function()? getChainHeight,
|
||||
required _i22.Future<void> Function(_i11.Balance)? refreshedBalanceCallback,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#initCoinControlInterface,
|
||||
[],
|
||||
{
|
||||
#walletId: walletId,
|
||||
#walletName: walletName,
|
||||
#coin: coin,
|
||||
#db: db,
|
||||
#getChainHeight: getChainHeight,
|
||||
#refreshedBalanceCallback: refreshedBalanceCallback,
|
||||
},
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i22.Future<void> refreshBalance({bool? notify = false}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#refreshBalance,
|
||||
[],
|
||||
{#notify: notify},
|
||||
),
|
||||
returnValue: _i22.Future<void>.value(),
|
||||
returnValueForMissingStub: _i22.Future<void>.value(),
|
||||
) as _i22.Future<void>);
|
||||
}
|
||||
|
||||
/// A class which mocks [NodeService].
|
||||
|
|
|
@ -1206,44 +1206,24 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet {
|
|||
returnValue: 0,
|
||||
) as int);
|
||||
@override
|
||||
_i22.Future<void> f({
|
||||
dynamic coinSelection({
|
||||
required int? satoshiAmountToSend,
|
||||
required int? selectedTxFeeRate,
|
||||
required String? recipientAddress,
|
||||
required List<_i15.UTXO>? utxos,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#f,
|
||||
[],
|
||||
{
|
||||
#satoshiAmountToSend: satoshiAmountToSend,
|
||||
#selectedTxFeeRate: selectedTxFeeRate,
|
||||
#recipientAddress: recipientAddress,
|
||||
#utxos: utxos,
|
||||
},
|
||||
),
|
||||
returnValue: _i22.Future<void>.value(),
|
||||
returnValueForMissingStub: _i22.Future<void>.value(),
|
||||
) as _i22.Future<void>);
|
||||
@override
|
||||
dynamic coinSelection(
|
||||
int? satoshiAmountToSend,
|
||||
int? selectedTxFeeRate,
|
||||
String? _recipientAddress,
|
||||
bool? isSendAll, {
|
||||
required bool? coinControl,
|
||||
required bool? isSendAll,
|
||||
int? additionalOutputs = 0,
|
||||
List<_i15.UTXO>? utxos,
|
||||
}) =>
|
||||
super.noSuchMethod(Invocation.method(
|
||||
#coinSelection,
|
||||
[
|
||||
satoshiAmountToSend,
|
||||
selectedTxFeeRate,
|
||||
_recipientAddress,
|
||||
isSendAll,
|
||||
],
|
||||
[],
|
||||
{
|
||||
#satoshiAmountToSend: satoshiAmountToSend,
|
||||
#selectedTxFeeRate: selectedTxFeeRate,
|
||||
#recipientAddress: recipientAddress,
|
||||
#coinControl: coinControl,
|
||||
#isSendAll: isSendAll,
|
||||
#additionalOutputs: additionalOutputs,
|
||||
#utxos: utxos,
|
||||
},
|
||||
|
@ -1980,6 +1960,41 @@ class MockBitcoinWallet extends _i1.Mock implements _i25.BitcoinWallet {
|
|||
),
|
||||
returnValue: _i22.Future<String>.value(''),
|
||||
) as _i22.Future<String>);
|
||||
@override
|
||||
void initCoinControlInterface({
|
||||
required String? walletId,
|
||||
required String? walletName,
|
||||
required _i21.Coin? coin,
|
||||
required _i12.MainDB? db,
|
||||
required _i22.Future<int> Function()? getChainHeight,
|
||||
required _i22.Future<void> Function(_i11.Balance)? refreshedBalanceCallback,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#initCoinControlInterface,
|
||||
[],
|
||||
{
|
||||
#walletId: walletId,
|
||||
#walletName: walletName,
|
||||
#coin: coin,
|
||||
#db: db,
|
||||
#getChainHeight: getChainHeight,
|
||||
#refreshedBalanceCallback: refreshedBalanceCallback,
|
||||
},
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i22.Future<void> refreshBalance({bool? notify = false}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#refreshBalance,
|
||||
[],
|
||||
{#notify: notify},
|
||||
),
|
||||
returnValue: _i22.Future<void>.value(),
|
||||
returnValueForMissingStub: _i22.Future<void>.value(),
|
||||
) as _i22.Future<void>);
|
||||
}
|
||||
|
||||
/// A class which mocks [NodeService].
|
||||
|
|
Loading…
Reference in a new issue