mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 11:29:23 +00:00
build runner run updates
This commit is contained in:
parent
f7cadcdc62
commit
af87ec76ef
18 changed files with 2266 additions and 3130 deletions
|
@ -164,8 +164,8 @@ enum AddressType {
|
||||||
stellar,
|
stellar,
|
||||||
tezos,
|
tezos,
|
||||||
frostMS,
|
frostMS,
|
||||||
solana,
|
p2tr,
|
||||||
p2tr;
|
solana;
|
||||||
|
|
||||||
String get readableName {
|
String get readableName {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
|
|
|
@ -268,6 +268,7 @@ const _AddresstypeEnumValueMap = {
|
||||||
'tezos': 12,
|
'tezos': 12,
|
||||||
'frostMS': 13,
|
'frostMS': 13,
|
||||||
'p2tr': 14,
|
'p2tr': 14,
|
||||||
|
'solana': 15,
|
||||||
};
|
};
|
||||||
const _AddresstypeValueEnumMap = {
|
const _AddresstypeValueEnumMap = {
|
||||||
0: AddressType.p2pkh,
|
0: AddressType.p2pkh,
|
||||||
|
@ -285,6 +286,7 @@ const _AddresstypeValueEnumMap = {
|
||||||
12: AddressType.tezos,
|
12: AddressType.tezos,
|
||||||
13: AddressType.frostMS,
|
13: AddressType.frostMS,
|
||||||
14: AddressType.p2tr,
|
14: AddressType.p2tr,
|
||||||
|
15: AddressType.solana,
|
||||||
};
|
};
|
||||||
|
|
||||||
Id _addressGetId(Address object) {
|
Id _addressGetId(Address object) {
|
||||||
|
|
|
@ -267,6 +267,7 @@ const _WalletInfomainAddressTypeEnumValueMap = {
|
||||||
'tezos': 12,
|
'tezos': 12,
|
||||||
'frostMS': 13,
|
'frostMS': 13,
|
||||||
'p2tr': 14,
|
'p2tr': 14,
|
||||||
|
'solana': 15,
|
||||||
};
|
};
|
||||||
const _WalletInfomainAddressTypeValueEnumMap = {
|
const _WalletInfomainAddressTypeValueEnumMap = {
|
||||||
0: AddressType.p2pkh,
|
0: AddressType.p2pkh,
|
||||||
|
@ -284,6 +285,7 @@ const _WalletInfomainAddressTypeValueEnumMap = {
|
||||||
12: AddressType.tezos,
|
12: AddressType.tezos,
|
||||||
13: AddressType.frostMS,
|
13: AddressType.frostMS,
|
||||||
14: AddressType.p2tr,
|
14: AddressType.p2tr,
|
||||||
|
15: AddressType.solana,
|
||||||
};
|
};
|
||||||
|
|
||||||
Id _walletInfoGetId(WalletInfo object) {
|
Id _walletInfoGetId(WalletInfo object) {
|
||||||
|
|
|
@ -3,19 +3,21 @@
|
||||||
// Do not manually edit this file.
|
// Do not manually edit this file.
|
||||||
|
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i5;
|
import 'dart:async' as _i6;
|
||||||
import 'dart:ui' as _i11;
|
import 'dart:ui' as _i12;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i2;
|
import 'package:decimal/decimal.dart' as _i3;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
|
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i5;
|
||||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i9;
|
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i10;
|
||||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i8;
|
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i9;
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i10;
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i11;
|
||||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i7;
|
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i8;
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i6;
|
import 'package:stackwallet/utilities/prefs.dart' as _i7;
|
||||||
|
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||||
|
as _i2;
|
||||||
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart'
|
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart'
|
||||||
as _i3;
|
as _i4;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -28,8 +30,9 @@ import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_i
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
|
||||||
class _FakeDuration_0 extends _i1.SmartFake implements Duration {
|
class _FakeCryptoCurrency_0 extends _i1.SmartFake
|
||||||
_FakeDuration_0(
|
implements _i2.CryptoCurrency {
|
||||||
|
_FakeCryptoCurrency_0(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -38,8 +41,8 @@ class _FakeDuration_0 extends _i1.SmartFake implements Duration {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
|
class _FakeDuration_1 extends _i1.SmartFake implements Duration {
|
||||||
_FakeDecimal_1(
|
_FakeDuration_1(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -48,8 +51,18 @@ class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeFusionInfo_2 extends _i1.SmartFake implements _i3.FusionInfo {
|
class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
||||||
_FakeFusionInfo_2(
|
_FakeDecimal_2(
|
||||||
|
Object parent,
|
||||||
|
Invocation parentInvocation,
|
||||||
|
) : super(
|
||||||
|
parent,
|
||||||
|
parentInvocation,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
class _FakeFusionInfo_3 extends _i1.SmartFake implements _i4.FusionInfo {
|
||||||
|
_FakeFusionInfo_3(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -61,13 +74,21 @@ class _FakeFusionInfo_2 extends _i1.SmartFake implements _i3.FusionInfo {
|
||||||
/// A class which mocks [ElectrumXClient].
|
/// A class which mocks [ElectrumXClient].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
MockElectrumXClient() {
|
MockElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
_i2.CryptoCurrency get cryptoCurrency => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#cryptoCurrency),
|
||||||
|
returnValue: _FakeCryptoCurrency_0(
|
||||||
|
this,
|
||||||
|
Invocation.getter(#cryptoCurrency),
|
||||||
|
),
|
||||||
|
) as _i2.CryptoCurrency);
|
||||||
|
@override
|
||||||
|
set failovers(List<_i5.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#failovers,
|
#failovers,
|
||||||
_failovers,
|
_failovers,
|
||||||
|
@ -91,7 +112,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||||
returnValue: _FakeDuration_0(
|
returnValue: _FakeDuration_1(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||||
),
|
),
|
||||||
|
@ -112,16 +133,16 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
_i6.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#checkElectrumAdapter,
|
#closeAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i6.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i6.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<dynamic> request({
|
_i6.Future<dynamic> request({
|
||||||
required String? command,
|
required String? command,
|
||||||
List<dynamic>? args = const [],
|
List<dynamic>? args = const [],
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -140,10 +161,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestTimeout: requestTimeout,
|
#requestTimeout: requestTimeout,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<dynamic>.value(),
|
returnValue: _i6.Future<dynamic>.value(),
|
||||||
) as _i5.Future<dynamic>);
|
) as _i6.Future<dynamic>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<dynamic>> batchRequest({
|
_i6.Future<List<dynamic>> batchRequest({
|
||||||
required String? command,
|
required String? command,
|
||||||
required List<dynamic>? args,
|
required List<dynamic>? args,
|
||||||
Duration? requestTimeout = const Duration(seconds: 60),
|
Duration? requestTimeout = const Duration(seconds: 60),
|
||||||
|
@ -160,10 +181,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<dynamic>>.value(<dynamic>[]),
|
returnValue: _i6.Future<List<dynamic>>.value(<dynamic>[]),
|
||||||
) as _i5.Future<List<dynamic>>);
|
) as _i6.Future<List<dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<bool> ping({
|
_i6.Future<bool> ping({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
int? retryCount = 1,
|
int? retryCount = 1,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -176,10 +197,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#retryCount: retryCount,
|
#retryCount: retryCount,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
returnValue: _i6.Future<bool>.value(false),
|
||||||
) as _i5.Future<bool>);
|
) as _i6.Future<bool>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
_i6.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getBlockHeadTip,
|
#getBlockHeadTip,
|
||||||
|
@ -187,10 +208,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i6.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
_i6.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getServerFeatures,
|
#getServerFeatures,
|
||||||
|
@ -198,10 +219,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i6.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<String> broadcastTransaction({
|
_i6.Future<String> broadcastTransaction({
|
||||||
required String? rawTx,
|
required String? rawTx,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -214,10 +235,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<String>.value(''),
|
returnValue: _i6.Future<String>.value(''),
|
||||||
) as _i5.Future<String>);
|
) as _i6.Future<String>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getBalance({
|
_i6.Future<Map<String, dynamic>> getBalance({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -231,10 +252,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i6.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<Map<String, dynamic>>> getHistory({
|
_i6.Future<List<Map<String, dynamic>>> getHistory({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -247,11 +268,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
_i6.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -259,11 +280,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i5.Future<List<List<Map<String, dynamic>>>>);
|
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<Map<String, dynamic>>> getUTXOs({
|
_i6.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -276,11 +297,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
_i6.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -288,11 +309,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i5.Future<List<List<Map<String, dynamic>>>>);
|
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getTransaction({
|
_i6.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -308,10 +329,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i6.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
_i6.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
||||||
String? groupId = r'1',
|
String? groupId = r'1',
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -327,10 +348,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i6.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<dynamic> getLelantusMintData({
|
_i6.Future<dynamic> getLelantusMintData({
|
||||||
dynamic mints,
|
dynamic mints,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -343,10 +364,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<dynamic>.value(),
|
returnValue: _i6.Future<dynamic>.value(),
|
||||||
) as _i5.Future<dynamic>);
|
) as _i6.Future<dynamic>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
_i6.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -360,20 +381,20 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i6.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
_i6.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getLelantusLatestCoinId,
|
#getLelantusLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<int>.value(0),
|
returnValue: _i6.Future<int>.value(0),
|
||||||
) as _i5.Future<int>);
|
) as _i6.Future<int>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
_i6.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||||
String? coinGroupId = r'1',
|
String? coinGroupId = r'1',
|
||||||
String? startBlockHash = r'',
|
String? startBlockHash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -389,10 +410,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i6.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Set<String>> getSparkUsedCoinsTags({
|
_i6.Future<Set<String>> getSparkUsedCoinsTags({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -405,10 +426,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<Set<String>>.value(<String>{}),
|
returnValue: _i6.Future<Set<String>>.value(<String>{}),
|
||||||
) as _i5.Future<Set<String>>);
|
) as _i6.Future<Set<String>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
_i6.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required List<String>? sparkCoinHashes,
|
required List<String>? sparkCoinHashes,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -421,21 +442,21 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#sparkCoinHashes: sparkCoinHashes,
|
#sparkCoinHashes: sparkCoinHashes,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i6.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
_i6.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getSparkLatestCoinId,
|
#getSparkLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<int>.value(0),
|
returnValue: _i6.Future<int>.value(0),
|
||||||
) as _i5.Future<int>);
|
) as _i6.Future<int>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
_i6.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFeeRate,
|
#getFeeRate,
|
||||||
|
@ -443,10 +464,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i6.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> estimateFee({
|
_i6.Future<_i3.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -459,7 +480,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
returnValue: _i6.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -470,15 +491,15 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i6.Future<_i3.Decimal>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
returnValue: _i6.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -486,13 +507,13 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i6.Future<_i3.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [Prefs].
|
/// A class which mocks [Prefs].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockPrefs extends _i1.Mock implements _i6.Prefs {
|
class MockPrefs extends _i1.Mock implements _i7.Prefs {
|
||||||
MockPrefs() {
|
MockPrefs() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -548,12 +569,12 @@ class MockPrefs extends _i1.Mock implements _i6.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i7.SyncingType get syncType => (super.noSuchMethod(
|
_i8.SyncingType get syncType => (super.noSuchMethod(
|
||||||
Invocation.getter(#syncType),
|
Invocation.getter(#syncType),
|
||||||
returnValue: _i7.SyncingType.currentWalletOnly,
|
returnValue: _i8.SyncingType.currentWalletOnly,
|
||||||
) as _i7.SyncingType);
|
) as _i8.SyncingType);
|
||||||
@override
|
@override
|
||||||
set syncType(_i7.SyncingType? syncType) => super.noSuchMethod(
|
set syncType(_i8.SyncingType? syncType) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#syncType,
|
#syncType,
|
||||||
syncType,
|
syncType,
|
||||||
|
@ -712,12 +733,12 @@ class MockPrefs extends _i1.Mock implements _i6.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i8.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
_i9.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||||
Invocation.getter(#backupFrequencyType),
|
Invocation.getter(#backupFrequencyType),
|
||||||
returnValue: _i8.BackupFrequencyType.everyTenMinutes,
|
returnValue: _i9.BackupFrequencyType.everyTenMinutes,
|
||||||
) as _i8.BackupFrequencyType);
|
) as _i9.BackupFrequencyType);
|
||||||
@override
|
@override
|
||||||
set backupFrequencyType(_i8.BackupFrequencyType? backupFrequencyType) =>
|
set backupFrequencyType(_i9.BackupFrequencyType? backupFrequencyType) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#backupFrequencyType,
|
#backupFrequencyType,
|
||||||
|
@ -863,6 +884,19 @@ class MockPrefs extends _i1.Mock implements _i6.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
|
bool get solanaEnabled => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#solanaEnabled),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
|
set solanaEnabled(bool? solanaEnabled) => super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#solanaEnabled,
|
||||||
|
solanaEnabled,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
bool get frostEnabled => (super.noSuchMethod(
|
bool get frostEnabled => (super.noSuchMethod(
|
||||||
Invocation.getter(#frostEnabled),
|
Invocation.getter(#frostEnabled),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
|
@ -881,61 +915,61 @@ class MockPrefs extends _i1.Mock implements _i6.Prefs {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> init() => (super.noSuchMethod(
|
_i6.Future<void> init() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#init,
|
#init,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i6.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i6.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
_i6.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#incrementCurrentNotificationIndex,
|
#incrementCurrentNotificationIndex,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i6.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i6.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
_i6.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#isExternalCallsSet,
|
#isExternalCallsSet,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
returnValue: _i6.Future<bool>.value(false),
|
||||||
) as _i5.Future<bool>);
|
) as _i6.Future<bool>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
_i6.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#saveUserID,
|
#saveUserID,
|
||||||
[userId],
|
[userId],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i6.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i6.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
_i6.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#saveSignupEpoch,
|
#saveSignupEpoch,
|
||||||
[signupEpoch],
|
[signupEpoch],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i6.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i6.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i9.AmountUnit amountUnit(_i10.Coin? coin) => (super.noSuchMethod(
|
_i10.AmountUnit amountUnit(_i11.Coin? coin) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#amountUnit,
|
#amountUnit,
|
||||||
[coin],
|
[coin],
|
||||||
),
|
),
|
||||||
returnValue: _i9.AmountUnit.normal,
|
returnValue: _i10.AmountUnit.normal,
|
||||||
) as _i9.AmountUnit);
|
) as _i10.AmountUnit);
|
||||||
@override
|
@override
|
||||||
void updateAmountUnit({
|
void updateAmountUnit({
|
||||||
required _i10.Coin? coin,
|
required _i11.Coin? coin,
|
||||||
required _i9.AmountUnit? amountUnit,
|
required _i10.AmountUnit? amountUnit,
|
||||||
}) =>
|
}) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -949,7 +983,7 @@ class MockPrefs extends _i1.Mock implements _i6.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
int maxDecimals(_i10.Coin? coin) => (super.noSuchMethod(
|
int maxDecimals(_i11.Coin? coin) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#maxDecimals,
|
#maxDecimals,
|
||||||
[coin],
|
[coin],
|
||||||
|
@ -958,7 +992,7 @@ class MockPrefs extends _i1.Mock implements _i6.Prefs {
|
||||||
) as int);
|
) as int);
|
||||||
@override
|
@override
|
||||||
void updateMaxDecimals({
|
void updateMaxDecimals({
|
||||||
required _i10.Coin? coin,
|
required _i11.Coin? coin,
|
||||||
required int? maxDecimals,
|
required int? maxDecimals,
|
||||||
}) =>
|
}) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
|
@ -973,23 +1007,23 @@ class MockPrefs extends _i1.Mock implements _i6.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
_i3.FusionInfo getFusionServerInfo(_i10.Coin? coin) => (super.noSuchMethod(
|
_i4.FusionInfo getFusionServerInfo(_i11.Coin? coin) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFusionServerInfo,
|
#getFusionServerInfo,
|
||||||
[coin],
|
[coin],
|
||||||
),
|
),
|
||||||
returnValue: _FakeFusionInfo_2(
|
returnValue: _FakeFusionInfo_3(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFusionServerInfo,
|
#getFusionServerInfo,
|
||||||
[coin],
|
[coin],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
) as _i3.FusionInfo);
|
) as _i4.FusionInfo);
|
||||||
@override
|
@override
|
||||||
void setFusionServerInfo(
|
void setFusionServerInfo(
|
||||||
_i10.Coin? coin,
|
_i11.Coin? coin,
|
||||||
_i3.FusionInfo? fusionServerInfo,
|
_i4.FusionInfo? fusionServerInfo,
|
||||||
) =>
|
) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -1002,7 +1036,7 @@ class MockPrefs extends _i1.Mock implements _i6.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
void addListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
void addListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addListener,
|
#addListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
@ -1010,7 +1044,7 @@ class MockPrefs extends _i1.Mock implements _i6.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
void removeListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#removeListener,
|
#removeListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,771 +0,0 @@
|
||||||
// Mocks generated by Mockito 5.4.2 from annotations
|
|
||||||
// in stackwallet/test/electrumx_test.dart.
|
|
||||||
// Do not manually edit this file.
|
|
||||||
|
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
|
||||||
import 'dart:async' as _i5;
|
|
||||||
import 'dart:io' as _i4;
|
|
||||||
import 'dart:ui' as _i11;
|
|
||||||
|
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
|
||||||
import 'package:stackwallet/electrumx_rpc/rpc.dart' as _i2;
|
|
||||||
import 'package:stackwallet/services/event_bus/events/global/tor_connection_status_changed_event.dart'
|
|
||||||
as _i13;
|
|
||||||
import 'package:stackwallet/services/tor_service.dart' as _i12;
|
|
||||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i9;
|
|
||||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i8;
|
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i10;
|
|
||||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i7;
|
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i6;
|
|
||||||
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cash_fusion_interface.dart'
|
|
||||||
as _i3;
|
|
||||||
import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i14;
|
|
||||||
|
|
||||||
// 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 _FakeDuration_0 extends _i1.SmartFake implements Duration {
|
|
||||||
_FakeDuration_0(
|
|
||||||
Object parent,
|
|
||||||
Invocation parentInvocation,
|
|
||||||
) : super(
|
|
||||||
parent,
|
|
||||||
parentInvocation,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
class _FakeJsonRPCResponse_1 extends _i1.SmartFake
|
|
||||||
implements _i2.JsonRPCResponse {
|
|
||||||
_FakeJsonRPCResponse_1(
|
|
||||||
Object parent,
|
|
||||||
Invocation parentInvocation,
|
|
||||||
) : super(
|
|
||||||
parent,
|
|
||||||
parentInvocation,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
class _FakeFusionInfo_2 extends _i1.SmartFake implements _i3.FusionInfo {
|
|
||||||
_FakeFusionInfo_2(
|
|
||||||
Object parent,
|
|
||||||
Invocation parentInvocation,
|
|
||||||
) : super(
|
|
||||||
parent,
|
|
||||||
parentInvocation,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
class _FakeInternetAddress_3 extends _i1.SmartFake
|
|
||||||
implements _i4.InternetAddress {
|
|
||||||
_FakeInternetAddress_3(
|
|
||||||
Object parent,
|
|
||||||
Invocation parentInvocation,
|
|
||||||
) : super(
|
|
||||||
parent,
|
|
||||||
parentInvocation,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A class which mocks [JsonRPC].
|
|
||||||
///
|
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
|
||||||
class MockJsonRPC extends _i1.Mock implements _i2.JsonRPC {
|
|
||||||
MockJsonRPC() {
|
|
||||||
_i1.throwOnMissingStub(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool get useSSL => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#useSSL),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@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
|
|
||||||
Duration get connectionTimeout => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#connectionTimeout),
|
|
||||||
returnValue: _FakeDuration_0(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#connectionTimeout),
|
|
||||||
),
|
|
||||||
) as Duration);
|
|
||||||
@override
|
|
||||||
set proxyInfo(({_i4.InternetAddress host, int port})? _proxyInfo) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#proxyInfo,
|
|
||||||
_proxyInfo,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
_i5.Future<_i2.JsonRPCResponse> request(
|
|
||||||
String? jsonRpcRequest,
|
|
||||||
Duration? requestTimeout,
|
|
||||||
) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#request,
|
|
||||||
[
|
|
||||||
jsonRpcRequest,
|
|
||||||
requestTimeout,
|
|
||||||
],
|
|
||||||
),
|
|
||||||
returnValue:
|
|
||||||
_i5.Future<_i2.JsonRPCResponse>.value(_FakeJsonRPCResponse_1(
|
|
||||||
this,
|
|
||||||
Invocation.method(
|
|
||||||
#request,
|
|
||||||
[
|
|
||||||
jsonRpcRequest,
|
|
||||||
requestTimeout,
|
|
||||||
],
|
|
||||||
),
|
|
||||||
)),
|
|
||||||
) as _i5.Future<_i2.JsonRPCResponse>);
|
|
||||||
@override
|
|
||||||
_i5.Future<void> disconnect({
|
|
||||||
required String? reason,
|
|
||||||
bool? ignoreMutex = false,
|
|
||||||
}) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#disconnect,
|
|
||||||
[],
|
|
||||||
{
|
|
||||||
#reason: reason,
|
|
||||||
#ignoreMutex: ignoreMutex,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
returnValue: _i5.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
|
||||||
) as _i5.Future<void>);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A class which mocks [Prefs].
|
|
||||||
///
|
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
|
||||||
class MockPrefs extends _i1.Mock implements _i6.Prefs {
|
|
||||||
MockPrefs() {
|
|
||||||
_i1.throwOnMissingStub(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool get isInitialized => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#isInitialized),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
int get lastUnlockedTimeout => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#lastUnlockedTimeout),
|
|
||||||
returnValue: 0,
|
|
||||||
) as int);
|
|
||||||
@override
|
|
||||||
set lastUnlockedTimeout(int? lastUnlockedTimeout) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#lastUnlockedTimeout,
|
|
||||||
lastUnlockedTimeout,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
int get lastUnlocked => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#lastUnlocked),
|
|
||||||
returnValue: 0,
|
|
||||||
) as int);
|
|
||||||
@override
|
|
||||||
set lastUnlocked(int? lastUnlocked) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#lastUnlocked,
|
|
||||||
lastUnlocked,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
int get currentNotificationId => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#currentNotificationId),
|
|
||||||
returnValue: 0,
|
|
||||||
) as int);
|
|
||||||
@override
|
|
||||||
List<String> get walletIdsSyncOnStartup => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#walletIdsSyncOnStartup),
|
|
||||||
returnValue: <String>[],
|
|
||||||
) as List<String>);
|
|
||||||
@override
|
|
||||||
set walletIdsSyncOnStartup(List<String>? walletIdsSyncOnStartup) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#walletIdsSyncOnStartup,
|
|
||||||
walletIdsSyncOnStartup,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
_i7.SyncingType get syncType => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#syncType),
|
|
||||||
returnValue: _i7.SyncingType.currentWalletOnly,
|
|
||||||
) as _i7.SyncingType);
|
|
||||||
@override
|
|
||||||
set syncType(_i7.SyncingType? syncType) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#syncType,
|
|
||||||
syncType,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
bool get wifiOnly => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#wifiOnly),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
set wifiOnly(bool? wifiOnly) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#wifiOnly,
|
|
||||||
wifiOnly,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
bool get showFavoriteWallets => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#showFavoriteWallets),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
set showFavoriteWallets(bool? showFavoriteWallets) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#showFavoriteWallets,
|
|
||||||
showFavoriteWallets,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
String get language => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#language),
|
|
||||||
returnValue: '',
|
|
||||||
) as String);
|
|
||||||
@override
|
|
||||||
set language(String? newLanguage) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#language,
|
|
||||||
newLanguage,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
String get currency => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#currency),
|
|
||||||
returnValue: '',
|
|
||||||
) as String);
|
|
||||||
@override
|
|
||||||
set currency(String? newCurrency) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#currency,
|
|
||||||
newCurrency,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
bool get randomizePIN => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#randomizePIN),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
set randomizePIN(bool? randomizePIN) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#randomizePIN,
|
|
||||||
randomizePIN,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
bool get useBiometrics => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#useBiometrics),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
set useBiometrics(bool? useBiometrics) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#useBiometrics,
|
|
||||||
useBiometrics,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
bool get hasPin => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#hasPin),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
set hasPin(bool? hasPin) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#hasPin,
|
|
||||||
hasPin,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
int get familiarity => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#familiarity),
|
|
||||||
returnValue: 0,
|
|
||||||
) as int);
|
|
||||||
@override
|
|
||||||
set familiarity(int? familiarity) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#familiarity,
|
|
||||||
familiarity,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
bool get torKillSwitch => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#torKillSwitch),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
set torKillSwitch(bool? torKillswitch) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#torKillSwitch,
|
|
||||||
torKillswitch,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
bool get showTestNetCoins => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#showTestNetCoins),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
set showTestNetCoins(bool? showTestNetCoins) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#showTestNetCoins,
|
|
||||||
showTestNetCoins,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
bool get isAutoBackupEnabled => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#isAutoBackupEnabled),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
set isAutoBackupEnabled(bool? isAutoBackupEnabled) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#isAutoBackupEnabled,
|
|
||||||
isAutoBackupEnabled,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
set autoBackupLocation(String? autoBackupLocation) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#autoBackupLocation,
|
|
||||||
autoBackupLocation,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
_i8.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#backupFrequencyType),
|
|
||||||
returnValue: _i8.BackupFrequencyType.everyTenMinutes,
|
|
||||||
) as _i8.BackupFrequencyType);
|
|
||||||
@override
|
|
||||||
set backupFrequencyType(_i8.BackupFrequencyType? backupFrequencyType) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#backupFrequencyType,
|
|
||||||
backupFrequencyType,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
set lastAutoBackup(DateTime? lastAutoBackup) => 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 externalCalls => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#externalCalls),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
set externalCalls(bool? externalCalls) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#externalCalls,
|
|
||||||
externalCalls,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
bool get enableCoinControl => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#enableCoinControl),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#enableCoinControl,
|
|
||||||
enableCoinControl,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
bool get enableSystemBrightness => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#enableSystemBrightness),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
set enableSystemBrightness(bool? enableSystemBrightness) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#enableSystemBrightness,
|
|
||||||
enableSystemBrightness,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
String get themeId => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#themeId),
|
|
||||||
returnValue: '',
|
|
||||||
) as String);
|
|
||||||
@override
|
|
||||||
set themeId(String? themeId) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#themeId,
|
|
||||||
themeId,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
String get systemBrightnessLightThemeId => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#systemBrightnessLightThemeId),
|
|
||||||
returnValue: '',
|
|
||||||
) as String);
|
|
||||||
@override
|
|
||||||
set systemBrightnessLightThemeId(String? systemBrightnessLightThemeId) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#systemBrightnessLightThemeId,
|
|
||||||
systemBrightnessLightThemeId,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#systemBrightnessDarkThemeId),
|
|
||||||
returnValue: '',
|
|
||||||
) as String);
|
|
||||||
@override
|
|
||||||
set systemBrightnessDarkThemeId(String? systemBrightnessDarkThemeId) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#systemBrightnessDarkThemeId,
|
|
||||||
systemBrightnessDarkThemeId,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
bool get useTor => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#useTor),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
set useTor(bool? useTor) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#useTor,
|
|
||||||
useTor,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
bool get frostEnabled => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#frostEnabled),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
set frostEnabled(bool? frostEnabled) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#frostEnabled,
|
|
||||||
frostEnabled,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
bool get hasListeners => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#hasListeners),
|
|
||||||
returnValue: false,
|
|
||||||
) as bool);
|
|
||||||
@override
|
|
||||||
_i5.Future<void> init() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#init,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i5.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
|
||||||
) as _i5.Future<void>);
|
|
||||||
@override
|
|
||||||
_i5.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#incrementCurrentNotificationIndex,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i5.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
|
||||||
) as _i5.Future<void>);
|
|
||||||
@override
|
|
||||||
_i5.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#isExternalCallsSet,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
|
||||||
) as _i5.Future<bool>);
|
|
||||||
@override
|
|
||||||
_i5.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#saveUserID,
|
|
||||||
[userId],
|
|
||||||
),
|
|
||||||
returnValue: _i5.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
|
||||||
) as _i5.Future<void>);
|
|
||||||
@override
|
|
||||||
_i5.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#saveSignupEpoch,
|
|
||||||
[signupEpoch],
|
|
||||||
),
|
|
||||||
returnValue: _i5.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
|
||||||
) as _i5.Future<void>);
|
|
||||||
@override
|
|
||||||
_i9.AmountUnit amountUnit(_i10.Coin? coin) => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#amountUnit,
|
|
||||||
[coin],
|
|
||||||
),
|
|
||||||
returnValue: _i9.AmountUnit.normal,
|
|
||||||
) as _i9.AmountUnit);
|
|
||||||
@override
|
|
||||||
void updateAmountUnit({
|
|
||||||
required _i10.Coin? coin,
|
|
||||||
required _i9.AmountUnit? amountUnit,
|
|
||||||
}) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#updateAmountUnit,
|
|
||||||
[],
|
|
||||||
{
|
|
||||||
#coin: coin,
|
|
||||||
#amountUnit: amountUnit,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
int maxDecimals(_i10.Coin? coin) => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#maxDecimals,
|
|
||||||
[coin],
|
|
||||||
),
|
|
||||||
returnValue: 0,
|
|
||||||
) as int);
|
|
||||||
@override
|
|
||||||
void updateMaxDecimals({
|
|
||||||
required _i10.Coin? coin,
|
|
||||||
required int? maxDecimals,
|
|
||||||
}) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#updateMaxDecimals,
|
|
||||||
[],
|
|
||||||
{
|
|
||||||
#coin: coin,
|
|
||||||
#maxDecimals: maxDecimals,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
_i3.FusionInfo getFusionServerInfo(_i10.Coin? coin) => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getFusionServerInfo,
|
|
||||||
[coin],
|
|
||||||
),
|
|
||||||
returnValue: _FakeFusionInfo_2(
|
|
||||||
this,
|
|
||||||
Invocation.method(
|
|
||||||
#getFusionServerInfo,
|
|
||||||
[coin],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
) as _i3.FusionInfo);
|
|
||||||
@override
|
|
||||||
void setFusionServerInfo(
|
|
||||||
_i10.Coin? coin,
|
|
||||||
_i3.FusionInfo? fusionServerInfo,
|
|
||||||
) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#setFusionServerInfo,
|
|
||||||
[
|
|
||||||
coin,
|
|
||||||
fusionServerInfo,
|
|
||||||
],
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
void addListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#addListener,
|
|
||||||
[listener],
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
void removeListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#removeListener,
|
|
||||||
[listener],
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
void dispose() => super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#dispose,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
void notifyListeners() => super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#notifyListeners,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A class which mocks [TorService].
|
|
||||||
///
|
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
|
||||||
class MockTorService extends _i1.Mock implements _i12.TorService {
|
|
||||||
MockTorService() {
|
|
||||||
_i1.throwOnMissingStub(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i13.TorConnectionStatus get status => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#status),
|
|
||||||
returnValue: _i13.TorConnectionStatus.disconnected,
|
|
||||||
) as _i13.TorConnectionStatus);
|
|
||||||
@override
|
|
||||||
({_i4.InternetAddress host, int port}) getProxyInfo() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getProxyInfo,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: (
|
|
||||||
host: _FakeInternetAddress_3(
|
|
||||||
this,
|
|
||||||
Invocation.method(
|
|
||||||
#getProxyInfo,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
port: 0
|
|
||||||
),
|
|
||||||
) as ({_i4.InternetAddress host, int port}));
|
|
||||||
@override
|
|
||||||
void init({
|
|
||||||
required String? torDataDirPath,
|
|
||||||
_i14.Tor? mockableOverride,
|
|
||||||
}) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#init,
|
|
||||||
[],
|
|
||||||
{
|
|
||||||
#torDataDirPath: torDataDirPath,
|
|
||||||
#mockableOverride: mockableOverride,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
_i5.Future<void> start() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#start,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i5.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
|
||||||
) as _i5.Future<void>);
|
|
||||||
@override
|
|
||||||
_i5.Future<void> disable() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#disable,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i5.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
|
||||||
) as _i5.Future<void>);
|
|
||||||
}
|
|
|
@ -1,67 +0,0 @@
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:stackwallet/electrumx_rpc/rpc.dart';
|
|
||||||
import 'package:stackwallet/utilities/default_nodes.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
test("REQUIRES INTERNET - JsonRPC.request success", () async {
|
|
||||||
final jsonRPC = JsonRPC(
|
|
||||||
host: DefaultNodes.bitcoin.host,
|
|
||||||
port: DefaultNodes.bitcoin.port,
|
|
||||||
useSSL: true,
|
|
||||||
connectionTimeout: const Duration(seconds: 40),
|
|
||||||
proxyInfo: null, // TODO test for proxyInfo
|
|
||||||
);
|
|
||||||
|
|
||||||
const jsonRequestString =
|
|
||||||
'{"jsonrpc": "2.0", "id": "some id","method": "server.ping","params": []}';
|
|
||||||
final result = await jsonRPC.request(
|
|
||||||
jsonRequestString,
|
|
||||||
const Duration(seconds: 1),
|
|
||||||
);
|
|
||||||
|
|
||||||
expect(result.data, {"jsonrpc": "2.0", "result": null, "id": "some id"});
|
|
||||||
});
|
|
||||||
|
|
||||||
test("JsonRPC.request fails due to SocketException", () async {
|
|
||||||
final jsonRPC = JsonRPC(
|
|
||||||
host: "some.bad.address.thingdsfsdfsdaf",
|
|
||||||
port: 3000,
|
|
||||||
connectionTimeout: const Duration(seconds: 10),
|
|
||||||
proxyInfo: null,
|
|
||||||
);
|
|
||||||
|
|
||||||
const jsonRequestString =
|
|
||||||
'{"jsonrpc": "2.0", "id": "some id","method": "server.ping","params": []}';
|
|
||||||
|
|
||||||
expect(
|
|
||||||
() => jsonRPC.request(
|
|
||||||
jsonRequestString,
|
|
||||||
const Duration(seconds: 1),
|
|
||||||
),
|
|
||||||
throwsA(isA<SocketException>()));
|
|
||||||
});
|
|
||||||
|
|
||||||
test("JsonRPC.request fails due to connection timeout", () async {
|
|
||||||
final jsonRPC = JsonRPC(
|
|
||||||
host: "8.8.8.8",
|
|
||||||
port: 3000,
|
|
||||||
useSSL: false,
|
|
||||||
connectionTimeout: const Duration(seconds: 1),
|
|
||||||
proxyInfo: null,
|
|
||||||
);
|
|
||||||
|
|
||||||
const jsonRequestString =
|
|
||||||
'{"jsonrpc": "2.0", "id": "some id","method": "server.ping","params": []}';
|
|
||||||
|
|
||||||
await expectLater(
|
|
||||||
jsonRPC.request(
|
|
||||||
jsonRequestString,
|
|
||||||
const Duration(seconds: 1),
|
|
||||||
),
|
|
||||||
throwsA(isA<Exception>()
|
|
||||||
.having((e) => e.toString(), 'message', contains("Request timeout"))),
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
|
|
@ -978,6 +978,19 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
|
bool get solanaEnabled => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#solanaEnabled),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
|
set solanaEnabled(bool? solanaEnabled) => super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#solanaEnabled,
|
||||||
|
solanaEnabled,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
bool get frostEnabled => (super.noSuchMethod(
|
bool get frostEnabled => (super.noSuchMethod(
|
||||||
Invocation.getter(#frostEnabled),
|
Invocation.getter(#frostEnabled),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
|
|
|
@ -454,6 +454,19 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
|
bool get solanaEnabled => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#solanaEnabled),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
|
set solanaEnabled(bool? solanaEnabled) => super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#solanaEnabled,
|
||||||
|
solanaEnabled,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
bool get frostEnabled => (super.noSuchMethod(
|
bool get frostEnabled => (super.noSuchMethod(
|
||||||
Invocation.getter(#frostEnabled),
|
Invocation.getter(#frostEnabled),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
|
|
|
@ -3,18 +3,17 @@
|
||||||
// Do not manually edit this file.
|
// Do not manually edit this file.
|
||||||
|
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i5;
|
import 'dart:async' as _i4;
|
||||||
import 'dart:ui' as _i11;
|
import 'dart:ui' as _i10;
|
||||||
|
|
||||||
import 'package:electrum_adapter/electrum_adapter.dart' as _i3;
|
import 'package:local_auth/auth_strings.dart' as _i7;
|
||||||
import 'package:local_auth/auth_strings.dart' as _i8;
|
import 'package:local_auth/local_auth.dart' as _i6;
|
||||||
import 'package:local_auth/local_auth.dart' as _i7;
|
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i4;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i3;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i2;
|
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i2;
|
||||||
import 'package:stackwallet/services/wallets_service.dart' as _i10;
|
import 'package:stackwallet/services/wallets_service.dart' as _i9;
|
||||||
import 'package:stackwallet/utilities/biometrics.dart' as _i9;
|
import 'package:stackwallet/utilities/biometrics.dart' as _i8;
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i5;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -38,22 +37,11 @@ class _FakeElectrumXClient_0 extends _i1.SmartFake
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumClient_1 extends _i1.SmartFake
|
|
||||||
implements _i3.ElectrumClient {
|
|
||||||
_FakeElectrumClient_1(
|
|
||||||
Object parent,
|
|
||||||
Invocation parentInvocation,
|
|
||||||
) : super(
|
|
||||||
parent,
|
|
||||||
parentInvocation,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A class which mocks [CachedElectrumXClient].
|
/// A class which mocks [CachedElectrumXClient].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockCachedElectrumXClient extends _i1.Mock
|
class MockCachedElectrumXClient extends _i1.Mock
|
||||||
implements _i4.CachedElectrumXClient {
|
implements _i3.CachedElectrumXClient {
|
||||||
MockCachedElectrumXClient() {
|
MockCachedElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -67,37 +55,10 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
),
|
),
|
||||||
) as _i2.ElectrumXClient);
|
) as _i2.ElectrumXClient);
|
||||||
@override
|
@override
|
||||||
_i3.ElectrumClient get electrumAdapterClient => (super.noSuchMethod(
|
_i4.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
Invocation.getter(#electrumAdapterClient),
|
|
||||||
returnValue: _FakeElectrumClient_1(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#electrumAdapterClient),
|
|
||||||
),
|
|
||||||
) as _i3.ElectrumClient);
|
|
||||||
@override
|
|
||||||
set electrumAdapterClient(_i3.ElectrumClient? _electrumAdapterClient) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#electrumAdapterClient,
|
|
||||||
_electrumAdapterClient,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
_i5.Future<_i3.ElectrumClient> Function() get electrumAdapterUpdateCallback =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.getter(#electrumAdapterUpdateCallback),
|
|
||||||
returnValue: () =>
|
|
||||||
_i5.Future<_i3.ElectrumClient>.value(_FakeElectrumClient_1(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#electrumAdapterUpdateCallback),
|
|
||||||
)),
|
|
||||||
) as _i5.Future<_i3.ElectrumClient> Function());
|
|
||||||
@override
|
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
required _i6.Coin? coin,
|
required _i5.Coin? coin,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -110,13 +71,13 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
_i4.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
required _i6.Coin? coin,
|
required _i5.Coin? coin,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -129,8 +90,8 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -148,9 +109,9 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
returnValue: '',
|
returnValue: '',
|
||||||
) as String);
|
) as String);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getTransaction({
|
_i4.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
required _i6.Coin? coin,
|
required _i5.Coin? coin,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -164,11 +125,11 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<String>> getUsedCoinSerials({
|
_i4.Future<List<String>> getUsedCoinSerials({
|
||||||
required _i6.Coin? coin,
|
required _i5.Coin? coin,
|
||||||
int? startNumber = 0,
|
int? startNumber = 0,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -180,53 +141,53 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<String>>.value(<String>[]),
|
returnValue: _i4.Future<List<String>>.value(<String>[]),
|
||||||
) as _i5.Future<List<String>>);
|
) as _i4.Future<List<String>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Set<String>> getSparkUsedCoinsTags({required _i6.Coin? coin}) =>
|
_i4.Future<Set<String>> getSparkUsedCoinsTags({required _i5.Coin? coin}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getSparkUsedCoinsTags,
|
#getSparkUsedCoinsTags,
|
||||||
[],
|
[],
|
||||||
{#coin: coin},
|
{#coin: coin},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<Set<String>>.value(<String>{}),
|
returnValue: _i4.Future<Set<String>>.value(<String>{}),
|
||||||
) as _i5.Future<Set<String>>);
|
) as _i4.Future<Set<String>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> clearSharedTransactionCache({required _i6.Coin? coin}) =>
|
_i4.Future<void> clearSharedTransactionCache({required _i5.Coin? coin}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#clearSharedTransactionCache,
|
#clearSharedTransactionCache,
|
||||||
[],
|
[],
|
||||||
{#coin: coin},
|
{#coin: coin},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [LocalAuthentication].
|
/// A class which mocks [LocalAuthentication].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockLocalAuthentication extends _i1.Mock
|
class MockLocalAuthentication extends _i1.Mock
|
||||||
implements _i7.LocalAuthentication {
|
implements _i6.LocalAuthentication {
|
||||||
MockLocalAuthentication() {
|
MockLocalAuthentication() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i5.Future<bool> get canCheckBiometrics => (super.noSuchMethod(
|
_i4.Future<bool> get canCheckBiometrics => (super.noSuchMethod(
|
||||||
Invocation.getter(#canCheckBiometrics),
|
Invocation.getter(#canCheckBiometrics),
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
returnValue: _i4.Future<bool>.value(false),
|
||||||
) as _i5.Future<bool>);
|
) as _i4.Future<bool>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<bool> authenticateWithBiometrics({
|
_i4.Future<bool> authenticateWithBiometrics({
|
||||||
required String? localizedReason,
|
required String? localizedReason,
|
||||||
bool? useErrorDialogs = true,
|
bool? useErrorDialogs = true,
|
||||||
bool? stickyAuth = false,
|
bool? stickyAuth = false,
|
||||||
_i8.AndroidAuthMessages? androidAuthStrings =
|
_i7.AndroidAuthMessages? androidAuthStrings =
|
||||||
const _i8.AndroidAuthMessages(),
|
const _i7.AndroidAuthMessages(),
|
||||||
_i8.IOSAuthMessages? iOSAuthStrings = const _i8.IOSAuthMessages(),
|
_i7.IOSAuthMessages? iOSAuthStrings = const _i7.IOSAuthMessages(),
|
||||||
bool? sensitiveTransaction = true,
|
bool? sensitiveTransaction = true,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -242,16 +203,16 @@ class MockLocalAuthentication extends _i1.Mock
|
||||||
#sensitiveTransaction: sensitiveTransaction,
|
#sensitiveTransaction: sensitiveTransaction,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
returnValue: _i4.Future<bool>.value(false),
|
||||||
) as _i5.Future<bool>);
|
) as _i4.Future<bool>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<bool> authenticate({
|
_i4.Future<bool> authenticate({
|
||||||
required String? localizedReason,
|
required String? localizedReason,
|
||||||
bool? useErrorDialogs = true,
|
bool? useErrorDialogs = true,
|
||||||
bool? stickyAuth = false,
|
bool? stickyAuth = false,
|
||||||
_i8.AndroidAuthMessages? androidAuthStrings =
|
_i7.AndroidAuthMessages? androidAuthStrings =
|
||||||
const _i8.AndroidAuthMessages(),
|
const _i7.AndroidAuthMessages(),
|
||||||
_i8.IOSAuthMessages? iOSAuthStrings = const _i8.IOSAuthMessages(),
|
_i7.IOSAuthMessages? iOSAuthStrings = const _i7.IOSAuthMessages(),
|
||||||
bool? sensitiveTransaction = true,
|
bool? sensitiveTransaction = true,
|
||||||
bool? biometricOnly = false,
|
bool? biometricOnly = false,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -269,46 +230,46 @@ class MockLocalAuthentication extends _i1.Mock
|
||||||
#biometricOnly: biometricOnly,
|
#biometricOnly: biometricOnly,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
returnValue: _i4.Future<bool>.value(false),
|
||||||
) as _i5.Future<bool>);
|
) as _i4.Future<bool>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<bool> stopAuthentication() => (super.noSuchMethod(
|
_i4.Future<bool> stopAuthentication() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#stopAuthentication,
|
#stopAuthentication,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
returnValue: _i4.Future<bool>.value(false),
|
||||||
) as _i5.Future<bool>);
|
) as _i4.Future<bool>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<bool> isDeviceSupported() => (super.noSuchMethod(
|
_i4.Future<bool> isDeviceSupported() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#isDeviceSupported,
|
#isDeviceSupported,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
returnValue: _i4.Future<bool>.value(false),
|
||||||
) as _i5.Future<bool>);
|
) as _i4.Future<bool>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<_i7.BiometricType>> getAvailableBiometrics() =>
|
_i4.Future<List<_i6.BiometricType>> getAvailableBiometrics() =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getAvailableBiometrics,
|
#getAvailableBiometrics,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<List<_i7.BiometricType>>.value(<_i7.BiometricType>[]),
|
_i4.Future<List<_i6.BiometricType>>.value(<_i6.BiometricType>[]),
|
||||||
) as _i5.Future<List<_i7.BiometricType>>);
|
) as _i4.Future<List<_i6.BiometricType>>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [Biometrics].
|
/// A class which mocks [Biometrics].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockBiometrics extends _i1.Mock implements _i9.Biometrics {
|
class MockBiometrics extends _i1.Mock implements _i8.Biometrics {
|
||||||
MockBiometrics() {
|
MockBiometrics() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i5.Future<bool> authenticate({
|
_i4.Future<bool> authenticate({
|
||||||
required String? cancelButtonText,
|
required String? cancelButtonText,
|
||||||
required String? localizedReason,
|
required String? localizedReason,
|
||||||
required String? title,
|
required String? title,
|
||||||
|
@ -323,28 +284,28 @@ class MockBiometrics extends _i1.Mock implements _i9.Biometrics {
|
||||||
#title: title,
|
#title: title,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
returnValue: _i4.Future<bool>.value(false),
|
||||||
) as _i5.Future<bool>);
|
) as _i4.Future<bool>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [WalletsService].
|
/// A class which mocks [WalletsService].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockWalletsService extends _i1.Mock implements _i10.WalletsService {
|
class MockWalletsService extends _i1.Mock implements _i9.WalletsService {
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, _i10.WalletInfo>> get walletNames =>
|
_i4.Future<Map<String, _i9.WalletInfo>> get walletNames =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.getter(#walletNames),
|
Invocation.getter(#walletNames),
|
||||||
returnValue: _i5.Future<Map<String, _i10.WalletInfo>>.value(
|
returnValue: _i4.Future<Map<String, _i9.WalletInfo>>.value(
|
||||||
<String, _i10.WalletInfo>{}),
|
<String, _i9.WalletInfo>{}),
|
||||||
) as _i5.Future<Map<String, _i10.WalletInfo>>);
|
) as _i4.Future<Map<String, _i9.WalletInfo>>);
|
||||||
@override
|
@override
|
||||||
bool get hasListeners => (super.noSuchMethod(
|
bool get hasListeners => (super.noSuchMethod(
|
||||||
Invocation.getter(#hasListeners),
|
Invocation.getter(#hasListeners),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
void addListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
void addListener(_i10.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addListener,
|
#addListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
@ -352,7 +313,7 @@ class MockWalletsService extends _i1.Mock implements _i10.WalletsService {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
void removeListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
void removeListener(_i10.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#removeListener,
|
#removeListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
|
|
@ -5,14 +5,15 @@
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i5;
|
import 'dart:async' as _i5;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i2;
|
import 'package:decimal/decimal.dart' as _i3;
|
||||||
import 'package:electrum_adapter/electrum_adapter.dart' as _i4;
|
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i3;
|
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i8;
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
||||||
|
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||||
|
as _i2;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -25,8 +26,9 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
|
||||||
class _FakeDuration_0 extends _i1.SmartFake implements Duration {
|
class _FakeCryptoCurrency_0 extends _i1.SmartFake
|
||||||
_FakeDuration_0(
|
implements _i2.CryptoCurrency {
|
||||||
|
_FakeCryptoCurrency_0(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -35,8 +37,8 @@ class _FakeDuration_0 extends _i1.SmartFake implements Duration {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
|
class _FakeDuration_1 extends _i1.SmartFake implements Duration {
|
||||||
_FakeDecimal_1(
|
_FakeDuration_1(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -45,9 +47,8 @@ class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumXClient_2 extends _i1.SmartFake
|
class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
||||||
implements _i3.ElectrumXClient {
|
_FakeDecimal_2(
|
||||||
_FakeElectrumXClient_2(
|
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -56,9 +57,9 @@ class _FakeElectrumXClient_2 extends _i1.SmartFake
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumClient_3 extends _i1.SmartFake
|
class _FakeElectrumXClient_3 extends _i1.SmartFake
|
||||||
implements _i4.ElectrumClient {
|
implements _i4.ElectrumXClient {
|
||||||
_FakeElectrumClient_3(
|
_FakeElectrumXClient_3(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -70,13 +71,21 @@ class _FakeElectrumClient_3 extends _i1.SmartFake
|
||||||
/// A class which mocks [ElectrumXClient].
|
/// A class which mocks [ElectrumXClient].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
MockElectrumXClient() {
|
MockElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set failovers(List<_i3.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
_i2.CryptoCurrency get cryptoCurrency => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#cryptoCurrency),
|
||||||
|
returnValue: _FakeCryptoCurrency_0(
|
||||||
|
this,
|
||||||
|
Invocation.getter(#cryptoCurrency),
|
||||||
|
),
|
||||||
|
) as _i2.CryptoCurrency);
|
||||||
|
@override
|
||||||
|
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#failovers,
|
#failovers,
|
||||||
_failovers,
|
_failovers,
|
||||||
|
@ -100,7 +109,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||||
returnValue: _FakeDuration_0(
|
returnValue: _FakeDuration_1(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||||
),
|
),
|
||||||
|
@ -121,9 +130,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
_i5.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#checkElectrumAdapter,
|
#closeAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i5.Future<void>.value(),
|
||||||
|
@ -455,7 +464,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i5.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> estimateFee({
|
_i5.Future<_i3.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -468,7 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
returnValue: _i5.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -479,15 +488,15 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i5.Future<_i3.Decimal>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i5.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
returnValue: _i5.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -495,7 +504,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i5.Future<_i3.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [CachedElectrumXClient].
|
/// A class which mocks [CachedElectrumXClient].
|
||||||
|
@ -508,40 +517,13 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i3.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
_i4.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: _FakeElectrumXClient_2(
|
returnValue: _FakeElectrumXClient_3(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i3.ElectrumXClient);
|
) as _i4.ElectrumXClient);
|
||||||
@override
|
|
||||||
_i4.ElectrumClient get electrumAdapterClient => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#electrumAdapterClient),
|
|
||||||
returnValue: _FakeElectrumClient_3(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#electrumAdapterClient),
|
|
||||||
),
|
|
||||||
) as _i4.ElectrumClient);
|
|
||||||
@override
|
|
||||||
set electrumAdapterClient(_i4.ElectrumClient? _electrumAdapterClient) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#electrumAdapterClient,
|
|
||||||
_electrumAdapterClient,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
_i5.Future<_i4.ElectrumClient> Function() get electrumAdapterUpdateCallback =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.getter(#electrumAdapterUpdateCallback),
|
|
||||||
returnValue: () =>
|
|
||||||
_i5.Future<_i4.ElectrumClient>.value(_FakeElectrumClient_3(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#electrumAdapterUpdateCallback),
|
|
||||||
)),
|
|
||||||
) as _i5.Future<_i4.ElectrumClient> Function());
|
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
|
|
|
@ -5,14 +5,15 @@
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i5;
|
import 'dart:async' as _i5;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i2;
|
import 'package:decimal/decimal.dart' as _i3;
|
||||||
import 'package:electrum_adapter/electrum_adapter.dart' as _i4;
|
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i3;
|
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i8;
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
||||||
|
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||||
|
as _i2;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -25,8 +26,9 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
|
||||||
class _FakeDuration_0 extends _i1.SmartFake implements Duration {
|
class _FakeCryptoCurrency_0 extends _i1.SmartFake
|
||||||
_FakeDuration_0(
|
implements _i2.CryptoCurrency {
|
||||||
|
_FakeCryptoCurrency_0(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -35,8 +37,8 @@ class _FakeDuration_0 extends _i1.SmartFake implements Duration {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
|
class _FakeDuration_1 extends _i1.SmartFake implements Duration {
|
||||||
_FakeDecimal_1(
|
_FakeDuration_1(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -45,9 +47,8 @@ class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumXClient_2 extends _i1.SmartFake
|
class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
||||||
implements _i3.ElectrumXClient {
|
_FakeDecimal_2(
|
||||||
_FakeElectrumXClient_2(
|
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -56,9 +57,9 @@ class _FakeElectrumXClient_2 extends _i1.SmartFake
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumClient_3 extends _i1.SmartFake
|
class _FakeElectrumXClient_3 extends _i1.SmartFake
|
||||||
implements _i4.ElectrumClient {
|
implements _i4.ElectrumXClient {
|
||||||
_FakeElectrumClient_3(
|
_FakeElectrumXClient_3(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -70,13 +71,21 @@ class _FakeElectrumClient_3 extends _i1.SmartFake
|
||||||
/// A class which mocks [ElectrumXClient].
|
/// A class which mocks [ElectrumXClient].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
MockElectrumXClient() {
|
MockElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set failovers(List<_i3.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
_i2.CryptoCurrency get cryptoCurrency => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#cryptoCurrency),
|
||||||
|
returnValue: _FakeCryptoCurrency_0(
|
||||||
|
this,
|
||||||
|
Invocation.getter(#cryptoCurrency),
|
||||||
|
),
|
||||||
|
) as _i2.CryptoCurrency);
|
||||||
|
@override
|
||||||
|
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#failovers,
|
#failovers,
|
||||||
_failovers,
|
_failovers,
|
||||||
|
@ -100,7 +109,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||||
returnValue: _FakeDuration_0(
|
returnValue: _FakeDuration_1(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||||
),
|
),
|
||||||
|
@ -121,9 +130,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
_i5.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#checkElectrumAdapter,
|
#closeAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i5.Future<void>.value(),
|
||||||
|
@ -455,7 +464,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i5.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> estimateFee({
|
_i5.Future<_i3.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -468,7 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
returnValue: _i5.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -479,15 +488,15 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i5.Future<_i3.Decimal>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i5.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
returnValue: _i5.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -495,7 +504,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i5.Future<_i3.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [CachedElectrumXClient].
|
/// A class which mocks [CachedElectrumXClient].
|
||||||
|
@ -508,40 +517,13 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i3.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
_i4.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: _FakeElectrumXClient_2(
|
returnValue: _FakeElectrumXClient_3(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i3.ElectrumXClient);
|
) as _i4.ElectrumXClient);
|
||||||
@override
|
|
||||||
_i4.ElectrumClient get electrumAdapterClient => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#electrumAdapterClient),
|
|
||||||
returnValue: _FakeElectrumClient_3(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#electrumAdapterClient),
|
|
||||||
),
|
|
||||||
) as _i4.ElectrumClient);
|
|
||||||
@override
|
|
||||||
set electrumAdapterClient(_i4.ElectrumClient? _electrumAdapterClient) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#electrumAdapterClient,
|
|
||||||
_electrumAdapterClient,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
_i5.Future<_i4.ElectrumClient> Function() get electrumAdapterUpdateCallback =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.getter(#electrumAdapterUpdateCallback),
|
|
||||||
returnValue: () =>
|
|
||||||
_i5.Future<_i4.ElectrumClient>.value(_FakeElectrumClient_3(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#electrumAdapterUpdateCallback),
|
|
||||||
)),
|
|
||||||
) as _i5.Future<_i4.ElectrumClient> Function());
|
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
|
|
|
@ -5,14 +5,15 @@
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i5;
|
import 'dart:async' as _i5;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i2;
|
import 'package:decimal/decimal.dart' as _i3;
|
||||||
import 'package:electrum_adapter/electrum_adapter.dart' as _i4;
|
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i3;
|
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i8;
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
||||||
|
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||||
|
as _i2;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -25,8 +26,9 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
|
||||||
class _FakeDuration_0 extends _i1.SmartFake implements Duration {
|
class _FakeCryptoCurrency_0 extends _i1.SmartFake
|
||||||
_FakeDuration_0(
|
implements _i2.CryptoCurrency {
|
||||||
|
_FakeCryptoCurrency_0(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -35,8 +37,8 @@ class _FakeDuration_0 extends _i1.SmartFake implements Duration {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
|
class _FakeDuration_1 extends _i1.SmartFake implements Duration {
|
||||||
_FakeDecimal_1(
|
_FakeDuration_1(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -45,9 +47,8 @@ class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumXClient_2 extends _i1.SmartFake
|
class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
||||||
implements _i3.ElectrumXClient {
|
_FakeDecimal_2(
|
||||||
_FakeElectrumXClient_2(
|
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -56,9 +57,9 @@ class _FakeElectrumXClient_2 extends _i1.SmartFake
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumClient_3 extends _i1.SmartFake
|
class _FakeElectrumXClient_3 extends _i1.SmartFake
|
||||||
implements _i4.ElectrumClient {
|
implements _i4.ElectrumXClient {
|
||||||
_FakeElectrumClient_3(
|
_FakeElectrumXClient_3(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -70,13 +71,21 @@ class _FakeElectrumClient_3 extends _i1.SmartFake
|
||||||
/// A class which mocks [ElectrumXClient].
|
/// A class which mocks [ElectrumXClient].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
MockElectrumXClient() {
|
MockElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set failovers(List<_i3.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
_i2.CryptoCurrency get cryptoCurrency => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#cryptoCurrency),
|
||||||
|
returnValue: _FakeCryptoCurrency_0(
|
||||||
|
this,
|
||||||
|
Invocation.getter(#cryptoCurrency),
|
||||||
|
),
|
||||||
|
) as _i2.CryptoCurrency);
|
||||||
|
@override
|
||||||
|
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#failovers,
|
#failovers,
|
||||||
_failovers,
|
_failovers,
|
||||||
|
@ -100,7 +109,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||||
returnValue: _FakeDuration_0(
|
returnValue: _FakeDuration_1(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||||
),
|
),
|
||||||
|
@ -121,9 +130,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
_i5.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#checkElectrumAdapter,
|
#closeAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i5.Future<void>.value(),
|
||||||
|
@ -455,7 +464,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i5.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> estimateFee({
|
_i5.Future<_i3.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -468,7 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
returnValue: _i5.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -479,15 +488,15 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i5.Future<_i3.Decimal>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i5.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
returnValue: _i5.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -495,7 +504,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i5.Future<_i3.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [CachedElectrumXClient].
|
/// A class which mocks [CachedElectrumXClient].
|
||||||
|
@ -508,40 +517,13 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i3.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
_i4.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: _FakeElectrumXClient_2(
|
returnValue: _FakeElectrumXClient_3(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i3.ElectrumXClient);
|
) as _i4.ElectrumXClient);
|
||||||
@override
|
|
||||||
_i4.ElectrumClient get electrumAdapterClient => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#electrumAdapterClient),
|
|
||||||
returnValue: _FakeElectrumClient_3(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#electrumAdapterClient),
|
|
||||||
),
|
|
||||||
) as _i4.ElectrumClient);
|
|
||||||
@override
|
|
||||||
set electrumAdapterClient(_i4.ElectrumClient? _electrumAdapterClient) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#electrumAdapterClient,
|
|
||||||
_electrumAdapterClient,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
_i5.Future<_i4.ElectrumClient> Function() get electrumAdapterUpdateCallback =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.getter(#electrumAdapterUpdateCallback),
|
|
||||||
returnValue: () =>
|
|
||||||
_i5.Future<_i4.ElectrumClient>.value(_FakeElectrumClient_3(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#electrumAdapterUpdateCallback),
|
|
||||||
)),
|
|
||||||
) as _i5.Future<_i4.ElectrumClient> Function());
|
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
|
|
|
@ -5,14 +5,15 @@
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i5;
|
import 'dart:async' as _i5;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i2;
|
import 'package:decimal/decimal.dart' as _i3;
|
||||||
import 'package:electrum_adapter/electrum_adapter.dart' as _i4;
|
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i3;
|
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i8;
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
||||||
|
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||||
|
as _i2;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -25,8 +26,9 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
|
||||||
class _FakeDuration_0 extends _i1.SmartFake implements Duration {
|
class _FakeCryptoCurrency_0 extends _i1.SmartFake
|
||||||
_FakeDuration_0(
|
implements _i2.CryptoCurrency {
|
||||||
|
_FakeCryptoCurrency_0(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -35,8 +37,8 @@ class _FakeDuration_0 extends _i1.SmartFake implements Duration {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
|
class _FakeDuration_1 extends _i1.SmartFake implements Duration {
|
||||||
_FakeDecimal_1(
|
_FakeDuration_1(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -45,9 +47,8 @@ class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumXClient_2 extends _i1.SmartFake
|
class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
||||||
implements _i3.ElectrumXClient {
|
_FakeDecimal_2(
|
||||||
_FakeElectrumXClient_2(
|
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -56,9 +57,9 @@ class _FakeElectrumXClient_2 extends _i1.SmartFake
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumClient_3 extends _i1.SmartFake
|
class _FakeElectrumXClient_3 extends _i1.SmartFake
|
||||||
implements _i4.ElectrumClient {
|
implements _i4.ElectrumXClient {
|
||||||
_FakeElectrumClient_3(
|
_FakeElectrumXClient_3(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -70,13 +71,21 @@ class _FakeElectrumClient_3 extends _i1.SmartFake
|
||||||
/// A class which mocks [ElectrumXClient].
|
/// A class which mocks [ElectrumXClient].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
MockElectrumXClient() {
|
MockElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set failovers(List<_i3.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
_i2.CryptoCurrency get cryptoCurrency => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#cryptoCurrency),
|
||||||
|
returnValue: _FakeCryptoCurrency_0(
|
||||||
|
this,
|
||||||
|
Invocation.getter(#cryptoCurrency),
|
||||||
|
),
|
||||||
|
) as _i2.CryptoCurrency);
|
||||||
|
@override
|
||||||
|
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#failovers,
|
#failovers,
|
||||||
_failovers,
|
_failovers,
|
||||||
|
@ -100,7 +109,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||||
returnValue: _FakeDuration_0(
|
returnValue: _FakeDuration_1(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||||
),
|
),
|
||||||
|
@ -121,9 +130,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
_i5.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#checkElectrumAdapter,
|
#closeAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i5.Future<void>.value(),
|
||||||
|
@ -455,7 +464,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i5.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> estimateFee({
|
_i5.Future<_i3.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -468,7 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
returnValue: _i5.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -479,15 +488,15 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i5.Future<_i3.Decimal>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i5.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
returnValue: _i5.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -495,7 +504,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i5.Future<_i3.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [CachedElectrumXClient].
|
/// A class which mocks [CachedElectrumXClient].
|
||||||
|
@ -508,40 +517,13 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i3.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
_i4.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: _FakeElectrumXClient_2(
|
returnValue: _FakeElectrumXClient_3(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i3.ElectrumXClient);
|
) as _i4.ElectrumXClient);
|
||||||
@override
|
|
||||||
_i4.ElectrumClient get electrumAdapterClient => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#electrumAdapterClient),
|
|
||||||
returnValue: _FakeElectrumClient_3(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#electrumAdapterClient),
|
|
||||||
),
|
|
||||||
) as _i4.ElectrumClient);
|
|
||||||
@override
|
|
||||||
set electrumAdapterClient(_i4.ElectrumClient? _electrumAdapterClient) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#electrumAdapterClient,
|
|
||||||
_electrumAdapterClient,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
_i5.Future<_i4.ElectrumClient> Function() get electrumAdapterUpdateCallback =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.getter(#electrumAdapterUpdateCallback),
|
|
||||||
returnValue: () =>
|
|
||||||
_i5.Future<_i4.ElectrumClient>.value(_FakeElectrumClient_3(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#electrumAdapterUpdateCallback),
|
|
||||||
)),
|
|
||||||
) as _i5.Future<_i4.ElectrumClient> Function());
|
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
|
|
|
@ -5,14 +5,15 @@
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i5;
|
import 'dart:async' as _i5;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i2;
|
import 'package:decimal/decimal.dart' as _i3;
|
||||||
import 'package:electrum_adapter/electrum_adapter.dart' as _i4;
|
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i3;
|
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i8;
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
||||||
|
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||||
|
as _i2;
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -25,8 +26,9 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
|
||||||
class _FakeDuration_0 extends _i1.SmartFake implements Duration {
|
class _FakeCryptoCurrency_0 extends _i1.SmartFake
|
||||||
_FakeDuration_0(
|
implements _i2.CryptoCurrency {
|
||||||
|
_FakeCryptoCurrency_0(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -35,8 +37,8 @@ class _FakeDuration_0 extends _i1.SmartFake implements Duration {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
|
class _FakeDuration_1 extends _i1.SmartFake implements Duration {
|
||||||
_FakeDecimal_1(
|
_FakeDuration_1(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -45,9 +47,8 @@ class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumXClient_2 extends _i1.SmartFake
|
class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
||||||
implements _i3.ElectrumXClient {
|
_FakeDecimal_2(
|
||||||
_FakeElectrumXClient_2(
|
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -56,9 +57,9 @@ class _FakeElectrumXClient_2 extends _i1.SmartFake
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumClient_3 extends _i1.SmartFake
|
class _FakeElectrumXClient_3 extends _i1.SmartFake
|
||||||
implements _i4.ElectrumClient {
|
implements _i4.ElectrumXClient {
|
||||||
_FakeElectrumClient_3(
|
_FakeElectrumXClient_3(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -70,13 +71,21 @@ class _FakeElectrumClient_3 extends _i1.SmartFake
|
||||||
/// A class which mocks [ElectrumXClient].
|
/// A class which mocks [ElectrumXClient].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
MockElectrumXClient() {
|
MockElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set failovers(List<_i3.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
_i2.CryptoCurrency get cryptoCurrency => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#cryptoCurrency),
|
||||||
|
returnValue: _FakeCryptoCurrency_0(
|
||||||
|
this,
|
||||||
|
Invocation.getter(#cryptoCurrency),
|
||||||
|
),
|
||||||
|
) as _i2.CryptoCurrency);
|
||||||
|
@override
|
||||||
|
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#failovers,
|
#failovers,
|
||||||
_failovers,
|
_failovers,
|
||||||
|
@ -100,7 +109,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||||
returnValue: _FakeDuration_0(
|
returnValue: _FakeDuration_1(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
|
||||||
),
|
),
|
||||||
|
@ -121,9 +130,9 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
_i5.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#checkElectrumAdapter,
|
#closeAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i5.Future<void>.value(),
|
||||||
|
@ -455,7 +464,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i5.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> estimateFee({
|
_i5.Future<_i3.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -468,7 +477,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
returnValue: _i5.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -479,15 +488,15 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i5.Future<_i3.Decimal>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i5.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
returnValue: _i5.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -495,7 +504,7 @@ class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i5.Future<_i3.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [CachedElectrumXClient].
|
/// A class which mocks [CachedElectrumXClient].
|
||||||
|
@ -508,40 +517,13 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i3.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
_i4.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: _FakeElectrumXClient_2(
|
returnValue: _FakeElectrumXClient_3(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i3.ElectrumXClient);
|
) as _i4.ElectrumXClient);
|
||||||
@override
|
|
||||||
_i4.ElectrumClient get electrumAdapterClient => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#electrumAdapterClient),
|
|
||||||
returnValue: _FakeElectrumClient_3(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#electrumAdapterClient),
|
|
||||||
),
|
|
||||||
) as _i4.ElectrumClient);
|
|
||||||
@override
|
|
||||||
set electrumAdapterClient(_i4.ElectrumClient? _electrumAdapterClient) =>
|
|
||||||
super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#electrumAdapterClient,
|
|
||||||
_electrumAdapterClient,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
_i5.Future<_i4.ElectrumClient> Function() get electrumAdapterUpdateCallback =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.getter(#electrumAdapterUpdateCallback),
|
|
||||||
returnValue: () =>
|
|
||||||
_i5.Future<_i4.ElectrumClient>.value(_FakeElectrumClient_3(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#electrumAdapterUpdateCallback),
|
|
||||||
)),
|
|
||||||
) as _i5.Future<_i4.ElectrumClient> Function());
|
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
|
|
|
@ -712,6 +712,19 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
|
bool get solanaEnabled => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#solanaEnabled),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
|
set solanaEnabled(bool? solanaEnabled) => super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#solanaEnabled,
|
||||||
|
solanaEnabled,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
bool get frostEnabled => (super.noSuchMethod(
|
bool get frostEnabled => (super.noSuchMethod(
|
||||||
Invocation.getter(#frostEnabled),
|
Invocation.getter(#frostEnabled),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
|
|
|
@ -598,6 +598,19 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
|
bool get solanaEnabled => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#solanaEnabled),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
|
set solanaEnabled(bool? solanaEnabled) => super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#solanaEnabled,
|
||||||
|
solanaEnabled,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
bool get frostEnabled => (super.noSuchMethod(
|
bool get frostEnabled => (super.noSuchMethod(
|
||||||
Invocation.getter(#frostEnabled),
|
Invocation.getter(#frostEnabled),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
|
|
|
@ -698,6 +698,19 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
|
bool get solanaEnabled => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#solanaEnabled),
|
||||||
|
returnValue: false,
|
||||||
|
) as bool);
|
||||||
|
@override
|
||||||
|
set solanaEnabled(bool? solanaEnabled) => super.noSuchMethod(
|
||||||
|
Invocation.setter(
|
||||||
|
#solanaEnabled,
|
||||||
|
solanaEnabled,
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
bool get frostEnabled => (super.noSuchMethod(
|
bool get frostEnabled => (super.noSuchMethod(
|
||||||
Invocation.getter(#frostEnabled),
|
Invocation.getter(#frostEnabled),
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
|
|
Loading…
Reference in a new issue