mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
chore: build runner
This commit is contained in:
parent
0e32e8a408
commit
ba1ab977d6
8 changed files with 1217 additions and 1051 deletions
|
@ -278,6 +278,7 @@ const _AddresstypeEnumValueMap = {
|
||||||
'frostMS': 13,
|
'frostMS': 13,
|
||||||
'p2tr': 14,
|
'p2tr': 14,
|
||||||
'solana': 15,
|
'solana': 15,
|
||||||
|
'cardanoShelley': 16,
|
||||||
};
|
};
|
||||||
const _AddresstypeValueEnumMap = {
|
const _AddresstypeValueEnumMap = {
|
||||||
0: AddressType.p2pkh,
|
0: AddressType.p2pkh,
|
||||||
|
@ -296,6 +297,7 @@ const _AddresstypeValueEnumMap = {
|
||||||
13: AddressType.frostMS,
|
13: AddressType.frostMS,
|
||||||
14: AddressType.p2tr,
|
14: AddressType.p2tr,
|
||||||
15: AddressType.solana,
|
15: AddressType.solana,
|
||||||
|
16: AddressType.cardanoShelley,
|
||||||
};
|
};
|
||||||
|
|
||||||
Id _addressGetId(Address object) {
|
Id _addressGetId(Address object) {
|
||||||
|
|
|
@ -268,6 +268,7 @@ const _WalletInfomainAddressTypeEnumValueMap = {
|
||||||
'frostMS': 13,
|
'frostMS': 13,
|
||||||
'p2tr': 14,
|
'p2tr': 14,
|
||||||
'solana': 15,
|
'solana': 15,
|
||||||
|
'cardanoShelley': 16,
|
||||||
};
|
};
|
||||||
const _WalletInfomainAddressTypeValueEnumMap = {
|
const _WalletInfomainAddressTypeValueEnumMap = {
|
||||||
0: AddressType.p2pkh,
|
0: AddressType.p2pkh,
|
||||||
|
@ -286,6 +287,7 @@ const _WalletInfomainAddressTypeValueEnumMap = {
|
||||||
13: AddressType.frostMS,
|
13: AddressType.frostMS,
|
||||||
14: AddressType.p2tr,
|
14: AddressType.p2tr,
|
||||||
15: AddressType.solana,
|
15: AddressType.solana,
|
||||||
|
16: AddressType.cardanoShelley,
|
||||||
};
|
};
|
||||||
|
|
||||||
Id _walletInfoGetId(WalletInfo object) {
|
Id _walletInfoGetId(WalletInfo object) {
|
||||||
|
|
|
@ -3,21 +3,23 @@
|
||||||
// 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 _i7;
|
import 'dart:async' as _i9;
|
||||||
import 'dart:ui' as _i12;
|
import 'dart:ui' as _i14;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i3;
|
import 'package:decimal/decimal.dart' as _i4;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:mockito/src/dummies.dart' as _i6;
|
import 'package:mockito/src/dummies.dart' as _i8;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i5;
|
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i6;
|
||||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i11;
|
import 'package:stackwallet/models/electrumx_response/spark_models.dart' as _i3;
|
||||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i10;
|
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i13;
|
||||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i9;
|
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i12;
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i8;
|
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i11;
|
||||||
|
import 'package:stackwallet/utilities/prefs.dart' as _i10;
|
||||||
|
import 'package:stackwallet/utilities/tor_plain_net_option_enum.dart' as _i7;
|
||||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||||
as _i2;
|
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 _i4;
|
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
|
||||||
|
@ -53,8 +55,9 @@ class _FakeDuration_1 extends _i1.SmartFake implements Duration {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
class _FakeSparkAnonymitySetMeta_2 extends _i1.SmartFake
|
||||||
_FakeDecimal_2(
|
implements _i3.SparkAnonymitySetMeta {
|
||||||
|
_FakeSparkAnonymitySetMeta_2(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -63,8 +66,18 @@ class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeFusionInfo_3 extends _i1.SmartFake implements _i4.FusionInfo {
|
class _FakeDecimal_3 extends _i1.SmartFake implements _i4.Decimal {
|
||||||
_FakeFusionInfo_3(
|
_FakeDecimal_3(
|
||||||
|
Object parent,
|
||||||
|
Invocation parentInvocation,
|
||||||
|
) : super(
|
||||||
|
parent,
|
||||||
|
parentInvocation,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
class _FakeFusionInfo_4 extends _i1.SmartFake implements _i5.FusionInfo {
|
||||||
|
_FakeFusionInfo_4(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -76,7 +89,7 @@ class _FakeFusionInfo_3 extends _i1.SmartFake implements _i4.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 _i5.ElectrumXClient {
|
class MockElectrumXClient extends _i1.Mock implements _i6.ElectrumXClient {
|
||||||
MockElectrumXClient() {
|
MockElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -90,6 +103,12 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
),
|
),
|
||||||
) as _i2.CryptoCurrency);
|
) as _i2.CryptoCurrency);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i7.TorPlainNetworkOption get netType => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#netType),
|
||||||
|
returnValue: _i7.TorPlainNetworkOption.tor,
|
||||||
|
) as _i7.TorPlainNetworkOption);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get currentFailoverIndex => (super.noSuchMethod(
|
int get currentFailoverIndex => (super.noSuchMethod(
|
||||||
Invocation.getter(#currentFailoverIndex),
|
Invocation.getter(#currentFailoverIndex),
|
||||||
|
@ -118,7 +137,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
@override
|
@override
|
||||||
String get host => (super.noSuchMethod(
|
String get host => (super.noSuchMethod(
|
||||||
Invocation.getter(#host),
|
Invocation.getter(#host),
|
||||||
returnValue: _i6.dummyValue<String>(
|
returnValue: _i8.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#host),
|
Invocation.getter(#host),
|
||||||
),
|
),
|
||||||
|
@ -137,27 +156,27 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<void> closeAdapter() => (super.noSuchMethod(
|
_i9.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#closeAdapter,
|
#closeAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<void>.value(),
|
returnValue: _i9.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||||
) as _i7.Future<void>);
|
) as _i9.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
_i9.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#checkElectrumAdapter,
|
#checkElectrumAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<void>.value(),
|
returnValue: _i9.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||||
) as _i7.Future<void>);
|
) as _i9.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<dynamic> request({
|
_i9.Future<dynamic> request({
|
||||||
required String? command,
|
required String? command,
|
||||||
List<dynamic>? args = const [],
|
List<dynamic>? args = const [],
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -176,11 +195,11 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
#requestTimeout: requestTimeout,
|
#requestTimeout: requestTimeout,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<dynamic>.value(),
|
returnValue: _i9.Future<dynamic>.value(),
|
||||||
) as _i7.Future<dynamic>);
|
) as _i9.Future<dynamic>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<List<dynamic>> batchRequest({
|
_i9.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),
|
||||||
|
@ -197,11 +216,11 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<List<dynamic>>.value(<dynamic>[]),
|
returnValue: _i9.Future<List<dynamic>>.value(<dynamic>[]),
|
||||||
) as _i7.Future<List<dynamic>>);
|
) as _i9.Future<List<dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<bool> ping({
|
_i9.Future<bool> ping({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
int? retryCount = 1,
|
int? retryCount = 1,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -214,11 +233,11 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
#retryCount: retryCount,
|
#retryCount: retryCount,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<bool>.value(false),
|
returnValue: _i9.Future<bool>.value(false),
|
||||||
) as _i7.Future<bool>);
|
) as _i9.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
_i9.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getBlockHeadTip,
|
#getBlockHeadTip,
|
||||||
|
@ -226,11 +245,11 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i9.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i7.Future<Map<String, dynamic>>);
|
) as _i9.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
_i9.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getServerFeatures,
|
#getServerFeatures,
|
||||||
|
@ -238,11 +257,11 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i9.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i7.Future<Map<String, dynamic>>);
|
) as _i9.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<String> broadcastTransaction({
|
_i9.Future<String> broadcastTransaction({
|
||||||
required String? rawTx,
|
required String? rawTx,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -255,7 +274,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<String>.value(_i6.dummyValue<String>(
|
returnValue: _i9.Future<String>.value(_i8.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#broadcastTransaction,
|
#broadcastTransaction,
|
||||||
|
@ -266,10 +285,10 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i7.Future<String>);
|
) as _i9.Future<String>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<Map<String, dynamic>> getBalance({
|
_i9.Future<Map<String, dynamic>> getBalance({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -283,11 +302,11 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i9.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i7.Future<Map<String, dynamic>>);
|
) as _i9.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<List<Map<String, dynamic>>> getHistory({
|
_i9.Future<List<Map<String, dynamic>>> getHistory({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -300,12 +319,12 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i9.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i7.Future<List<Map<String, dynamic>>>);
|
) as _i9.Future<List<Map<String, dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
_i9.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -313,12 +332,12 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i9.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i7.Future<List<List<Map<String, dynamic>>>>);
|
) as _i9.Future<List<List<Map<String, dynamic>>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<List<Map<String, dynamic>>> getUTXOs({
|
_i9.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -331,12 +350,12 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i9.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i7.Future<List<Map<String, dynamic>>>);
|
) as _i9.Future<List<Map<String, dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
_i9.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -344,12 +363,12 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i9.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i7.Future<List<List<Map<String, dynamic>>>>);
|
) as _i9.Future<List<List<Map<String, dynamic>>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<Map<String, dynamic>> getTransaction({
|
_i9.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -365,11 +384,11 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i9.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i7.Future<Map<String, dynamic>>);
|
) as _i9.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
_i9.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
||||||
String? groupId = r'1',
|
String? groupId = r'1',
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -385,11 +404,11 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i9.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i7.Future<Map<String, dynamic>>);
|
) as _i9.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<dynamic> getLelantusMintData({
|
_i9.Future<dynamic> getLelantusMintData({
|
||||||
dynamic mints,
|
dynamic mints,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -402,11 +421,11 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<dynamic>.value(),
|
returnValue: _i9.Future<dynamic>.value(),
|
||||||
) as _i7.Future<dynamic>);
|
) as _i9.Future<dynamic>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
_i9.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -420,22 +439,22 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i9.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i7.Future<Map<String, dynamic>>);
|
) as _i9.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
_i9.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getLelantusLatestCoinId,
|
#getLelantusLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<int>.value(0),
|
returnValue: _i9.Future<int>.value(0),
|
||||||
) as _i7.Future<int>);
|
) as _i9.Future<int>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
_i9.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||||
String? coinGroupId = r'1',
|
String? coinGroupId = r'1',
|
||||||
String? startBlockHash = r'',
|
String? startBlockHash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -451,58 +470,33 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i9.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i7.Future<Map<String, dynamic>>);
|
) as _i9.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
_i9.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||||
String? requestID,
|
|
||||||
required List<String>? sparkCoinHashes,
|
|
||||||
}) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getSparkMintMetaData,
|
|
||||||
[],
|
|
||||||
{
|
|
||||||
#requestID: requestID,
|
|
||||||
#sparkCoinHashes: sparkCoinHashes,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
returnValue: _i7.Future<List<Map<String, dynamic>>>.value(
|
|
||||||
<Map<String, dynamic>>[]),
|
|
||||||
) as _i7.Future<List<Map<String, dynamic>>>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i7.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getSparkLatestCoinId,
|
#getSparkLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<int>.value(0),
|
returnValue: _i9.Future<int>.value(0),
|
||||||
) as _i7.Future<int>);
|
) as _i9.Future<int>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
_i9.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getMempoolTxids,
|
#getMempoolTxids,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<Set<String>>.value(<String>{}),
|
returnValue: _i9.Future<Set<String>>.value(<String>{}),
|
||||||
) as _i7.Future<Set<String>>);
|
) as _i9.Future<Set<String>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<
|
_i9.Future<List<_i3.SparkMempoolData>> getMempoolSparkData({
|
||||||
List<
|
|
||||||
({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>> getMempoolSparkData({
|
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required List<String>? txids,
|
required List<String>? txids,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -515,30 +509,12 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
#txids: txids,
|
#txids: txids,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<
|
returnValue: _i9.Future<List<_i3.SparkMempoolData>>.value(
|
||||||
List<
|
<_i3.SparkMempoolData>[]),
|
||||||
({
|
) as _i9.Future<List<_i3.SparkMempoolData>>);
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>>.value(<({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>[]),
|
|
||||||
) as _i7.Future<
|
|
||||||
List<
|
|
||||||
({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>>);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
_i9.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -551,11 +527,62 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
returnValue: _i9.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
||||||
) as _i7.Future<List<List<dynamic>>>);
|
) as _i9.Future<List<List<dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<bool> isMasterNodeCollateral({
|
_i9.Future<_i3.SparkAnonymitySetMeta> getSparkAnonymitySetMeta({
|
||||||
|
String? requestID,
|
||||||
|
required int? coinGroupId,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetMeta,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
returnValue: _i9.Future<_i3.SparkAnonymitySetMeta>.value(
|
||||||
|
_FakeSparkAnonymitySetMeta_2(
|
||||||
|
this,
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetMeta,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
)),
|
||||||
|
) as _i9.Future<_i3.SparkAnonymitySetMeta>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i9.Future<List<dynamic>> getSparkAnonymitySetBySector({
|
||||||
|
String? requestID,
|
||||||
|
required int? coinGroupId,
|
||||||
|
required String? latestBlock,
|
||||||
|
required int? startIndex,
|
||||||
|
required int? endIndex,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetBySector,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
#latestBlock: latestBlock,
|
||||||
|
#startIndex: startIndex,
|
||||||
|
#endIndex: endIndex,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
returnValue: _i9.Future<List<dynamic>>.value(<dynamic>[]),
|
||||||
|
) as _i9.Future<List<dynamic>>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i9.Future<bool> isMasterNodeCollateral({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required String? txid,
|
required String? txid,
|
||||||
required int? index,
|
required int? index,
|
||||||
|
@ -570,11 +597,11 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
#index: index,
|
#index: index,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<bool>.value(false),
|
returnValue: _i9.Future<bool>.value(false),
|
||||||
) as _i7.Future<bool>);
|
) as _i9.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
_i9.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFeeRate,
|
#getFeeRate,
|
||||||
|
@ -582,11 +609,11 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i7.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i9.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i7.Future<Map<String, dynamic>>);
|
) as _i9.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<_i3.Decimal> estimateFee({
|
_i9.Future<_i4.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -599,7 +626,7 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
returnValue: _i9.Future<_i4.Decimal>.value(_FakeDecimal_3(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -610,16 +637,16 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i7.Future<_i3.Decimal>);
|
) as _i9.Future<_i4.Decimal>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i9.Future<_i4.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
returnValue: _i9.Future<_i4.Decimal>.value(_FakeDecimal_3(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -627,13 +654,13 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i7.Future<_i3.Decimal>);
|
) as _i9.Future<_i4.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 _i8.Prefs {
|
class MockPrefs extends _i1.Mock implements _i10.Prefs {
|
||||||
MockPrefs() {
|
MockPrefs() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -697,13 +724,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i9.SyncingType get syncType => (super.noSuchMethod(
|
_i11.SyncingType get syncType => (super.noSuchMethod(
|
||||||
Invocation.getter(#syncType),
|
Invocation.getter(#syncType),
|
||||||
returnValue: _i9.SyncingType.currentWalletOnly,
|
returnValue: _i11.SyncingType.currentWalletOnly,
|
||||||
) as _i9.SyncingType);
|
) as _i11.SyncingType);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set syncType(_i9.SyncingType? syncType) => super.noSuchMethod(
|
set syncType(_i11.SyncingType? syncType) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#syncType,
|
#syncType,
|
||||||
syncType,
|
syncType,
|
||||||
|
@ -744,7 +771,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
||||||
@override
|
@override
|
||||||
String get language => (super.noSuchMethod(
|
String get language => (super.noSuchMethod(
|
||||||
Invocation.getter(#language),
|
Invocation.getter(#language),
|
||||||
returnValue: _i6.dummyValue<String>(
|
returnValue: _i8.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#language),
|
Invocation.getter(#language),
|
||||||
),
|
),
|
||||||
|
@ -762,7 +789,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
||||||
@override
|
@override
|
||||||
String get currency => (super.noSuchMethod(
|
String get currency => (super.noSuchMethod(
|
||||||
Invocation.getter(#currency),
|
Invocation.getter(#currency),
|
||||||
returnValue: _i6.dummyValue<String>(
|
returnValue: _i8.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#currency),
|
Invocation.getter(#currency),
|
||||||
),
|
),
|
||||||
|
@ -892,13 +919,13 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i10.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
_i12.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||||
Invocation.getter(#backupFrequencyType),
|
Invocation.getter(#backupFrequencyType),
|
||||||
returnValue: _i10.BackupFrequencyType.everyTenMinutes,
|
returnValue: _i12.BackupFrequencyType.everyTenMinutes,
|
||||||
) as _i10.BackupFrequencyType);
|
) as _i12.BackupFrequencyType);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set backupFrequencyType(_i10.BackupFrequencyType? backupFrequencyType) =>
|
set backupFrequencyType(_i12.BackupFrequencyType? backupFrequencyType) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#backupFrequencyType,
|
#backupFrequencyType,
|
||||||
|
@ -1005,7 +1032,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
||||||
@override
|
@override
|
||||||
String get themeId => (super.noSuchMethod(
|
String get themeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#themeId),
|
Invocation.getter(#themeId),
|
||||||
returnValue: _i6.dummyValue<String>(
|
returnValue: _i8.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#themeId),
|
Invocation.getter(#themeId),
|
||||||
),
|
),
|
||||||
|
@ -1023,7 +1050,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
||||||
@override
|
@override
|
||||||
String get systemBrightnessLightThemeId => (super.noSuchMethod(
|
String get systemBrightnessLightThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessLightThemeId),
|
Invocation.getter(#systemBrightnessLightThemeId),
|
||||||
returnValue: _i6.dummyValue<String>(
|
returnValue: _i8.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#systemBrightnessLightThemeId),
|
Invocation.getter(#systemBrightnessLightThemeId),
|
||||||
),
|
),
|
||||||
|
@ -1042,7 +1069,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
||||||
@override
|
@override
|
||||||
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
String get systemBrightnessDarkThemeId => (super.noSuchMethod(
|
||||||
Invocation.getter(#systemBrightnessDarkThemeId),
|
Invocation.getter(#systemBrightnessDarkThemeId),
|
||||||
returnValue: _i6.dummyValue<String>(
|
returnValue: _i8.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#systemBrightnessDarkThemeId),
|
Invocation.getter(#systemBrightnessDarkThemeId),
|
||||||
),
|
),
|
||||||
|
@ -1110,67 +1137,67 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<void> init() => (super.noSuchMethod(
|
_i9.Future<void> init() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#init,
|
#init,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<void>.value(),
|
returnValue: _i9.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||||
) as _i7.Future<void>);
|
) as _i9.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
_i9.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#incrementCurrentNotificationIndex,
|
#incrementCurrentNotificationIndex,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<void>.value(),
|
returnValue: _i9.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||||
) as _i7.Future<void>);
|
) as _i9.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
_i9.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#isExternalCallsSet,
|
#isExternalCallsSet,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<bool>.value(false),
|
returnValue: _i9.Future<bool>.value(false),
|
||||||
) as _i7.Future<bool>);
|
) as _i9.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
_i9.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#saveUserID,
|
#saveUserID,
|
||||||
[userId],
|
[userId],
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<void>.value(),
|
returnValue: _i9.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||||
) as _i7.Future<void>);
|
) as _i9.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
_i9.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#saveSignupEpoch,
|
#saveSignupEpoch,
|
||||||
[signupEpoch],
|
[signupEpoch],
|
||||||
),
|
),
|
||||||
returnValue: _i7.Future<void>.value(),
|
returnValue: _i9.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||||
) as _i7.Future<void>);
|
) as _i9.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i11.AmountUnit amountUnit(_i2.CryptoCurrency? coin) => (super.noSuchMethod(
|
_i13.AmountUnit amountUnit(_i2.CryptoCurrency? coin) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#amountUnit,
|
#amountUnit,
|
||||||
[coin],
|
[coin],
|
||||||
),
|
),
|
||||||
returnValue: _i11.AmountUnit.normal,
|
returnValue: _i13.AmountUnit.normal,
|
||||||
) as _i11.AmountUnit);
|
) as _i13.AmountUnit);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void updateAmountUnit({
|
void updateAmountUnit({
|
||||||
required _i2.CryptoCurrency? coin,
|
required _i2.CryptoCurrency? coin,
|
||||||
required _i11.AmountUnit? amountUnit,
|
required _i13.AmountUnit? amountUnit,
|
||||||
}) =>
|
}) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -1211,25 +1238,25 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i4.FusionInfo getFusionServerInfo(_i2.CryptoCurrency? coin) =>
|
_i5.FusionInfo getFusionServerInfo(_i2.CryptoCurrency? coin) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFusionServerInfo,
|
#getFusionServerInfo,
|
||||||
[coin],
|
[coin],
|
||||||
),
|
),
|
||||||
returnValue: _FakeFusionInfo_3(
|
returnValue: _FakeFusionInfo_4(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFusionServerInfo,
|
#getFusionServerInfo,
|
||||||
[coin],
|
[coin],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
) as _i4.FusionInfo);
|
) as _i5.FusionInfo);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void setFusionServerInfo(
|
void setFusionServerInfo(
|
||||||
_i2.CryptoCurrency? coin,
|
_i2.CryptoCurrency? coin,
|
||||||
_i4.FusionInfo? fusionServerInfo,
|
_i5.FusionInfo? fusionServerInfo,
|
||||||
) =>
|
) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -1243,7 +1270,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void addListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
void addListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addListener,
|
#addListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
@ -1252,7 +1279,7 @@ class MockPrefs extends _i1.Mock implements _i8.Prefs {
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod(
|
void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#removeListener,
|
#removeListener,
|
||||||
[listener],
|
[listener],
|
||||||
|
|
|
@ -3,15 +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 _i6;
|
import 'dart:async' as _i8;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i3;
|
import 'package:decimal/decimal.dart' as _i4;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:mockito/src/dummies.dart' as _i5;
|
import 'package:mockito/src/dummies.dart' as _i7;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i7;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i9;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
|
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i5;
|
||||||
|
import 'package:stackwallet/models/electrumx_response/spark_models.dart' as _i3;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i10;
|
||||||
|
import 'package:stackwallet/utilities/tor_plain_net_option_enum.dart' as _i6;
|
||||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||||
as _i2;
|
as _i2;
|
||||||
|
|
||||||
|
@ -49,8 +51,9 @@ class _FakeDuration_1 extends _i1.SmartFake implements Duration {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
class _FakeSparkAnonymitySetMeta_2 extends _i1.SmartFake
|
||||||
_FakeDecimal_2(
|
implements _i3.SparkAnonymitySetMeta {
|
||||||
|
_FakeSparkAnonymitySetMeta_2(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -59,9 +62,19 @@ class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumXClient_3 extends _i1.SmartFake
|
class _FakeDecimal_3 extends _i1.SmartFake implements _i4.Decimal {
|
||||||
implements _i4.ElectrumXClient {
|
_FakeDecimal_3(
|
||||||
_FakeElectrumXClient_3(
|
Object parent,
|
||||||
|
Invocation parentInvocation,
|
||||||
|
) : super(
|
||||||
|
parent,
|
||||||
|
parentInvocation,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
class _FakeElectrumXClient_4 extends _i1.SmartFake
|
||||||
|
implements _i5.ElectrumXClient {
|
||||||
|
_FakeElectrumXClient_4(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -73,7 +86,7 @@ class _FakeElectrumXClient_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 _i4.ElectrumXClient {
|
class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
MockElectrumXClient() {
|
MockElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -87,6 +100,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
),
|
),
|
||||||
) as _i2.CryptoCurrency);
|
) as _i2.CryptoCurrency);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i6.TorPlainNetworkOption get netType => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#netType),
|
||||||
|
returnValue: _i6.TorPlainNetworkOption.tor,
|
||||||
|
) as _i6.TorPlainNetworkOption);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get currentFailoverIndex => (super.noSuchMethod(
|
int get currentFailoverIndex => (super.noSuchMethod(
|
||||||
Invocation.getter(#currentFailoverIndex),
|
Invocation.getter(#currentFailoverIndex),
|
||||||
|
@ -115,7 +134,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
@override
|
@override
|
||||||
String get host => (super.noSuchMethod(
|
String get host => (super.noSuchMethod(
|
||||||
Invocation.getter(#host),
|
Invocation.getter(#host),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#host),
|
Invocation.getter(#host),
|
||||||
),
|
),
|
||||||
|
@ -134,27 +153,27 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> closeAdapter() => (super.noSuchMethod(
|
_i8.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#closeAdapter,
|
#closeAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
_i8.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#checkElectrumAdapter,
|
#checkElectrumAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<dynamic> request({
|
_i8.Future<dynamic> request({
|
||||||
required String? command,
|
required String? command,
|
||||||
List<dynamic>? args = const [],
|
List<dynamic>? args = const [],
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -173,11 +192,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestTimeout: requestTimeout,
|
#requestTimeout: requestTimeout,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<dynamic>.value(),
|
returnValue: _i8.Future<dynamic>.value(),
|
||||||
) as _i6.Future<dynamic>);
|
) as _i8.Future<dynamic>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<dynamic>> batchRequest({
|
_i8.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),
|
||||||
|
@ -194,11 +213,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<dynamic>>.value(<dynamic>[]),
|
returnValue: _i8.Future<List<dynamic>>.value(<dynamic>[]),
|
||||||
) as _i6.Future<List<dynamic>>);
|
) as _i8.Future<List<dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<bool> ping({
|
_i8.Future<bool> ping({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
int? retryCount = 1,
|
int? retryCount = 1,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -211,11 +230,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#retryCount: retryCount,
|
#retryCount: retryCount,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<bool>.value(false),
|
returnValue: _i8.Future<bool>.value(false),
|
||||||
) as _i6.Future<bool>);
|
) as _i8.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getBlockHeadTip,
|
#getBlockHeadTip,
|
||||||
|
@ -223,11 +242,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getServerFeatures,
|
#getServerFeatures,
|
||||||
|
@ -235,11 +254,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<String> broadcastTransaction({
|
_i8.Future<String> broadcastTransaction({
|
||||||
required String? rawTx,
|
required String? rawTx,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -252,7 +271,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<String>.value(_i5.dummyValue<String>(
|
returnValue: _i8.Future<String>.value(_i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#broadcastTransaction,
|
#broadcastTransaction,
|
||||||
|
@ -263,10 +282,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<String>);
|
) as _i8.Future<String>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getBalance({
|
_i8.Future<Map<String, dynamic>> getBalance({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -280,11 +299,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getHistory({
|
_i8.Future<List<Map<String, dynamic>>> getHistory({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -297,12 +316,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
) as _i8.Future<List<Map<String, dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
_i8.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -310,12 +329,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
) as _i8.Future<List<List<Map<String, dynamic>>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getUTXOs({
|
_i8.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -328,12 +347,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
) as _i8.Future<List<Map<String, dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
_i8.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -341,12 +360,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
) as _i8.Future<List<List<Map<String, dynamic>>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
_i8.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -362,11 +381,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
||||||
String? groupId = r'1',
|
String? groupId = r'1',
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -382,11 +401,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<dynamic> getLelantusMintData({
|
_i8.Future<dynamic> getLelantusMintData({
|
||||||
dynamic mints,
|
dynamic mints,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -399,11 +418,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<dynamic>.value(),
|
returnValue: _i8.Future<dynamic>.value(),
|
||||||
) as _i6.Future<dynamic>);
|
) as _i8.Future<dynamic>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
_i8.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -417,22 +436,22 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
_i8.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getLelantusLatestCoinId,
|
#getLelantusLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<int>.value(0),
|
returnValue: _i8.Future<int>.value(0),
|
||||||
) as _i6.Future<int>);
|
) as _i8.Future<int>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||||
String? coinGroupId = r'1',
|
String? coinGroupId = r'1',
|
||||||
String? startBlockHash = r'',
|
String? startBlockHash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -448,58 +467,33 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
_i8.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||||
String? requestID,
|
|
||||||
required List<String>? sparkCoinHashes,
|
|
||||||
}) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getSparkMintMetaData,
|
|
||||||
[],
|
|
||||||
{
|
|
||||||
#requestID: requestID,
|
|
||||||
#sparkCoinHashes: sparkCoinHashes,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
|
||||||
<Map<String, dynamic>>[]),
|
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i6.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getSparkLatestCoinId,
|
#getSparkLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<int>.value(0),
|
returnValue: _i8.Future<int>.value(0),
|
||||||
) as _i6.Future<int>);
|
) as _i8.Future<int>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
_i8.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getMempoolTxids,
|
#getMempoolTxids,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<Set<String>>.value(<String>{}),
|
returnValue: _i8.Future<Set<String>>.value(<String>{}),
|
||||||
) as _i6.Future<Set<String>>);
|
) as _i8.Future<Set<String>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<
|
_i8.Future<List<_i3.SparkMempoolData>> getMempoolSparkData({
|
||||||
List<
|
|
||||||
({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>> getMempoolSparkData({
|
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required List<String>? txids,
|
required List<String>? txids,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -512,30 +506,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#txids: txids,
|
#txids: txids,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<
|
returnValue: _i8.Future<List<_i3.SparkMempoolData>>.value(
|
||||||
List<
|
<_i3.SparkMempoolData>[]),
|
||||||
({
|
) as _i8.Future<List<_i3.SparkMempoolData>>);
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>>.value(<({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>[]),
|
|
||||||
) as _i6.Future<
|
|
||||||
List<
|
|
||||||
({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>>);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
_i8.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -548,11 +524,62 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
returnValue: _i8.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
||||||
) as _i6.Future<List<List<dynamic>>>);
|
) as _i8.Future<List<List<dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<bool> isMasterNodeCollateral({
|
_i8.Future<_i3.SparkAnonymitySetMeta> getSparkAnonymitySetMeta({
|
||||||
|
String? requestID,
|
||||||
|
required int? coinGroupId,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetMeta,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
returnValue: _i8.Future<_i3.SparkAnonymitySetMeta>.value(
|
||||||
|
_FakeSparkAnonymitySetMeta_2(
|
||||||
|
this,
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetMeta,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
)),
|
||||||
|
) as _i8.Future<_i3.SparkAnonymitySetMeta>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i8.Future<List<dynamic>> getSparkAnonymitySetBySector({
|
||||||
|
String? requestID,
|
||||||
|
required int? coinGroupId,
|
||||||
|
required String? latestBlock,
|
||||||
|
required int? startIndex,
|
||||||
|
required int? endIndex,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetBySector,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
#latestBlock: latestBlock,
|
||||||
|
#startIndex: startIndex,
|
||||||
|
#endIndex: endIndex,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
returnValue: _i8.Future<List<dynamic>>.value(<dynamic>[]),
|
||||||
|
) as _i8.Future<List<dynamic>>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i8.Future<bool> isMasterNodeCollateral({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required String? txid,
|
required String? txid,
|
||||||
required int? index,
|
required int? index,
|
||||||
|
@ -567,11 +594,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#index: index,
|
#index: index,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<bool>.value(false),
|
returnValue: _i8.Future<bool>.value(false),
|
||||||
) as _i6.Future<bool>);
|
) as _i8.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFeeRate,
|
#getFeeRate,
|
||||||
|
@ -579,11 +606,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i3.Decimal> estimateFee({
|
_i8.Future<_i4.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -596,7 +623,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
returnValue: _i8.Future<_i4.Decimal>.value(_FakeDecimal_3(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -607,16 +634,16 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i3.Decimal>);
|
) as _i8.Future<_i4.Decimal>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i8.Future<_i4.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
returnValue: _i8.Future<_i4.Decimal>.value(_FakeDecimal_3(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -624,29 +651,29 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i3.Decimal>);
|
) as _i8.Future<_i4.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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 _i7.CachedElectrumXClient {
|
implements _i9.CachedElectrumXClient {
|
||||||
MockCachedElectrumXClient() {
|
MockCachedElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i4.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
_i5.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: _FakeElectrumXClient_3(
|
returnValue: _FakeElectrumXClient_4(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i4.ElectrumXClient);
|
) as _i5.ElectrumXClient);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
|
@ -662,8 +689,8 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||||
|
@ -671,7 +698,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#base64ToHex,
|
#base64ToHex,
|
||||||
[source],
|
[source],
|
||||||
),
|
),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#base64ToHex,
|
#base64ToHex,
|
||||||
|
@ -686,7 +713,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#base64ToReverseHex,
|
#base64ToReverseHex,
|
||||||
[source],
|
[source],
|
||||||
),
|
),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#base64ToReverseHex,
|
#base64ToReverseHex,
|
||||||
|
@ -696,7 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
) as String);
|
) as String);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
_i8.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
|
@ -712,11 +739,11 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<String>> getUsedCoinSerials({
|
_i8.Future<List<String>> getUsedCoinSerials({
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
int? startNumber = 0,
|
int? startNumber = 0,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -729,11 +756,11 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<String>>.value(<String>[]),
|
returnValue: _i8.Future<List<String>>.value(<String>[]),
|
||||||
) as _i6.Future<List<String>>);
|
) as _i8.Future<List<String>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> clearSharedTransactionCache(
|
_i8.Future<void> clearSharedTransactionCache(
|
||||||
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -741,16 +768,16 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
[],
|
[],
|
||||||
{#cryptoCurrency: cryptoCurrency},
|
{#cryptoCurrency: cryptoCurrency},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [TransactionNotificationTracker].
|
/// A class which mocks [TransactionNotificationTracker].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockTransactionNotificationTracker extends _i1.Mock
|
class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
implements _i8.TransactionNotificationTracker {
|
implements _i10.TransactionNotificationTracker {
|
||||||
MockTransactionNotificationTracker() {
|
MockTransactionNotificationTracker() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -758,7 +785,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
@override
|
@override
|
||||||
String get walletId => (super.noSuchMethod(
|
String get walletId => (super.noSuchMethod(
|
||||||
Invocation.getter(#walletId),
|
Invocation.getter(#walletId),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#walletId),
|
Invocation.getter(#walletId),
|
||||||
),
|
),
|
||||||
|
@ -786,14 +813,14 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedPending,
|
#addNotifiedPending,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
|
@ -805,22 +832,22 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedConfirmed,
|
#addNotifiedConfirmed,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#deleteTransaction,
|
#deleteTransaction,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,15 +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 _i6;
|
import 'dart:async' as _i8;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i3;
|
import 'package:decimal/decimal.dart' as _i4;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:mockito/src/dummies.dart' as _i5;
|
import 'package:mockito/src/dummies.dart' as _i7;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i7;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i9;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
|
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i5;
|
||||||
|
import 'package:stackwallet/models/electrumx_response/spark_models.dart' as _i3;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i10;
|
||||||
|
import 'package:stackwallet/utilities/tor_plain_net_option_enum.dart' as _i6;
|
||||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||||
as _i2;
|
as _i2;
|
||||||
|
|
||||||
|
@ -49,8 +51,9 @@ class _FakeDuration_1 extends _i1.SmartFake implements Duration {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
class _FakeSparkAnonymitySetMeta_2 extends _i1.SmartFake
|
||||||
_FakeDecimal_2(
|
implements _i3.SparkAnonymitySetMeta {
|
||||||
|
_FakeSparkAnonymitySetMeta_2(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -59,9 +62,19 @@ class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumXClient_3 extends _i1.SmartFake
|
class _FakeDecimal_3 extends _i1.SmartFake implements _i4.Decimal {
|
||||||
implements _i4.ElectrumXClient {
|
_FakeDecimal_3(
|
||||||
_FakeElectrumXClient_3(
|
Object parent,
|
||||||
|
Invocation parentInvocation,
|
||||||
|
) : super(
|
||||||
|
parent,
|
||||||
|
parentInvocation,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
class _FakeElectrumXClient_4 extends _i1.SmartFake
|
||||||
|
implements _i5.ElectrumXClient {
|
||||||
|
_FakeElectrumXClient_4(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -73,7 +86,7 @@ class _FakeElectrumXClient_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 _i4.ElectrumXClient {
|
class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
MockElectrumXClient() {
|
MockElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -87,6 +100,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
),
|
),
|
||||||
) as _i2.CryptoCurrency);
|
) as _i2.CryptoCurrency);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i6.TorPlainNetworkOption get netType => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#netType),
|
||||||
|
returnValue: _i6.TorPlainNetworkOption.tor,
|
||||||
|
) as _i6.TorPlainNetworkOption);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get currentFailoverIndex => (super.noSuchMethod(
|
int get currentFailoverIndex => (super.noSuchMethod(
|
||||||
Invocation.getter(#currentFailoverIndex),
|
Invocation.getter(#currentFailoverIndex),
|
||||||
|
@ -115,7 +134,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
@override
|
@override
|
||||||
String get host => (super.noSuchMethod(
|
String get host => (super.noSuchMethod(
|
||||||
Invocation.getter(#host),
|
Invocation.getter(#host),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#host),
|
Invocation.getter(#host),
|
||||||
),
|
),
|
||||||
|
@ -134,27 +153,27 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> closeAdapter() => (super.noSuchMethod(
|
_i8.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#closeAdapter,
|
#closeAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
_i8.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#checkElectrumAdapter,
|
#checkElectrumAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<dynamic> request({
|
_i8.Future<dynamic> request({
|
||||||
required String? command,
|
required String? command,
|
||||||
List<dynamic>? args = const [],
|
List<dynamic>? args = const [],
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -173,11 +192,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestTimeout: requestTimeout,
|
#requestTimeout: requestTimeout,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<dynamic>.value(),
|
returnValue: _i8.Future<dynamic>.value(),
|
||||||
) as _i6.Future<dynamic>);
|
) as _i8.Future<dynamic>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<dynamic>> batchRequest({
|
_i8.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),
|
||||||
|
@ -194,11 +213,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<dynamic>>.value(<dynamic>[]),
|
returnValue: _i8.Future<List<dynamic>>.value(<dynamic>[]),
|
||||||
) as _i6.Future<List<dynamic>>);
|
) as _i8.Future<List<dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<bool> ping({
|
_i8.Future<bool> ping({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
int? retryCount = 1,
|
int? retryCount = 1,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -211,11 +230,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#retryCount: retryCount,
|
#retryCount: retryCount,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<bool>.value(false),
|
returnValue: _i8.Future<bool>.value(false),
|
||||||
) as _i6.Future<bool>);
|
) as _i8.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getBlockHeadTip,
|
#getBlockHeadTip,
|
||||||
|
@ -223,11 +242,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getServerFeatures,
|
#getServerFeatures,
|
||||||
|
@ -235,11 +254,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<String> broadcastTransaction({
|
_i8.Future<String> broadcastTransaction({
|
||||||
required String? rawTx,
|
required String? rawTx,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -252,7 +271,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<String>.value(_i5.dummyValue<String>(
|
returnValue: _i8.Future<String>.value(_i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#broadcastTransaction,
|
#broadcastTransaction,
|
||||||
|
@ -263,10 +282,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<String>);
|
) as _i8.Future<String>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getBalance({
|
_i8.Future<Map<String, dynamic>> getBalance({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -280,11 +299,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getHistory({
|
_i8.Future<List<Map<String, dynamic>>> getHistory({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -297,12 +316,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
) as _i8.Future<List<Map<String, dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
_i8.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -310,12 +329,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
) as _i8.Future<List<List<Map<String, dynamic>>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getUTXOs({
|
_i8.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -328,12 +347,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
) as _i8.Future<List<Map<String, dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
_i8.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -341,12 +360,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
) as _i8.Future<List<List<Map<String, dynamic>>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
_i8.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -362,11 +381,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
||||||
String? groupId = r'1',
|
String? groupId = r'1',
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -382,11 +401,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<dynamic> getLelantusMintData({
|
_i8.Future<dynamic> getLelantusMintData({
|
||||||
dynamic mints,
|
dynamic mints,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -399,11 +418,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<dynamic>.value(),
|
returnValue: _i8.Future<dynamic>.value(),
|
||||||
) as _i6.Future<dynamic>);
|
) as _i8.Future<dynamic>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
_i8.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -417,22 +436,22 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
_i8.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getLelantusLatestCoinId,
|
#getLelantusLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<int>.value(0),
|
returnValue: _i8.Future<int>.value(0),
|
||||||
) as _i6.Future<int>);
|
) as _i8.Future<int>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||||
String? coinGroupId = r'1',
|
String? coinGroupId = r'1',
|
||||||
String? startBlockHash = r'',
|
String? startBlockHash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -448,58 +467,33 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
_i8.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||||
String? requestID,
|
|
||||||
required List<String>? sparkCoinHashes,
|
|
||||||
}) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getSparkMintMetaData,
|
|
||||||
[],
|
|
||||||
{
|
|
||||||
#requestID: requestID,
|
|
||||||
#sparkCoinHashes: sparkCoinHashes,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
|
||||||
<Map<String, dynamic>>[]),
|
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i6.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getSparkLatestCoinId,
|
#getSparkLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<int>.value(0),
|
returnValue: _i8.Future<int>.value(0),
|
||||||
) as _i6.Future<int>);
|
) as _i8.Future<int>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
_i8.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getMempoolTxids,
|
#getMempoolTxids,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<Set<String>>.value(<String>{}),
|
returnValue: _i8.Future<Set<String>>.value(<String>{}),
|
||||||
) as _i6.Future<Set<String>>);
|
) as _i8.Future<Set<String>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<
|
_i8.Future<List<_i3.SparkMempoolData>> getMempoolSparkData({
|
||||||
List<
|
|
||||||
({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>> getMempoolSparkData({
|
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required List<String>? txids,
|
required List<String>? txids,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -512,30 +506,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#txids: txids,
|
#txids: txids,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<
|
returnValue: _i8.Future<List<_i3.SparkMempoolData>>.value(
|
||||||
List<
|
<_i3.SparkMempoolData>[]),
|
||||||
({
|
) as _i8.Future<List<_i3.SparkMempoolData>>);
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>>.value(<({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>[]),
|
|
||||||
) as _i6.Future<
|
|
||||||
List<
|
|
||||||
({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>>);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
_i8.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -548,11 +524,62 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
returnValue: _i8.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
||||||
) as _i6.Future<List<List<dynamic>>>);
|
) as _i8.Future<List<List<dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<bool> isMasterNodeCollateral({
|
_i8.Future<_i3.SparkAnonymitySetMeta> getSparkAnonymitySetMeta({
|
||||||
|
String? requestID,
|
||||||
|
required int? coinGroupId,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetMeta,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
returnValue: _i8.Future<_i3.SparkAnonymitySetMeta>.value(
|
||||||
|
_FakeSparkAnonymitySetMeta_2(
|
||||||
|
this,
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetMeta,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
)),
|
||||||
|
) as _i8.Future<_i3.SparkAnonymitySetMeta>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i8.Future<List<dynamic>> getSparkAnonymitySetBySector({
|
||||||
|
String? requestID,
|
||||||
|
required int? coinGroupId,
|
||||||
|
required String? latestBlock,
|
||||||
|
required int? startIndex,
|
||||||
|
required int? endIndex,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetBySector,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
#latestBlock: latestBlock,
|
||||||
|
#startIndex: startIndex,
|
||||||
|
#endIndex: endIndex,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
returnValue: _i8.Future<List<dynamic>>.value(<dynamic>[]),
|
||||||
|
) as _i8.Future<List<dynamic>>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i8.Future<bool> isMasterNodeCollateral({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required String? txid,
|
required String? txid,
|
||||||
required int? index,
|
required int? index,
|
||||||
|
@ -567,11 +594,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#index: index,
|
#index: index,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<bool>.value(false),
|
returnValue: _i8.Future<bool>.value(false),
|
||||||
) as _i6.Future<bool>);
|
) as _i8.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFeeRate,
|
#getFeeRate,
|
||||||
|
@ -579,11 +606,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i3.Decimal> estimateFee({
|
_i8.Future<_i4.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -596,7 +623,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
returnValue: _i8.Future<_i4.Decimal>.value(_FakeDecimal_3(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -607,16 +634,16 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i3.Decimal>);
|
) as _i8.Future<_i4.Decimal>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i8.Future<_i4.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
returnValue: _i8.Future<_i4.Decimal>.value(_FakeDecimal_3(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -624,29 +651,29 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i3.Decimal>);
|
) as _i8.Future<_i4.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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 _i7.CachedElectrumXClient {
|
implements _i9.CachedElectrumXClient {
|
||||||
MockCachedElectrumXClient() {
|
MockCachedElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i4.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
_i5.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: _FakeElectrumXClient_3(
|
returnValue: _FakeElectrumXClient_4(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i4.ElectrumXClient);
|
) as _i5.ElectrumXClient);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
|
@ -662,8 +689,8 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||||
|
@ -671,7 +698,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#base64ToHex,
|
#base64ToHex,
|
||||||
[source],
|
[source],
|
||||||
),
|
),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#base64ToHex,
|
#base64ToHex,
|
||||||
|
@ -686,7 +713,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#base64ToReverseHex,
|
#base64ToReverseHex,
|
||||||
[source],
|
[source],
|
||||||
),
|
),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#base64ToReverseHex,
|
#base64ToReverseHex,
|
||||||
|
@ -696,7 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
) as String);
|
) as String);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
_i8.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
|
@ -712,11 +739,11 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<String>> getUsedCoinSerials({
|
_i8.Future<List<String>> getUsedCoinSerials({
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
int? startNumber = 0,
|
int? startNumber = 0,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -729,11 +756,11 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<String>>.value(<String>[]),
|
returnValue: _i8.Future<List<String>>.value(<String>[]),
|
||||||
) as _i6.Future<List<String>>);
|
) as _i8.Future<List<String>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> clearSharedTransactionCache(
|
_i8.Future<void> clearSharedTransactionCache(
|
||||||
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -741,16 +768,16 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
[],
|
[],
|
||||||
{#cryptoCurrency: cryptoCurrency},
|
{#cryptoCurrency: cryptoCurrency},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [TransactionNotificationTracker].
|
/// A class which mocks [TransactionNotificationTracker].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockTransactionNotificationTracker extends _i1.Mock
|
class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
implements _i8.TransactionNotificationTracker {
|
implements _i10.TransactionNotificationTracker {
|
||||||
MockTransactionNotificationTracker() {
|
MockTransactionNotificationTracker() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -758,7 +785,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
@override
|
@override
|
||||||
String get walletId => (super.noSuchMethod(
|
String get walletId => (super.noSuchMethod(
|
||||||
Invocation.getter(#walletId),
|
Invocation.getter(#walletId),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#walletId),
|
Invocation.getter(#walletId),
|
||||||
),
|
),
|
||||||
|
@ -786,14 +813,14 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedPending,
|
#addNotifiedPending,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
|
@ -805,22 +832,22 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedConfirmed,
|
#addNotifiedConfirmed,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#deleteTransaction,
|
#deleteTransaction,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,15 +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 _i6;
|
import 'dart:async' as _i8;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i3;
|
import 'package:decimal/decimal.dart' as _i4;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:mockito/src/dummies.dart' as _i5;
|
import 'package:mockito/src/dummies.dart' as _i7;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i7;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i9;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
|
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i5;
|
||||||
|
import 'package:stackwallet/models/electrumx_response/spark_models.dart' as _i3;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i10;
|
||||||
|
import 'package:stackwallet/utilities/tor_plain_net_option_enum.dart' as _i6;
|
||||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||||
as _i2;
|
as _i2;
|
||||||
|
|
||||||
|
@ -49,8 +51,9 @@ class _FakeDuration_1 extends _i1.SmartFake implements Duration {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
class _FakeSparkAnonymitySetMeta_2 extends _i1.SmartFake
|
||||||
_FakeDecimal_2(
|
implements _i3.SparkAnonymitySetMeta {
|
||||||
|
_FakeSparkAnonymitySetMeta_2(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -59,9 +62,19 @@ class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumXClient_3 extends _i1.SmartFake
|
class _FakeDecimal_3 extends _i1.SmartFake implements _i4.Decimal {
|
||||||
implements _i4.ElectrumXClient {
|
_FakeDecimal_3(
|
||||||
_FakeElectrumXClient_3(
|
Object parent,
|
||||||
|
Invocation parentInvocation,
|
||||||
|
) : super(
|
||||||
|
parent,
|
||||||
|
parentInvocation,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
class _FakeElectrumXClient_4 extends _i1.SmartFake
|
||||||
|
implements _i5.ElectrumXClient {
|
||||||
|
_FakeElectrumXClient_4(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -73,7 +86,7 @@ class _FakeElectrumXClient_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 _i4.ElectrumXClient {
|
class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
MockElectrumXClient() {
|
MockElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -87,6 +100,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
),
|
),
|
||||||
) as _i2.CryptoCurrency);
|
) as _i2.CryptoCurrency);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i6.TorPlainNetworkOption get netType => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#netType),
|
||||||
|
returnValue: _i6.TorPlainNetworkOption.tor,
|
||||||
|
) as _i6.TorPlainNetworkOption);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get currentFailoverIndex => (super.noSuchMethod(
|
int get currentFailoverIndex => (super.noSuchMethod(
|
||||||
Invocation.getter(#currentFailoverIndex),
|
Invocation.getter(#currentFailoverIndex),
|
||||||
|
@ -115,7 +134,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
@override
|
@override
|
||||||
String get host => (super.noSuchMethod(
|
String get host => (super.noSuchMethod(
|
||||||
Invocation.getter(#host),
|
Invocation.getter(#host),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#host),
|
Invocation.getter(#host),
|
||||||
),
|
),
|
||||||
|
@ -134,27 +153,27 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> closeAdapter() => (super.noSuchMethod(
|
_i8.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#closeAdapter,
|
#closeAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
_i8.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#checkElectrumAdapter,
|
#checkElectrumAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<dynamic> request({
|
_i8.Future<dynamic> request({
|
||||||
required String? command,
|
required String? command,
|
||||||
List<dynamic>? args = const [],
|
List<dynamic>? args = const [],
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -173,11 +192,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestTimeout: requestTimeout,
|
#requestTimeout: requestTimeout,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<dynamic>.value(),
|
returnValue: _i8.Future<dynamic>.value(),
|
||||||
) as _i6.Future<dynamic>);
|
) as _i8.Future<dynamic>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<dynamic>> batchRequest({
|
_i8.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),
|
||||||
|
@ -194,11 +213,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<dynamic>>.value(<dynamic>[]),
|
returnValue: _i8.Future<List<dynamic>>.value(<dynamic>[]),
|
||||||
) as _i6.Future<List<dynamic>>);
|
) as _i8.Future<List<dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<bool> ping({
|
_i8.Future<bool> ping({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
int? retryCount = 1,
|
int? retryCount = 1,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -211,11 +230,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#retryCount: retryCount,
|
#retryCount: retryCount,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<bool>.value(false),
|
returnValue: _i8.Future<bool>.value(false),
|
||||||
) as _i6.Future<bool>);
|
) as _i8.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getBlockHeadTip,
|
#getBlockHeadTip,
|
||||||
|
@ -223,11 +242,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getServerFeatures,
|
#getServerFeatures,
|
||||||
|
@ -235,11 +254,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<String> broadcastTransaction({
|
_i8.Future<String> broadcastTransaction({
|
||||||
required String? rawTx,
|
required String? rawTx,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -252,7 +271,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<String>.value(_i5.dummyValue<String>(
|
returnValue: _i8.Future<String>.value(_i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#broadcastTransaction,
|
#broadcastTransaction,
|
||||||
|
@ -263,10 +282,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<String>);
|
) as _i8.Future<String>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getBalance({
|
_i8.Future<Map<String, dynamic>> getBalance({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -280,11 +299,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getHistory({
|
_i8.Future<List<Map<String, dynamic>>> getHistory({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -297,12 +316,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
) as _i8.Future<List<Map<String, dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
_i8.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -310,12 +329,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
) as _i8.Future<List<List<Map<String, dynamic>>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getUTXOs({
|
_i8.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -328,12 +347,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
) as _i8.Future<List<Map<String, dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
_i8.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -341,12 +360,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
) as _i8.Future<List<List<Map<String, dynamic>>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
_i8.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -362,11 +381,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
||||||
String? groupId = r'1',
|
String? groupId = r'1',
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -382,11 +401,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<dynamic> getLelantusMintData({
|
_i8.Future<dynamic> getLelantusMintData({
|
||||||
dynamic mints,
|
dynamic mints,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -399,11 +418,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<dynamic>.value(),
|
returnValue: _i8.Future<dynamic>.value(),
|
||||||
) as _i6.Future<dynamic>);
|
) as _i8.Future<dynamic>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
_i8.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -417,22 +436,22 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
_i8.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getLelantusLatestCoinId,
|
#getLelantusLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<int>.value(0),
|
returnValue: _i8.Future<int>.value(0),
|
||||||
) as _i6.Future<int>);
|
) as _i8.Future<int>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||||
String? coinGroupId = r'1',
|
String? coinGroupId = r'1',
|
||||||
String? startBlockHash = r'',
|
String? startBlockHash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -448,58 +467,33 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
_i8.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||||
String? requestID,
|
|
||||||
required List<String>? sparkCoinHashes,
|
|
||||||
}) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getSparkMintMetaData,
|
|
||||||
[],
|
|
||||||
{
|
|
||||||
#requestID: requestID,
|
|
||||||
#sparkCoinHashes: sparkCoinHashes,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
|
||||||
<Map<String, dynamic>>[]),
|
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i6.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getSparkLatestCoinId,
|
#getSparkLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<int>.value(0),
|
returnValue: _i8.Future<int>.value(0),
|
||||||
) as _i6.Future<int>);
|
) as _i8.Future<int>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
_i8.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getMempoolTxids,
|
#getMempoolTxids,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<Set<String>>.value(<String>{}),
|
returnValue: _i8.Future<Set<String>>.value(<String>{}),
|
||||||
) as _i6.Future<Set<String>>);
|
) as _i8.Future<Set<String>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<
|
_i8.Future<List<_i3.SparkMempoolData>> getMempoolSparkData({
|
||||||
List<
|
|
||||||
({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>> getMempoolSparkData({
|
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required List<String>? txids,
|
required List<String>? txids,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -512,30 +506,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#txids: txids,
|
#txids: txids,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<
|
returnValue: _i8.Future<List<_i3.SparkMempoolData>>.value(
|
||||||
List<
|
<_i3.SparkMempoolData>[]),
|
||||||
({
|
) as _i8.Future<List<_i3.SparkMempoolData>>);
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>>.value(<({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>[]),
|
|
||||||
) as _i6.Future<
|
|
||||||
List<
|
|
||||||
({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>>);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
_i8.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -548,11 +524,62 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
returnValue: _i8.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
||||||
) as _i6.Future<List<List<dynamic>>>);
|
) as _i8.Future<List<List<dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<bool> isMasterNodeCollateral({
|
_i8.Future<_i3.SparkAnonymitySetMeta> getSparkAnonymitySetMeta({
|
||||||
|
String? requestID,
|
||||||
|
required int? coinGroupId,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetMeta,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
returnValue: _i8.Future<_i3.SparkAnonymitySetMeta>.value(
|
||||||
|
_FakeSparkAnonymitySetMeta_2(
|
||||||
|
this,
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetMeta,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
)),
|
||||||
|
) as _i8.Future<_i3.SparkAnonymitySetMeta>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i8.Future<List<dynamic>> getSparkAnonymitySetBySector({
|
||||||
|
String? requestID,
|
||||||
|
required int? coinGroupId,
|
||||||
|
required String? latestBlock,
|
||||||
|
required int? startIndex,
|
||||||
|
required int? endIndex,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetBySector,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
#latestBlock: latestBlock,
|
||||||
|
#startIndex: startIndex,
|
||||||
|
#endIndex: endIndex,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
returnValue: _i8.Future<List<dynamic>>.value(<dynamic>[]),
|
||||||
|
) as _i8.Future<List<dynamic>>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i8.Future<bool> isMasterNodeCollateral({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required String? txid,
|
required String? txid,
|
||||||
required int? index,
|
required int? index,
|
||||||
|
@ -567,11 +594,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#index: index,
|
#index: index,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<bool>.value(false),
|
returnValue: _i8.Future<bool>.value(false),
|
||||||
) as _i6.Future<bool>);
|
) as _i8.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFeeRate,
|
#getFeeRate,
|
||||||
|
@ -579,11 +606,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i3.Decimal> estimateFee({
|
_i8.Future<_i4.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -596,7 +623,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
returnValue: _i8.Future<_i4.Decimal>.value(_FakeDecimal_3(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -607,16 +634,16 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i3.Decimal>);
|
) as _i8.Future<_i4.Decimal>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i8.Future<_i4.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
returnValue: _i8.Future<_i4.Decimal>.value(_FakeDecimal_3(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -624,29 +651,29 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i3.Decimal>);
|
) as _i8.Future<_i4.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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 _i7.CachedElectrumXClient {
|
implements _i9.CachedElectrumXClient {
|
||||||
MockCachedElectrumXClient() {
|
MockCachedElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i4.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
_i5.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: _FakeElectrumXClient_3(
|
returnValue: _FakeElectrumXClient_4(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i4.ElectrumXClient);
|
) as _i5.ElectrumXClient);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
|
@ -662,8 +689,8 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||||
|
@ -671,7 +698,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#base64ToHex,
|
#base64ToHex,
|
||||||
[source],
|
[source],
|
||||||
),
|
),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#base64ToHex,
|
#base64ToHex,
|
||||||
|
@ -686,7 +713,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#base64ToReverseHex,
|
#base64ToReverseHex,
|
||||||
[source],
|
[source],
|
||||||
),
|
),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#base64ToReverseHex,
|
#base64ToReverseHex,
|
||||||
|
@ -696,7 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
) as String);
|
) as String);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
_i8.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
|
@ -712,11 +739,11 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<String>> getUsedCoinSerials({
|
_i8.Future<List<String>> getUsedCoinSerials({
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
int? startNumber = 0,
|
int? startNumber = 0,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -729,11 +756,11 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<String>>.value(<String>[]),
|
returnValue: _i8.Future<List<String>>.value(<String>[]),
|
||||||
) as _i6.Future<List<String>>);
|
) as _i8.Future<List<String>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> clearSharedTransactionCache(
|
_i8.Future<void> clearSharedTransactionCache(
|
||||||
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -741,16 +768,16 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
[],
|
[],
|
||||||
{#cryptoCurrency: cryptoCurrency},
|
{#cryptoCurrency: cryptoCurrency},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [TransactionNotificationTracker].
|
/// A class which mocks [TransactionNotificationTracker].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockTransactionNotificationTracker extends _i1.Mock
|
class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
implements _i8.TransactionNotificationTracker {
|
implements _i10.TransactionNotificationTracker {
|
||||||
MockTransactionNotificationTracker() {
|
MockTransactionNotificationTracker() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -758,7 +785,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
@override
|
@override
|
||||||
String get walletId => (super.noSuchMethod(
|
String get walletId => (super.noSuchMethod(
|
||||||
Invocation.getter(#walletId),
|
Invocation.getter(#walletId),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#walletId),
|
Invocation.getter(#walletId),
|
||||||
),
|
),
|
||||||
|
@ -786,14 +813,14 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedPending,
|
#addNotifiedPending,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
|
@ -805,22 +832,22 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedConfirmed,
|
#addNotifiedConfirmed,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#deleteTransaction,
|
#deleteTransaction,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,15 +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 _i6;
|
import 'dart:async' as _i8;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i3;
|
import 'package:decimal/decimal.dart' as _i4;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:mockito/src/dummies.dart' as _i5;
|
import 'package:mockito/src/dummies.dart' as _i7;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i7;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i9;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
|
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i5;
|
||||||
|
import 'package:stackwallet/models/electrumx_response/spark_models.dart' as _i3;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i10;
|
||||||
|
import 'package:stackwallet/utilities/tor_plain_net_option_enum.dart' as _i6;
|
||||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||||
as _i2;
|
as _i2;
|
||||||
|
|
||||||
|
@ -49,8 +51,9 @@ class _FakeDuration_1 extends _i1.SmartFake implements Duration {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
class _FakeSparkAnonymitySetMeta_2 extends _i1.SmartFake
|
||||||
_FakeDecimal_2(
|
implements _i3.SparkAnonymitySetMeta {
|
||||||
|
_FakeSparkAnonymitySetMeta_2(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -59,9 +62,19 @@ class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumXClient_3 extends _i1.SmartFake
|
class _FakeDecimal_3 extends _i1.SmartFake implements _i4.Decimal {
|
||||||
implements _i4.ElectrumXClient {
|
_FakeDecimal_3(
|
||||||
_FakeElectrumXClient_3(
|
Object parent,
|
||||||
|
Invocation parentInvocation,
|
||||||
|
) : super(
|
||||||
|
parent,
|
||||||
|
parentInvocation,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
class _FakeElectrumXClient_4 extends _i1.SmartFake
|
||||||
|
implements _i5.ElectrumXClient {
|
||||||
|
_FakeElectrumXClient_4(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -73,7 +86,7 @@ class _FakeElectrumXClient_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 _i4.ElectrumXClient {
|
class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
MockElectrumXClient() {
|
MockElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -87,6 +100,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
),
|
),
|
||||||
) as _i2.CryptoCurrency);
|
) as _i2.CryptoCurrency);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i6.TorPlainNetworkOption get netType => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#netType),
|
||||||
|
returnValue: _i6.TorPlainNetworkOption.tor,
|
||||||
|
) as _i6.TorPlainNetworkOption);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get currentFailoverIndex => (super.noSuchMethod(
|
int get currentFailoverIndex => (super.noSuchMethod(
|
||||||
Invocation.getter(#currentFailoverIndex),
|
Invocation.getter(#currentFailoverIndex),
|
||||||
|
@ -115,7 +134,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
@override
|
@override
|
||||||
String get host => (super.noSuchMethod(
|
String get host => (super.noSuchMethod(
|
||||||
Invocation.getter(#host),
|
Invocation.getter(#host),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#host),
|
Invocation.getter(#host),
|
||||||
),
|
),
|
||||||
|
@ -134,27 +153,27 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> closeAdapter() => (super.noSuchMethod(
|
_i8.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#closeAdapter,
|
#closeAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
_i8.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#checkElectrumAdapter,
|
#checkElectrumAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<dynamic> request({
|
_i8.Future<dynamic> request({
|
||||||
required String? command,
|
required String? command,
|
||||||
List<dynamic>? args = const [],
|
List<dynamic>? args = const [],
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -173,11 +192,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestTimeout: requestTimeout,
|
#requestTimeout: requestTimeout,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<dynamic>.value(),
|
returnValue: _i8.Future<dynamic>.value(),
|
||||||
) as _i6.Future<dynamic>);
|
) as _i8.Future<dynamic>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<dynamic>> batchRequest({
|
_i8.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),
|
||||||
|
@ -194,11 +213,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<dynamic>>.value(<dynamic>[]),
|
returnValue: _i8.Future<List<dynamic>>.value(<dynamic>[]),
|
||||||
) as _i6.Future<List<dynamic>>);
|
) as _i8.Future<List<dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<bool> ping({
|
_i8.Future<bool> ping({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
int? retryCount = 1,
|
int? retryCount = 1,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -211,11 +230,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#retryCount: retryCount,
|
#retryCount: retryCount,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<bool>.value(false),
|
returnValue: _i8.Future<bool>.value(false),
|
||||||
) as _i6.Future<bool>);
|
) as _i8.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getBlockHeadTip,
|
#getBlockHeadTip,
|
||||||
|
@ -223,11 +242,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getServerFeatures,
|
#getServerFeatures,
|
||||||
|
@ -235,11 +254,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<String> broadcastTransaction({
|
_i8.Future<String> broadcastTransaction({
|
||||||
required String? rawTx,
|
required String? rawTx,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -252,7 +271,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<String>.value(_i5.dummyValue<String>(
|
returnValue: _i8.Future<String>.value(_i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#broadcastTransaction,
|
#broadcastTransaction,
|
||||||
|
@ -263,10 +282,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<String>);
|
) as _i8.Future<String>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getBalance({
|
_i8.Future<Map<String, dynamic>> getBalance({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -280,11 +299,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getHistory({
|
_i8.Future<List<Map<String, dynamic>>> getHistory({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -297,12 +316,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
) as _i8.Future<List<Map<String, dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
_i8.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -310,12 +329,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
) as _i8.Future<List<List<Map<String, dynamic>>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getUTXOs({
|
_i8.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -328,12 +347,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
) as _i8.Future<List<Map<String, dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
_i8.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -341,12 +360,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
) as _i8.Future<List<List<Map<String, dynamic>>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
_i8.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -362,11 +381,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
||||||
String? groupId = r'1',
|
String? groupId = r'1',
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -382,11 +401,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<dynamic> getLelantusMintData({
|
_i8.Future<dynamic> getLelantusMintData({
|
||||||
dynamic mints,
|
dynamic mints,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -399,11 +418,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<dynamic>.value(),
|
returnValue: _i8.Future<dynamic>.value(),
|
||||||
) as _i6.Future<dynamic>);
|
) as _i8.Future<dynamic>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
_i8.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -417,22 +436,22 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
_i8.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getLelantusLatestCoinId,
|
#getLelantusLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<int>.value(0),
|
returnValue: _i8.Future<int>.value(0),
|
||||||
) as _i6.Future<int>);
|
) as _i8.Future<int>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||||
String? coinGroupId = r'1',
|
String? coinGroupId = r'1',
|
||||||
String? startBlockHash = r'',
|
String? startBlockHash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -448,58 +467,33 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
_i8.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||||
String? requestID,
|
|
||||||
required List<String>? sparkCoinHashes,
|
|
||||||
}) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getSparkMintMetaData,
|
|
||||||
[],
|
|
||||||
{
|
|
||||||
#requestID: requestID,
|
|
||||||
#sparkCoinHashes: sparkCoinHashes,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
|
||||||
<Map<String, dynamic>>[]),
|
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i6.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getSparkLatestCoinId,
|
#getSparkLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<int>.value(0),
|
returnValue: _i8.Future<int>.value(0),
|
||||||
) as _i6.Future<int>);
|
) as _i8.Future<int>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
_i8.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getMempoolTxids,
|
#getMempoolTxids,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<Set<String>>.value(<String>{}),
|
returnValue: _i8.Future<Set<String>>.value(<String>{}),
|
||||||
) as _i6.Future<Set<String>>);
|
) as _i8.Future<Set<String>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<
|
_i8.Future<List<_i3.SparkMempoolData>> getMempoolSparkData({
|
||||||
List<
|
|
||||||
({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>> getMempoolSparkData({
|
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required List<String>? txids,
|
required List<String>? txids,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -512,30 +506,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#txids: txids,
|
#txids: txids,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<
|
returnValue: _i8.Future<List<_i3.SparkMempoolData>>.value(
|
||||||
List<
|
<_i3.SparkMempoolData>[]),
|
||||||
({
|
) as _i8.Future<List<_i3.SparkMempoolData>>);
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>>.value(<({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>[]),
|
|
||||||
) as _i6.Future<
|
|
||||||
List<
|
|
||||||
({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>>);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
_i8.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -548,11 +524,62 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
returnValue: _i8.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
||||||
) as _i6.Future<List<List<dynamic>>>);
|
) as _i8.Future<List<List<dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<bool> isMasterNodeCollateral({
|
_i8.Future<_i3.SparkAnonymitySetMeta> getSparkAnonymitySetMeta({
|
||||||
|
String? requestID,
|
||||||
|
required int? coinGroupId,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetMeta,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
returnValue: _i8.Future<_i3.SparkAnonymitySetMeta>.value(
|
||||||
|
_FakeSparkAnonymitySetMeta_2(
|
||||||
|
this,
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetMeta,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
)),
|
||||||
|
) as _i8.Future<_i3.SparkAnonymitySetMeta>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i8.Future<List<dynamic>> getSparkAnonymitySetBySector({
|
||||||
|
String? requestID,
|
||||||
|
required int? coinGroupId,
|
||||||
|
required String? latestBlock,
|
||||||
|
required int? startIndex,
|
||||||
|
required int? endIndex,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetBySector,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
#latestBlock: latestBlock,
|
||||||
|
#startIndex: startIndex,
|
||||||
|
#endIndex: endIndex,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
returnValue: _i8.Future<List<dynamic>>.value(<dynamic>[]),
|
||||||
|
) as _i8.Future<List<dynamic>>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i8.Future<bool> isMasterNodeCollateral({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required String? txid,
|
required String? txid,
|
||||||
required int? index,
|
required int? index,
|
||||||
|
@ -567,11 +594,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#index: index,
|
#index: index,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<bool>.value(false),
|
returnValue: _i8.Future<bool>.value(false),
|
||||||
) as _i6.Future<bool>);
|
) as _i8.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFeeRate,
|
#getFeeRate,
|
||||||
|
@ -579,11 +606,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i3.Decimal> estimateFee({
|
_i8.Future<_i4.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -596,7 +623,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
returnValue: _i8.Future<_i4.Decimal>.value(_FakeDecimal_3(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -607,16 +634,16 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i3.Decimal>);
|
) as _i8.Future<_i4.Decimal>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i8.Future<_i4.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
returnValue: _i8.Future<_i4.Decimal>.value(_FakeDecimal_3(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -624,29 +651,29 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i3.Decimal>);
|
) as _i8.Future<_i4.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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 _i7.CachedElectrumXClient {
|
implements _i9.CachedElectrumXClient {
|
||||||
MockCachedElectrumXClient() {
|
MockCachedElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i4.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
_i5.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: _FakeElectrumXClient_3(
|
returnValue: _FakeElectrumXClient_4(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i4.ElectrumXClient);
|
) as _i5.ElectrumXClient);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
|
@ -662,8 +689,8 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||||
|
@ -671,7 +698,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#base64ToHex,
|
#base64ToHex,
|
||||||
[source],
|
[source],
|
||||||
),
|
),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#base64ToHex,
|
#base64ToHex,
|
||||||
|
@ -686,7 +713,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#base64ToReverseHex,
|
#base64ToReverseHex,
|
||||||
[source],
|
[source],
|
||||||
),
|
),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#base64ToReverseHex,
|
#base64ToReverseHex,
|
||||||
|
@ -696,7 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
) as String);
|
) as String);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
_i8.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
|
@ -712,11 +739,11 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<String>> getUsedCoinSerials({
|
_i8.Future<List<String>> getUsedCoinSerials({
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
int? startNumber = 0,
|
int? startNumber = 0,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -729,11 +756,11 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<String>>.value(<String>[]),
|
returnValue: _i8.Future<List<String>>.value(<String>[]),
|
||||||
) as _i6.Future<List<String>>);
|
) as _i8.Future<List<String>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> clearSharedTransactionCache(
|
_i8.Future<void> clearSharedTransactionCache(
|
||||||
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -741,16 +768,16 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
[],
|
[],
|
||||||
{#cryptoCurrency: cryptoCurrency},
|
{#cryptoCurrency: cryptoCurrency},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [TransactionNotificationTracker].
|
/// A class which mocks [TransactionNotificationTracker].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockTransactionNotificationTracker extends _i1.Mock
|
class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
implements _i8.TransactionNotificationTracker {
|
implements _i10.TransactionNotificationTracker {
|
||||||
MockTransactionNotificationTracker() {
|
MockTransactionNotificationTracker() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -758,7 +785,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
@override
|
@override
|
||||||
String get walletId => (super.noSuchMethod(
|
String get walletId => (super.noSuchMethod(
|
||||||
Invocation.getter(#walletId),
|
Invocation.getter(#walletId),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#walletId),
|
Invocation.getter(#walletId),
|
||||||
),
|
),
|
||||||
|
@ -786,14 +813,14 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedPending,
|
#addNotifiedPending,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
|
@ -805,22 +832,22 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedConfirmed,
|
#addNotifiedConfirmed,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#deleteTransaction,
|
#deleteTransaction,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,15 +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 _i6;
|
import 'dart:async' as _i8;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i3;
|
import 'package:decimal/decimal.dart' as _i4;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:mockito/src/dummies.dart' as _i5;
|
import 'package:mockito/src/dummies.dart' as _i7;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i7;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i9;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
|
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i5;
|
||||||
|
import 'package:stackwallet/models/electrumx_response/spark_models.dart' as _i3;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i10;
|
||||||
|
import 'package:stackwallet/utilities/tor_plain_net_option_enum.dart' as _i6;
|
||||||
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
|
||||||
as _i2;
|
as _i2;
|
||||||
|
|
||||||
|
@ -49,8 +51,9 @@ class _FakeDuration_1 extends _i1.SmartFake implements Duration {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
class _FakeSparkAnonymitySetMeta_2 extends _i1.SmartFake
|
||||||
_FakeDecimal_2(
|
implements _i3.SparkAnonymitySetMeta {
|
||||||
|
_FakeSparkAnonymitySetMeta_2(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -59,9 +62,19 @@ class _FakeDecimal_2 extends _i1.SmartFake implements _i3.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakeElectrumXClient_3 extends _i1.SmartFake
|
class _FakeDecimal_3 extends _i1.SmartFake implements _i4.Decimal {
|
||||||
implements _i4.ElectrumXClient {
|
_FakeDecimal_3(
|
||||||
_FakeElectrumXClient_3(
|
Object parent,
|
||||||
|
Invocation parentInvocation,
|
||||||
|
) : super(
|
||||||
|
parent,
|
||||||
|
parentInvocation,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
class _FakeElectrumXClient_4 extends _i1.SmartFake
|
||||||
|
implements _i5.ElectrumXClient {
|
||||||
|
_FakeElectrumXClient_4(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -73,7 +86,7 @@ class _FakeElectrumXClient_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 _i4.ElectrumXClient {
|
class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
|
||||||
MockElectrumXClient() {
|
MockElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -87,6 +100,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
),
|
),
|
||||||
) as _i2.CryptoCurrency);
|
) as _i2.CryptoCurrency);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i6.TorPlainNetworkOption get netType => (super.noSuchMethod(
|
||||||
|
Invocation.getter(#netType),
|
||||||
|
returnValue: _i6.TorPlainNetworkOption.tor,
|
||||||
|
) as _i6.TorPlainNetworkOption);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get currentFailoverIndex => (super.noSuchMethod(
|
int get currentFailoverIndex => (super.noSuchMethod(
|
||||||
Invocation.getter(#currentFailoverIndex),
|
Invocation.getter(#currentFailoverIndex),
|
||||||
|
@ -115,7 +134,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
@override
|
@override
|
||||||
String get host => (super.noSuchMethod(
|
String get host => (super.noSuchMethod(
|
||||||
Invocation.getter(#host),
|
Invocation.getter(#host),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#host),
|
Invocation.getter(#host),
|
||||||
),
|
),
|
||||||
|
@ -134,27 +153,27 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> closeAdapter() => (super.noSuchMethod(
|
_i8.Future<void> closeAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#closeAdapter,
|
#closeAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
_i8.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#checkElectrumAdapter,
|
#checkElectrumAdapter,
|
||||||
[],
|
[],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<dynamic> request({
|
_i8.Future<dynamic> request({
|
||||||
required String? command,
|
required String? command,
|
||||||
List<dynamic>? args = const [],
|
List<dynamic>? args = const [],
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -173,11 +192,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestTimeout: requestTimeout,
|
#requestTimeout: requestTimeout,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<dynamic>.value(),
|
returnValue: _i8.Future<dynamic>.value(),
|
||||||
) as _i6.Future<dynamic>);
|
) as _i8.Future<dynamic>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<dynamic>> batchRequest({
|
_i8.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),
|
||||||
|
@ -194,11 +213,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<dynamic>>.value(<dynamic>[]),
|
returnValue: _i8.Future<List<dynamic>>.value(<dynamic>[]),
|
||||||
) as _i6.Future<List<dynamic>>);
|
) as _i8.Future<List<dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<bool> ping({
|
_i8.Future<bool> ping({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
int? retryCount = 1,
|
int? retryCount = 1,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -211,11 +230,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#retryCount: retryCount,
|
#retryCount: retryCount,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<bool>.value(false),
|
returnValue: _i8.Future<bool>.value(false),
|
||||||
) as _i6.Future<bool>);
|
) as _i8.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getBlockHeadTip,
|
#getBlockHeadTip,
|
||||||
|
@ -223,11 +242,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getServerFeatures,
|
#getServerFeatures,
|
||||||
|
@ -235,11 +254,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<String> broadcastTransaction({
|
_i8.Future<String> broadcastTransaction({
|
||||||
required String? rawTx,
|
required String? rawTx,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -252,7 +271,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<String>.value(_i5.dummyValue<String>(
|
returnValue: _i8.Future<String>.value(_i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#broadcastTransaction,
|
#broadcastTransaction,
|
||||||
|
@ -263,10 +282,10 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<String>);
|
) as _i8.Future<String>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getBalance({
|
_i8.Future<Map<String, dynamic>> getBalance({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -280,11 +299,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getHistory({
|
_i8.Future<List<Map<String, dynamic>>> getHistory({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -297,12 +316,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
) as _i8.Future<List<Map<String, dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
_i8.Future<List<List<Map<String, dynamic>>>> getBatchHistory(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -310,12 +329,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
) as _i8.Future<List<List<Map<String, dynamic>>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getUTXOs({
|
_i8.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -328,12 +347,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
) as _i8.Future<List<Map<String, dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
_i8.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||||
{required List<dynamic>? args}) =>
|
{required List<dynamic>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -341,12 +360,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<Map<String, dynamic>>>>.value(
|
returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
|
||||||
<List<Map<String, dynamic>>>[]),
|
<List<Map<String, dynamic>>>[]),
|
||||||
) as _i6.Future<List<List<Map<String, dynamic>>>>);
|
) as _i8.Future<List<List<Map<String, dynamic>>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
_i8.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -362,11 +381,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getLelantusAnonymitySet({
|
||||||
String? groupId = r'1',
|
String? groupId = r'1',
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -382,11 +401,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<dynamic> getLelantusMintData({
|
_i8.Future<dynamic> getLelantusMintData({
|
||||||
dynamic mints,
|
dynamic mints,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -399,11 +418,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<dynamic>.value(),
|
returnValue: _i8.Future<dynamic>.value(),
|
||||||
) as _i6.Future<dynamic>);
|
) as _i8.Future<dynamic>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
_i8.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -417,22 +436,22 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
_i8.Future<int> getLelantusLatestCoinId({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getLelantusLatestCoinId,
|
#getLelantusLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<int>.value(0),
|
returnValue: _i8.Future<int>.value(0),
|
||||||
) as _i6.Future<int>);
|
) as _i8.Future<int>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getSparkAnonymitySet({
|
||||||
String? coinGroupId = r'1',
|
String? coinGroupId = r'1',
|
||||||
String? startBlockHash = r'',
|
String? startBlockHash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -448,58 +467,33 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<Map<String, dynamic>>> getSparkMintMetaData({
|
_i8.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
||||||
String? requestID,
|
|
||||||
required List<String>? sparkCoinHashes,
|
|
||||||
}) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getSparkMintMetaData,
|
|
||||||
[],
|
|
||||||
{
|
|
||||||
#requestID: requestID,
|
|
||||||
#sparkCoinHashes: sparkCoinHashes,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
returnValue: _i6.Future<List<Map<String, dynamic>>>.value(
|
|
||||||
<Map<String, dynamic>>[]),
|
|
||||||
) as _i6.Future<List<Map<String, dynamic>>>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i6.Future<int> getSparkLatestCoinId({String? requestID}) =>
|
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getSparkLatestCoinId,
|
#getSparkLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<int>.value(0),
|
returnValue: _i8.Future<int>.value(0),
|
||||||
) as _i6.Future<int>);
|
) as _i8.Future<int>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
_i8.Future<Set<String>> getMempoolTxids({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getMempoolTxids,
|
#getMempoolTxids,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<Set<String>>.value(<String>{}),
|
returnValue: _i8.Future<Set<String>>.value(<String>{}),
|
||||||
) as _i6.Future<Set<String>>);
|
) as _i8.Future<Set<String>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<
|
_i8.Future<List<_i3.SparkMempoolData>> getMempoolSparkData({
|
||||||
List<
|
|
||||||
({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>> getMempoolSparkData({
|
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required List<String>? txids,
|
required List<String>? txids,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -512,30 +506,12 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#txids: txids,
|
#txids: txids,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<
|
returnValue: _i8.Future<List<_i3.SparkMempoolData>>.value(
|
||||||
List<
|
<_i3.SparkMempoolData>[]),
|
||||||
({
|
) as _i8.Future<List<_i3.SparkMempoolData>>);
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>>.value(<({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>[]),
|
|
||||||
) as _i6.Future<
|
|
||||||
List<
|
|
||||||
({
|
|
||||||
List<String> coins,
|
|
||||||
List<String> lTags,
|
|
||||||
List<String> serialContext,
|
|
||||||
String txid
|
|
||||||
})>>);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
_i8.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -548,11 +524,62 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
returnValue: _i8.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
|
||||||
) as _i6.Future<List<List<dynamic>>>);
|
) as _i8.Future<List<List<dynamic>>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<bool> isMasterNodeCollateral({
|
_i8.Future<_i3.SparkAnonymitySetMeta> getSparkAnonymitySetMeta({
|
||||||
|
String? requestID,
|
||||||
|
required int? coinGroupId,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetMeta,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
returnValue: _i8.Future<_i3.SparkAnonymitySetMeta>.value(
|
||||||
|
_FakeSparkAnonymitySetMeta_2(
|
||||||
|
this,
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetMeta,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
)),
|
||||||
|
) as _i8.Future<_i3.SparkAnonymitySetMeta>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i8.Future<List<dynamic>> getSparkAnonymitySetBySector({
|
||||||
|
String? requestID,
|
||||||
|
required int? coinGroupId,
|
||||||
|
required String? latestBlock,
|
||||||
|
required int? startIndex,
|
||||||
|
required int? endIndex,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#getSparkAnonymitySetBySector,
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
#requestID: requestID,
|
||||||
|
#coinGroupId: coinGroupId,
|
||||||
|
#latestBlock: latestBlock,
|
||||||
|
#startIndex: startIndex,
|
||||||
|
#endIndex: endIndex,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
returnValue: _i8.Future<List<dynamic>>.value(<dynamic>[]),
|
||||||
|
) as _i8.Future<List<dynamic>>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i8.Future<bool> isMasterNodeCollateral({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required String? txid,
|
required String? txid,
|
||||||
required int? index,
|
required int? index,
|
||||||
|
@ -567,11 +594,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#index: index,
|
#index: index,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<bool>.value(false),
|
returnValue: _i8.Future<bool>.value(false),
|
||||||
) as _i6.Future<bool>);
|
) as _i8.Future<bool>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
_i8.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFeeRate,
|
#getFeeRate,
|
||||||
|
@ -579,11 +606,11 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i3.Decimal> estimateFee({
|
_i8.Future<_i4.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -596,7 +623,7 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
returnValue: _i8.Future<_i4.Decimal>.value(_FakeDecimal_3(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -607,16 +634,16 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i3.Decimal>);
|
) as _i8.Future<_i4.Decimal>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<_i3.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i8.Future<_i4.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<_i3.Decimal>.value(_FakeDecimal_2(
|
returnValue: _i8.Future<_i4.Decimal>.value(_FakeDecimal_3(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -624,29 +651,29 @@ class MockElectrumXClient extends _i1.Mock implements _i4.ElectrumXClient {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i6.Future<_i3.Decimal>);
|
) as _i8.Future<_i4.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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 _i7.CachedElectrumXClient {
|
implements _i9.CachedElectrumXClient {
|
||||||
MockCachedElectrumXClient() {
|
MockCachedElectrumXClient() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i4.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
_i5.ElectrumXClient get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: _FakeElectrumXClient_3(
|
returnValue: _FakeElectrumXClient_4(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#electrumXClient),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i4.ElectrumXClient);
|
) as _i5.ElectrumXClient);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getAnonymitySet({
|
_i8.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
|
@ -662,8 +689,8 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||||
|
@ -671,7 +698,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#base64ToHex,
|
#base64ToHex,
|
||||||
[source],
|
[source],
|
||||||
),
|
),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#base64ToHex,
|
#base64ToHex,
|
||||||
|
@ -686,7 +713,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#base64ToReverseHex,
|
#base64ToReverseHex,
|
||||||
[source],
|
[source],
|
||||||
),
|
),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#base64ToReverseHex,
|
#base64ToReverseHex,
|
||||||
|
@ -696,7 +723,7 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
) as String);
|
) as String);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<Map<String, dynamic>> getTransaction({
|
_i8.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
|
@ -712,11 +739,11 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i6.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i6.Future<Map<String, dynamic>>);
|
) as _i8.Future<Map<String, dynamic>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<List<String>> getUsedCoinSerials({
|
_i8.Future<List<String>> getUsedCoinSerials({
|
||||||
required _i2.CryptoCurrency? cryptoCurrency,
|
required _i2.CryptoCurrency? cryptoCurrency,
|
||||||
int? startNumber = 0,
|
int? startNumber = 0,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -729,11 +756,11 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<List<String>>.value(<String>[]),
|
returnValue: _i8.Future<List<String>>.value(<String>[]),
|
||||||
) as _i6.Future<List<String>>);
|
) as _i8.Future<List<String>>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> clearSharedTransactionCache(
|
_i8.Future<void> clearSharedTransactionCache(
|
||||||
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
{required _i2.CryptoCurrency? cryptoCurrency}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -741,16 +768,16 @@ class MockCachedElectrumXClient extends _i1.Mock
|
||||||
[],
|
[],
|
||||||
{#cryptoCurrency: cryptoCurrency},
|
{#cryptoCurrency: cryptoCurrency},
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [TransactionNotificationTracker].
|
/// A class which mocks [TransactionNotificationTracker].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockTransactionNotificationTracker extends _i1.Mock
|
class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
implements _i8.TransactionNotificationTracker {
|
implements _i10.TransactionNotificationTracker {
|
||||||
MockTransactionNotificationTracker() {
|
MockTransactionNotificationTracker() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -758,7 +785,7 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
@override
|
@override
|
||||||
String get walletId => (super.noSuchMethod(
|
String get walletId => (super.noSuchMethod(
|
||||||
Invocation.getter(#walletId),
|
Invocation.getter(#walletId),
|
||||||
returnValue: _i5.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#walletId),
|
Invocation.getter(#walletId),
|
||||||
),
|
),
|
||||||
|
@ -786,14 +813,14 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedPending,
|
#addNotifiedPending,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
|
@ -805,22 +832,22 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
) as bool);
|
) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedConfirmed,
|
#addNotifiedConfirmed,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i6.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
_i8.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#deleteTransaction,
|
#deleteTransaction,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i6.Future<void>.value(),
|
returnValue: _i8.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||||
) as _i6.Future<void>);
|
) as _i8.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue