From 68754e3329838fe305b8fbac6a801423b9ee54db Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 9 Jan 2024 11:04:02 -0600 Subject: [PATCH] build runner --- .../blockchain_data/v2/transaction_v2.g.dart | 715 ++++++++- .../coins/firo/firo_wallet_test.mocks.dart | 1334 ----------------- 2 files changed, 684 insertions(+), 1365 deletions(-) delete mode 100644 test/services/coins/firo/firo_wallet_test.mocks.dart diff --git a/lib/models/isar/models/blockchain_data/v2/transaction_v2.g.dart b/lib/models/isar/models/blockchain_data/v2/transaction_v2.g.dart index c9182bc0a..814ec9d94 100644 --- a/lib/models/isar/models/blockchain_data/v2/transaction_v2.g.dart +++ b/lib/models/isar/models/blockchain_data/v2/transaction_v2.g.dart @@ -38,46 +38,71 @@ const TransactionV2Schema = CollectionSchema( type: IsarType.objectList, target: r'InputV2', ), - r'otherData': PropertySchema( + r'isCancelled': PropertySchema( id: 4, + name: r'isCancelled', + type: IsarType.bool, + ), + r'isEpiccashTransaction': PropertySchema( + id: 5, + name: r'isEpiccashTransaction', + type: IsarType.bool, + ), + r'numberOfMessages': PropertySchema( + id: 6, + name: r'numberOfMessages', + type: IsarType.long, + ), + r'onChainNote': PropertySchema( + id: 7, + name: r'onChainNote', + type: IsarType.string, + ), + r'otherData': PropertySchema( + id: 8, name: r'otherData', type: IsarType.string, ), r'outputs': PropertySchema( - id: 5, + id: 9, name: r'outputs', type: IsarType.objectList, target: r'OutputV2', ), + r'slateId': PropertySchema( + id: 10, + name: r'slateId', + type: IsarType.string, + ), r'subType': PropertySchema( - id: 6, + id: 11, name: r'subType', type: IsarType.byte, enumMap: _TransactionV2subTypeEnumValueMap, ), r'timestamp': PropertySchema( - id: 7, + id: 12, name: r'timestamp', type: IsarType.long, ), r'txid': PropertySchema( - id: 8, + id: 13, name: r'txid', type: IsarType.string, ), r'type': PropertySchema( - id: 9, + id: 14, name: r'type', type: IsarType.byte, enumMap: _TransactionV2typeEnumValueMap, ), r'version': PropertySchema( - id: 10, + id: 15, name: r'version', type: IsarType.long, ), r'walletId': PropertySchema( - id: 11, + id: 16, name: r'walletId', type: IsarType.string, ) @@ -166,6 +191,12 @@ int _transactionV2EstimateSize( bytesCount += InputV2Schema.estimateSize(value, offsets, allOffsets); } } + { + final value = object.onChainNote; + if (value != null) { + bytesCount += 3 + value.length * 3; + } + } { final value = object.otherData; if (value != null) { @@ -180,6 +211,12 @@ int _transactionV2EstimateSize( bytesCount += OutputV2Schema.estimateSize(value, offsets, allOffsets); } } + { + final value = object.slateId; + if (value != null) { + bytesCount += 3 + value.length * 3; + } + } bytesCount += 3 + object.txid.length * 3; bytesCount += 3 + object.walletId.length * 3; return bytesCount; @@ -200,19 +237,24 @@ void _transactionV2Serialize( InputV2Schema.serialize, object.inputs, ); - writer.writeString(offsets[4], object.otherData); + writer.writeBool(offsets[4], object.isCancelled); + writer.writeBool(offsets[5], object.isEpiccashTransaction); + writer.writeLong(offsets[6], object.numberOfMessages); + writer.writeString(offsets[7], object.onChainNote); + writer.writeString(offsets[8], object.otherData); writer.writeObjectList( - offsets[5], + offsets[9], allOffsets, OutputV2Schema.serialize, object.outputs, ); - writer.writeByte(offsets[6], object.subType.index); - writer.writeLong(offsets[7], object.timestamp); - writer.writeString(offsets[8], object.txid); - writer.writeByte(offsets[9], object.type.index); - writer.writeLong(offsets[10], object.version); - writer.writeString(offsets[11], object.walletId); + writer.writeString(offsets[10], object.slateId); + writer.writeByte(offsets[11], object.subType.index); + writer.writeLong(offsets[12], object.timestamp); + writer.writeString(offsets[13], object.txid); + writer.writeByte(offsets[14], object.type.index); + writer.writeLong(offsets[15], object.version); + writer.writeString(offsets[16], object.walletId); } TransactionV2 _transactionV2Deserialize( @@ -232,23 +274,23 @@ TransactionV2 _transactionV2Deserialize( InputV2(), ) ?? [], - otherData: reader.readStringOrNull(offsets[4]), + otherData: reader.readStringOrNull(offsets[8]), outputs: reader.readObjectList( - offsets[5], + offsets[9], OutputV2Schema.deserialize, allOffsets, OutputV2(), ) ?? [], subType: - _TransactionV2subTypeValueEnumMap[reader.readByteOrNull(offsets[6])] ?? + _TransactionV2subTypeValueEnumMap[reader.readByteOrNull(offsets[11])] ?? TransactionSubType.none, - timestamp: reader.readLong(offsets[7]), - txid: reader.readString(offsets[8]), - type: _TransactionV2typeValueEnumMap[reader.readByteOrNull(offsets[9])] ?? + timestamp: reader.readLong(offsets[12]), + txid: reader.readString(offsets[13]), + type: _TransactionV2typeValueEnumMap[reader.readByteOrNull(offsets[14])] ?? TransactionType.outgoing, - version: reader.readLong(offsets[10]), - walletId: reader.readString(offsets[11]), + version: reader.readLong(offsets[15]), + walletId: reader.readString(offsets[16]), ); object.id = id; return object; @@ -276,8 +318,16 @@ P _transactionV2DeserializeProp

