mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
build runner updated mocks
This commit is contained in:
parent
4ad5bd6e6d
commit
4df68dc53a
31 changed files with 351 additions and 67 deletions
|
@ -358,6 +358,28 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
super.noSuchMethod(Invocation.setter(#lastAutoBackup, lastAutoBackup),
|
||||
returnValueForMissingStub: null);
|
||||
@override
|
||||
bool get hideBlockExplorerWarning =>
|
||||
(super.noSuchMethod(Invocation.getter(#hideBlockExplorerWarning),
|
||||
returnValue: false) as bool);
|
||||
@override
|
||||
set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#hideBlockExplorerWarning, hideBlockExplorerWarning),
|
||||
returnValueForMissingStub: null);
|
||||
@override
|
||||
bool get gotoWalletOnStartup =>
|
||||
(super.noSuchMethod(Invocation.getter(#gotoWalletOnStartup),
|
||||
returnValue: false) as bool);
|
||||
@override
|
||||
set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod(
|
||||
Invocation.setter(#gotoWalletOnStartup, gotoWalletOnStartup),
|
||||
returnValueForMissingStub: null);
|
||||
@override
|
||||
set startupWalletId(String? startupWalletId) =>
|
||||
super.noSuchMethod(Invocation.setter(#startupWalletId, startupWalletId),
|
||||
returnValueForMissingStub: null);
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
|
|
|
@ -207,6 +207,28 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
|||
super.noSuchMethod(Invocation.setter(#lastAutoBackup, lastAutoBackup),
|
||||
returnValueForMissingStub: null);
|
||||
@override
|
||||
bool get hideBlockExplorerWarning =>
|
||||
(super.noSuchMethod(Invocation.getter(#hideBlockExplorerWarning),
|
||||
returnValue: false) as bool);
|
||||
@override
|
||||
set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#hideBlockExplorerWarning, hideBlockExplorerWarning),
|
||||
returnValueForMissingStub: null);
|
||||
@override
|
||||
bool get gotoWalletOnStartup =>
|
||||
(super.noSuchMethod(Invocation.getter(#gotoWalletOnStartup),
|
||||
returnValue: false) as bool);
|
||||
@override
|
||||
set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod(
|
||||
Invocation.setter(#gotoWalletOnStartup, gotoWalletOnStartup),
|
||||
returnValueForMissingStub: null);
|
||||
@override
|
||||
set startupWalletId(String? startupWalletId) =>
|
||||
super.noSuchMethod(Invocation.setter(#startupWalletId, startupWalletId),
|
||||
returnValueForMissingStub: null);
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
|
|
|
@ -8,18 +8,20 @@ import 'package:decimal/decimal.dart' as _i7;
|
|||
import 'package:http/http.dart' as _i4;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:stackwallet/models/exchange/change_now/available_floating_rate_pair.dart'
|
||||
as _i12;
|
||||
as _i13;
|
||||
import 'package:stackwallet/models/exchange/change_now/change_now_response.dart'
|
||||
as _i2;
|
||||
import 'package:stackwallet/models/exchange/change_now/cn_exchange_estimate.dart'
|
||||
as _i9;
|
||||
import 'package:stackwallet/models/exchange/change_now/currency.dart' as _i6;
|
||||
import 'package:stackwallet/models/exchange/change_now/estimated_exchange_amount.dart'
|
||||
as _i8;
|
||||
import 'package:stackwallet/models/exchange/change_now/exchange_transaction.dart'
|
||||
as _i10;
|
||||
import 'package:stackwallet/models/exchange/change_now/exchange_transaction_status.dart'
|
||||
as _i11;
|
||||
import 'package:stackwallet/models/exchange/change_now/exchange_transaction_status.dart'
|
||||
as _i12;
|
||||
import 'package:stackwallet/models/exchange/change_now/fixed_rate_market.dart'
|
||||
as _i9;
|
||||
as _i10;
|
||||
import 'package:stackwallet/services/change_now/change_now.dart' as _i3;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
|
@ -98,38 +100,42 @@ class MockChangeNow extends _i1.Mock implements _i3.ChangeNow {
|
|||
as _i5
|
||||
.Future<_i2.ChangeNowResponse<_i8.EstimatedExchangeAmount>>);
|
||||
@override
|
||||
_i5.Future<_i2.ChangeNowResponse<_i8.EstimatedExchangeAmount>>
|
||||
getEstimatedFixedRateExchangeAmount(
|
||||
_i5.Future<_i2.ChangeNowResponse<_i9.CNExchangeEstimate>>
|
||||
getEstimatedExchangeAmountV2(
|
||||
{String? fromTicker,
|
||||
String? toTicker,
|
||||
_i7.Decimal? fromAmount,
|
||||
bool? useRateId = true,
|
||||
_i9.CNEstimateType? fromOrTo,
|
||||
_i7.Decimal? amount,
|
||||
String? fromNetwork,
|
||||
String? toNetwork,
|
||||
_i9.CNFlowType? flow = _i9.CNFlowType.standard,
|
||||
String? apiKey}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#getEstimatedFixedRateExchangeAmount, [], {
|
||||
Invocation.method(#getEstimatedExchangeAmountV2, [], {
|
||||
#fromTicker: fromTicker,
|
||||
#toTicker: toTicker,
|
||||
#fromAmount: fromAmount,
|
||||
#useRateId: useRateId,
|
||||
#fromOrTo: fromOrTo,
|
||||
#amount: amount,
|
||||
#fromNetwork: fromNetwork,
|
||||
#toNetwork: toNetwork,
|
||||
#flow: flow,
|
||||
#apiKey: apiKey
|
||||
}),
|
||||
returnValue: Future<
|
||||
_i2.ChangeNowResponse<
|
||||
_i8.EstimatedExchangeAmount>>.value(
|
||||
_FakeChangeNowResponse_0<_i8.EstimatedExchangeAmount>()))
|
||||
as _i5
|
||||
.Future<_i2.ChangeNowResponse<_i8.EstimatedExchangeAmount>>);
|
||||
_i2.ChangeNowResponse<_i9.CNExchangeEstimate>>.value(
|
||||
_FakeChangeNowResponse_0<_i9.CNExchangeEstimate>()))
|
||||
as _i5.Future<_i2.ChangeNowResponse<_i9.CNExchangeEstimate>>);
|
||||
@override
|
||||
_i5.Future<_i2.ChangeNowResponse<List<_i9.FixedRateMarket>>>
|
||||
_i5.Future<_i2.ChangeNowResponse<List<_i10.FixedRateMarket>>>
|
||||
getAvailableFixedRateMarkets({String? apiKey}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getAvailableFixedRateMarkets, [], {#apiKey: apiKey}),
|
||||
returnValue:
|
||||
Future<_i2.ChangeNowResponse<List<_i9.FixedRateMarket>>>.value(
|
||||
_FakeChangeNowResponse_0<List<_i9.FixedRateMarket>>())) as _i5
|
||||
.Future<_i2.ChangeNowResponse<List<_i9.FixedRateMarket>>>);
|
||||
Future<_i2.ChangeNowResponse<List<_i10.FixedRateMarket>>>.value(
|
||||
_FakeChangeNowResponse_0<List<_i10.FixedRateMarket>>())) as _i5
|
||||
.Future<_i2.ChangeNowResponse<List<_i10.FixedRateMarket>>>);
|
||||
@override
|
||||
_i5.Future<_i2.ChangeNowResponse<_i10.ExchangeTransaction>>
|
||||
_i5.Future<_i2.ChangeNowResponse<_i11.ExchangeTransaction>>
|
||||
createStandardExchangeTransaction(
|
||||
{String? fromTicker,
|
||||
String? toTicker,
|
||||
|
@ -155,11 +161,11 @@ class MockChangeNow extends _i1.Mock implements _i3.ChangeNow {
|
|||
#apiKey: apiKey
|
||||
}),
|
||||
returnValue: Future<
|
||||
_i2.ChangeNowResponse<_i10.ExchangeTransaction>>.value(
|
||||
_FakeChangeNowResponse_0<_i10.ExchangeTransaction>())) as _i5
|
||||
.Future<_i2.ChangeNowResponse<_i10.ExchangeTransaction>>);
|
||||
_i2.ChangeNowResponse<_i11.ExchangeTransaction>>.value(
|
||||
_FakeChangeNowResponse_0<_i11.ExchangeTransaction>())) as _i5
|
||||
.Future<_i2.ChangeNowResponse<_i11.ExchangeTransaction>>);
|
||||
@override
|
||||
_i5.Future<_i2.ChangeNowResponse<_i10.ExchangeTransaction>>
|
||||
_i5.Future<_i2.ChangeNowResponse<_i11.ExchangeTransaction>>
|
||||
createFixedRateExchangeTransaction(
|
||||
{String? fromTicker,
|
||||
String? toTicker,
|
||||
|
@ -187,26 +193,26 @@ class MockChangeNow extends _i1.Mock implements _i3.ChangeNow {
|
|||
#apiKey: apiKey
|
||||
}),
|
||||
returnValue: Future<
|
||||
_i2.ChangeNowResponse<_i10.ExchangeTransaction>>.value(
|
||||
_FakeChangeNowResponse_0<_i10.ExchangeTransaction>())) as _i5
|
||||
.Future<_i2.ChangeNowResponse<_i10.ExchangeTransaction>>);
|
||||
_i2.ChangeNowResponse<_i11.ExchangeTransaction>>.value(
|
||||
_FakeChangeNowResponse_0<_i11.ExchangeTransaction>())) as _i5
|
||||
.Future<_i2.ChangeNowResponse<_i11.ExchangeTransaction>>);
|
||||
@override
|
||||
_i5.Future<_i2.ChangeNowResponse<_i11.ExchangeTransactionStatus>>
|
||||
_i5.Future<_i2.ChangeNowResponse<_i12.ExchangeTransactionStatus>>
|
||||
getTransactionStatus({String? id, String? apiKey}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getTransactionStatus, [], {#id: id, #apiKey: apiKey}),
|
||||
returnValue:
|
||||
Future<_i2.ChangeNowResponse<_i11.ExchangeTransactionStatus>>.value(
|
||||
_FakeChangeNowResponse_0<_i11.ExchangeTransactionStatus>())) as _i5
|
||||
.Future<_i2.ChangeNowResponse<_i11.ExchangeTransactionStatus>>);
|
||||
Future<_i2.ChangeNowResponse<_i12.ExchangeTransactionStatus>>.value(
|
||||
_FakeChangeNowResponse_0<_i12.ExchangeTransactionStatus>())) as _i5
|
||||
.Future<_i2.ChangeNowResponse<_i12.ExchangeTransactionStatus>>);
|
||||
@override
|
||||
_i5.Future<_i2.ChangeNowResponse<List<_i12.AvailableFloatingRatePair>>>
|
||||
_i5.Future<_i2.ChangeNowResponse<List<_i13.AvailableFloatingRatePair>>>
|
||||
getAvailableFloatingRatePairs({bool? includePartners = false}) => (super
|
||||
.noSuchMethod(
|
||||
Invocation.method(#getAvailableFloatingRatePairs, [],
|
||||
{#includePartners: includePartners}),
|
||||
returnValue:
|
||||
Future<_i2.ChangeNowResponse<List<_i12.AvailableFloatingRatePair>>>.value(
|
||||
_FakeChangeNowResponse_0<List<_i12.AvailableFloatingRatePair>>())) as _i5
|
||||
.Future<_i2.ChangeNowResponse<List<_i12.AvailableFloatingRatePair>>>);
|
||||
Future<_i2.ChangeNowResponse<List<_i13.AvailableFloatingRatePair>>>.value(
|
||||
_FakeChangeNowResponse_0<List<_i13.AvailableFloatingRatePair>>())) as _i5
|
||||
.Future<_i2.ChangeNowResponse<List<_i13.AvailableFloatingRatePair>>>);
|
||||
}
|
||||
|
|
|
@ -334,6 +334,10 @@ class MockManager extends _i1.Mock implements _i11.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i8.Future<int>);
|
||||
@override
|
||||
_i8.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i8.Future<bool>);
|
||||
@override
|
||||
void addListener(_i10.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -315,6 +315,10 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -313,6 +313,10 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -9,18 +9,20 @@ import 'package:decimal/decimal.dart' as _i15;
|
|||
import 'package:http/http.dart' as _i13;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:stackwallet/models/exchange/change_now/available_floating_rate_pair.dart'
|
||||
as _i19;
|
||||
as _i20;
|
||||
import 'package:stackwallet/models/exchange/change_now/change_now_response.dart'
|
||||
as _i2;
|
||||
import 'package:stackwallet/models/exchange/change_now/cn_exchange_estimate.dart'
|
||||
as _i17;
|
||||
import 'package:stackwallet/models/exchange/change_now/currency.dart' as _i14;
|
||||
import 'package:stackwallet/models/exchange/change_now/estimated_exchange_amount.dart'
|
||||
as _i16;
|
||||
import 'package:stackwallet/models/exchange/change_now/exchange_transaction.dart'
|
||||
as _i10;
|
||||
import 'package:stackwallet/models/exchange/change_now/exchange_transaction_status.dart'
|
||||
as _i18;
|
||||
as _i19;
|
||||
import 'package:stackwallet/models/exchange/change_now/fixed_rate_market.dart'
|
||||
as _i17;
|
||||
as _i18;
|
||||
import 'package:stackwallet/pages/exchange_view/sub_widgets/exchange_rate_sheet.dart'
|
||||
as _i5;
|
||||
import 'package:stackwallet/services/change_now/change_now.dart' as _i12;
|
||||
|
@ -183,6 +185,28 @@ class MockPrefs extends _i1.Mock implements _i3.Prefs {
|
|||
super.noSuchMethod(Invocation.setter(#lastAutoBackup, lastAutoBackup),
|
||||
returnValueForMissingStub: null);
|
||||
@override
|
||||
bool get hideBlockExplorerWarning =>
|
||||
(super.noSuchMethod(Invocation.getter(#hideBlockExplorerWarning),
|
||||
returnValue: false) as bool);
|
||||
@override
|
||||
set hideBlockExplorerWarning(bool? hideBlockExplorerWarning) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#hideBlockExplorerWarning, hideBlockExplorerWarning),
|
||||
returnValueForMissingStub: null);
|
||||
@override
|
||||
bool get gotoWalletOnStartup =>
|
||||
(super.noSuchMethod(Invocation.getter(#gotoWalletOnStartup),
|
||||
returnValue: false) as bool);
|
||||
@override
|
||||
set gotoWalletOnStartup(bool? gotoWalletOnStartup) => super.noSuchMethod(
|
||||
Invocation.setter(#gotoWalletOnStartup, gotoWalletOnStartup),
|
||||
returnValueForMissingStub: null);
|
||||
@override
|
||||
set startupWalletId(String? startupWalletId) =>
|
||||
super.noSuchMethod(Invocation.setter(#startupWalletId, startupWalletId),
|
||||
returnValueForMissingStub: null);
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
|
@ -386,36 +410,40 @@ class MockChangeNow extends _i1.Mock implements _i12.ChangeNow {
|
|||
as _i7
|
||||
.Future<_i2.ChangeNowResponse<_i16.EstimatedExchangeAmount>>);
|
||||
@override
|
||||
_i7.Future<_i2.ChangeNowResponse<_i16.EstimatedExchangeAmount>>
|
||||
getEstimatedFixedRateExchangeAmount(
|
||||
_i7.Future<_i2.ChangeNowResponse<_i17.CNExchangeEstimate>>
|
||||
getEstimatedExchangeAmountV2(
|
||||
{String? fromTicker,
|
||||
String? toTicker,
|
||||
_i15.Decimal? fromAmount,
|
||||
bool? useRateId = true,
|
||||
_i17.CNEstimateType? fromOrTo,
|
||||
_i15.Decimal? amount,
|
||||
String? fromNetwork,
|
||||
String? toNetwork,
|
||||
_i17.CNFlowType? flow = _i17.CNFlowType.standard,
|
||||
String? apiKey}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#getEstimatedFixedRateExchangeAmount, [], {
|
||||
Invocation.method(#getEstimatedExchangeAmountV2, [], {
|
||||
#fromTicker: fromTicker,
|
||||
#toTicker: toTicker,
|
||||
#fromAmount: fromAmount,
|
||||
#useRateId: useRateId,
|
||||
#fromOrTo: fromOrTo,
|
||||
#amount: amount,
|
||||
#fromNetwork: fromNetwork,
|
||||
#toNetwork: toNetwork,
|
||||
#flow: flow,
|
||||
#apiKey: apiKey
|
||||
}),
|
||||
returnValue: Future<
|
||||
_i2.ChangeNowResponse<
|
||||
_i16.EstimatedExchangeAmount>>.value(
|
||||
_FakeChangeNowResponse_0<_i16.EstimatedExchangeAmount>()))
|
||||
as _i7
|
||||
.Future<_i2.ChangeNowResponse<_i16.EstimatedExchangeAmount>>);
|
||||
_i2.ChangeNowResponse<_i17.CNExchangeEstimate>>.value(
|
||||
_FakeChangeNowResponse_0<_i17.CNExchangeEstimate>()))
|
||||
as _i7.Future<_i2.ChangeNowResponse<_i17.CNExchangeEstimate>>);
|
||||
@override
|
||||
_i7.Future<_i2.ChangeNowResponse<List<_i17.FixedRateMarket>>>
|
||||
_i7.Future<_i2.ChangeNowResponse<List<_i18.FixedRateMarket>>>
|
||||
getAvailableFixedRateMarkets({String? apiKey}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getAvailableFixedRateMarkets, [], {#apiKey: apiKey}),
|
||||
returnValue:
|
||||
Future<_i2.ChangeNowResponse<List<_i17.FixedRateMarket>>>.value(
|
||||
_FakeChangeNowResponse_0<List<_i17.FixedRateMarket>>())) as _i7
|
||||
.Future<_i2.ChangeNowResponse<List<_i17.FixedRateMarket>>>);
|
||||
Future<_i2.ChangeNowResponse<List<_i18.FixedRateMarket>>>.value(
|
||||
_FakeChangeNowResponse_0<List<_i18.FixedRateMarket>>())) as _i7
|
||||
.Future<_i2.ChangeNowResponse<List<_i18.FixedRateMarket>>>);
|
||||
@override
|
||||
_i7.Future<_i2.ChangeNowResponse<_i10.ExchangeTransaction>>
|
||||
createStandardExchangeTransaction(
|
||||
|
@ -479,22 +507,22 @@ class MockChangeNow extends _i1.Mock implements _i12.ChangeNow {
|
|||
_FakeChangeNowResponse_0<_i10.ExchangeTransaction>())) as _i7
|
||||
.Future<_i2.ChangeNowResponse<_i10.ExchangeTransaction>>);
|
||||
@override
|
||||
_i7.Future<_i2.ChangeNowResponse<_i18.ExchangeTransactionStatus>>
|
||||
_i7.Future<_i2.ChangeNowResponse<_i19.ExchangeTransactionStatus>>
|
||||
getTransactionStatus({String? id, String? apiKey}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getTransactionStatus, [], {#id: id, #apiKey: apiKey}),
|
||||
returnValue:
|
||||
Future<_i2.ChangeNowResponse<_i18.ExchangeTransactionStatus>>.value(
|
||||
_FakeChangeNowResponse_0<_i18.ExchangeTransactionStatus>())) as _i7
|
||||
.Future<_i2.ChangeNowResponse<_i18.ExchangeTransactionStatus>>);
|
||||
Future<_i2.ChangeNowResponse<_i19.ExchangeTransactionStatus>>.value(
|
||||
_FakeChangeNowResponse_0<_i19.ExchangeTransactionStatus>())) as _i7
|
||||
.Future<_i2.ChangeNowResponse<_i19.ExchangeTransactionStatus>>);
|
||||
@override
|
||||
_i7.Future<_i2.ChangeNowResponse<List<_i19.AvailableFloatingRatePair>>>
|
||||
_i7.Future<_i2.ChangeNowResponse<List<_i20.AvailableFloatingRatePair>>>
|
||||
getAvailableFloatingRatePairs({bool? includePartners = false}) => (super
|
||||
.noSuchMethod(
|
||||
Invocation.method(#getAvailableFloatingRatePairs, [],
|
||||
{#includePartners: includePartners}),
|
||||
returnValue:
|
||||
Future<_i2.ChangeNowResponse<List<_i19.AvailableFloatingRatePair>>>.value(
|
||||
_FakeChangeNowResponse_0<List<_i19.AvailableFloatingRatePair>>())) as _i7
|
||||
.Future<_i2.ChangeNowResponse<List<_i19.AvailableFloatingRatePair>>>);
|
||||
Future<_i2.ChangeNowResponse<List<_i20.AvailableFloatingRatePair>>>.value(
|
||||
_FakeChangeNowResponse_0<List<_i20.AvailableFloatingRatePair>>())) as _i7
|
||||
.Future<_i2.ChangeNowResponse<List<_i20.AvailableFloatingRatePair>>>);
|
||||
}
|
||||
|
|
|
@ -483,6 +483,10 @@ class MockManager extends _i1.Mock implements _i12.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i9.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -373,6 +373,10 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i6.Future<int>);
|
||||
@override
|
||||
_i6.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i6.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -373,6 +373,10 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i6.Future<int>);
|
||||
@override
|
||||
_i6.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i6.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -373,6 +373,10 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i6.Future<int>);
|
||||
@override
|
||||
_i6.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i6.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -248,6 +248,10 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -371,6 +371,10 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i6.Future<int>);
|
||||
@override
|
||||
_i6.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i6.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -483,6 +483,10 @@ class MockManager extends _i1.Mock implements _i12.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i9.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -399,6 +399,10 @@ class MockManager extends _i1.Mock implements _i12.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i8.Future<int>);
|
||||
@override
|
||||
_i8.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i8.Future<bool>);
|
||||
@override
|
||||
void addListener(_i11.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -248,6 +248,10 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -248,6 +248,10 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -360,6 +360,10 @@ class MockManager extends _i1.Mock implements _i11.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i8.Future<int>);
|
||||
@override
|
||||
_i8.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i8.Future<bool>);
|
||||
@override
|
||||
void addListener(_i10.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -360,6 +360,10 @@ class MockManager extends _i1.Mock implements _i11.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i8.Future<int>);
|
||||
@override
|
||||
_i8.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i8.Future<bool>);
|
||||
@override
|
||||
void addListener(_i10.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -248,6 +248,10 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -248,6 +248,10 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -371,6 +371,10 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i6.Future<int>);
|
||||
@override
|
||||
_i6.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i6.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -527,6 +527,10 @@ class MockManager extends _i1.Mock implements _i15.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i8.Future<int>);
|
||||
@override
|
||||
_i8.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i8.Future<bool>);
|
||||
@override
|
||||
void addListener(_i14.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -371,6 +371,10 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i6.Future<int>);
|
||||
@override
|
||||
_i6.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i6.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -250,6 +250,10 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -249,6 +249,10 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -248,6 +248,10 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -270,6 +270,10 @@ class MockManager extends _i1.Mock implements _i8.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i10.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -250,6 +250,10 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
|
@ -232,6 +232,22 @@ class MockFiroWallet extends _i1.Mock implements _i7.FiroWallet {
|
|||
super.noSuchMethod(Invocation.method(#stopNetworkAlivePinging, []),
|
||||
returnValueForMissingStub: null);
|
||||
@override
|
||||
_i8.Future<Map<String, dynamic>> prepareSendPublic(
|
||||
{String? address, int? satoshiAmount, Map<String, dynamic>? args}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#prepareSendPublic, [], {
|
||||
#address: address,
|
||||
#satoshiAmount: satoshiAmount,
|
||||
#args: args
|
||||
}),
|
||||
returnValue:
|
||||
Future<Map<String, dynamic>>.value(<String, dynamic>{}))
|
||||
as _i8.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i8.Future<String> confirmSendPublic({dynamic txData}) => (super.noSuchMethod(
|
||||
Invocation.method(#confirmSendPublic, [], {#txData: txData}),
|
||||
returnValue: Future<String>.value('')) as _i8.Future<String>);
|
||||
@override
|
||||
_i8.Future<Map<String, dynamic>> prepareSend(
|
||||
{String? address, int? satoshiAmount, Map<String, dynamic>? args}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -257,6 +273,47 @@ class MockFiroWallet extends _i1.Mock implements _i7.FiroWallet {
|
|||
#send, [], {#toAddress: toAddress, #amount: amount, #args: args}),
|
||||
returnValue: Future<String>.value('')) as _i8.Future<String>);
|
||||
@override
|
||||
int estimateTxFee({int? vSize, 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
|
||||
}));
|
||||
@override
|
||||
_i8.Future<Map<String, dynamic>> fetchBuildTxData(
|
||||
List<_i4.UtxoObject>? utxosToUse) =>
|
||||
(super.noSuchMethod(Invocation.method(#fetchBuildTxData, [utxosToUse]),
|
||||
returnValue:
|
||||
Future<Map<String, dynamic>>.value(<String, dynamic>{}))
|
||||
as _i8.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i8.Future<Map<String, dynamic>> buildTransaction(
|
||||
{List<_i4.UtxoObject>? utxosToUse,
|
||||
Map<String, dynamic>? utxoSigningData,
|
||||
List<String>? recipients,
|
||||
List<int>? satoshiAmounts}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#buildTransaction, [], {
|
||||
#utxosToUse: utxosToUse,
|
||||
#utxoSigningData: utxoSigningData,
|
||||
#recipients: recipients,
|
||||
#satoshiAmounts: satoshiAmounts
|
||||
}),
|
||||
returnValue:
|
||||
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: Future<void>.value(),
|
||||
|
@ -293,8 +350,8 @@ class MockFiroWallet extends _i1.Mock implements _i7.FiroWallet {
|
|||
returnValue: <Map<dynamic, _i10.LelantusCoin>>[])
|
||||
as List<Map<dynamic, _i10.LelantusCoin>>);
|
||||
@override
|
||||
_i8.Future<void> autoMint() =>
|
||||
(super.noSuchMethod(Invocation.method(#autoMint, []),
|
||||
_i8.Future<void> anonymizeAllPublicFunds() =>
|
||||
(super.noSuchMethod(Invocation.method(#anonymizeAllPublicFunds, []),
|
||||
returnValue: Future<void>.value(),
|
||||
returnValueForMissingStub: Future<void>.value()) as _i8.Future<void>);
|
||||
@override
|
||||
|
@ -325,6 +382,11 @@ class MockFiroWallet extends _i1.Mock implements _i7.FiroWallet {
|
|||
returnValue: Future<void>.value(),
|
||||
returnValueForMissingStub: Future<void>.value()) as _i8.Future<void>);
|
||||
@override
|
||||
_i8.Future<void> checkChangeAddressForTransactions() => (super.noSuchMethod(
|
||||
Invocation.method(#checkChangeAddressForTransactions, []),
|
||||
returnValue: Future<void>.value(),
|
||||
returnValueForMissingStub: Future<void>.value()) as _i8.Future<void>);
|
||||
@override
|
||||
_i8.Future<void> fillAddresses(String? suppliedMnemonic,
|
||||
{int? perBatch = 50, int? numberOfThreads = 4}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -367,6 +429,11 @@ class MockFiroWallet extends _i1.Mock implements _i7.FiroWallet {
|
|||
returnValue: Future<void>.value(),
|
||||
returnValueForMissingStub: Future<void>.value()) as _i8.Future<void>);
|
||||
@override
|
||||
_i8.Future<Map<int, dynamic>> getSetDataMap(int? latestSetId) =>
|
||||
(super.noSuchMethod(Invocation.method(#getSetDataMap, [latestSetId]),
|
||||
returnValue: Future<Map<int, dynamic>>.value(<int, dynamic>{}))
|
||||
as _i8.Future<Map<int, dynamic>>);
|
||||
@override
|
||||
_i8.Future<List<Map<String, dynamic>>> fetchAnonymitySets() =>
|
||||
(super.noSuchMethod(Invocation.method(#fetchAnonymitySets, []),
|
||||
returnValue: Future<List<Map<String, dynamic>>>.value(
|
||||
|
@ -387,11 +454,11 @@ class MockFiroWallet extends _i1.Mock implements _i7.FiroWallet {
|
|||
returnValueForMissingStub: Future<void>.value()) as _i8.Future<void>);
|
||||
@override
|
||||
_i8.Future<dynamic> getCoinsToJoinSplit(int? required) =>
|
||||
(super.noSuchMethod(Invocation.method(#GetCoinsToJoinSplit, [required]),
|
||||
(super.noSuchMethod(Invocation.method(#getCoinsToJoinSplit, [required]),
|
||||
returnValue: Future<dynamic>.value()) as _i8.Future<dynamic>);
|
||||
@override
|
||||
_i8.Future<int> estimateJoinSplitFee(int? spendAmount) => (super.noSuchMethod(
|
||||
Invocation.method(#EstimateJoinSplitFee, [spendAmount]),
|
||||
Invocation.method(#estimateJoinSplitFee, [spendAmount]),
|
||||
returnValue: Future<int>.value(0)) as _i8.Future<int>);
|
||||
@override
|
||||
_i8.Future<int> estimateFeeFor(int? satoshiAmount, int? feeRate) =>
|
||||
|
@ -399,6 +466,27 @@ class MockFiroWallet extends _i1.Mock implements _i7.FiroWallet {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i8.Future<int>);
|
||||
@override
|
||||
_i8.Future<int> estimateFeeForPublic(int? satoshiAmount, int? feeRate) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#estimateFeeForPublic, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i8.Future<int>);
|
||||
@override
|
||||
int roughFeeEstimate(int? inputCount, int? outputCount, int? feeRatePerKB) =>
|
||||
(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);
|
||||
@override
|
||||
_i8.Future<List<Map<String, dynamic>>> fastFetch(List<String>? allTxHashes) =>
|
||||
(super.noSuchMethod(Invocation.method(#fastFetch, [allTxHashes]),
|
||||
returnValue: Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]))
|
||||
as _i8.Future<List<Map<String, dynamic>>>);
|
||||
@override
|
||||
_i8.Future<List<_i4.Transaction>> getJMintTransactions(
|
||||
_i6.CachedElectrumX? cachedClient,
|
||||
List<String>? transactions,
|
||||
|
@ -418,6 +506,20 @@ class MockFiroWallet extends _i1.Mock implements _i7.FiroWallet {
|
|||
returnValue:
|
||||
Future<List<_i4.Transaction>>.value(<_i4.Transaction>[]))
|
||||
as _i8.Future<List<_i4.Transaction>>);
|
||||
@override
|
||||
_i8.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i8.Future<bool>);
|
||||
@override
|
||||
_i8.Future<_i3.Decimal> availablePrivateBalance() =>
|
||||
(super.noSuchMethod(Invocation.method(#availablePrivateBalance, []),
|
||||
returnValue: Future<_i3.Decimal>.value(_FakeDecimal_1()))
|
||||
as _i8.Future<_i3.Decimal>);
|
||||
@override
|
||||
_i8.Future<_i3.Decimal> availablePublicBalance() =>
|
||||
(super.noSuchMethod(Invocation.method(#availablePublicBalance, []),
|
||||
returnValue: Future<_i3.Decimal>.value(_FakeDecimal_1()))
|
||||
as _i8.Future<_i3.Decimal>);
|
||||
}
|
||||
|
||||
/// A class which mocks [ElectrumX].
|
||||
|
|
|
@ -250,6 +250,10 @@ class MockManager extends _i1.Mock implements _i5.Manager {
|
|||
Invocation.method(#estimateFeeFor, [satoshiAmount, feeRate]),
|
||||
returnValue: Future<int>.value(0)) as _i7.Future<int>);
|
||||
@override
|
||||
_i7.Future<bool> generateNewAddress() =>
|
||||
(super.noSuchMethod(Invocation.method(#generateNewAddress, []),
|
||||
returnValue: Future<bool>.value(false)) as _i7.Future<bool>);
|
||||
@override
|
||||
void addListener(_i8.VoidCallback? listener) =>
|
||||
super.noSuchMethod(Invocation.method(#addListener, [listener]),
|
||||
returnValueForMissingStub: null);
|
||||
|
|
Loading…
Reference in a new issue