Merge remote-tracking branch 'origin_SW/staging' into fusion

# Conflicts:
#	lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_wallet_features.dart
This commit is contained in:
julian 2023-07-27 15:48:11 -06:00
commit cf03526d45
76 changed files with 535 additions and 413 deletions

View file

@ -69,13 +69,18 @@ class ElectrumX {
List<ElectrumXNode>? failovers; List<ElectrumXNode>? failovers;
int currentFailoverIndex = -1; int currentFailoverIndex = -1;
ElectrumX( final Duration connectionTimeoutForSpecialCaseJsonRPCClients;
{required String host,
required int port, ElectrumX({
required bool useSSL, required String host,
required Prefs prefs, required int port,
required List<ElectrumXNode> failovers, required bool useSSL,
JsonRPC? client}) { required Prefs prefs,
required List<ElectrumXNode> failovers,
JsonRPC? client,
this.connectionTimeoutForSpecialCaseJsonRPCClients =
const Duration(seconds: 60),
}) {
_prefs = prefs; _prefs = prefs;
_host = host; _host = host;
_port = port; _port = port;
@ -108,9 +113,9 @@ class ElectrumX {
Future<dynamic> request({ Future<dynamic> request({
required String command, required String command,
List<dynamic> args = const [], List<dynamic> args = const [],
Duration connectionTimeout = const Duration(seconds: 60),
String? requestID, String? requestID,
int retries = 2, int retries = 2,
Duration requestTimeout = const Duration(seconds: 60),
}) async { }) async {
if (!(await _allow())) { if (!(await _allow())) {
throw WifiOnlyException(); throw WifiOnlyException();
@ -121,26 +126,31 @@ class ElectrumX {
host: host, host: host,
port: port, port: port,
useSSL: useSSL, useSSL: useSSL,
connectionTimeout: connectionTimeout, connectionTimeout: connectionTimeoutForSpecialCaseJsonRPCClients,
); );
} else { } else {
_rpcClient = JsonRPC( _rpcClient = JsonRPC(
host: failovers![currentFailoverIndex].address, host: failovers![currentFailoverIndex].address,
port: failovers![currentFailoverIndex].port, port: failovers![currentFailoverIndex].port,
useSSL: failovers![currentFailoverIndex].useSSL, useSSL: failovers![currentFailoverIndex].useSSL,
connectionTimeout: connectionTimeout, connectionTimeout: connectionTimeoutForSpecialCaseJsonRPCClients,
); );
} }
try { try {
final requestId = requestID ?? const Uuid().v1(); final requestId = requestID ?? const Uuid().v1();
final jsonArgs = json.encode(args); final jsonArgs = json.encode(args);
final jsonRequestString = final jsonRequestString = '{"jsonrpc": "2.0", '
'{"jsonrpc": "2.0", "id": "$requestId","method": "$command","params": $jsonArgs}'; '"id": "$requestId",'
'"method": "$command",'
'"params": $jsonArgs}';
// Logging.instance.log("ElectrumX jsonRequestString: $jsonRequestString"); // Logging.instance.log("ElectrumX jsonRequestString: $jsonRequestString");
final response = await _rpcClient!.request(jsonRequestString); final response = await _rpcClient!.request(
jsonRequestString,
requestTimeout,
);
if (response.exception != null) { if (response.exception != null) {
throw response.exception!; throw response.exception!;
@ -174,7 +184,7 @@ class ElectrumX {
return request( return request(
command: command, command: command,
args: args, args: args,
connectionTimeout: connectionTimeout, requestTimeout: requestTimeout,
requestID: requestID, requestID: requestID,
retries: retries - 1, retries: retries - 1,
); );
@ -187,7 +197,7 @@ class ElectrumX {
return request( return request(
command: command, command: command,
args: args, args: args,
connectionTimeout: connectionTimeout, requestTimeout: requestTimeout,
requestID: requestID, requestID: requestID,
); );
} else { } else {
@ -204,7 +214,7 @@ class ElectrumX {
Future<List<Map<String, dynamic>>> batchRequest({ Future<List<Map<String, dynamic>>> batchRequest({
required String command, required String command,
required Map<String, List<dynamic>> args, required Map<String, List<dynamic>> args,
Duration connectionTimeout = const Duration(seconds: 60), Duration requestTimeout = const Duration(seconds: 60),
int retries = 2, int retries = 2,
}) async { }) async {
if (!(await _allow())) { if (!(await _allow())) {
@ -216,14 +226,14 @@ class ElectrumX {
host: host, host: host,
port: port, port: port,
useSSL: useSSL, useSSL: useSSL,
connectionTimeout: connectionTimeout, connectionTimeout: connectionTimeoutForSpecialCaseJsonRPCClients,
); );
} else { } else {
_rpcClient = JsonRPC( _rpcClient = JsonRPC(
host: failovers![currentFailoverIndex].address, host: failovers![currentFailoverIndex].address,
port: failovers![currentFailoverIndex].port, port: failovers![currentFailoverIndex].port,
useSSL: failovers![currentFailoverIndex].useSSL, useSSL: failovers![currentFailoverIndex].useSSL,
connectionTimeout: connectionTimeout, connectionTimeout: connectionTimeoutForSpecialCaseJsonRPCClients,
); );
} }
@ -246,7 +256,8 @@ class ElectrumX {
// Logging.instance.log("batch request: $request"); // Logging.instance.log("batch request: $request");
// send batch request // send batch request
final jsonRpcResponse = (await _rpcClient!.request(request)); final jsonRpcResponse =
(await _rpcClient!.request(request, requestTimeout));
if (jsonRpcResponse.exception != null) { if (jsonRpcResponse.exception != null) {
throw jsonRpcResponse.exception!; throw jsonRpcResponse.exception!;
@ -281,7 +292,7 @@ class ElectrumX {
return batchRequest( return batchRequest(
command: command, command: command,
args: args, args: args,
connectionTimeout: connectionTimeout, requestTimeout: requestTimeout,
retries: retries - 1, retries: retries - 1,
); );
} else { } else {
@ -293,7 +304,7 @@ class ElectrumX {
return batchRequest( return batchRequest(
command: command, command: command,
args: args, args: args,
connectionTimeout: connectionTimeout, requestTimeout: requestTimeout,
); );
} else { } else {
currentFailoverIndex = -1; currentFailoverIndex = -1;
@ -310,7 +321,7 @@ class ElectrumX {
final response = await request( final response = await request(
requestID: requestID, requestID: requestID,
command: 'server.ping', command: 'server.ping',
connectionTimeout: const Duration(seconds: 2), requestTimeout: const Duration(seconds: 2),
retries: retryCount, retries: retryCount,
).timeout(const Duration(seconds: 2)) as Map<String, dynamic>; ).timeout(const Duration(seconds: 2)) as Map<String, dynamic>;
return response.keys.contains("result") && response["result"] == null; return response.keys.contains("result") && response["result"] == null;
@ -442,7 +453,7 @@ class ElectrumX {
final response = await request( final response = await request(
requestID: requestID, requestID: requestID,
command: 'blockchain.scripthash.get_history', command: 'blockchain.scripthash.get_history',
connectionTimeout: const Duration(minutes: 5), requestTimeout: const Duration(minutes: 5),
args: [ args: [
scripthash, scripthash,
], ],
@ -666,11 +677,13 @@ class ElectrumX {
}) async { }) async {
try { try {
final response = await request( final response = await request(
requestID: requestID, requestID: requestID,
command: 'lelantus.getusedcoinserials', command: 'lelantus.getusedcoinserials',
args: [ args: [
"$startNumber", "$startNumber",
]); ],
requestTimeout: const Duration(minutes: 2),
);
return Map<String, dynamic>.from(response["result"] as Map); return Map<String, dynamic>.from(response["result"] as Map);
} catch (e) { } catch (e) {
Logging.instance.log(e, level: LogLevel.Error); Logging.instance.log(e, level: LogLevel.Error);

View file

@ -79,7 +79,6 @@ class JsonRPC {
// TODO different timeout length? // TODO different timeout length?
req.initiateTimeout( req.initiateTimeout(
Duration(seconds: connectionTimeout.inSeconds ~/ 2),
onTimedOut: () { onTimedOut: () {
_requestQueue.remove(req); _requestQueue.remove(req);
}, },
@ -88,7 +87,10 @@ class JsonRPC {
}); });
} }
Future<JsonRPCResponse> request(String jsonRpcRequest) async { Future<JsonRPCResponse> request(
String jsonRpcRequest,
Duration requestTimeout,
) async {
await _requestMutex.protect(() async { await _requestMutex.protect(() async {
if (_socket == null) { if (_socket == null) {
Logging.instance.log( Logging.instance.log(
@ -101,6 +103,7 @@ class JsonRPC {
final req = _JsonRPCRequest( final req = _JsonRPCRequest(
jsonRequest: jsonRpcRequest, jsonRequest: jsonRpcRequest,
requestTimeout: requestTimeout,
completer: Completer<JsonRPCResponse>(), completer: Completer<JsonRPCResponse>(),
); );
@ -243,9 +246,14 @@ class _JsonRPCRequest {
final String jsonRequest; final String jsonRequest;
final Completer<JsonRPCResponse> completer; final Completer<JsonRPCResponse> completer;
final Duration requestTimeout;
final List<int> _responseData = []; final List<int> _responseData = [];
_JsonRPCRequest({required this.jsonRequest, required this.completer}); _JsonRPCRequest({
required this.jsonRequest,
required this.completer,
required this.requestTimeout,
});
void appendDataAndCheckIfComplete(List<int> data) { void appendDataAndCheckIfComplete(List<int> data) {
_responseData.addAll(data); _responseData.addAll(data);
@ -263,11 +271,10 @@ class _JsonRPCRequest {
} }
} }
void initiateTimeout( void initiateTimeout({
Duration timeout, {
VoidCallback? onTimedOut, VoidCallback? onTimedOut,
}) { }) {
Future<void>.delayed(timeout).then((_) { Future<void>.delayed(requestTimeout).then((_) {
if (!isComplete) { if (!isComplete) {
try { try {
throw Exception("_JsonRPCRequest timed out: $jsonRequest"); throw Exception("_JsonRPCRequest timed out: $jsonRequest");

View file

@ -66,6 +66,8 @@ class _MonkeyViewState extends ConsumerState<MonkeyView> {
} }
} }
String _monkeyPath = "";
Future<void> _saveMonKeyToFile({ Future<void> _saveMonKeyToFile({
required Uint8List bytes, required Uint8List bytes,
bool isPNG = false, bool isPNG = false,
@ -96,6 +98,7 @@ class _MonkeyViewState extends ConsumerState<MonkeyView> {
} }
await imgFile.writeAsBytes(bytes); await imgFile.writeAsBytes(bytes);
_monkeyPath = filePath;
} }
@override @override
@ -369,7 +372,8 @@ class _MonkeyViewState extends ConsumerState<MonkeyView> {
if (!didError && mounted) { if (!didError && mounted) {
await showFloatingFlushBar( await showFloatingFlushBar(
type: FlushBarType.success, type: FlushBarType.success,
message: "SVG MonKey image saved", message:
"SVG MonKey image saved to $_monkeyPath",
context: context, context: context,
); );
} }
@ -421,7 +425,8 @@ class _MonkeyViewState extends ConsumerState<MonkeyView> {
if (!didError && mounted) { if (!didError && mounted) {
await showFloatingFlushBar( await showFloatingFlushBar(
type: FlushBarType.success, type: FlushBarType.success,
message: "PNG MonKey image saved", message:
"PNG MonKey image saved to $_monkeyPath",
context: context, context: context,
); );
} }

View file

@ -229,7 +229,7 @@ class _OrdinalImageGroup extends StatelessWidget {
static const _spacing = 12.0; static const _spacing = 12.0;
Future<void> _savePngToFile() async { Future<String> _savePngToFile() async {
final response = await get(Uri.parse(ordinal.content)); final response = await get(Uri.parse(ordinal.content));
if (response.statusCode != 200) { if (response.statusCode != 200) {
@ -257,6 +257,7 @@ class _OrdinalImageGroup extends StatelessWidget {
} }
await imgFile.writeAsBytes(bytes); await imgFile.writeAsBytes(bytes);
return filePath;
} }
@override @override
@ -309,11 +310,8 @@ class _OrdinalImageGroup extends StatelessWidget {
iconSpacing: 4, iconSpacing: 4,
onPressed: () async { onPressed: () async {
bool didError = false; bool didError = false;
await showLoading( final filePath = await showLoading<String>(
whileFuture: Future.wait([ whileFuture: _savePngToFile(),
_savePngToFile(),
Future<void>.delayed(const Duration(seconds: 2)),
]),
context: context, context: context,
isDesktop: true, isDesktop: true,
message: "Saving ordinal image", message: "Saving ordinal image",
@ -334,7 +332,7 @@ class _OrdinalImageGroup extends StatelessWidget {
if (!didError && context.mounted) { if (!didError && context.mounted) {
await showFloatingFlushBar( await showFloatingFlushBar(
type: FlushBarType.success, type: FlushBarType.success,
message: "Image saved", message: "Image saved to $filePath",
context: context, context: context,
); );
} }

View file

@ -930,22 +930,23 @@ class _WalletViewState extends ConsumerState<WalletView> {
); );
}, },
), ),
WalletNavigationBarItemData( if (coin == Coin.banano)
icon: SvgPicture.asset( WalletNavigationBarItemData(
Assets.svg.monkey, icon: SvgPicture.asset(
height: 20, Assets.svg.monkey,
width: 20, height: 20,
color: Theme.of(context) width: 20,
.extension<StackColors>()! color: Theme.of(context)
.bottomNavIconIcon, .extension<StackColors>()!
), .bottomNavIconIcon,
label: "MonKey", ),
onTap: () { label: "MonKey",
Navigator.of(context).pushNamed( onTap: () {
MonkeyView.routeName, Navigator.of(context).pushNamed(
arguments: widget.walletId, MonkeyView.routeName,
); arguments: widget.walletId,
}), );
}),
if (ref.watch( if (ref.watch(
walletsChangeNotifierProvider.select( walletsChangeNotifierProvider.select(
(value) => value (value) => value

View file

@ -10,6 +10,7 @@
import 'dart:async'; import 'dart:async';
import 'dart:io'; import 'dart:io';
import 'dart:typed_data';
import 'package:event_bus/event_bus.dart'; import 'package:event_bus/event_bus.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -28,6 +29,7 @@ import 'package:stackwallet/pages_desktop_specific/my_stack_view/wallet_view/sub
import 'package:stackwallet/providers/global/auto_swb_service_provider.dart'; import 'package:stackwallet/providers/global/auto_swb_service_provider.dart';
import 'package:stackwallet/providers/providers.dart'; import 'package:stackwallet/providers/providers.dart';
import 'package:stackwallet/providers/ui/transaction_filter_provider.dart'; import 'package:stackwallet/providers/ui/transaction_filter_provider.dart';
import 'package:stackwallet/services/coins/banano/banano_wallet.dart';
import 'package:stackwallet/services/event_bus/events/global/wallet_sync_status_changed_event.dart'; import 'package:stackwallet/services/event_bus/events/global/wallet_sync_status_changed_event.dart';
import 'package:stackwallet/services/event_bus/global_event_bus.dart'; import 'package:stackwallet/services/event_bus/global_event_bus.dart';
import 'package:stackwallet/themes/coin_icon_provider.dart'; import 'package:stackwallet/themes/coin_icon_provider.dart';
@ -153,6 +155,10 @@ class _DesktopWalletViewState extends ConsumerState<DesktopWalletView> {
final managerProvider = ref.watch(walletsChangeNotifierProvider final managerProvider = ref.watch(walletsChangeNotifierProvider
.select((value) => value.getManagerProvider(widget.walletId))); .select((value) => value.getManagerProvider(widget.walletId)));
final monke = coin == Coin.banano
? (manager.wallet as BananoWallet).getMonkeyImageBytes()
: null;
return ConditionalParent( return ConditionalParent(
condition: _rescanningOnOpen, condition: _rescanningOnOpen,
builder: (child) { builder: (child) {
@ -334,13 +340,20 @@ class _DesktopWalletViewState extends ConsumerState<DesktopWalletView> {
padding: const EdgeInsets.all(20), padding: const EdgeInsets.all(20),
child: Row( child: Row(
children: [ children: [
SvgPicture.file( if (monke != null)
File( SvgPicture.memory(
ref.watch(coinIconProvider(coin)), Uint8List.fromList(monke!),
width: 60,
height: 60,
),
if (monke == null)
SvgPicture.file(
File(
ref.watch(coinIconProvider(coin)),
),
width: 40,
height: 40,
), ),
width: 40,
height: 40,
),
const SizedBox( const SizedBox(
width: 10, width: 10,
), ),

View file

@ -365,7 +365,7 @@ class _DesktopWalletFeaturesState extends ConsumerState<DesktopWalletFeatures> {
manager.coin == Coin.firoTestNet || manager.coin == Coin.firoTestNet ||
manager.hasWhirlpoolSupport || manager.hasWhirlpoolSupport ||
manager.coin == Coin.banano || manager.coin == Coin.banano ||
manager.hasWhirlpoolSupport || manager.hasOrdinalsSupport ||
manager.hasFusionSupport; manager.hasFusionSupport;
return Row( return Row(

View file

@ -49,7 +49,7 @@ class _DesktopOrdinalDetailsViewState
late final UTXO? utxo; late final UTXO? utxo;
Future<void> _savePngToFile() async { Future<String> _savePngToFile() async {
final response = await get(Uri.parse(widget.ordinal.content)); final response = await get(Uri.parse(widget.ordinal.content));
if (response.statusCode != 200) { if (response.statusCode != 200) {
@ -77,6 +77,7 @@ class _DesktopOrdinalDetailsViewState
} }
await imgFile.writeAsBytes(bytes); await imgFile.writeAsBytes(bytes);
return filePath;
} }
@override @override
@ -224,12 +225,8 @@ class _DesktopOrdinalDetailsViewState
iconSpacing: 8, iconSpacing: 8,
onPressed: () async { onPressed: () async {
bool didError = false; bool didError = false;
await showLoading( final path = await showLoading<String>(
whileFuture: Future.wait([ whileFuture: _savePngToFile(),
_savePngToFile(),
Future<void>.delayed(
const Duration(seconds: 2)),
]),
context: context, context: context,
isDesktop: true, isDesktop: true,
message: "Saving ordinal image", message: "Saving ordinal image",
@ -251,7 +248,7 @@ class _DesktopOrdinalDetailsViewState
if (!didError && mounted) { if (!didError && mounted) {
await showFloatingFlushBar( await showFloatingFlushBar(
type: FlushBarType.success, type: FlushBarType.success,
message: "Image saved", message: "Image saved to $path",
context: context, context: context,
); );
} }

View file

@ -1,6 +1,6 @@
import 'dart:convert'; import 'dart:convert';
import 'package:http/http.dart' as http;
import 'package:http/http.dart' as http;
import 'package:stackwallet/dto/ordinals/inscription_data.dart'; import 'package:stackwallet/dto/ordinals/inscription_data.dart';
import 'package:stackwallet/dto/ordinals/litescribe_response.dart'; import 'package:stackwallet/dto/ordinals/litescribe_response.dart';
@ -21,7 +21,8 @@ class LitescribeAPI {
if (response.statusCode == 200) { if (response.statusCode == 200) {
return LitescribeResponse(data: _validateJson(response.body)); return LitescribeResponse(data: _validateJson(response.body));
} else { } else {
throw Exception('LitescribeAPI _getResponse exception: Failed to load data'); throw Exception(
'LitescribeAPI _getResponse exception: Failed to load data');
} }
} }
@ -30,39 +31,49 @@ class LitescribeAPI {
if (parsed is Map<String, dynamic>) { if (parsed is Map<String, dynamic>) {
return parsed; return parsed;
} else { } else {
throw const FormatException('LitescribeAPI _validateJson exception: Invalid JSON format'); throw const FormatException(
'LitescribeAPI _validateJson exception: Invalid JSON format');
} }
} }
Future<List<InscriptionData>> getInscriptionsByAddress(String address, {int cursor = 0, int size = 1000}) async { Future<List<InscriptionData>> getInscriptionsByAddress(String address,
{int cursor = 0, int size = 1000}) async {
// size param determines how many inscriptions are returned per response // size param determines how many inscriptions are returned per response
// default of 1000 is used to cover most addresses (I assume) // default of 1000 is used to cover most addresses (I assume)
// if the total number of inscriptions at the address exceeds the length of the list of inscriptions returned, another call with a higher size is made // if the total number of inscriptions at the address exceeds the length of the list of inscriptions returned, another call with a higher size is made
final int defaultLimit = 1000; final int defaultLimit = 1000;
final response = await _getResponse('/address/inscriptions?address=$address&cursor=$cursor&size=$size'); final response = await _getResponse(
'/address/inscriptions?address=$address&cursor=$cursor&size=$size');
// Check if the number of returned inscriptions equals the limit // Check if the number of returned inscriptions equals the limit
final list = response.data['result']['list'];
final int total = response.data['result']['total'] as int; final int total = response.data['result']['total'] as int;
final int currentSize = list.length as int;
int currentSize = 0;
if (total == 0) {
return <InscriptionData>[];
}
final list = response.data['result']!['list'];
currentSize = list.length as int;
if (currentSize == size && currentSize < total) { if (currentSize == size && currentSize < total) {
// If the number of returned inscriptions equals the limit and there are more inscriptions available, // If the number of returned inscriptions equals the limit and there are more inscriptions available,
// increment the cursor and make the next API call to fetch the remaining inscriptions. // increment the cursor and make the next API call to fetch the remaining inscriptions.
final int newCursor = cursor + size; final int newCursor = cursor + size;
return getInscriptionsByAddress(address, cursor: newCursor, size: size); return getInscriptionsByAddress(address, cursor: newCursor, size: size);
} else { } else {
try { try {
// Iterate through the list and create InscriptionData objects from each element // Iterate through the list and create InscriptionData objects from each element
final List<InscriptionData> inscriptions = (list as List<dynamic>) final List<InscriptionData> inscriptions = (list as List<dynamic>)
.map((json) => InscriptionData.fromJson(json as Map<String, dynamic>)) .map((json) =>
InscriptionData.fromJson(json as Map<String, dynamic>))
.toList(); .toList();
return inscriptions; return inscriptions;
} catch (e) { } catch (e) {
throw const FormatException('LitescribeAPI getInscriptionsByAddress exception: AddressInscriptionResponse.fromJson failure'); throw const FormatException(
'LitescribeAPI getInscriptionsByAddress exception: AddressInscriptionResponse.fromJson failure');
} }
} }
} }
} }

View file

@ -11,7 +11,7 @@ description: Stack Wallet
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.7.16+182 version: 1.7.17+184
environment: environment:
sdk: ">=3.0.2 <4.0.0" sdk: ">=3.0.2 <4.0.0"

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/cached_electrumx_test.dart. // in stackwallet/test/cached_electrumx_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4; import 'dart:async' as _i4;
import 'dart:ui' as _i10; import 'dart:ui' as _i10;
@ -28,8 +26,18 @@ import 'package:stackwallet/utilities/prefs.dart' as _i5;
// ignore_for_file: camel_case_types // ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class // ignore_for_file: subtype_of_sealed_class
class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal { class _FakeDuration_0 extends _i1.SmartFake implements Duration {
_FakeDecimal_0( _FakeDuration_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
_FakeDecimal_1(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -68,6 +76,15 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
(super.noSuchMethod(
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
returnValue: _FakeDuration_0(
this,
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
),
) as Duration);
@override
String get host => (super.noSuchMethod( String get host => (super.noSuchMethod(
Invocation.getter(#host), Invocation.getter(#host),
returnValue: '', returnValue: '',
@ -86,9 +103,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i4.Future<dynamic> request({ _i4.Future<dynamic> request({
required String? command, required String? command,
List<dynamic>? args = const [], List<dynamic>? args = const [],
Duration? connectionTimeout = const Duration(seconds: 60),
String? requestID, String? requestID,
int? retries = 2, int? retries = 2,
Duration? requestTimeout = const Duration(seconds: 60),
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -97,9 +114,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout,
#requestID: requestID, #requestID: requestID,
#retries: retries, #retries: retries,
#requestTimeout: requestTimeout,
}, },
), ),
returnValue: _i4.Future<dynamic>.value(), returnValue: _i4.Future<dynamic>.value(),
@ -108,7 +125,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i4.Future<List<Map<String, dynamic>>> batchRequest({ _i4.Future<List<Map<String, dynamic>>> batchRequest({
required String? command, required String? command,
required Map<String, List<dynamic>>? args, required Map<String, List<dynamic>>? args,
Duration? connectionTimeout = const Duration(seconds: 60), Duration? requestTimeout = const Duration(seconds: 60),
int? retries = 2, int? retries = 2,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -118,7 +135,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout, #requestTimeout: requestTimeout,
#retries: retries, #retries: retries,
}, },
), ),
@ -359,7 +376,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
#blocks: blocks, #blocks: blocks,
}, },
), ),
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#estimateFee, #estimateFee,
@ -378,7 +395,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
[], [],
{#requestID: requestID}, {#requestID: requestID},
), ),
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#relayFee, #relayFee,

View file

@ -59,6 +59,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -97,6 +98,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -132,6 +134,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -161,6 +164,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 2),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -195,6 +199,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 2),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -224,6 +229,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -281,6 +287,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -310,6 +317,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -345,6 +353,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -377,6 +386,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -415,6 +425,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -446,6 +457,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(minutes: 5),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -503,6 +515,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(minutes: 5),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -534,6 +547,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -599,6 +613,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -630,6 +645,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -667,6 +683,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -699,6 +716,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -734,6 +752,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -765,6 +784,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -800,6 +820,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -831,6 +852,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(minutes: 2),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -866,6 +888,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(minutes: 2),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -897,6 +920,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -931,6 +955,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -963,6 +988,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -998,6 +1024,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -1031,6 +1058,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -1066,6 +1094,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -1099,6 +1128,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(minutes: 2),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -1134,6 +1164,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(minutes: 2),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -1165,6 +1196,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -1199,6 +1231,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());
@ -1228,6 +1261,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenAnswer( ).thenAnswer(
(_) async => JsonRPCResponse(data: { (_) async => JsonRPCResponse(data: {
@ -1264,6 +1298,7 @@ void main() {
mockClient.request( mockClient.request(
'{"jsonrpc": "2.0", "id": "some requestId",' '{"jsonrpc": "2.0", "id": "some requestId",'
'"method": "$command","params": $jsonArgs}', '"method": "$command","params": $jsonArgs}',
const Duration(seconds: 60),
), ),
).thenThrow(Exception()); ).thenThrow(Exception());

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/electrumx_test.dart. // in stackwallet/test/electrumx_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3; import 'dart:async' as _i3;
import 'dart:ui' as _i9; import 'dart:ui' as _i9;
@ -80,18 +78,27 @@ class MockJsonRPC extends _i1.Mock implements _i2.JsonRPC {
), ),
) as Duration); ) as Duration);
@override @override
_i3.Future<_i2.JsonRPCResponse> request(String? jsonRpcRequest) => _i3.Future<_i2.JsonRPCResponse> request(
String? jsonRpcRequest,
Duration? requestTimeout,
) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#request, #request,
[jsonRpcRequest], [
jsonRpcRequest,
requestTimeout,
],
), ),
returnValue: returnValue:
_i3.Future<_i2.JsonRPCResponse>.value(_FakeJsonRPCResponse_1( _i3.Future<_i2.JsonRPCResponse>.value(_FakeJsonRPCResponse_1(
this, this,
Invocation.method( Invocation.method(
#request, #request,
[jsonRpcRequest], [
jsonRpcRequest,
requestTimeout,
],
), ),
)), )),
) as _i3.Future<_i2.JsonRPCResponse>); ) as _i3.Future<_i2.JsonRPCResponse>);

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/flutter_secure_storage_interface_test.dart. // in stackwallet/test/flutter_secure_storage_interface_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3; import 'dart:async' as _i3;

View file

@ -15,7 +15,10 @@ void main() {
const jsonRequestString = const jsonRequestString =
'{"jsonrpc": "2.0", "id": "some id","method": "server.ping","params": []}'; '{"jsonrpc": "2.0", "id": "some id","method": "server.ping","params": []}';
final result = await jsonRPC.request(jsonRequestString); final result = await jsonRPC.request(
jsonRequestString,
const Duration(seconds: 1),
);
expect(result.data, {"jsonrpc": "2.0", "result": null, "id": "some id"}); expect(result.data, {"jsonrpc": "2.0", "result": null, "id": "some id"});
}); });
@ -30,7 +33,11 @@ void main() {
const jsonRequestString = const jsonRequestString =
'{"jsonrpc": "2.0", "id": "some id","method": "server.ping","params": []}'; '{"jsonrpc": "2.0", "id": "some id","method": "server.ping","params": []}';
expect(() => jsonRPC.request(jsonRequestString), expect(
() => jsonRPC.request(
jsonRequestString,
const Duration(seconds: 1),
),
throwsA(isA<SocketException>())); throwsA(isA<SocketException>()));
}); });
@ -45,7 +52,11 @@ void main() {
const jsonRequestString = const jsonRequestString =
'{"jsonrpc": "2.0", "id": "some id","method": "server.ping","params": []}'; '{"jsonrpc": "2.0", "id": "some id","method": "server.ping","params": []}';
expect(() => jsonRPC.request(jsonRequestString), expect(
() => jsonRPC.request(
jsonRequestString,
const Duration(seconds: 1),
),
throwsA(isA<SocketException>())); throwsA(isA<SocketException>()));
}); });
} }

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/models/type_adapter_tests/lelantus_coin_adapter_test.dart. // in stackwallet/test/models/type_adapter_tests/lelantus_coin_adapter_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:convert' as _i5; import 'dart:convert' as _i5;
import 'dart:typed_data' as _i4; import 'dart:typed_data' as _i4;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/models/type_adapter_tests/transactions_model_adapter_test.dart. // in stackwallet/test/models/type_adapter_tests/transactions_model_adapter_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:convert' as _i5; import 'dart:convert' as _i5;
import 'dart:typed_data' as _i4; import 'dart:typed_data' as _i4;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/models/type_adapter_tests/utxo_model_adapter_test.dart. // in stackwallet/test/models/type_adapter_tests/utxo_model_adapter_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:convert' as _i5; import 'dart:convert' as _i5;
import 'dart:typed_data' as _i4; import 'dart:typed_data' as _i4;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/notifications/notification_card_test.dart. // in stackwallet/test/notifications/notification_card_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i5; import 'dart:async' as _i5;
import 'dart:typed_data' as _i6; import 'dart:typed_data' as _i6;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/pages/send_view/send_view_test.dart. // in stackwallet/test/pages/send_view/send_view_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i23; import 'dart:async' as _i23;
import 'dart:typed_data' as _i30; import 'dart:typed_data' as _i30;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/price_test.dart. // in stackwallet/test/price_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3; import 'dart:async' as _i3;
import 'dart:convert' as _i4; import 'dart:convert' as _i4;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/address_book_view/address_book_view_screen_test.dart. // in stackwallet/test/screen_tests/address_book_view/address_book_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4; import 'dart:async' as _i4;
import 'dart:ui' as _i5; import 'dart:ui' as _i5;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.dart. // in stackwallet/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i9; import 'dart:async' as _i9;
import 'dart:ui' as _i11; import 'dart:ui' as _i11;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.dart. // in stackwallet/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i9; import 'dart:ui' as _i9;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.dart. // in stackwallet/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i9; import 'dart:ui' as _i9;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/exchange/exchange_view_test.dart. // in stackwallet/test/screen_tests/exchange/exchange_view_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// 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 _i6;
import 'dart:ui' as _i9; import 'dart:ui' as _i9;
@ -1031,8 +1029,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i13.ChangeNowAPI {
[], [],
{#apiKey: apiKey}, {#apiKey: apiKey},
), ),
returnValue: _i6.Future< returnValue: _i6
_i2.ExchangeResponse<List<_i20.FixedRateMarket>>>.value( .Future<_i2.ExchangeResponse<List<_i20.FixedRateMarket>>>.value(
_FakeExchangeResponse_0<List<_i20.FixedRateMarket>>( _FakeExchangeResponse_0<List<_i20.FixedRateMarket>>(
this, this,
Invocation.method( Invocation.method(
@ -1073,8 +1071,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i13.ChangeNowAPI {
#apiKey: apiKey, #apiKey: apiKey,
}, },
), ),
returnValue: _i6.Future< returnValue: _i6
_i2.ExchangeResponse<_i21.ExchangeTransaction>>.value( .Future<_i2.ExchangeResponse<_i21.ExchangeTransaction>>.value(
_FakeExchangeResponse_0<_i21.ExchangeTransaction>( _FakeExchangeResponse_0<_i21.ExchangeTransaction>(
this, this,
Invocation.method( Invocation.method(
@ -1130,8 +1128,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i13.ChangeNowAPI {
#apiKey: apiKey, #apiKey: apiKey,
}, },
), ),
returnValue: _i6.Future< returnValue: _i6
_i2.ExchangeResponse<_i21.ExchangeTransaction>>.value( .Future<_i2.ExchangeResponse<_i21.ExchangeTransaction>>.value(
_FakeExchangeResponse_0<_i21.ExchangeTransaction>( _FakeExchangeResponse_0<_i21.ExchangeTransaction>(
this, this,
Invocation.method( Invocation.method(
@ -1155,35 +1153,35 @@ class MockChangeNowAPI extends _i1.Mock implements _i13.ChangeNowAPI {
)), )),
) as _i6.Future<_i2.ExchangeResponse<_i21.ExchangeTransaction>>); ) as _i6.Future<_i2.ExchangeResponse<_i21.ExchangeTransaction>>);
@override @override
_i6.Future<_i2.ExchangeResponse<_i22.ExchangeTransactionStatus>> _i6.Future<
getTransactionStatus({ _i2
.ExchangeResponse<_i22.ExchangeTransactionStatus>> getTransactionStatus({
required String? id, required String? id,
String? apiKey, String? apiKey,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
#getTransactionStatus, #getTransactionStatus,
[], [],
{ {
#id: id, #id: id,
#apiKey: apiKey, #apiKey: apiKey,
}, },
), ),
returnValue: _i6.Future< returnValue: _i6
_i2.ExchangeResponse<_i22.ExchangeTransactionStatus>>.value( .Future<_i2.ExchangeResponse<_i22.ExchangeTransactionStatus>>.value(
_FakeExchangeResponse_0<_i22.ExchangeTransactionStatus>( _FakeExchangeResponse_0<_i22.ExchangeTransactionStatus>(
this, this,
Invocation.method( Invocation.method(
#getTransactionStatus, #getTransactionStatus,
[], [],
{ {
#id: id, #id: id,
#apiKey: apiKey, #apiKey: apiKey,
}, },
), ),
)), )),
) as _i6 ) as _i6.Future<_i2.ExchangeResponse<_i22.ExchangeTransactionStatus>>);
.Future<_i2.ExchangeResponse<_i22.ExchangeTransactionStatus>>);
@override @override
_i6.Future<_i2.ExchangeResponse<List<_i23.Pair>>> _i6.Future<_i2.ExchangeResponse<List<_i23.Pair>>>
getAvailableFloatingRatePairs({bool? includePartners = false}) => getAvailableFloatingRatePairs({bool? includePartners = false}) =>

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/lockscreen_view_screen_test.dart. // in stackwallet/test/screen_tests/lockscreen_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i10; import 'dart:ui' as _i10;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/main_view_tests/main_view_screen_testA_test.dart. // in stackwallet/test/screen_tests/main_view_tests/main_view_screen_testA_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// 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 _i7;
import 'dart:ui' as _i9; import 'dart:ui' as _i9;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/main_view_tests/main_view_screen_testB_test.dart. // in stackwallet/test/screen_tests/main_view_tests/main_view_screen_testB_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// 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 _i7;
import 'dart:ui' as _i9; import 'dart:ui' as _i9;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/main_view_tests/main_view_screen_testC_test.dart. // in stackwallet/test/screen_tests/main_view_tests/main_view_screen_testC_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// 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 _i7;
import 'dart:ui' as _i9; import 'dart:ui' as _i9;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/onboarding/backup_key_view_screen_test.dart. // in stackwallet/test/screen_tests/onboarding/backup_key_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i10; import 'dart:ui' as _i10;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/onboarding/backup_key_warning_view_screen_test.dart. // in stackwallet/test/screen_tests/onboarding/backup_key_warning_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// 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 _i7;
import 'dart:ui' as _i9; import 'dart:ui' as _i9;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/onboarding/create_pin_view_screen_test.dart. // in stackwallet/test/screen_tests/onboarding/create_pin_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i10; import 'dart:ui' as _i10;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/onboarding/name_your_wallet_view_screen_test.dart. // in stackwallet/test/screen_tests/onboarding/name_your_wallet_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3; import 'dart:async' as _i3;
import 'dart:ui' as _i5; import 'dart:ui' as _i5;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/onboarding/restore_wallet_view_screen_test.dart. // in stackwallet/test/screen_tests/onboarding/restore_wallet_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i9; import 'dart:async' as _i9;
import 'dart:ui' as _i12; import 'dart:ui' as _i12;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/onboarding/verify_backup_key_view_screen_test.dart. // in stackwallet/test/screen_tests/onboarding/verify_backup_key_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i10; import 'dart:ui' as _i10;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/settings_view/settings_subviews/currency_view_screen_test.dart. // in stackwallet/test/screen_tests/settings_view/settings_subviews/currency_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i10; import 'dart:ui' as _i10;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.dart. // in stackwallet/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i9; import 'dart:async' as _i9;
import 'dart:ui' as _i11; import 'dart:ui' as _i11;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.dart. // in stackwallet/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i9; import 'dart:async' as _i9;
import 'dart:ui' as _i11; import 'dart:ui' as _i11;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/settings_view/settings_subviews/network_settings_view_screen_test.dart. // in stackwallet/test/screen_tests/settings_view/settings_subviews/network_settings_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i5; import 'dart:async' as _i5;
import 'dart:ui' as _i7; import 'dart:ui' as _i7;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/settings_view/settings_subviews/wallet_backup_view_screen_test.dart. // in stackwallet/test/screen_tests/settings_view/settings_subviews/wallet_backup_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i10; import 'dart:ui' as _i10;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/change_pin_view_screen_test.dart. // in stackwallet/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/change_pin_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3; import 'dart:async' as _i3;
import 'dart:ui' as _i5; import 'dart:ui' as _i5;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rename_wallet_view_screen_test.dart. // in stackwallet/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rename_wallet_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3; import 'dart:async' as _i3;
import 'dart:ui' as _i5; import 'dart:ui' as _i5;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rescan_warning_view_screen_test.dart. // in stackwallet/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rescan_warning_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i10; import 'dart:ui' as _i10;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.dart. // in stackwallet/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// 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 _i7;
import 'dart:ui' as _i9; import 'dart:ui' as _i9;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.dart. // in stackwallet/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i14; import 'dart:ui' as _i14;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/settings_view/settings_view_screen_test.dart. // in stackwallet/test/screen_tests/settings_view/settings_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// 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 _i7;
import 'dart:ui' as _i9; import 'dart:ui' as _i9;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/transaction_subviews/transaction_details_view_screen_test.dart. // in stackwallet/test/screen_tests/transaction_subviews/transaction_details_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4; import 'dart:async' as _i4;
import 'dart:ui' as _i5; import 'dart:ui' as _i5;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.dart. // in stackwallet/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i10; import 'dart:ui' as _i10;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/transaction_subviews/transaction_search_view_screen_test.dart. // in stackwallet/test/screen_tests/transaction_subviews/transaction_search_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4; import 'dart:async' as _i4;
import 'dart:ui' as _i5; import 'dart:ui' as _i5;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/wallet_view/confirm_send_view_screen_test.dart. // in stackwallet/test/screen_tests/wallet_view/confirm_send_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i10; import 'dart:ui' as _i10;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/wallet_view/receive_view_screen_test.dart. // in stackwallet/test/screen_tests/wallet_view/receive_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i10; import 'dart:ui' as _i10;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/wallet_view/send_view_screen_test.dart. // in stackwallet/test/screen_tests/wallet_view/send_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i12; import 'dart:ui' as _i12;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/screen_tests/wallet_view/wallet_view_screen_test.dart. // in stackwallet/test/screen_tests/wallet_view/wallet_view_screen_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8; import 'dart:async' as _i8;
import 'dart:ui' as _i10; import 'dart:ui' as _i10;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/services/change_now/change_now_test.dart. // in stackwallet/test/services/change_now/change_now_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3; import 'dart:async' as _i3;
import 'dart:convert' as _i4; import 'dart:convert' as _i4;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/services/coins/bitcoin/bitcoin_wallet_test.dart. // in stackwallet/test/services/coins/bitcoin/bitcoin_wallet_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4; import 'dart:async' as _i4;
@ -26,8 +24,8 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
// ignore_for_file: camel_case_types // ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class // ignore_for_file: subtype_of_sealed_class
class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal { class _FakeDuration_0 extends _i1.SmartFake implements Duration {
_FakeDecimal_0( _FakeDuration_0(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -36,8 +34,18 @@ class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal {
); );
} }
class _FakeElectrumX_1 extends _i1.SmartFake implements _i3.ElectrumX { class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
_FakeElectrumX_1( _FakeDecimal_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeElectrumX_2 extends _i1.SmartFake implements _i3.ElectrumX {
_FakeElectrumX_2(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -76,6 +84,15 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
(super.noSuchMethod(
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
returnValue: _FakeDuration_0(
this,
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
),
) as Duration);
@override
String get host => (super.noSuchMethod( String get host => (super.noSuchMethod(
Invocation.getter(#host), Invocation.getter(#host),
returnValue: '', returnValue: '',
@ -94,9 +111,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i4.Future<dynamic> request({ _i4.Future<dynamic> request({
required String? command, required String? command,
List<dynamic>? args = const [], List<dynamic>? args = const [],
Duration? connectionTimeout = const Duration(seconds: 60),
String? requestID, String? requestID,
int? retries = 2, int? retries = 2,
Duration? requestTimeout = const Duration(seconds: 60),
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -105,9 +122,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout,
#requestID: requestID, #requestID: requestID,
#retries: retries, #retries: retries,
#requestTimeout: requestTimeout,
}, },
), ),
returnValue: _i4.Future<dynamic>.value(), returnValue: _i4.Future<dynamic>.value(),
@ -116,7 +133,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i4.Future<List<Map<String, dynamic>>> batchRequest({ _i4.Future<List<Map<String, dynamic>>> batchRequest({
required String? command, required String? command,
required Map<String, List<dynamic>>? args, required Map<String, List<dynamic>>? args,
Duration? connectionTimeout = const Duration(seconds: 60), Duration? requestTimeout = const Duration(seconds: 60),
int? retries = 2, int? retries = 2,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -126,7 +143,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout, #requestTimeout: requestTimeout,
#retries: retries, #retries: retries,
}, },
), ),
@ -367,7 +384,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
#blocks: blocks, #blocks: blocks,
}, },
), ),
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#estimateFee, #estimateFee,
@ -386,7 +403,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
[], [],
{#requestID: requestID}, {#requestID: requestID},
), ),
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#relayFee, #relayFee,
@ -408,7 +425,7 @@ class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX {
@override @override
_i3.ElectrumX get electrumXClient => (super.noSuchMethod( _i3.ElectrumX get electrumXClient => (super.noSuchMethod(
Invocation.getter(#electrumXClient), Invocation.getter(#electrumXClient),
returnValue: _FakeElectrumX_1( returnValue: _FakeElectrumX_2(
this, this,
Invocation.getter(#electrumXClient), Invocation.getter(#electrumXClient),
), ),

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/services/coins/bitcoincash/bitcoincash_wallet_test.dart. // in stackwallet/test/services/coins/bitcoincash/bitcoincash_wallet_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4; import 'dart:async' as _i4;
@ -26,8 +24,8 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
// ignore_for_file: camel_case_types // ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class // ignore_for_file: subtype_of_sealed_class
class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal { class _FakeDuration_0 extends _i1.SmartFake implements Duration {
_FakeDecimal_0( _FakeDuration_0(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -36,8 +34,18 @@ class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal {
); );
} }
class _FakeElectrumX_1 extends _i1.SmartFake implements _i3.ElectrumX { class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
_FakeElectrumX_1( _FakeDecimal_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeElectrumX_2 extends _i1.SmartFake implements _i3.ElectrumX {
_FakeElectrumX_2(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -76,6 +84,15 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
(super.noSuchMethod(
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
returnValue: _FakeDuration_0(
this,
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
),
) as Duration);
@override
String get host => (super.noSuchMethod( String get host => (super.noSuchMethod(
Invocation.getter(#host), Invocation.getter(#host),
returnValue: '', returnValue: '',
@ -94,9 +111,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i4.Future<dynamic> request({ _i4.Future<dynamic> request({
required String? command, required String? command,
List<dynamic>? args = const [], List<dynamic>? args = const [],
Duration? connectionTimeout = const Duration(seconds: 60),
String? requestID, String? requestID,
int? retries = 2, int? retries = 2,
Duration? requestTimeout = const Duration(seconds: 60),
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -105,9 +122,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout,
#requestID: requestID, #requestID: requestID,
#retries: retries, #retries: retries,
#requestTimeout: requestTimeout,
}, },
), ),
returnValue: _i4.Future<dynamic>.value(), returnValue: _i4.Future<dynamic>.value(),
@ -116,7 +133,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i4.Future<List<Map<String, dynamic>>> batchRequest({ _i4.Future<List<Map<String, dynamic>>> batchRequest({
required String? command, required String? command,
required Map<String, List<dynamic>>? args, required Map<String, List<dynamic>>? args,
Duration? connectionTimeout = const Duration(seconds: 60), Duration? requestTimeout = const Duration(seconds: 60),
int? retries = 2, int? retries = 2,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -126,7 +143,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout, #requestTimeout: requestTimeout,
#retries: retries, #retries: retries,
}, },
), ),
@ -367,7 +384,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
#blocks: blocks, #blocks: blocks,
}, },
), ),
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#estimateFee, #estimateFee,
@ -386,7 +403,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
[], [],
{#requestID: requestID}, {#requestID: requestID},
), ),
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#relayFee, #relayFee,
@ -408,7 +425,7 @@ class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX {
@override @override
_i3.ElectrumX get electrumXClient => (super.noSuchMethod( _i3.ElectrumX get electrumXClient => (super.noSuchMethod(
Invocation.getter(#electrumXClient), Invocation.getter(#electrumXClient),
returnValue: _FakeElectrumX_1( returnValue: _FakeElectrumX_2(
this, this,
Invocation.getter(#electrumXClient), Invocation.getter(#electrumXClient),
), ),

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/services/coins/dogecoin/dogecoin_wallet_test.dart. // in stackwallet/test/services/coins/dogecoin/dogecoin_wallet_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4; import 'dart:async' as _i4;
@ -26,8 +24,8 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
// ignore_for_file: camel_case_types // ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class // ignore_for_file: subtype_of_sealed_class
class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal { class _FakeDuration_0 extends _i1.SmartFake implements Duration {
_FakeDecimal_0( _FakeDuration_0(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -36,8 +34,18 @@ class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal {
); );
} }
class _FakeElectrumX_1 extends _i1.SmartFake implements _i3.ElectrumX { class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
_FakeElectrumX_1( _FakeDecimal_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeElectrumX_2 extends _i1.SmartFake implements _i3.ElectrumX {
_FakeElectrumX_2(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -76,6 +84,15 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
(super.noSuchMethod(
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
returnValue: _FakeDuration_0(
this,
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
),
) as Duration);
@override
String get host => (super.noSuchMethod( String get host => (super.noSuchMethod(
Invocation.getter(#host), Invocation.getter(#host),
returnValue: '', returnValue: '',
@ -94,9 +111,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i4.Future<dynamic> request({ _i4.Future<dynamic> request({
required String? command, required String? command,
List<dynamic>? args = const [], List<dynamic>? args = const [],
Duration? connectionTimeout = const Duration(seconds: 60),
String? requestID, String? requestID,
int? retries = 2, int? retries = 2,
Duration? requestTimeout = const Duration(seconds: 60),
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -105,9 +122,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout,
#requestID: requestID, #requestID: requestID,
#retries: retries, #retries: retries,
#requestTimeout: requestTimeout,
}, },
), ),
returnValue: _i4.Future<dynamic>.value(), returnValue: _i4.Future<dynamic>.value(),
@ -116,7 +133,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i4.Future<List<Map<String, dynamic>>> batchRequest({ _i4.Future<List<Map<String, dynamic>>> batchRequest({
required String? command, required String? command,
required Map<String, List<dynamic>>? args, required Map<String, List<dynamic>>? args,
Duration? connectionTimeout = const Duration(seconds: 60), Duration? requestTimeout = const Duration(seconds: 60),
int? retries = 2, int? retries = 2,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -126,7 +143,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout, #requestTimeout: requestTimeout,
#retries: retries, #retries: retries,
}, },
), ),
@ -367,7 +384,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
#blocks: blocks, #blocks: blocks,
}, },
), ),
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#estimateFee, #estimateFee,
@ -386,7 +403,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
[], [],
{#requestID: requestID}, {#requestID: requestID},
), ),
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#relayFee, #relayFee,
@ -408,7 +425,7 @@ class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX {
@override @override
_i3.ElectrumX get electrumXClient => (super.noSuchMethod( _i3.ElectrumX get electrumXClient => (super.noSuchMethod(
Invocation.getter(#electrumXClient), Invocation.getter(#electrumXClient),
returnValue: _FakeElectrumX_1( returnValue: _FakeElectrumX_2(
this, this,
Invocation.getter(#electrumXClient), Invocation.getter(#electrumXClient),
), ),

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/services/coins/firo/firo_wallet_test.dart. // in stackwallet/test/services/coins/firo/firo_wallet_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i5; import 'dart:async' as _i5;
@ -32,8 +30,8 @@ import 'package:tuple/tuple.dart' as _i13;
// ignore_for_file: camel_case_types // ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class // ignore_for_file: subtype_of_sealed_class
class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal { class _FakeDuration_0 extends _i1.SmartFake implements Duration {
_FakeDecimal_0( _FakeDuration_0(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -42,8 +40,8 @@ class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal {
); );
} }
class _FakeElectrumX_1 extends _i1.SmartFake implements _i3.ElectrumX { class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
_FakeElectrumX_1( _FakeDecimal_1(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -52,8 +50,8 @@ class _FakeElectrumX_1 extends _i1.SmartFake implements _i3.ElectrumX {
); );
} }
class _FakeIsar_2 extends _i1.SmartFake implements _i4.Isar { class _FakeElectrumX_2 extends _i1.SmartFake implements _i3.ElectrumX {
_FakeIsar_2( _FakeElectrumX_2(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -62,9 +60,19 @@ class _FakeIsar_2 extends _i1.SmartFake implements _i4.Isar {
); );
} }
class _FakeQueryBuilder_3<OBJ, R, S> extends _i1.SmartFake class _FakeIsar_3 extends _i1.SmartFake implements _i4.Isar {
_FakeIsar_3(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeQueryBuilder_4<OBJ, R, S> extends _i1.SmartFake
implements _i4.QueryBuilder<OBJ, R, S> { implements _i4.QueryBuilder<OBJ, R, S> {
_FakeQueryBuilder_3( _FakeQueryBuilder_4(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -103,6 +111,15 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
(super.noSuchMethod(
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
returnValue: _FakeDuration_0(
this,
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
),
) as Duration);
@override
String get host => (super.noSuchMethod( String get host => (super.noSuchMethod(
Invocation.getter(#host), Invocation.getter(#host),
returnValue: '', returnValue: '',
@ -121,9 +138,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i5.Future<dynamic> request({ _i5.Future<dynamic> request({
required String? command, required String? command,
List<dynamic>? args = const [], List<dynamic>? args = const [],
Duration? connectionTimeout = const Duration(seconds: 60),
String? requestID, String? requestID,
int? retries = 2, int? retries = 2,
Duration? requestTimeout = const Duration(seconds: 60),
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -132,9 +149,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout,
#requestID: requestID, #requestID: requestID,
#retries: retries, #retries: retries,
#requestTimeout: requestTimeout,
}, },
), ),
returnValue: _i5.Future<dynamic>.value(), returnValue: _i5.Future<dynamic>.value(),
@ -143,7 +160,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i5.Future<List<Map<String, dynamic>>> batchRequest({ _i5.Future<List<Map<String, dynamic>>> batchRequest({
required String? command, required String? command,
required Map<String, List<dynamic>>? args, required Map<String, List<dynamic>>? args,
Duration? connectionTimeout = const Duration(seconds: 60), Duration? requestTimeout = const Duration(seconds: 60),
int? retries = 2, int? retries = 2,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -153,7 +170,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout, #requestTimeout: requestTimeout,
#retries: retries, #retries: retries,
}, },
), ),
@ -394,7 +411,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
#blocks: blocks, #blocks: blocks,
}, },
), ),
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#estimateFee, #estimateFee,
@ -413,7 +430,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
[], [],
{#requestID: requestID}, {#requestID: requestID},
), ),
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#relayFee, #relayFee,
@ -435,7 +452,7 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
@override @override
_i3.ElectrumX get electrumXClient => (super.noSuchMethod( _i3.ElectrumX get electrumXClient => (super.noSuchMethod(
Invocation.getter(#electrumXClient), Invocation.getter(#electrumXClient),
returnValue: _FakeElectrumX_1( returnValue: _FakeElectrumX_2(
this, this,
Invocation.getter(#electrumXClient), Invocation.getter(#electrumXClient),
), ),
@ -603,7 +620,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
@override @override
_i4.Isar get isar => (super.noSuchMethod( _i4.Isar get isar => (super.noSuchMethod(
Invocation.getter(#isar), Invocation.getter(#isar),
returnValue: _FakeIsar_2( returnValue: _FakeIsar_3(
this, this,
Invocation.getter(#isar), Invocation.getter(#isar),
), ),
@ -688,7 +705,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
#getAddresses, #getAddresses,
[walletId], [walletId],
), ),
returnValue: _FakeQueryBuilder_3<_i12.Address, _i12.Address, returnValue: _FakeQueryBuilder_4<_i12.Address, _i12.Address,
_i4.QAfterWhereClause>( _i4.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
@ -761,7 +778,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
#getTransactions, #getTransactions,
[walletId], [walletId],
), ),
returnValue: _FakeQueryBuilder_3<_i12.Transaction, _i12.Transaction, returnValue: _FakeQueryBuilder_4<_i12.Transaction, _i12.Transaction,
_i4.QAfterWhereClause>( _i4.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
@ -829,7 +846,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
[walletId], [walletId],
), ),
returnValue: returnValue:
_FakeQueryBuilder_3<_i12.UTXO, _i12.UTXO, _i4.QAfterWhereClause>( _FakeQueryBuilder_4<_i12.UTXO, _i12.UTXO, _i4.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
#getUTXOs, #getUTXOs,
@ -868,8 +885,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
utxos, utxos,
], ],
), ),
returnValue: _i5.Future<bool>.value(), returnValue: _i5.Future<bool>.value(false),
returnValueForMissingStub: _i5.Future<bool>.value(),
) as _i5.Future<bool>); ) as _i5.Future<bool>);
@override @override
_i5.Stream<_i12.UTXO?> watchUTXO({ _i5.Stream<_i12.UTXO?> watchUTXO({
@ -896,7 +912,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
#getTransactionNotes, #getTransactionNotes,
[walletId], [walletId],
), ),
returnValue: _FakeQueryBuilder_3<_i12.TransactionNote, returnValue: _FakeQueryBuilder_4<_i12.TransactionNote,
_i12.TransactionNote, _i4.QAfterWhereClause>( _i12.TransactionNote, _i4.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
@ -965,7 +981,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
#getAddressLabels, #getAddressLabels,
[walletId], [walletId],
), ),
returnValue: _FakeQueryBuilder_3<_i12.AddressLabel, returnValue: _FakeQueryBuilder_4<_i12.AddressLabel,
_i12.AddressLabel, _i4.QAfterWhereClause>( _i12.AddressLabel, _i4.QAfterWhereClause>(
this, this,
Invocation.method( Invocation.method(
@ -1107,7 +1123,7 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
#getEthContracts, #getEthContracts,
[], [],
), ),
returnValue: _FakeQueryBuilder_3<_i12.EthContract, _i12.EthContract, returnValue: _FakeQueryBuilder_4<_i12.EthContract, _i12.EthContract,
_i4.QWhere>( _i4.QWhere>(
this, this,
Invocation.method( Invocation.method(

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/services/coins/manager_test.dart. // in stackwallet/test/services/coins/manager_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i11; import 'dart:async' as _i11;
@ -105,8 +103,18 @@ class _FakeAmount_6 extends _i1.SmartFake implements _i8.Amount {
); );
} }
class _FakeDecimal_7 extends _i1.SmartFake implements _i9.Decimal { class _FakeDuration_7 extends _i1.SmartFake implements Duration {
_FakeDecimal_7( _FakeDuration_7(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeDecimal_8 extends _i1.SmartFake implements _i9.Decimal {
_FakeDecimal_8(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -1074,6 +1082,15 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
(super.noSuchMethod(
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
returnValue: _FakeDuration_7(
this,
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
),
) as Duration);
@override
String get host => (super.noSuchMethod( String get host => (super.noSuchMethod(
Invocation.getter(#host), Invocation.getter(#host),
returnValue: '', returnValue: '',
@ -1092,9 +1109,9 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
_i11.Future<dynamic> request({ _i11.Future<dynamic> request({
required String? command, required String? command,
List<dynamic>? args = const [], List<dynamic>? args = const [],
Duration? connectionTimeout = const Duration(seconds: 60),
String? requestID, String? requestID,
int? retries = 2, int? retries = 2,
Duration? requestTimeout = const Duration(seconds: 60),
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -1103,9 +1120,9 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout,
#requestID: requestID, #requestID: requestID,
#retries: retries, #retries: retries,
#requestTimeout: requestTimeout,
}, },
), ),
returnValue: _i11.Future<dynamic>.value(), returnValue: _i11.Future<dynamic>.value(),
@ -1114,7 +1131,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
_i11.Future<List<Map<String, dynamic>>> batchRequest({ _i11.Future<List<Map<String, dynamic>>> batchRequest({
required String? command, required String? command,
required Map<String, List<dynamic>>? args, required Map<String, List<dynamic>>? args,
Duration? connectionTimeout = const Duration(seconds: 60), Duration? requestTimeout = const Duration(seconds: 60),
int? retries = 2, int? retries = 2,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -1124,7 +1141,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout, #requestTimeout: requestTimeout,
#retries: retries, #retries: retries,
}, },
), ),
@ -1365,7 +1382,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
#blocks: blocks, #blocks: blocks,
}, },
), ),
returnValue: _i11.Future<_i9.Decimal>.value(_FakeDecimal_7( returnValue: _i11.Future<_i9.Decimal>.value(_FakeDecimal_8(
this, this,
Invocation.method( Invocation.method(
#estimateFee, #estimateFee,
@ -1384,7 +1401,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
[], [],
{#requestID: requestID}, {#requestID: requestID},
), ),
returnValue: _i11.Future<_i9.Decimal>.value(_FakeDecimal_7( returnValue: _i11.Future<_i9.Decimal>.value(_FakeDecimal_8(
this, this,
Invocation.method( Invocation.method(
#relayFee, #relayFee,

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/services/coins/namecoin/namecoin_wallet_test.dart. // in stackwallet/test/services/coins/namecoin/namecoin_wallet_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4; import 'dart:async' as _i4;
@ -26,8 +24,8 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
// ignore_for_file: camel_case_types // ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class // ignore_for_file: subtype_of_sealed_class
class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal { class _FakeDuration_0 extends _i1.SmartFake implements Duration {
_FakeDecimal_0( _FakeDuration_0(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -36,8 +34,18 @@ class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal {
); );
} }
class _FakeElectrumX_1 extends _i1.SmartFake implements _i3.ElectrumX { class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
_FakeElectrumX_1( _FakeDecimal_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeElectrumX_2 extends _i1.SmartFake implements _i3.ElectrumX {
_FakeElectrumX_2(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -76,6 +84,15 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
(super.noSuchMethod(
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
returnValue: _FakeDuration_0(
this,
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
),
) as Duration);
@override
String get host => (super.noSuchMethod( String get host => (super.noSuchMethod(
Invocation.getter(#host), Invocation.getter(#host),
returnValue: '', returnValue: '',
@ -94,9 +111,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i4.Future<dynamic> request({ _i4.Future<dynamic> request({
required String? command, required String? command,
List<dynamic>? args = const [], List<dynamic>? args = const [],
Duration? connectionTimeout = const Duration(seconds: 60),
String? requestID, String? requestID,
int? retries = 2, int? retries = 2,
Duration? requestTimeout = const Duration(seconds: 60),
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -105,9 +122,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout,
#requestID: requestID, #requestID: requestID,
#retries: retries, #retries: retries,
#requestTimeout: requestTimeout,
}, },
), ),
returnValue: _i4.Future<dynamic>.value(), returnValue: _i4.Future<dynamic>.value(),
@ -116,7 +133,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i4.Future<List<Map<String, dynamic>>> batchRequest({ _i4.Future<List<Map<String, dynamic>>> batchRequest({
required String? command, required String? command,
required Map<String, List<dynamic>>? args, required Map<String, List<dynamic>>? args,
Duration? connectionTimeout = const Duration(seconds: 60), Duration? requestTimeout = const Duration(seconds: 60),
int? retries = 2, int? retries = 2,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -126,7 +143,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout, #requestTimeout: requestTimeout,
#retries: retries, #retries: retries,
}, },
), ),
@ -367,7 +384,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
#blocks: blocks, #blocks: blocks,
}, },
), ),
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#estimateFee, #estimateFee,
@ -386,7 +403,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
[], [],
{#requestID: requestID}, {#requestID: requestID},
), ),
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#relayFee, #relayFee,
@ -408,7 +425,7 @@ class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX {
@override @override
_i3.ElectrumX get electrumXClient => (super.noSuchMethod( _i3.ElectrumX get electrumXClient => (super.noSuchMethod(
Invocation.getter(#electrumXClient), Invocation.getter(#electrumXClient),
returnValue: _FakeElectrumX_1( returnValue: _FakeElectrumX_2(
this, this,
Invocation.getter(#electrumXClient), Invocation.getter(#electrumXClient),
), ),

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/services/coins/particl/particl_wallet_test.dart. // in stackwallet/test/services/coins/particl/particl_wallet_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4; import 'dart:async' as _i4;
@ -26,8 +24,8 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
// ignore_for_file: camel_case_types // ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class // ignore_for_file: subtype_of_sealed_class
class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal { class _FakeDuration_0 extends _i1.SmartFake implements Duration {
_FakeDecimal_0( _FakeDuration_0(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -36,8 +34,18 @@ class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal {
); );
} }
class _FakeElectrumX_1 extends _i1.SmartFake implements _i3.ElectrumX { class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
_FakeElectrumX_1( _FakeDecimal_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeElectrumX_2 extends _i1.SmartFake implements _i3.ElectrumX {
_FakeElectrumX_2(
Object parent, Object parent,
Invocation parentInvocation, Invocation parentInvocation,
) : super( ) : super(
@ -76,6 +84,15 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
(super.noSuchMethod(
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
returnValue: _FakeDuration_0(
this,
Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
),
) as Duration);
@override
String get host => (super.noSuchMethod( String get host => (super.noSuchMethod(
Invocation.getter(#host), Invocation.getter(#host),
returnValue: '', returnValue: '',
@ -94,9 +111,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i4.Future<dynamic> request({ _i4.Future<dynamic> request({
required String? command, required String? command,
List<dynamic>? args = const [], List<dynamic>? args = const [],
Duration? connectionTimeout = const Duration(seconds: 60),
String? requestID, String? requestID,
int? retries = 2, int? retries = 2,
Duration? requestTimeout = const Duration(seconds: 60),
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -105,9 +122,9 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout,
#requestID: requestID, #requestID: requestID,
#retries: retries, #retries: retries,
#requestTimeout: requestTimeout,
}, },
), ),
returnValue: _i4.Future<dynamic>.value(), returnValue: _i4.Future<dynamic>.value(),
@ -116,7 +133,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
_i4.Future<List<Map<String, dynamic>>> batchRequest({ _i4.Future<List<Map<String, dynamic>>> batchRequest({
required String? command, required String? command,
required Map<String, List<dynamic>>? args, required Map<String, List<dynamic>>? args,
Duration? connectionTimeout = const Duration(seconds: 60), Duration? requestTimeout = const Duration(seconds: 60),
int? retries = 2, int? retries = 2,
}) => }) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -126,7 +143,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
{ {
#command: command, #command: command,
#args: args, #args: args,
#connectionTimeout: connectionTimeout, #requestTimeout: requestTimeout,
#retries: retries, #retries: retries,
}, },
), ),
@ -367,7 +384,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
#blocks: blocks, #blocks: blocks,
}, },
), ),
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#estimateFee, #estimateFee,
@ -386,7 +403,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
[], [],
{#requestID: requestID}, {#requestID: requestID},
), ),
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0( returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
this, this,
Invocation.method( Invocation.method(
#relayFee, #relayFee,
@ -408,7 +425,7 @@ class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX {
@override @override
_i3.ElectrumX get electrumXClient => (super.noSuchMethod( _i3.ElectrumX get electrumXClient => (super.noSuchMethod(
Invocation.getter(#electrumXClient), Invocation.getter(#electrumXClient),
returnValue: _FakeElectrumX_1( returnValue: _FakeElectrumX_2(
this, this,
Invocation.getter(#electrumXClient), Invocation.getter(#electrumXClient),
), ),

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/services/wallets_service_test.dart. // in stackwallet/test/services/wallets_service_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3; import 'dart:async' as _i3;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/widget_tests/address_book_card_test.dart. // in stackwallet/test/widget_tests/address_book_card_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4; import 'dart:async' as _i4;
import 'dart:ui' as _i5; import 'dart:ui' as _i5;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/widget_tests/custom_buttons/favorite_toggle_test.dart. // in stackwallet/test/widget_tests/custom_buttons/favorite_toggle_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i5; import 'dart:async' as _i5;
import 'dart:typed_data' as _i6; import 'dart:typed_data' as _i6;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/widget_tests/custom_loading_overlay_test.dart. // in stackwallet/test/widget_tests/custom_loading_overlay_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i5; import 'dart:async' as _i5;
import 'dart:typed_data' as _i6; import 'dart:typed_data' as _i6;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/widget_tests/desktop/desktop_scaffold_test.dart. // in stackwallet/test/widget_tests/desktop/desktop_scaffold_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i5; import 'dart:async' as _i5;
import 'dart:typed_data' as _i6; import 'dart:typed_data' as _i6;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/widget_tests/managed_favorite_test.dart. // in stackwallet/test/widget_tests/managed_favorite_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i23; import 'dart:async' as _i23;
import 'dart:typed_data' as _i29; import 'dart:typed_data' as _i29;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/widget_tests/node_card_test.dart. // in stackwallet/test/widget_tests/node_card_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i5; import 'dart:async' as _i5;
import 'dart:ui' as _i7; import 'dart:ui' as _i7;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/widget_tests/node_options_sheet_test.dart. // in stackwallet/test/widget_tests/node_options_sheet_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i11; import 'dart:async' as _i11;
import 'dart:ui' as _i13; import 'dart:ui' as _i13;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/widget_tests/table_view/table_view_row_test.dart. // in stackwallet/test/widget_tests/table_view/table_view_row_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i22; import 'dart:async' as _i22;
import 'dart:typed_data' as _i27; import 'dart:typed_data' as _i27;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/widget_tests/trade_card_test.dart. // in stackwallet/test/widget_tests/trade_card_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i5; import 'dart:async' as _i5;
import 'dart:typed_data' as _i6; import 'dart:typed_data' as _i6;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/widget_tests/transaction_card_test.dart. // in stackwallet/test/widget_tests/transaction_card_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i19; import 'dart:async' as _i19;
import 'dart:typed_data' as _i34; import 'dart:typed_data' as _i34;
@ -3215,8 +3213,7 @@ class MockMainDB extends _i1.Mock implements _i14.MainDB {
utxos, utxos,
], ],
), ),
returnValue: _i19.Future<void>.value(), returnValue: _i19.Future<bool>.value(false),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<bool>); ) as _i19.Future<bool>);
@override @override
_i19.Stream<_i22.UTXO?> watchUTXO({ _i19.Stream<_i22.UTXO?> watchUTXO({

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/widget_tests/wallet_card_test.dart. // in stackwallet/test/widget_tests/wallet_card_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i21; import 'dart:async' as _i21;
import 'dart:typed_data' as _i28; import 'dart:typed_data' as _i28;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.dart. // in stackwallet/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i23; import 'dart:async' as _i23;
import 'dart:typed_data' as _i29; import 'dart:typed_data' as _i29;

View file

@ -1,9 +1,7 @@
// Mocks generated by Mockito 5.4.1 from annotations // Mocks generated by Mockito 5.4.2 from annotations
// in stackwallet/test/widget_tests/wallet_info_row/wallet_info_row_test.dart. // in stackwallet/test/widget_tests/wallet_info_row/wallet_info_row_test.dart.
// Do not manually edit this file. // Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i23; import 'dart:async' as _i23;
import 'dart:typed_data' as _i28; import 'dart:typed_data' as _i28;