( ) ?? []) as P; case 4: - return (reader.readStringOrNull(offset)) as P; + return (reader.readBool(offset)) as P; case 5: + return (reader.readBool(offset)) as P; + case 6: + return (reader.readLongOrNull(offset)) as P; + case 7: + return (reader.readStringOrNull(offset)) as P; + case 8: + return (reader.readStringOrNull(offset)) as P; + case 9: return (reader.readObjectList( offset, OutputV2Schema.deserialize, @@ -285,20 +335,22 @@ P _transactionV2DeserializeProp

( OutputV2(), ) ?? []) as P; - case 6: + case 10: + return (reader.readStringOrNull(offset)) as P; + case 11: return (_TransactionV2subTypeValueEnumMap[ reader.readByteOrNull(offset)] ?? TransactionSubType.none) as P; - case 7: + case 12: return (reader.readLong(offset)) as P; - case 8: + case 13: return (reader.readString(offset)) as P; - case 9: + case 14: return (_TransactionV2typeValueEnumMap[reader.readByteOrNull(offset)] ?? TransactionType.outgoing) as P; - case 10: + case 15: return (reader.readLong(offset)) as P; - case 11: + case 16: return (reader.readString(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); @@ -1263,6 +1315,254 @@ extension TransactionV2QueryFilter }); } + QueryBuilder + isCancelledEqualTo(bool value) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.equalTo( + property: r'isCancelled', + value: value, + )); + }); + } + + QueryBuilder + isEpiccashTransactionEqualTo(bool value) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.equalTo( + property: r'isEpiccashTransaction', + value: value, + )); + }); + } + + QueryBuilder + numberOfMessagesIsNull() { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(const FilterCondition.isNull( + property: r'numberOfMessages', + )); + }); + } + + QueryBuilder + numberOfMessagesIsNotNull() { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(const FilterCondition.isNotNull( + property: r'numberOfMessages', + )); + }); + } + + QueryBuilder + numberOfMessagesEqualTo(int? value) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.equalTo( + property: r'numberOfMessages', + value: value, + )); + }); + } + + QueryBuilder + numberOfMessagesGreaterThan( + int? value, { + bool include = false, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.greaterThan( + include: include, + property: r'numberOfMessages', + value: value, + )); + }); + } + + QueryBuilder + numberOfMessagesLessThan( + int? value, { + bool include = false, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.lessThan( + include: include, + property: r'numberOfMessages', + value: value, + )); + }); + } + + QueryBuilder + numberOfMessagesBetween( + int? lower, + int? upper, { + bool includeLower = true, + bool includeUpper = true, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.between( + property: r'numberOfMessages', + lower: lower, + includeLower: includeLower, + upper: upper, + includeUpper: includeUpper, + )); + }); + } + + QueryBuilder + onChainNoteIsNull() { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(const FilterCondition.isNull( + property: r'onChainNote', + )); + }); + } + + QueryBuilder + onChainNoteIsNotNull() { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(const FilterCondition.isNotNull( + property: r'onChainNote', + )); + }); + } + + QueryBuilder + onChainNoteEqualTo( + String? value, { + bool caseSensitive = true, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.equalTo( + property: r'onChainNote', + value: value, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + onChainNoteGreaterThan( + String? value, { + bool include = false, + bool caseSensitive = true, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.greaterThan( + include: include, + property: r'onChainNote', + value: value, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + onChainNoteLessThan( + String? value, { + bool include = false, + bool caseSensitive = true, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.lessThan( + include: include, + property: r'onChainNote', + value: value, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + onChainNoteBetween( + String? lower, + String? upper, { + bool includeLower = true, + bool includeUpper = true, + bool caseSensitive = true, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.between( + property: r'onChainNote', + lower: lower, + includeLower: includeLower, + upper: upper, + includeUpper: includeUpper, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + onChainNoteStartsWith( + String value, { + bool caseSensitive = true, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.startsWith( + property: r'onChainNote', + value: value, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + onChainNoteEndsWith( + String value, { + bool caseSensitive = true, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.endsWith( + property: r'onChainNote', + value: value, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + onChainNoteContains(String value, {bool caseSensitive = true}) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.contains( + property: r'onChainNote', + value: value, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + onChainNoteMatches(String pattern, {bool caseSensitive = true}) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.matches( + property: r'onChainNote', + wildcard: pattern, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + onChainNoteIsEmpty() { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.equalTo( + property: r'onChainNote', + value: '', + )); + }); + } + + QueryBuilder + onChainNoteIsNotEmpty() { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.greaterThan( + property: r'onChainNote', + value: '', + )); + }); + } + QueryBuilder otherDataIsNull() { return QueryBuilder.apply(this, (query) { @@ -1506,6 +1806,160 @@ extension TransactionV2QueryFilter }); } + QueryBuilder + slateIdIsNull() { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(const FilterCondition.isNull( + property: r'slateId', + )); + }); + } + + QueryBuilder + slateIdIsNotNull() { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(const FilterCondition.isNotNull( + property: r'slateId', + )); + }); + } + + QueryBuilder + slateIdEqualTo( + String? value, { + bool caseSensitive = true, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.equalTo( + property: r'slateId', + value: value, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + slateIdGreaterThan( + String? value, { + bool include = false, + bool caseSensitive = true, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.greaterThan( + include: include, + property: r'slateId', + value: value, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + slateIdLessThan( + String? value, { + bool include = false, + bool caseSensitive = true, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.lessThan( + include: include, + property: r'slateId', + value: value, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + slateIdBetween( + String? lower, + String? upper, { + bool includeLower = true, + bool includeUpper = true, + bool caseSensitive = true, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.between( + property: r'slateId', + lower: lower, + includeLower: includeLower, + upper: upper, + includeUpper: includeUpper, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + slateIdStartsWith( + String value, { + bool caseSensitive = true, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.startsWith( + property: r'slateId', + value: value, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + slateIdEndsWith( + String value, { + bool caseSensitive = true, + }) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.endsWith( + property: r'slateId', + value: value, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + slateIdContains(String value, {bool caseSensitive = true}) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.contains( + property: r'slateId', + value: value, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + slateIdMatches(String pattern, {bool caseSensitive = true}) { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.matches( + property: r'slateId', + wildcard: pattern, + caseSensitive: caseSensitive, + )); + }); + } + + QueryBuilder + slateIdIsEmpty() { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.equalTo( + property: r'slateId', + value: '', + )); + }); + } + + QueryBuilder + slateIdIsNotEmpty() { + return QueryBuilder.apply(this, (query) { + return query.addFilterCondition(FilterCondition.greaterThan( + property: r'slateId', + value: '', + )); + }); + } + QueryBuilder subTypeEqualTo(TransactionSubType value) { return QueryBuilder.apply(this, (query) { @@ -2060,6 +2514,60 @@ extension TransactionV2QuerySortBy }); } + QueryBuilder sortByIsCancelled() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'isCancelled', Sort.asc); + }); + } + + QueryBuilder + sortByIsCancelledDesc() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'isCancelled', Sort.desc); + }); + } + + QueryBuilder + sortByIsEpiccashTransaction() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'isEpiccashTransaction', Sort.asc); + }); + } + + QueryBuilder + sortByIsEpiccashTransactionDesc() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'isEpiccashTransaction', Sort.desc); + }); + } + + QueryBuilder + sortByNumberOfMessages() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'numberOfMessages', Sort.asc); + }); + } + + QueryBuilder + sortByNumberOfMessagesDesc() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'numberOfMessages', Sort.desc); + }); + } + + QueryBuilder sortByOnChainNote() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'onChainNote', Sort.asc); + }); + } + + QueryBuilder + sortByOnChainNoteDesc() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'onChainNote', Sort.desc); + }); + } + QueryBuilder sortByOtherData() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'otherData', Sort.asc); @@ -2073,6 +2581,18 @@ extension TransactionV2QuerySortBy }); } + QueryBuilder sortBySlateId() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'slateId', Sort.asc); + }); + } + + QueryBuilder sortBySlateIdDesc() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'slateId', Sort.desc); + }); + } + QueryBuilder sortBySubType() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'subType', Sort.asc); @@ -2199,6 +2719,60 @@ extension TransactionV2QuerySortThenBy }); } + QueryBuilder thenByIsCancelled() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'isCancelled', Sort.asc); + }); + } + + QueryBuilder + thenByIsCancelledDesc() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'isCancelled', Sort.desc); + }); + } + + QueryBuilder + thenByIsEpiccashTransaction() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'isEpiccashTransaction', Sort.asc); + }); + } + + QueryBuilder + thenByIsEpiccashTransactionDesc() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'isEpiccashTransaction', Sort.desc); + }); + } + + QueryBuilder + thenByNumberOfMessages() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'numberOfMessages', Sort.asc); + }); + } + + QueryBuilder + thenByNumberOfMessagesDesc() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'numberOfMessages', Sort.desc); + }); + } + + QueryBuilder thenByOnChainNote() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'onChainNote', Sort.asc); + }); + } + + QueryBuilder + thenByOnChainNoteDesc() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'onChainNote', Sort.desc); + }); + } + QueryBuilder thenByOtherData() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'otherData', Sort.asc); @@ -2212,6 +2786,18 @@ extension TransactionV2QuerySortThenBy }); } + QueryBuilder thenBySlateId() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'slateId', Sort.asc); + }); + } + + QueryBuilder thenBySlateIdDesc() { + return QueryBuilder.apply(this, (query) { + return query.addSortBy(r'slateId', Sort.desc); + }); + } + QueryBuilder thenBySubType() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'subType', Sort.asc); @@ -2309,6 +2895,34 @@ extension TransactionV2QueryWhereDistinct }); } + QueryBuilder + distinctByIsCancelled() { + return QueryBuilder.apply(this, (query) { + return query.addDistinctBy(r'isCancelled'); + }); + } + + QueryBuilder + distinctByIsEpiccashTransaction() { + return QueryBuilder.apply(this, (query) { + return query.addDistinctBy(r'isEpiccashTransaction'); + }); + } + + QueryBuilder + distinctByNumberOfMessages() { + return QueryBuilder.apply(this, (query) { + return query.addDistinctBy(r'numberOfMessages'); + }); + } + + QueryBuilder distinctByOnChainNote( + {bool caseSensitive = true}) { + return QueryBuilder.apply(this, (query) { + return query.addDistinctBy(r'onChainNote', caseSensitive: caseSensitive); + }); + } + QueryBuilder distinctByOtherData( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { @@ -2316,6 +2930,13 @@ extension TransactionV2QueryWhereDistinct }); } + QueryBuilder distinctBySlateId( + {bool caseSensitive = true}) { + return QueryBuilder.apply(this, (query) { + return query.addDistinctBy(r'slateId', caseSensitive: caseSensitive); + }); + } + QueryBuilder distinctBySubType() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'subType'); @@ -2388,6 +3009,32 @@ extension TransactionV2QueryProperty }); } + QueryBuilder isCancelledProperty() { + return QueryBuilder.apply(this, (query) { + return query.addPropertyName(r'isCancelled'); + }); + } + + QueryBuilder + isEpiccashTransactionProperty() { + return QueryBuilder.apply(this, (query) { + return query.addPropertyName(r'isEpiccashTransaction'); + }); + } + + QueryBuilder + numberOfMessagesProperty() { + return QueryBuilder.apply(this, (query) { + return query.addPropertyName(r'numberOfMessages'); + }); + } + + QueryBuilder onChainNoteProperty() { + return QueryBuilder.apply(this, (query) { + return query.addPropertyName(r'onChainNote'); + }); + } + QueryBuilder otherDataProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'otherData'); @@ -2401,6 +3048,12 @@ extension TransactionV2QueryProperty }); } + QueryBuilder slateIdProperty() { + return QueryBuilder.apply(this, (query) { + return query.addPropertyName(r'slateId'); + }); + } + QueryBuilder subTypeProperty() { return QueryBuilder.apply(this, (query) { diff --git a/test/services/coins/firo/firo_wallet_test.mocks.dart b/test/services/coins/firo/firo_wallet_test.mocks.dart deleted file mode 100644 index 213c594db..000000000 --- a/test/services/coins/firo/firo_wallet_test.mocks.dart +++ /dev/null @@ -1,1334 +0,0 @@ -// Mocks generated by Mockito 5.4.2 from annotations -// in stackwallet/test/services/coins/firo/firo_wallet_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; - -import 'package:decimal/decimal.dart' as _i2; -import 'package:isar/isar.dart' as _i4; -import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/db/isar/main_db.dart' as _i9; -import 'package:stackwallet/electrumx_rpc/cached_electrumx_client.dart' as _i6; -import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i3; -import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i12; -import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart' - as _i15; -import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i11; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i13; -import 'package:stackwallet/services/transaction_notification_tracker.dart' - as _i8; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7; -import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i10; -import 'package:tuple/tuple.dart' as _i14; - -// ignore_for_file: type=lint -// ignore_for_file: avoid_redundant_argument_values -// ignore_for_file: avoid_setters_without_getters -// ignore_for_file: comment_references -// ignore_for_file: implementation_imports -// ignore_for_file: invalid_use_of_visible_for_testing_member -// ignore_for_file: prefer_const_constructors -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -class _FakeDuration_0 extends _i1.SmartFake implements Duration { - _FakeDuration_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal { - _FakeDecimal_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeElectrumXClient_2 extends _i1.SmartFake - implements _i3.ElectrumXClient { - _FakeElectrumXClient_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeIsar_3 extends _i1.SmartFake implements _i4.Isar { - _FakeIsar_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeQueryBuilder_4 extends _i1.SmartFake - implements _i4.QueryBuilder { - _FakeQueryBuilder_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [ElectrumXClient]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockElectrumXClient extends _i1.Mock implements _i3.ElectrumXClient { - MockElectrumXClient() { - _i1.throwOnMissingStub(this); - } - - @override - set failovers(List<_i3.ElectrumXNode>? _failovers) => super.noSuchMethod( - Invocation.setter( - #failovers, - _failovers, - ), - returnValueForMissingStub: null, - ); - @override - int get currentFailoverIndex => (super.noSuchMethod( - Invocation.getter(#currentFailoverIndex), - returnValue: 0, - ) as int); - @override - set currentFailoverIndex(int? _currentFailoverIndex) => super.noSuchMethod( - Invocation.setter( - #currentFailoverIndex, - _currentFailoverIndex, - ), - returnValueForMissingStub: null, - ); - @override - Duration get connectionTimeoutForSpecialCaseJsonRPCClients => - (super.noSuchMethod( - Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients), - returnValue: _FakeDuration_0( - this, - Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients), - ), - ) as Duration); - @override - String get host => (super.noSuchMethod( - Invocation.getter(#host), - returnValue: '', - ) as String); - @override - int get port => (super.noSuchMethod( - Invocation.getter(#port), - returnValue: 0, - ) as int); - @override - bool get useSSL => (super.noSuchMethod( - Invocation.getter(#useSSL), - returnValue: false, - ) as bool); - @override - _i5.Future request({ - required String? command, - List? args = const [], - String? requestID, - int? retries = 2, - Duration? requestTimeout = const Duration(seconds: 60), - }) => - (super.noSuchMethod( - Invocation.method( - #request, - [], - { - #command: command, - #args: args, - #requestID: requestID, - #retries: retries, - #requestTimeout: requestTimeout, - }, - ), - returnValue: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future>> batchRequest({ - required String? command, - required Map>? args, - Duration? requestTimeout = const Duration(seconds: 60), - int? retries = 2, - }) => - (super.noSuchMethod( - Invocation.method( - #batchRequest, - [], - { - #command: command, - #args: args, - #requestTimeout: requestTimeout, - #retries: retries, - }, - ), - returnValue: _i5.Future>>.value( - >[]), - ) as _i5.Future>>); - @override - _i5.Future ping({ - String? requestID, - int? retryCount = 1, - }) => - (super.noSuchMethod( - Invocation.method( - #ping, - [], - { - #requestID: requestID, - #retryCount: retryCount, - }, - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - @override - _i5.Future> getBlockHeadTip({String? requestID}) => - (super.noSuchMethod( - Invocation.method( - #getBlockHeadTip, - [], - {#requestID: requestID}, - ), - returnValue: - _i5.Future>.value({}), - ) as _i5.Future>); - @override - _i5.Future> getServerFeatures({String? requestID}) => - (super.noSuchMethod( - Invocation.method( - #getServerFeatures, - [], - {#requestID: requestID}, - ), - returnValue: - _i5.Future>.value({}), - ) as _i5.Future>); - @override - _i5.Future broadcastTransaction({ - required String? rawTx, - String? requestID, - }) => - (super.noSuchMethod( - Invocation.method( - #broadcastTransaction, - [], - { - #rawTx: rawTx, - #requestID: requestID, - }, - ), - returnValue: _i5.Future.value(''), - ) as _i5.Future); - @override - _i5.Future> getBalance({ - required String? scripthash, - String? requestID, - }) => - (super.noSuchMethod( - Invocation.method( - #getBalance, - [], - { - #scripthash: scripthash, - #requestID: requestID, - }, - ), - returnValue: - _i5.Future>.value({}), - ) as _i5.Future>); - @override - _i5.Future>> getHistory({ - required String? scripthash, - String? requestID, - }) => - (super.noSuchMethod( - Invocation.method( - #getHistory, - [], - { - #scripthash: scripthash, - #requestID: requestID, - }, - ), - returnValue: _i5.Future>>.value( - >[]), - ) as _i5.Future>>); - @override - _i5.Future>>> getBatchHistory( - {required Map>? args}) => - (super.noSuchMethod( - Invocation.method( - #getBatchHistory, - [], - {#args: args}, - ), - returnValue: _i5.Future>>>.value( - >>{}), - ) as _i5.Future>>>); - @override - _i5.Future>> getUTXOs({ - required String? scripthash, - String? requestID, - }) => - (super.noSuchMethod( - Invocation.method( - #getUTXOs, - [], - { - #scripthash: scripthash, - #requestID: requestID, - }, - ), - returnValue: _i5.Future>>.value( - >[]), - ) as _i5.Future>>); - @override - _i5.Future>>> getBatchUTXOs( - {required Map>? args}) => - (super.noSuchMethod( - Invocation.method( - #getBatchUTXOs, - [], - {#args: args}, - ), - returnValue: _i5.Future>>>.value( - >>{}), - ) as _i5.Future>>>); - @override - _i5.Future> getTransaction({ - required String? txHash, - bool? verbose = true, - String? requestID, - }) => - (super.noSuchMethod( - Invocation.method( - #getTransaction, - [], - { - #txHash: txHash, - #verbose: verbose, - #requestID: requestID, - }, - ), - returnValue: - _i5.Future>.value({}), - ) as _i5.Future>); - @override - _i5.Future> getLelantusAnonymitySet({ - String? groupId = r'1', - String? blockhash = r'', - String? requestID, - }) => - (super.noSuchMethod( - Invocation.method( - #getLelantusAnonymitySet, - [], - { - #groupId: groupId, - #blockhash: blockhash, - #requestID: requestID, - }, - ), - returnValue: - _i5.Future>.value({}), - ) as _i5.Future>); - @override - _i5.Future getLelantusMintData({ - dynamic mints, - String? requestID, - }) => - (super.noSuchMethod( - Invocation.method( - #getLelantusMintData, - [], - { - #mints: mints, - #requestID: requestID, - }, - ), - returnValue: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future> getLelantusUsedCoinSerials({ - String? requestID, - required int? startNumber, - }) => - (super.noSuchMethod( - Invocation.method( - #getLelantusUsedCoinSerials, - [], - { - #requestID: requestID, - #startNumber: startNumber, - }, - ), - returnValue: - _i5.Future>.value({}), - ) as _i5.Future>); - @override - _i5.Future getLelantusLatestCoinId({String? requestID}) => - (super.noSuchMethod( - Invocation.method( - #getLelantusLatestCoinId, - [], - {#requestID: requestID}, - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - @override - _i5.Future> getSparkAnonymitySet({ - String? coinGroupId = r'1', - String? startBlockHash = r'', - String? requestID, - }) => - (super.noSuchMethod( - Invocation.method( - #getSparkAnonymitySet, - [], - { - #coinGroupId: coinGroupId, - #startBlockHash: startBlockHash, - #requestID: requestID, - }, - ), - returnValue: - _i5.Future>.value({}), - ) as _i5.Future>); - @override - _i5.Future> getSparkUsedCoinsTags({ - String? requestID, - required int? startNumber, - }) => - (super.noSuchMethod( - Invocation.method( - #getSparkUsedCoinsTags, - [], - { - #requestID: requestID, - #startNumber: startNumber, - }, - ), - returnValue: _i5.Future>.value({}), - ) as _i5.Future>); - @override - _i5.Future>> getSparkMintMetaData({ - String? requestID, - required List? sparkCoinHashes, - }) => - (super.noSuchMethod( - Invocation.method( - #getSparkMintMetaData, - [], - { - #requestID: requestID, - #sparkCoinHashes: sparkCoinHashes, - }, - ), - returnValue: _i5.Future>>.value( - >[]), - ) as _i5.Future>>); - @override - _i5.Future getSparkLatestCoinId({String? requestID}) => - (super.noSuchMethod( - Invocation.method( - #getSparkLatestCoinId, - [], - {#requestID: requestID}, - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - @override - _i5.Future> getFeeRate({String? requestID}) => - (super.noSuchMethod( - Invocation.method( - #getFeeRate, - [], - {#requestID: requestID}, - ), - returnValue: - _i5.Future>.value({}), - ) as _i5.Future>); - @override - _i5.Future<_i2.Decimal> estimateFee({ - String? requestID, - required int? blocks, - }) => - (super.noSuchMethod( - Invocation.method( - #estimateFee, - [], - { - #requestID: requestID, - #blocks: blocks, - }, - ), - returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1( - this, - Invocation.method( - #estimateFee, - [], - { - #requestID: requestID, - #blocks: blocks, - }, - ), - )), - ) as _i5.Future<_i2.Decimal>); - @override - _i5.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod( - Invocation.method( - #relayFee, - [], - {#requestID: requestID}, - ), - returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1( - this, - Invocation.method( - #relayFee, - [], - {#requestID: requestID}, - ), - )), - ) as _i5.Future<_i2.Decimal>); -} - -/// A class which mocks [CachedElectrumXClient]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockCachedElectrumXClient extends _i1.Mock - implements _i6.CachedElectrumXClient { - MockCachedElectrumXClient() { - _i1.throwOnMissingStub(this); - } - - @override - _i3.ElectrumXClient get electrumXClient => (super.noSuchMethod( - Invocation.getter(#electrumXClient), - returnValue: _FakeElectrumXClient_2( - this, - Invocation.getter(#electrumXClient), - ), - ) as _i3.ElectrumXClient); - @override - _i5.Future> getAnonymitySet({ - required String? groupId, - String? blockhash = r'', - required _i7.Coin? coin, - }) => - (super.noSuchMethod( - Invocation.method( - #getAnonymitySet, - [], - { - #groupId: groupId, - #blockhash: blockhash, - #coin: coin, - }, - ), - returnValue: - _i5.Future>.value({}), - ) as _i5.Future>); - @override - _i5.Future> getSparkAnonymitySet({ - required String? groupId, - String? blockhash = r'', - required _i7.Coin? coin, - }) => - (super.noSuchMethod( - Invocation.method( - #getSparkAnonymitySet, - [], - { - #groupId: groupId, - #blockhash: blockhash, - #coin: coin, - }, - ), - returnValue: - _i5.Future>.value({}), - ) as _i5.Future>); - @override - String base64ToHex(String? source) => (super.noSuchMethod( - Invocation.method( - #base64ToHex, - [source], - ), - returnValue: '', - ) as String); - @override - String base64ToReverseHex(String? source) => (super.noSuchMethod( - Invocation.method( - #base64ToReverseHex, - [source], - ), - returnValue: '', - ) as String); - @override - _i5.Future> getTransaction({ - required String? txHash, - required _i7.Coin? coin, - bool? verbose = true, - }) => - (super.noSuchMethod( - Invocation.method( - #getTransaction, - [], - { - #txHash: txHash, - #coin: coin, - #verbose: verbose, - }, - ), - returnValue: - _i5.Future>.value({}), - ) as _i5.Future>); - @override - _i5.Future> getUsedCoinSerials({ - required _i7.Coin? coin, - int? startNumber = 0, - }) => - (super.noSuchMethod( - Invocation.method( - #getUsedCoinSerials, - [], - { - #coin: coin, - #startNumber: startNumber, - }, - ), - returnValue: _i5.Future>.value([]), - ) as _i5.Future>); - @override - _i5.Future> getSparkUsedCoinsTags({required _i7.Coin? coin}) => - (super.noSuchMethod( - Invocation.method( - #getSparkUsedCoinsTags, - [], - {#coin: coin}, - ), - returnValue: _i5.Future>.value({}), - ) as _i5.Future>); - @override - _i5.Future clearSharedTransactionCache({required _i7.Coin? coin}) => - (super.noSuchMethod( - Invocation.method( - #clearSharedTransactionCache, - [], - {#coin: coin}, - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); -} - -/// A class which mocks [TransactionNotificationTracker]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockTransactionNotificationTracker extends _i1.Mock - implements _i8.TransactionNotificationTracker { - MockTransactionNotificationTracker() { - _i1.throwOnMissingStub(this); - } - - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - List get pendings => (super.noSuchMethod( - Invocation.getter(#pendings), - returnValue: [], - ) as List); - @override - List get confirmeds => (super.noSuchMethod( - Invocation.getter(#confirmeds), - returnValue: [], - ) as List); - @override - bool wasNotifiedPending(String? txid) => (super.noSuchMethod( - Invocation.method( - #wasNotifiedPending, - [txid], - ), - returnValue: false, - ) as bool); - @override - _i5.Future addNotifiedPending(String? txid) => (super.noSuchMethod( - Invocation.method( - #addNotifiedPending, - [txid], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod( - Invocation.method( - #wasNotifiedConfirmed, - [txid], - ), - returnValue: false, - ) as bool); - @override - _i5.Future addNotifiedConfirmed(String? txid) => (super.noSuchMethod( - Invocation.method( - #addNotifiedConfirmed, - [txid], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future deleteTransaction(String? txid) => (super.noSuchMethod( - Invocation.method( - #deleteTransaction, - [txid], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); -} - -/// A class which mocks [MainDB]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockMainDB extends _i1.Mock implements _i9.MainDB { - MockMainDB() { - _i1.throwOnMissingStub(this); - } - - @override - _i4.Isar get isar => (super.noSuchMethod( - Invocation.getter(#isar), - returnValue: _FakeIsar_3( - this, - Invocation.getter(#isar), - ), - ) as _i4.Isar); - @override - _i5.Future initMainDB({_i4.Isar? mock}) => (super.noSuchMethod( - Invocation.method( - #initMainDB, - [], - {#mock: mock}, - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - @override - _i5.Future putWalletInfo(_i10.WalletInfo? walletInfo) => - (super.noSuchMethod( - Invocation.method( - #putWalletInfo, - [walletInfo], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future updateWalletInfo(_i10.WalletInfo? walletInfo) => - (super.noSuchMethod( - Invocation.method( - #updateWalletInfo, - [walletInfo], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - List<_i11.ContactEntry> getContactEntries() => (super.noSuchMethod( - Invocation.method( - #getContactEntries, - [], - ), - returnValue: <_i11.ContactEntry>[], - ) as List<_i11.ContactEntry>); - @override - _i5.Future deleteContactEntry({required String? id}) => - (super.noSuchMethod( - Invocation.method( - #deleteContactEntry, - [], - {#id: id}, - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - @override - _i5.Future isContactEntryExists({required String? id}) => - (super.noSuchMethod( - Invocation.method( - #isContactEntryExists, - [], - {#id: id}, - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - @override - _i11.ContactEntry? getContactEntry({required String? id}) => - (super.noSuchMethod(Invocation.method( - #getContactEntry, - [], - {#id: id}, - )) as _i11.ContactEntry?); - @override - _i5.Future putContactEntry( - {required _i11.ContactEntry? contactEntry}) => - (super.noSuchMethod( - Invocation.method( - #putContactEntry, - [], - {#contactEntry: contactEntry}, - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - @override - _i12.TransactionBlockExplorer? getTransactionBlockExplorer( - {required _i7.Coin? coin}) => - (super.noSuchMethod(Invocation.method( - #getTransactionBlockExplorer, - [], - {#coin: coin}, - )) as _i12.TransactionBlockExplorer?); - @override - _i5.Future putTransactionBlockExplorer( - _i12.TransactionBlockExplorer? explorer) => - (super.noSuchMethod( - Invocation.method( - #putTransactionBlockExplorer, - [explorer], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - @override - _i4.QueryBuilder<_i13.Address, _i13.Address, _i4.QAfterWhereClause> - getAddresses(String? walletId) => (super.noSuchMethod( - Invocation.method( - #getAddresses, - [walletId], - ), - returnValue: _FakeQueryBuilder_4<_i13.Address, _i13.Address, - _i4.QAfterWhereClause>( - this, - Invocation.method( - #getAddresses, - [walletId], - ), - ), - ) as _i4 - .QueryBuilder<_i13.Address, _i13.Address, _i4.QAfterWhereClause>); - @override - _i5.Future putAddress(_i13.Address? address) => (super.noSuchMethod( - Invocation.method( - #putAddress, - [address], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - @override - _i5.Future> putAddresses(List<_i13.Address>? addresses) => - (super.noSuchMethod( - Invocation.method( - #putAddresses, - [addresses], - ), - returnValue: _i5.Future>.value([]), - ) as _i5.Future>); - @override - _i5.Future> updateOrPutAddresses(List<_i13.Address>? addresses) => - (super.noSuchMethod( - Invocation.method( - #updateOrPutAddresses, - [addresses], - ), - returnValue: _i5.Future>.value([]), - ) as _i5.Future>); - @override - _i5.Future<_i13.Address?> getAddress( - String? walletId, - String? address, - ) => - (super.noSuchMethod( - Invocation.method( - #getAddress, - [ - walletId, - address, - ], - ), - returnValue: _i5.Future<_i13.Address?>.value(), - ) as _i5.Future<_i13.Address?>); - @override - _i5.Future updateAddress( - _i13.Address? oldAddress, - _i13.Address? newAddress, - ) => - (super.noSuchMethod( - Invocation.method( - #updateAddress, - [ - oldAddress, - newAddress, - ], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - @override - _i4.QueryBuilder<_i13.Transaction, _i13.Transaction, _i4.QAfterWhereClause> - getTransactions(String? walletId) => (super.noSuchMethod( - Invocation.method( - #getTransactions, - [walletId], - ), - returnValue: _FakeQueryBuilder_4<_i13.Transaction, _i13.Transaction, - _i4.QAfterWhereClause>( - this, - Invocation.method( - #getTransactions, - [walletId], - ), - ), - ) as _i4.QueryBuilder<_i13.Transaction, _i13.Transaction, - _i4.QAfterWhereClause>); - @override - _i5.Future putTransaction(_i13.Transaction? transaction) => - (super.noSuchMethod( - Invocation.method( - #putTransaction, - [transaction], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - @override - _i5.Future> putTransactions(List<_i13.Transaction>? transactions) => - (super.noSuchMethod( - Invocation.method( - #putTransactions, - [transactions], - ), - returnValue: _i5.Future>.value([]), - ) as _i5.Future>); - @override - _i5.Future<_i13.Transaction?> getTransaction( - String? walletId, - String? txid, - ) => - (super.noSuchMethod( - Invocation.method( - #getTransaction, - [ - walletId, - txid, - ], - ), - returnValue: _i5.Future<_i13.Transaction?>.value(), - ) as _i5.Future<_i13.Transaction?>); - @override - _i5.Stream<_i13.Transaction?> watchTransaction({ - required int? id, - bool? fireImmediately = false, - }) => - (super.noSuchMethod( - Invocation.method( - #watchTransaction, - [], - { - #id: id, - #fireImmediately: fireImmediately, - }, - ), - returnValue: _i5.Stream<_i13.Transaction?>.empty(), - ) as _i5.Stream<_i13.Transaction?>); - @override - _i4.QueryBuilder<_i13.UTXO, _i13.UTXO, _i4.QAfterWhereClause> getUTXOs( - String? walletId) => - (super.noSuchMethod( - Invocation.method( - #getUTXOs, - [walletId], - ), - returnValue: - _FakeQueryBuilder_4<_i13.UTXO, _i13.UTXO, _i4.QAfterWhereClause>( - this, - Invocation.method( - #getUTXOs, - [walletId], - ), - ), - ) as _i4.QueryBuilder<_i13.UTXO, _i13.UTXO, _i4.QAfterWhereClause>); - @override - _i4.QueryBuilder<_i13.UTXO, _i13.UTXO, _i4.QAfterFilterCondition> - getUTXOsByAddress( - String? walletId, - String? address, - ) => - (super.noSuchMethod( - Invocation.method( - #getUTXOsByAddress, - [ - walletId, - address, - ], - ), - returnValue: _FakeQueryBuilder_4<_i13.UTXO, _i13.UTXO, - _i4.QAfterFilterCondition>( - this, - Invocation.method( - #getUTXOsByAddress, - [ - walletId, - address, - ], - ), - ), - ) as _i4 - .QueryBuilder<_i13.UTXO, _i13.UTXO, _i4.QAfterFilterCondition>); - @override - _i5.Future putUTXO(_i13.UTXO? utxo) => (super.noSuchMethod( - Invocation.method( - #putUTXO, - [utxo], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future putUTXOs(List<_i13.UTXO>? utxos) => (super.noSuchMethod( - Invocation.method( - #putUTXOs, - [utxos], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future updateUTXOs( - String? walletId, - List<_i13.UTXO>? utxos, - ) => - (super.noSuchMethod( - Invocation.method( - #updateUTXOs, - [ - walletId, - utxos, - ], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - @override - _i5.Stream<_i13.UTXO?> watchUTXO({ - required int? id, - bool? fireImmediately = false, - }) => - (super.noSuchMethod( - Invocation.method( - #watchUTXO, - [], - { - #id: id, - #fireImmediately: fireImmediately, - }, - ), - returnValue: _i5.Stream<_i13.UTXO?>.empty(), - ) as _i5.Stream<_i13.UTXO?>); - @override - _i4.QueryBuilder<_i13.TransactionNote, _i13.TransactionNote, - _i4.QAfterWhereClause> getTransactionNotes( - String? walletId) => - (super.noSuchMethod( - Invocation.method( - #getTransactionNotes, - [walletId], - ), - returnValue: _FakeQueryBuilder_4<_i13.TransactionNote, - _i13.TransactionNote, _i4.QAfterWhereClause>( - this, - Invocation.method( - #getTransactionNotes, - [walletId], - ), - ), - ) as _i4.QueryBuilder<_i13.TransactionNote, _i13.TransactionNote, - _i4.QAfterWhereClause>); - @override - _i5.Future putTransactionNote(_i13.TransactionNote? transactionNote) => - (super.noSuchMethod( - Invocation.method( - #putTransactionNote, - [transactionNote], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future putTransactionNotes( - List<_i13.TransactionNote>? transactionNotes) => - (super.noSuchMethod( - Invocation.method( - #putTransactionNotes, - [transactionNotes], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future<_i13.TransactionNote?> getTransactionNote( - String? walletId, - String? txid, - ) => - (super.noSuchMethod( - Invocation.method( - #getTransactionNote, - [ - walletId, - txid, - ], - ), - returnValue: _i5.Future<_i13.TransactionNote?>.value(), - ) as _i5.Future<_i13.TransactionNote?>); - @override - _i5.Stream<_i13.TransactionNote?> watchTransactionNote({ - required int? id, - bool? fireImmediately = false, - }) => - (super.noSuchMethod( - Invocation.method( - #watchTransactionNote, - [], - { - #id: id, - #fireImmediately: fireImmediately, - }, - ), - returnValue: _i5.Stream<_i13.TransactionNote?>.empty(), - ) as _i5.Stream<_i13.TransactionNote?>); - @override - _i4.QueryBuilder<_i13.AddressLabel, _i13.AddressLabel, _i4.QAfterWhereClause> - getAddressLabels(String? walletId) => (super.noSuchMethod( - Invocation.method( - #getAddressLabels, - [walletId], - ), - returnValue: _FakeQueryBuilder_4<_i13.AddressLabel, - _i13.AddressLabel, _i4.QAfterWhereClause>( - this, - Invocation.method( - #getAddressLabels, - [walletId], - ), - ), - ) as _i4.QueryBuilder<_i13.AddressLabel, _i13.AddressLabel, - _i4.QAfterWhereClause>); - @override - _i5.Future putAddressLabel(_i13.AddressLabel? addressLabel) => - (super.noSuchMethod( - Invocation.method( - #putAddressLabel, - [addressLabel], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - @override - int putAddressLabelSync(_i13.AddressLabel? addressLabel) => - (super.noSuchMethod( - Invocation.method( - #putAddressLabelSync, - [addressLabel], - ), - returnValue: 0, - ) as int); - @override - _i5.Future putAddressLabels(List<_i13.AddressLabel>? addressLabels) => - (super.noSuchMethod( - Invocation.method( - #putAddressLabels, - [addressLabels], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future<_i13.AddressLabel?> getAddressLabel( - String? walletId, - String? addressString, - ) => - (super.noSuchMethod( - Invocation.method( - #getAddressLabel, - [ - walletId, - addressString, - ], - ), - returnValue: _i5.Future<_i13.AddressLabel?>.value(), - ) as _i5.Future<_i13.AddressLabel?>); - @override - _i13.AddressLabel? getAddressLabelSync( - String? walletId, - String? addressString, - ) => - (super.noSuchMethod(Invocation.method( - #getAddressLabelSync, - [ - walletId, - addressString, - ], - )) as _i13.AddressLabel?); - @override - _i5.Stream<_i13.AddressLabel?> watchAddressLabel({ - required int? id, - bool? fireImmediately = false, - }) => - (super.noSuchMethod( - Invocation.method( - #watchAddressLabel, - [], - { - #id: id, - #fireImmediately: fireImmediately, - }, - ), - returnValue: _i5.Stream<_i13.AddressLabel?>.empty(), - ) as _i5.Stream<_i13.AddressLabel?>); - @override - _i5.Future updateAddressLabel(_i13.AddressLabel? addressLabel) => - (super.noSuchMethod( - Invocation.method( - #updateAddressLabel, - [addressLabel], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - @override - _i5.Future deleteWalletBlockchainData(String? walletId) => - (super.noSuchMethod( - Invocation.method( - #deleteWalletBlockchainData, - [walletId], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future deleteAddressLabels(String? walletId) => (super.noSuchMethod( - Invocation.method( - #deleteAddressLabels, - [walletId], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future deleteTransactionNotes(String? walletId) => - (super.noSuchMethod( - Invocation.method( - #deleteTransactionNotes, - [walletId], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future addNewTransactionData( - List<_i14.Tuple2<_i13.Transaction, _i13.Address?>>? transactionsData, - String? walletId, - ) => - (super.noSuchMethod( - Invocation.method( - #addNewTransactionData, - [ - transactionsData, - walletId, - ], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future> updateOrPutTransactionV2s( - List<_i15.TransactionV2>? transactions) => - (super.noSuchMethod( - Invocation.method( - #updateOrPutTransactionV2s, - [transactions], - ), - returnValue: _i5.Future>.value([]), - ) as _i5.Future>); - @override - _i4.QueryBuilder<_i13.EthContract, _i13.EthContract, _i4.QWhere> - getEthContracts() => (super.noSuchMethod( - Invocation.method( - #getEthContracts, - [], - ), - returnValue: _FakeQueryBuilder_4<_i13.EthContract, _i13.EthContract, - _i4.QWhere>( - this, - Invocation.method( - #getEthContracts, - [], - ), - ), - ) as _i4 - .QueryBuilder<_i13.EthContract, _i13.EthContract, _i4.QWhere>); - @override - _i5.Future<_i13.EthContract?> getEthContract(String? contractAddress) => - (super.noSuchMethod( - Invocation.method( - #getEthContract, - [contractAddress], - ), - returnValue: _i5.Future<_i13.EthContract?>.value(), - ) as _i5.Future<_i13.EthContract?>); - @override - _i13.EthContract? getEthContractSync(String? contractAddress) => - (super.noSuchMethod(Invocation.method( - #getEthContractSync, - [contractAddress], - )) as _i13.EthContract?); - @override - _i5.Future putEthContract(_i13.EthContract? contract) => - (super.noSuchMethod( - Invocation.method( - #putEthContract, - [contract], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); - @override - _i5.Future putEthContracts(List<_i13.EthContract>? contracts) => - (super.noSuchMethod( - Invocation.method( - #putEthContracts, - [contracts], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - @override - _i5.Future getHighestUsedMintIndex({required String? walletId}) => - (super.noSuchMethod( - Invocation.method( - #getHighestUsedMintIndex, - [], - {#walletId: walletId}, - ), - returnValue: _i5.Future.value(), - ) as _i5.Future); -}