mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 18:44:31 +00:00
Merge pull request #562 from cypherstack/fix-epic-caching-issue-additional-status-messages
Fix epic caching issue additional status messages
This commit is contained in:
commit
6ded77029b
43 changed files with 1139 additions and 974 deletions
|
@ -12,6 +12,7 @@ part 'transaction.g.dart';
|
||||||
|
|
||||||
@Collection()
|
@Collection()
|
||||||
class Transaction {
|
class Transaction {
|
||||||
|
|
||||||
Transaction({
|
Transaction({
|
||||||
required this.walletId,
|
required this.walletId,
|
||||||
required this.txid,
|
required this.txid,
|
||||||
|
@ -29,6 +30,7 @@ class Transaction {
|
||||||
required this.inputs,
|
required this.inputs,
|
||||||
required this.outputs,
|
required this.outputs,
|
||||||
required this.nonce,
|
required this.nonce,
|
||||||
|
required this.numberOfMessages,
|
||||||
});
|
});
|
||||||
|
|
||||||
Tuple2<Transaction, Address?> copyWith({
|
Tuple2<Transaction, Address?> copyWith({
|
||||||
|
@ -50,6 +52,7 @@ class Transaction {
|
||||||
int? nonce,
|
int? nonce,
|
||||||
Id? id,
|
Id? id,
|
||||||
Address? address,
|
Address? address,
|
||||||
|
int? numberOfMessages,
|
||||||
}) {
|
}) {
|
||||||
return Tuple2(
|
return Tuple2(
|
||||||
Transaction(
|
Transaction(
|
||||||
|
@ -68,7 +71,8 @@ class Transaction {
|
||||||
otherData: otherData ?? this.otherData,
|
otherData: otherData ?? this.otherData,
|
||||||
nonce: nonce ?? this.nonce,
|
nonce: nonce ?? this.nonce,
|
||||||
inputs: inputs ?? this.inputs,
|
inputs: inputs ?? this.inputs,
|
||||||
outputs: outputs ?? this.outputs)
|
outputs: outputs ?? this.outputs,
|
||||||
|
numberOfMessages: numberOfMessages ?? this.numberOfMessages)
|
||||||
..id = id ?? this.id,
|
..id = id ?? this.id,
|
||||||
address ?? this.address.value,
|
address ?? this.address.value,
|
||||||
);
|
);
|
||||||
|
@ -114,6 +118,8 @@ class Transaction {
|
||||||
|
|
||||||
late final List<Output> outputs;
|
late final List<Output> outputs;
|
||||||
|
|
||||||
|
late final int? numberOfMessages;
|
||||||
|
|
||||||
@Backlink(to: "transactions")
|
@Backlink(to: "transactions")
|
||||||
final address = IsarLink<Address>();
|
final address = IsarLink<Address>();
|
||||||
|
|
||||||
|
@ -154,6 +160,7 @@ class Transaction {
|
||||||
"address: ${address.value}, "
|
"address: ${address.value}, "
|
||||||
"inputsLength: ${inputs.length}, "
|
"inputsLength: ${inputs.length}, "
|
||||||
"outputsLength: ${outputs.length}, "
|
"outputsLength: ${outputs.length}, "
|
||||||
|
"numberOfMessages: $numberOfMessages, "
|
||||||
"}";
|
"}";
|
||||||
|
|
||||||
String toJsonString() {
|
String toJsonString() {
|
||||||
|
@ -175,6 +182,7 @@ class Transaction {
|
||||||
"address": address.value?.toJsonString(),
|
"address": address.value?.toJsonString(),
|
||||||
"inputs": inputs.map((e) => e.toJsonString()).toList(),
|
"inputs": inputs.map((e) => e.toJsonString()).toList(),
|
||||||
"outputs": outputs.map((e) => e.toJsonString()).toList(),
|
"outputs": outputs.map((e) => e.toJsonString()).toList(),
|
||||||
|
"numberOfMessages": numberOfMessages,
|
||||||
};
|
};
|
||||||
return jsonEncode(result);
|
return jsonEncode(result);
|
||||||
}
|
}
|
||||||
|
@ -205,6 +213,7 @@ class Transaction {
|
||||||
outputs: List<String>.from(json["outputs"] as List)
|
outputs: List<String>.from(json["outputs"] as List)
|
||||||
.map((e) => Output.fromJsonString(e))
|
.map((e) => Output.fromJsonString(e))
|
||||||
.toList(),
|
.toList(),
|
||||||
|
numberOfMessages: json["numberOfMessages"] as int,
|
||||||
);
|
);
|
||||||
if (json["address"] == null) {
|
if (json["address"] == null) {
|
||||||
return Tuple2(transaction, null);
|
return Tuple2(transaction, null);
|
||||||
|
|
|
@ -58,46 +58,51 @@ const TransactionSchema = CollectionSchema(
|
||||||
name: r'nonce',
|
name: r'nonce',
|
||||||
type: IsarType.long,
|
type: IsarType.long,
|
||||||
),
|
),
|
||||||
r'otherData': PropertySchema(
|
r'numberOfMessages': PropertySchema(
|
||||||
id: 8,
|
id: 8,
|
||||||
|
name: r'numberOfMessages',
|
||||||
|
type: IsarType.long,
|
||||||
|
),
|
||||||
|
r'otherData': PropertySchema(
|
||||||
|
id: 9,
|
||||||
name: r'otherData',
|
name: r'otherData',
|
||||||
type: IsarType.string,
|
type: IsarType.string,
|
||||||
),
|
),
|
||||||
r'outputs': PropertySchema(
|
r'outputs': PropertySchema(
|
||||||
id: 9,
|
id: 10,
|
||||||
name: r'outputs',
|
name: r'outputs',
|
||||||
type: IsarType.objectList,
|
type: IsarType.objectList,
|
||||||
target: r'Output',
|
target: r'Output',
|
||||||
),
|
),
|
||||||
r'slateId': PropertySchema(
|
r'slateId': PropertySchema(
|
||||||
id: 10,
|
id: 11,
|
||||||
name: r'slateId',
|
name: r'slateId',
|
||||||
type: IsarType.string,
|
type: IsarType.string,
|
||||||
),
|
),
|
||||||
r'subType': PropertySchema(
|
r'subType': PropertySchema(
|
||||||
id: 11,
|
id: 12,
|
||||||
name: r'subType',
|
name: r'subType',
|
||||||
type: IsarType.byte,
|
type: IsarType.byte,
|
||||||
enumMap: _TransactionsubTypeEnumValueMap,
|
enumMap: _TransactionsubTypeEnumValueMap,
|
||||||
),
|
),
|
||||||
r'timestamp': PropertySchema(
|
r'timestamp': PropertySchema(
|
||||||
id: 12,
|
id: 13,
|
||||||
name: r'timestamp',
|
name: r'timestamp',
|
||||||
type: IsarType.long,
|
type: IsarType.long,
|
||||||
),
|
),
|
||||||
r'txid': PropertySchema(
|
r'txid': PropertySchema(
|
||||||
id: 13,
|
id: 14,
|
||||||
name: r'txid',
|
name: r'txid',
|
||||||
type: IsarType.string,
|
type: IsarType.string,
|
||||||
),
|
),
|
||||||
r'type': PropertySchema(
|
r'type': PropertySchema(
|
||||||
id: 14,
|
id: 15,
|
||||||
name: r'type',
|
name: r'type',
|
||||||
type: IsarType.byte,
|
type: IsarType.byte,
|
||||||
enumMap: _TransactiontypeEnumValueMap,
|
enumMap: _TransactiontypeEnumValueMap,
|
||||||
),
|
),
|
||||||
r'walletId': PropertySchema(
|
r'walletId': PropertySchema(
|
||||||
id: 15,
|
id: 16,
|
||||||
name: r'walletId',
|
name: r'walletId',
|
||||||
type: IsarType.string,
|
type: IsarType.string,
|
||||||
)
|
)
|
||||||
|
@ -233,19 +238,20 @@ void _transactionSerialize(
|
||||||
writer.writeBool(offsets[5], object.isCancelled);
|
writer.writeBool(offsets[5], object.isCancelled);
|
||||||
writer.writeBool(offsets[6], object.isLelantus);
|
writer.writeBool(offsets[6], object.isLelantus);
|
||||||
writer.writeLong(offsets[7], object.nonce);
|
writer.writeLong(offsets[7], object.nonce);
|
||||||
writer.writeString(offsets[8], object.otherData);
|
writer.writeLong(offsets[8], object.numberOfMessages);
|
||||||
|
writer.writeString(offsets[9], object.otherData);
|
||||||
writer.writeObjectList<Output>(
|
writer.writeObjectList<Output>(
|
||||||
offsets[9],
|
offsets[10],
|
||||||
allOffsets,
|
allOffsets,
|
||||||
OutputSchema.serialize,
|
OutputSchema.serialize,
|
||||||
object.outputs,
|
object.outputs,
|
||||||
);
|
);
|
||||||
writer.writeString(offsets[10], object.slateId);
|
writer.writeString(offsets[11], object.slateId);
|
||||||
writer.writeByte(offsets[11], object.subType.index);
|
writer.writeByte(offsets[12], object.subType.index);
|
||||||
writer.writeLong(offsets[12], object.timestamp);
|
writer.writeLong(offsets[13], object.timestamp);
|
||||||
writer.writeString(offsets[13], object.txid);
|
writer.writeString(offsets[14], object.txid);
|
||||||
writer.writeByte(offsets[14], object.type.index);
|
writer.writeByte(offsets[15], object.type.index);
|
||||||
writer.writeString(offsets[15], object.walletId);
|
writer.writeString(offsets[16], object.walletId);
|
||||||
}
|
}
|
||||||
|
|
||||||
Transaction _transactionDeserialize(
|
Transaction _transactionDeserialize(
|
||||||
|
@ -269,23 +275,24 @@ Transaction _transactionDeserialize(
|
||||||
isCancelled: reader.readBool(offsets[5]),
|
isCancelled: reader.readBool(offsets[5]),
|
||||||
isLelantus: reader.readBoolOrNull(offsets[6]),
|
isLelantus: reader.readBoolOrNull(offsets[6]),
|
||||||
nonce: reader.readLongOrNull(offsets[7]),
|
nonce: reader.readLongOrNull(offsets[7]),
|
||||||
otherData: reader.readStringOrNull(offsets[8]),
|
numberOfMessages: reader.readLongOrNull(offsets[8]),
|
||||||
|
otherData: reader.readStringOrNull(offsets[9]),
|
||||||
outputs: reader.readObjectList<Output>(
|
outputs: reader.readObjectList<Output>(
|
||||||
offsets[9],
|
offsets[10],
|
||||||
OutputSchema.deserialize,
|
OutputSchema.deserialize,
|
||||||
allOffsets,
|
allOffsets,
|
||||||
Output(),
|
Output(),
|
||||||
) ??
|
) ??
|
||||||
[],
|
[],
|
||||||
slateId: reader.readStringOrNull(offsets[10]),
|
slateId: reader.readStringOrNull(offsets[11]),
|
||||||
subType:
|
subType:
|
||||||
_TransactionsubTypeValueEnumMap[reader.readByteOrNull(offsets[11])] ??
|
_TransactionsubTypeValueEnumMap[reader.readByteOrNull(offsets[12])] ??
|
||||||
TransactionSubType.none,
|
TransactionSubType.none,
|
||||||
timestamp: reader.readLong(offsets[12]),
|
timestamp: reader.readLong(offsets[13]),
|
||||||
txid: reader.readString(offsets[13]),
|
txid: reader.readString(offsets[14]),
|
||||||
type: _TransactiontypeValueEnumMap[reader.readByteOrNull(offsets[14])] ??
|
type: _TransactiontypeValueEnumMap[reader.readByteOrNull(offsets[15])] ??
|
||||||
TransactionType.outgoing,
|
TransactionType.outgoing,
|
||||||
walletId: reader.readString(offsets[15]),
|
walletId: reader.readString(offsets[16]),
|
||||||
);
|
);
|
||||||
object.id = id;
|
object.id = id;
|
||||||
return object;
|
return object;
|
||||||
|
@ -321,8 +328,10 @@ P _transactionDeserializeProp<P>(
|
||||||
case 7:
|
case 7:
|
||||||
return (reader.readLongOrNull(offset)) as P;
|
return (reader.readLongOrNull(offset)) as P;
|
||||||
case 8:
|
case 8:
|
||||||
return (reader.readStringOrNull(offset)) as P;
|
return (reader.readLongOrNull(offset)) as P;
|
||||||
case 9:
|
case 9:
|
||||||
|
return (reader.readStringOrNull(offset)) as P;
|
||||||
|
case 10:
|
||||||
return (reader.readObjectList<Output>(
|
return (reader.readObjectList<Output>(
|
||||||
offset,
|
offset,
|
||||||
OutputSchema.deserialize,
|
OutputSchema.deserialize,
|
||||||
|
@ -330,19 +339,19 @@ P _transactionDeserializeProp<P>(
|
||||||
Output(),
|
Output(),
|
||||||
) ??
|
) ??
|
||||||
[]) as P;
|
[]) as P;
|
||||||
case 10:
|
|
||||||
return (reader.readStringOrNull(offset)) as P;
|
|
||||||
case 11:
|
case 11:
|
||||||
|
return (reader.readStringOrNull(offset)) as P;
|
||||||
|
case 12:
|
||||||
return (_TransactionsubTypeValueEnumMap[reader.readByteOrNull(offset)] ??
|
return (_TransactionsubTypeValueEnumMap[reader.readByteOrNull(offset)] ??
|
||||||
TransactionSubType.none) as P;
|
TransactionSubType.none) as P;
|
||||||
case 12:
|
|
||||||
return (reader.readLong(offset)) as P;
|
|
||||||
case 13:
|
case 13:
|
||||||
return (reader.readString(offset)) as P;
|
return (reader.readLong(offset)) as P;
|
||||||
case 14:
|
case 14:
|
||||||
|
return (reader.readString(offset)) as P;
|
||||||
|
case 15:
|
||||||
return (_TransactiontypeValueEnumMap[reader.readByteOrNull(offset)] ??
|
return (_TransactiontypeValueEnumMap[reader.readByteOrNull(offset)] ??
|
||||||
TransactionType.outgoing) as P;
|
TransactionType.outgoing) as P;
|
||||||
case 15:
|
case 16:
|
||||||
return (reader.readString(offset)) as P;
|
return (reader.readString(offset)) as P;
|
||||||
default:
|
default:
|
||||||
throw IsarError('Unknown property with id $propertyId');
|
throw IsarError('Unknown property with id $propertyId');
|
||||||
|
@ -1374,6 +1383,80 @@ extension TransactionQueryFilter
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QueryBuilder<Transaction, Transaction, QAfterFilterCondition>
|
||||||
|
numberOfMessagesIsNull() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(const FilterCondition.isNull(
|
||||||
|
property: r'numberOfMessages',
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<Transaction, Transaction, QAfterFilterCondition>
|
||||||
|
numberOfMessagesIsNotNull() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(const FilterCondition.isNotNull(
|
||||||
|
property: r'numberOfMessages',
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<Transaction, Transaction, QAfterFilterCondition>
|
||||||
|
numberOfMessagesEqualTo(int? value) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(FilterCondition.equalTo(
|
||||||
|
property: r'numberOfMessages',
|
||||||
|
value: value,
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<Transaction, Transaction, QAfterFilterCondition>
|
||||||
|
numberOfMessagesGreaterThan(
|
||||||
|
int? value, {
|
||||||
|
bool include = false,
|
||||||
|
}) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||||
|
include: include,
|
||||||
|
property: r'numberOfMessages',
|
||||||
|
value: value,
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<Transaction, Transaction, QAfterFilterCondition>
|
||||||
|
numberOfMessagesLessThan(
|
||||||
|
int? value, {
|
||||||
|
bool include = false,
|
||||||
|
}) {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addFilterCondition(FilterCondition.lessThan(
|
||||||
|
include: include,
|
||||||
|
property: r'numberOfMessages',
|
||||||
|
value: value,
|
||||||
|
));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<Transaction, Transaction, QAfterFilterCondition>
|
||||||
|
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<Transaction, Transaction, QAfterFilterCondition>
|
QueryBuilder<Transaction, Transaction, QAfterFilterCondition>
|
||||||
otherDataIsNull() {
|
otherDataIsNull() {
|
||||||
return QueryBuilder.apply(this, (query) {
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
@ -2320,6 +2403,20 @@ extension TransactionQuerySortBy
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QueryBuilder<Transaction, Transaction, QAfterSortBy>
|
||||||
|
sortByNumberOfMessages() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addSortBy(r'numberOfMessages', Sort.asc);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<Transaction, Transaction, QAfterSortBy>
|
||||||
|
sortByNumberOfMessagesDesc() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addSortBy(r'numberOfMessages', Sort.desc);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
QueryBuilder<Transaction, Transaction, QAfterSortBy> sortByOtherData() {
|
QueryBuilder<Transaction, Transaction, QAfterSortBy> sortByOtherData() {
|
||||||
return QueryBuilder.apply(this, (query) {
|
return QueryBuilder.apply(this, (query) {
|
||||||
return query.addSortBy(r'otherData', Sort.asc);
|
return query.addSortBy(r'otherData', Sort.asc);
|
||||||
|
@ -2504,6 +2601,20 @@ extension TransactionQuerySortThenBy
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QueryBuilder<Transaction, Transaction, QAfterSortBy>
|
||||||
|
thenByNumberOfMessages() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addSortBy(r'numberOfMessages', Sort.asc);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryBuilder<Transaction, Transaction, QAfterSortBy>
|
||||||
|
thenByNumberOfMessagesDesc() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addSortBy(r'numberOfMessages', Sort.desc);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
QueryBuilder<Transaction, Transaction, QAfterSortBy> thenByOtherData() {
|
QueryBuilder<Transaction, Transaction, QAfterSortBy> thenByOtherData() {
|
||||||
return QueryBuilder.apply(this, (query) {
|
return QueryBuilder.apply(this, (query) {
|
||||||
return query.addSortBy(r'otherData', Sort.asc);
|
return query.addSortBy(r'otherData', Sort.asc);
|
||||||
|
@ -2634,6 +2745,13 @@ extension TransactionQueryWhereDistinct
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QueryBuilder<Transaction, Transaction, QDistinct>
|
||||||
|
distinctByNumberOfMessages() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addDistinctBy(r'numberOfMessages');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
QueryBuilder<Transaction, Transaction, QDistinct> distinctByOtherData(
|
QueryBuilder<Transaction, Transaction, QDistinct> distinctByOtherData(
|
||||||
{bool caseSensitive = true}) {
|
{bool caseSensitive = true}) {
|
||||||
return QueryBuilder.apply(this, (query) {
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
@ -2737,6 +2855,12 @@ extension TransactionQueryProperty
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QueryBuilder<Transaction, int?, QQueryOperations> numberOfMessagesProperty() {
|
||||||
|
return QueryBuilder.apply(this, (query) {
|
||||||
|
return query.addPropertyName(r'numberOfMessages');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
QueryBuilder<Transaction, String?, QQueryOperations> otherDataProperty() {
|
QueryBuilder<Transaction, String?, QQueryOperations> otherDataProperty() {
|
||||||
return QueryBuilder.apply(this, (query) {
|
return QueryBuilder.apply(this, (query) {
|
||||||
return query.addPropertyName(r'otherData');
|
return query.addPropertyName(r'otherData');
|
||||||
|
|
|
@ -155,6 +155,9 @@ class Transaction {
|
||||||
// @HiveField(18)
|
// @HiveField(18)
|
||||||
final String? otherData;
|
final String? otherData;
|
||||||
|
|
||||||
|
// @HiveField(16)
|
||||||
|
final int? numberOfMessages;
|
||||||
|
|
||||||
Transaction({
|
Transaction({
|
||||||
required this.txid,
|
required this.txid,
|
||||||
required this.confirmedStatus,
|
required this.confirmedStatus,
|
||||||
|
@ -176,6 +179,7 @@ class Transaction {
|
||||||
this.isCancelled = false,
|
this.isCancelled = false,
|
||||||
this.slateId,
|
this.slateId,
|
||||||
this.otherData,
|
this.otherData,
|
||||||
|
this.numberOfMessages,
|
||||||
});
|
});
|
||||||
|
|
||||||
factory Transaction.fromJson(Map<String, dynamic> json) {
|
factory Transaction.fromJson(Map<String, dynamic> json) {
|
||||||
|
@ -211,6 +215,7 @@ class Transaction {
|
||||||
isCancelled: json["isCancelled"] as bool? ?? false,
|
isCancelled: json["isCancelled"] as bool? ?? false,
|
||||||
slateId: json["slateId"] as String?,
|
slateId: json["slateId"] as String?,
|
||||||
otherData: json["otherData"] as String?,
|
otherData: json["otherData"] as String?,
|
||||||
|
numberOfMessages: json["numberOfMessages"] as int?,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -269,6 +274,7 @@ class Transaction {
|
||||||
bool? isCancelled,
|
bool? isCancelled,
|
||||||
String? slateId,
|
String? slateId,
|
||||||
String? otherData,
|
String? otherData,
|
||||||
|
int? numberOfMessages,
|
||||||
}) {
|
}) {
|
||||||
return Transaction(
|
return Transaction(
|
||||||
txid: txid ?? this.txid,
|
txid: txid ?? this.txid,
|
||||||
|
@ -292,13 +298,14 @@ class Transaction {
|
||||||
isCancelled: isCancelled ?? this.isCancelled,
|
isCancelled: isCancelled ?? this.isCancelled,
|
||||||
slateId: slateId ?? this.slateId,
|
slateId: slateId ?? this.slateId,
|
||||||
otherData: otherData ?? this.otherData,
|
otherData: otherData ?? this.otherData,
|
||||||
|
numberOfMessages: numberOfMessages ?? this.numberOfMessages,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
String transaction =
|
String transaction =
|
||||||
"{txid: $txid, type: $txType, subType: $subType, value: $amount, fee: $fees, height: $height, confirm: $confirmedStatus, confirmations: $confirmations, address: $address, timestamp: $timestamp, worthNow: $worthNow, inputs: $inputs, slateid: $slateId }";
|
"{txid: $txid, type: $txType, subType: $subType, value: $amount, fee: $fees, height: $height, confirm: $confirmedStatus, confirmations: $confirmations, address: $address, timestamp: $timestamp, worthNow: $worthNow, inputs: $inputs, slateid: $slateId, numberOfMessages: $numberOfMessages }";
|
||||||
return transaction;
|
return transaction;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,12 +93,7 @@ class _TransactionsListState extends ConsumerState<TransactionsList> {
|
||||||
children: [
|
children: [
|
||||||
TransactionCard(
|
TransactionCard(
|
||||||
// this may mess with combined firo transactions
|
// this may mess with combined firo transactions
|
||||||
key: isConfirmed
|
key: UniqueKey(), //
|
||||||
? Key(tx.txid +
|
|
||||||
tx.type.name +
|
|
||||||
tx.address.value.toString() +
|
|
||||||
tx.height.toString())
|
|
||||||
: UniqueKey(), //
|
|
||||||
transaction: tx,
|
transaction: tx,
|
||||||
walletId: widget.walletId,
|
walletId: widget.walletId,
|
||||||
),
|
),
|
||||||
|
@ -193,12 +188,7 @@ class _TransactionsListState extends ConsumerState<TransactionsList> {
|
||||||
),
|
),
|
||||||
child: TransactionCard(
|
child: TransactionCard(
|
||||||
// this may mess with combined firo transactions
|
// this may mess with combined firo transactions
|
||||||
key: isConfirmed
|
key: UniqueKey(),
|
||||||
? Key(tx.txid +
|
|
||||||
tx.type.name +
|
|
||||||
tx.address.value.toString() +
|
|
||||||
tx.height.toString())
|
|
||||||
: UniqueKey(),
|
|
||||||
transaction: tx,
|
transaction: tx,
|
||||||
walletId: widget.walletId,
|
walletId: widget.walletId,
|
||||||
),
|
),
|
||||||
|
|
|
@ -126,6 +126,37 @@ class _TransactionDetailsViewState
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (coin == Coin.epicCash) {
|
||||||
|
if (_transaction.isCancelled) {
|
||||||
|
return "Cancelled";
|
||||||
|
} else if (type == TransactionType.incoming) {
|
||||||
|
if (tx.isConfirmed(height, coin.requiredConfirmations)) {
|
||||||
|
return "Received";
|
||||||
|
} else {
|
||||||
|
if (_transaction.numberOfMessages == 1) {
|
||||||
|
return "Receiving (waiting for sender)";
|
||||||
|
} else if ((_transaction.numberOfMessages ?? 0) > 1) {
|
||||||
|
return
|
||||||
|
"Receiving (waiting for confirmations)"; // TODO test if the sender still has to open again after the receiver has 2 messages present, ie. sender->receiver->sender->node (yes) vs. sender->receiver->node (no)
|
||||||
|
} else {
|
||||||
|
return "Receiving";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (type == TransactionType.outgoing) {
|
||||||
|
if (tx.isConfirmed(height, coin.requiredConfirmations)) {
|
||||||
|
return "Sent (confirmed)";
|
||||||
|
} else {
|
||||||
|
if (_transaction.numberOfMessages == 1) {
|
||||||
|
return "Sending (waiting for receiver)";
|
||||||
|
} else if ((_transaction.numberOfMessages ?? 0) > 1) {
|
||||||
|
return "Sending (waiting for confirmations)";
|
||||||
|
} else {
|
||||||
|
return "Sending";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (type == TransactionType.incoming) {
|
if (type == TransactionType.incoming) {
|
||||||
// if (_transaction.isMinting) {
|
// if (_transaction.isMinting) {
|
||||||
// return "Minting";
|
// return "Minting";
|
||||||
|
|
|
@ -1288,6 +1288,7 @@ class BitcoinWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
final address = txData["address"] is String
|
final address = txData["address"] is String
|
||||||
|
|
|
@ -1153,6 +1153,7 @@ class BitcoinCashWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
final address = txData["address"] is String
|
final address = txData["address"] is String
|
||||||
|
@ -2137,6 +2138,7 @@ class BitcoinCashWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: inputs,
|
inputs: inputs,
|
||||||
outputs: outputs,
|
outputs: outputs,
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
txns.add(Tuple2(tx, transactionAddress));
|
txns.add(Tuple2(tx, transactionAddress));
|
||||||
|
|
|
@ -1140,6 +1140,7 @@ class DogecoinWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
final address = txData["address"] is String
|
final address = txData["address"] is String
|
||||||
|
|
|
@ -1365,6 +1365,7 @@ class ECashWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: inputs,
|
inputs: inputs,
|
||||||
outputs: outputs,
|
outputs: outputs,
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
txns.add(Tuple2(tx, transactionAddress));
|
txns.add(Tuple2(tx, transactionAddress));
|
||||||
|
@ -2770,6 +2771,7 @@ class ECashWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
final address = txData["address"] is String
|
final address = txData["address"] is String
|
||||||
|
|
|
@ -1153,10 +1153,6 @@ class EpicCashWallet extends CoinServiceAPI
|
||||||
Future<bool> startScans() async {
|
Future<bool> startScans() async {
|
||||||
try {
|
try {
|
||||||
if (ListenerManager.pointer != null) {
|
if (ListenerManager.pointer != null) {
|
||||||
Logging.instance
|
|
||||||
.log("LISTENER HANDLER IS NOT NULL ....", level: LogLevel.Info);
|
|
||||||
Logging.instance
|
|
||||||
.log("STOPPING ANY WALLET LISTENER ....", level: LogLevel.Info);
|
|
||||||
epicboxListenerStop(ListenerManager.pointer!);
|
epicboxListenerStop(ListenerManager.pointer!);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1643,7 +1639,7 @@ class EpicCashWallet extends CoinServiceAPI
|
||||||
Future<void> _refreshTransactions() async {
|
Future<void> _refreshTransactions() async {
|
||||||
// final currentChainHeight = await chainHeight;
|
// final currentChainHeight = await chainHeight;
|
||||||
final wallet = await _secureStore.read(key: '${_walletId}_wallet');
|
final wallet = await _secureStore.read(key: '${_walletId}_wallet');
|
||||||
const refreshFromNode = 0;
|
const refreshFromNode = 1;
|
||||||
|
|
||||||
dynamic message;
|
dynamic message;
|
||||||
await m.protect(() async {
|
await m.protect(() async {
|
||||||
|
@ -1709,6 +1705,7 @@ class EpicCashWallet extends CoinServiceAPI
|
||||||
?[tx["tx_type"] == "TxReceived" ? "from" : "to"] as String? ??
|
?[tx["tx_type"] == "TxReceived" ? "from" : "to"] as String? ??
|
||||||
"";
|
"";
|
||||||
String? commitId = slatesToCommits[slateId]?['commitId'] as String?;
|
String? commitId = slatesToCommits[slateId]?['commitId'] as String?;
|
||||||
|
tx['numberOfMessages'] = tx['messages']?['messages']?.length;
|
||||||
|
|
||||||
int? height;
|
int? height;
|
||||||
|
|
||||||
|
@ -1721,6 +1718,7 @@ class EpicCashWallet extends CoinServiceAPI
|
||||||
final isIncoming = (tx["tx_type"] == "TxReceived" ||
|
final isIncoming = (tx["tx_type"] == "TxReceived" ||
|
||||||
tx["tx_type"] == "TxReceivedCancelled");
|
tx["tx_type"] == "TxReceivedCancelled");
|
||||||
|
|
||||||
|
|
||||||
final txn = isar_models.Transaction(
|
final txn = isar_models.Transaction(
|
||||||
walletId: walletId,
|
walletId: walletId,
|
||||||
txid: commitId ?? tx["id"].toString(),
|
txid: commitId ?? tx["id"].toString(),
|
||||||
|
@ -1744,6 +1742,7 @@ class EpicCashWallet extends CoinServiceAPI
|
||||||
otherData: tx["id"].toString(),
|
otherData: tx["id"].toString(),
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: ((tx["numberOfMessages"] == null) ? 0 : tx["numberOfMessages"]) as int,
|
||||||
);
|
);
|
||||||
|
|
||||||
// txn.address =
|
// txn.address =
|
||||||
|
|
|
@ -944,6 +944,7 @@ class EthereumWallet extends CoinServiceAPI with WalletCache, WalletDB {
|
||||||
response.value?.nonce.toBigIntFromHex.toInt(),
|
response.value?.nonce.toBigIntFromHex.toInt(),
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
Address? address = await db.getAddress(
|
Address? address = await db.getAddress(
|
||||||
|
@ -1035,6 +1036,7 @@ class EthereumWallet extends CoinServiceAPI with WalletCache, WalletDB {
|
||||||
nonce: tuple.item2,
|
nonce: tuple.item2,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
Address? transactionAddress = await db
|
Address? transactionAddress = await db
|
||||||
|
|
|
@ -449,6 +449,7 @@ Future<Map<dynamic, dynamic>> staticProcessRestore(
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: element.inputs,
|
inputs: element.inputs,
|
||||||
outputs: element.outputs,
|
outputs: element.outputs,
|
||||||
|
numberOfMessages: null,
|
||||||
)..address.value = element.address.value;
|
)..address.value = element.address.value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -891,6 +892,7 @@ class FiroWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
final address = txData["address"] is String
|
final address = txData["address"] is String
|
||||||
|
@ -3033,6 +3035,7 @@ class FiroWallet extends CoinServiceAPI
|
||||||
otherData: transactionInfo["otherData"] as String?,
|
otherData: transactionInfo["otherData"] as String?,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
final transactionAddress = await db
|
final transactionAddress = await db
|
||||||
|
@ -3513,6 +3516,7 @@ class FiroWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: ins,
|
inputs: ins,
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
txnsData.add(Tuple2(tx, null));
|
txnsData.add(Tuple2(tx, null));
|
||||||
|
@ -3635,6 +3639,7 @@ class FiroWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: ins,
|
inputs: ins,
|
||||||
outputs: outs,
|
outputs: outs,
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
txnsData.add(Tuple2(tx, transactionAddress));
|
txnsData.add(Tuple2(tx, transactionAddress));
|
||||||
|
@ -3786,6 +3791,7 @@ class FiroWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: ins,
|
inputs: ins,
|
||||||
outputs: outs,
|
outputs: outs,
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
txnsData.add(Tuple2(tx, transactionAddress));
|
txnsData.add(Tuple2(tx, transactionAddress));
|
||||||
|
@ -5064,6 +5070,7 @@ class FiroWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
final address = await db
|
final address = await db
|
||||||
|
|
|
@ -1271,6 +1271,7 @@ class LitecoinWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
final address = txData["address"] is String
|
final address = txData["address"] is String
|
||||||
|
|
|
@ -954,6 +954,7 @@ class MoneroWallet extends CoinServiceAPI with WalletCache, WalletDB {
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
txnsData.add(Tuple2(txn, address));
|
txnsData.add(Tuple2(txn, address));
|
||||||
|
|
|
@ -1260,6 +1260,7 @@ class NamecoinWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
final address = txData["address"] is String
|
final address = txData["address"] is String
|
||||||
|
|
|
@ -1188,6 +1188,7 @@ class ParticlWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
final address = txData["address"] is String
|
final address = txData["address"] is String
|
||||||
|
@ -2391,6 +2392,7 @@ class ParticlWallet extends CoinServiceAPI
|
||||||
nonce: null,
|
nonce: null,
|
||||||
slateId: null,
|
slateId: null,
|
||||||
otherData: null,
|
otherData: null,
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
txns.add(Tuple2(tx, transactionAddress));
|
txns.add(Tuple2(tx, transactionAddress));
|
||||||
|
|
|
@ -1041,6 +1041,7 @@ class WowneroWallet extends CoinServiceAPI with WalletCache, WalletDB {
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
txnsData.add(Tuple2(txn, address));
|
txnsData.add(Tuple2(txn, address));
|
||||||
|
|
|
@ -169,6 +169,7 @@ class EthTokenWallet extends ChangeNotifier with EthTokenCache {
|
||||||
response.value?.nonce.toBigIntFromHex.toInt(),
|
response.value?.nonce.toBigIntFromHex.toInt(),
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
Address? address = await ethWallet.db.getAddress(
|
Address? address = await ethWallet.db.getAddress(
|
||||||
|
@ -519,6 +520,7 @@ class EthTokenWallet extends ChangeNotifier with EthTokenCache {
|
||||||
otherData: tuple.item1.address,
|
otherData: tuple.item1.address,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
Address? transactionAddress = await ethWallet.db
|
Address? transactionAddress = await ethWallet.db
|
||||||
|
|
|
@ -258,6 +258,7 @@ mixin ElectrumXParsing {
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: ins,
|
inputs: ins,
|
||||||
outputs: outs,
|
outputs: outs,
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
return Tuple2(tx, transactionAddress);
|
return Tuple2(tx, transactionAddress);
|
||||||
|
|
|
@ -397,6 +397,7 @@ class DbVersionMigrator with WalletDB {
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: tx.numberOfMessages,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (tx.address.isEmpty) {
|
if (tx.address.isEmpty) {
|
||||||
|
|
|
@ -47,40 +47,16 @@ class MockJsonRPC extends _i1.Mock implements _i2.JsonRPC {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
set useSSL(bool? _useSSL) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#useSSL,
|
|
||||||
_useSSL,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
String get host => (super.noSuchMethod(
|
String get host => (super.noSuchMethod(
|
||||||
Invocation.getter(#host),
|
Invocation.getter(#host),
|
||||||
returnValue: '',
|
returnValue: '',
|
||||||
) as String);
|
) as String);
|
||||||
@override
|
@override
|
||||||
set host(String? _host) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#host,
|
|
||||||
_host,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
int get port => (super.noSuchMethod(
|
int get port => (super.noSuchMethod(
|
||||||
Invocation.getter(#port),
|
Invocation.getter(#port),
|
||||||
returnValue: 0,
|
returnValue: 0,
|
||||||
) as int);
|
) as int);
|
||||||
@override
|
@override
|
||||||
set port(int? _port) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#port,
|
|
||||||
_port,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
Duration get connectionTimeout => (super.noSuchMethod(
|
Duration get connectionTimeout => (super.noSuchMethod(
|
||||||
Invocation.getter(#connectionTimeout),
|
Invocation.getter(#connectionTimeout),
|
||||||
returnValue: _FakeDuration_0(
|
returnValue: _FakeDuration_0(
|
||||||
|
@ -89,14 +65,6 @@ class MockJsonRPC extends _i1.Mock implements _i2.JsonRPC {
|
||||||
),
|
),
|
||||||
) as Duration);
|
) as Duration);
|
||||||
@override
|
@override
|
||||||
set connectionTimeout(Duration? _connectionTimeout) => super.noSuchMethod(
|
|
||||||
Invocation.setter(
|
|
||||||
#connectionTimeout,
|
|
||||||
_connectionTimeout,
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: null,
|
|
||||||
);
|
|
||||||
@override
|
|
||||||
_i3.Future<dynamic> request(String? jsonRpcRequest) => (super.noSuchMethod(
|
_i3.Future<dynamic> request(String? jsonRpcRequest) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#request,
|
#request,
|
||||||
|
@ -104,6 +72,23 @@ class MockJsonRPC extends _i1.Mock implements _i2.JsonRPC {
|
||||||
),
|
),
|
||||||
returnValue: _i3.Future<dynamic>.value(),
|
returnValue: _i3.Future<dynamic>.value(),
|
||||||
) as _i3.Future<dynamic>);
|
) as _i3.Future<dynamic>);
|
||||||
|
@override
|
||||||
|
void disconnect() => super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#disconnect,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValueForMissingStub: null,
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
_i3.Future<void> connect() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#connect,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: _i3.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i3.Future<void>.value(),
|
||||||
|
) as _i3.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [Prefs].
|
/// A class which mocks [Prefs].
|
||||||
|
|
|
@ -143,7 +143,7 @@ void main() {
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
expect(txChunk.toString(),
|
expect(txChunk.toString(),
|
||||||
"timestamp: 993260735 transactions: [\n {txid: txid, type: txType, subType: mint, value: 10, fee: 1, height: 1, confirm: true, confirmations: 1, address: address, timestamp: 1876352482, worthNow: 1, inputs: [], slateid: slateId } \n]");
|
"timestamp: 993260735 transactions: [\n {txid: txid, type: txType, subType: mint, value: 10, fee: 1, height: 1, confirm: true, confirmations: 1, address: address, timestamp: 1876352482, worthNow: 1, inputs: [], slateid: slateId, numberOfMessages: null } \n]");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,15 @@ class MockThemeService extends _i1.Mock implements _i3.ThemeService {
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i5.Future<void>);
|
||||||
@override
|
@override
|
||||||
|
_i5.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#checkDefaultThemesOnStartup,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: _i5.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||||
|
) as _i5.Future<void>);
|
||||||
|
@override
|
||||||
_i5.Future<bool> verifyInstalled({required String? themeId}) =>
|
_i5.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
|
@ -2278,6 +2278,15 @@ class MockThemeService extends _i1.Mock implements _i32.ThemeService {
|
||||||
returnValueForMissingStub: _i23.Future<void>.value(),
|
returnValueForMissingStub: _i23.Future<void>.value(),
|
||||||
) as _i23.Future<void>);
|
) as _i23.Future<void>);
|
||||||
@override
|
@override
|
||||||
|
_i23.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#checkDefaultThemesOnStartup,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: _i23.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i23.Future<void>.value(),
|
||||||
|
) as _i23.Future<void>);
|
||||||
|
@override
|
||||||
_i23.Future<bool> verifyInstalled({required String? themeId}) =>
|
_i23.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
|
@ -3,16 +3,15 @@
|
||||||
// Do not manually edit this file.
|
// Do not manually edit this file.
|
||||||
|
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i5;
|
import 'dart:async' as _i4;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i2;
|
import 'package:decimal/decimal.dart' as _i2;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i6;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i5;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i4;
|
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i3;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i7;
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i3;
|
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -35,8 +34,8 @@ class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakePrefs_1 extends _i1.SmartFake implements _i3.Prefs {
|
class _FakeElectrumX_1 extends _i1.SmartFake implements _i3.ElectrumX {
|
||||||
_FakePrefs_1(
|
_FakeElectrumX_1(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -48,13 +47,13 @@ class _FakePrefs_1 extends _i1.SmartFake implements _i3.Prefs {
|
||||||
/// A class which mocks [ElectrumX].
|
/// A class which mocks [ElectrumX].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
||||||
MockElectrumX() {
|
MockElectrumX() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
set failovers(List<_i3.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#failovers,
|
#failovers,
|
||||||
_failovers,
|
_failovers,
|
||||||
|
@ -90,7 +89,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.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),
|
Duration? connectionTimeout = const Duration(seconds: 60),
|
||||||
|
@ -109,10 +108,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<dynamic>.value(),
|
returnValue: _i4.Future<dynamic>.value(),
|
||||||
) as _i5.Future<dynamic>);
|
) as _i4.Future<dynamic>);
|
||||||
@override
|
@override
|
||||||
_i5.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? connectionTimeout = const Duration(seconds: 60),
|
||||||
|
@ -129,11 +128,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<bool> ping({
|
_i4.Future<bool> ping({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
int? retryCount = 1,
|
int? retryCount = 1,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -146,10 +145,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retryCount: retryCount,
|
#retryCount: retryCount,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
returnValue: _i4.Future<bool>.value(false),
|
||||||
) as _i5.Future<bool>);
|
) as _i4.Future<bool>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getBlockHeadTip,
|
#getBlockHeadTip,
|
||||||
|
@ -157,10 +156,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getServerFeatures,
|
#getServerFeatures,
|
||||||
|
@ -168,10 +167,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<String> broadcastTransaction({
|
_i4.Future<String> broadcastTransaction({
|
||||||
required String? rawTx,
|
required String? rawTx,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -184,10 +183,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<String>.value(''),
|
returnValue: _i4.Future<String>.value(''),
|
||||||
) as _i5.Future<String>);
|
) as _i4.Future<String>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getBalance({
|
_i4.Future<Map<String, dynamic>> getBalance({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -201,10 +200,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<Map<String, dynamic>>> getHistory({
|
_i4.Future<List<Map<String, dynamic>>> getHistory({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -217,11 +216,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
|
_i4.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
|
||||||
{required Map<String, List<dynamic>>? args}) =>
|
{required Map<String, List<dynamic>>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -229,11 +228,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
returnValue: _i4.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||||
<String, List<Map<String, dynamic>>>{}),
|
<String, List<Map<String, dynamic>>>{}),
|
||||||
) as _i5.Future<Map<String, List<Map<String, dynamic>>>>);
|
) as _i4.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<Map<String, dynamic>>> getUTXOs({
|
_i4.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -246,11 +245,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
|
_i4.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||||
{required Map<String, List<dynamic>>? args}) =>
|
{required Map<String, List<dynamic>>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -258,11 +257,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
returnValue: _i4.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||||
<String, List<Map<String, dynamic>>>{}),
|
<String, List<Map<String, dynamic>>>{}),
|
||||||
) as _i5.Future<Map<String, List<Map<String, dynamic>>>>);
|
) as _i4.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getTransaction({
|
_i4.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -278,10 +277,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
_i4.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
String? groupId = r'1',
|
String? groupId = r'1',
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -297,10 +296,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<dynamic> getMintData({
|
_i4.Future<dynamic> getMintData({
|
||||||
dynamic mints,
|
dynamic mints,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -313,10 +312,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<dynamic>.value(),
|
returnValue: _i4.Future<dynamic>.value(),
|
||||||
) as _i5.Future<dynamic>);
|
) as _i4.Future<dynamic>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getUsedCoinSerials({
|
_i4.Future<Map<String, dynamic>> getUsedCoinSerials({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -330,19 +329,19 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
|
_i4.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getLatestCoinId,
|
#getLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<int>.value(0),
|
returnValue: _i4.Future<int>.value(0),
|
||||||
) as _i5.Future<int>);
|
) as _i4.Future<int>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFeeRate,
|
#getFeeRate,
|
||||||
|
@ -350,10 +349,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> estimateFee({
|
_i4.Future<_i2.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -366,7 +365,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -377,15 +376,15 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i4.Future<_i2.Decimal>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i4.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -393,50 +392,30 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i4.Future<_i2.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [CachedElectrumX].
|
/// A class which mocks [CachedElectrumX].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX {
|
||||||
MockCachedElectrumX() {
|
MockCachedElectrumX() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get server => (super.noSuchMethod(
|
_i3.ElectrumX get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#server),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: '',
|
returnValue: _FakeElectrumX_1(
|
||||||
) 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
|
|
||||||
_i3.Prefs get prefs => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#prefs),
|
|
||||||
returnValue: _FakePrefs_1(
|
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#prefs),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i3.Prefs);
|
) as _i3.ElectrumX);
|
||||||
@override
|
@override
|
||||||
List<_i4.ElectrumXNode> get failovers => (super.noSuchMethod(
|
_i4.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
Invocation.getter(#failovers),
|
|
||||||
returnValue: <_i4.ElectrumXNode>[],
|
|
||||||
) as List<_i4.ElectrumXNode>);
|
|
||||||
@override
|
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -449,8 +428,8 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -468,9 +447,9 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
returnValue: '',
|
returnValue: '',
|
||||||
) as String);
|
) as String);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getTransaction({
|
_i4.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -484,11 +463,11 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<String>> getUsedCoinSerials({
|
_i4.Future<List<String>> getUsedCoinSerials({
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
int? startNumber = 0,
|
int? startNumber = 0,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -500,26 +479,26 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<String>>.value(<String>[]),
|
returnValue: _i4.Future<List<String>>.value(<String>[]),
|
||||||
) as _i5.Future<List<String>>);
|
) as _i4.Future<List<String>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) =>
|
_i4.Future<void> clearSharedTransactionCache({required _i6.Coin? coin}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#clearSharedTransactionCache,
|
#clearSharedTransactionCache,
|
||||||
[],
|
[],
|
||||||
{#coin: coin},
|
{#coin: coin},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [TransactionNotificationTracker].
|
/// A class which mocks [TransactionNotificationTracker].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockTransactionNotificationTracker extends _i1.Mock
|
class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
implements _i8.TransactionNotificationTracker {
|
implements _i7.TransactionNotificationTracker {
|
||||||
MockTransactionNotificationTracker() {
|
MockTransactionNotificationTracker() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -548,14 +527,14 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedPending,
|
#addNotifiedPending,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
@override
|
@override
|
||||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -565,21 +544,21 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedConfirmed,
|
#addNotifiedConfirmed,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#deleteTransaction,
|
#deleteTransaction,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,16 +3,15 @@
|
||||||
// Do not manually edit this file.
|
// Do not manually edit this file.
|
||||||
|
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i5;
|
import 'dart:async' as _i4;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i2;
|
import 'package:decimal/decimal.dart' as _i2;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i6;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i5;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i4;
|
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i3;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i7;
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i3;
|
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -35,8 +34,8 @@ class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakePrefs_1 extends _i1.SmartFake implements _i3.Prefs {
|
class _FakeElectrumX_1 extends _i1.SmartFake implements _i3.ElectrumX {
|
||||||
_FakePrefs_1(
|
_FakeElectrumX_1(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -48,13 +47,13 @@ class _FakePrefs_1 extends _i1.SmartFake implements _i3.Prefs {
|
||||||
/// A class which mocks [ElectrumX].
|
/// A class which mocks [ElectrumX].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
||||||
MockElectrumX() {
|
MockElectrumX() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
set failovers(List<_i3.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#failovers,
|
#failovers,
|
||||||
_failovers,
|
_failovers,
|
||||||
|
@ -90,7 +89,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.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),
|
Duration? connectionTimeout = const Duration(seconds: 60),
|
||||||
|
@ -109,10 +108,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<dynamic>.value(),
|
returnValue: _i4.Future<dynamic>.value(),
|
||||||
) as _i5.Future<dynamic>);
|
) as _i4.Future<dynamic>);
|
||||||
@override
|
@override
|
||||||
_i5.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? connectionTimeout = const Duration(seconds: 60),
|
||||||
|
@ -129,11 +128,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<bool> ping({
|
_i4.Future<bool> ping({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
int? retryCount = 1,
|
int? retryCount = 1,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -146,10 +145,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retryCount: retryCount,
|
#retryCount: retryCount,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
returnValue: _i4.Future<bool>.value(false),
|
||||||
) as _i5.Future<bool>);
|
) as _i4.Future<bool>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getBlockHeadTip,
|
#getBlockHeadTip,
|
||||||
|
@ -157,10 +156,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getServerFeatures,
|
#getServerFeatures,
|
||||||
|
@ -168,10 +167,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<String> broadcastTransaction({
|
_i4.Future<String> broadcastTransaction({
|
||||||
required String? rawTx,
|
required String? rawTx,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -184,10 +183,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<String>.value(''),
|
returnValue: _i4.Future<String>.value(''),
|
||||||
) as _i5.Future<String>);
|
) as _i4.Future<String>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getBalance({
|
_i4.Future<Map<String, dynamic>> getBalance({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -201,10 +200,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<Map<String, dynamic>>> getHistory({
|
_i4.Future<List<Map<String, dynamic>>> getHistory({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -217,11 +216,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
|
_i4.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
|
||||||
{required Map<String, List<dynamic>>? args}) =>
|
{required Map<String, List<dynamic>>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -229,11 +228,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
returnValue: _i4.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||||
<String, List<Map<String, dynamic>>>{}),
|
<String, List<Map<String, dynamic>>>{}),
|
||||||
) as _i5.Future<Map<String, List<Map<String, dynamic>>>>);
|
) as _i4.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<Map<String, dynamic>>> getUTXOs({
|
_i4.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -246,11 +245,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
|
_i4.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||||
{required Map<String, List<dynamic>>? args}) =>
|
{required Map<String, List<dynamic>>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -258,11 +257,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
returnValue: _i4.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||||
<String, List<Map<String, dynamic>>>{}),
|
<String, List<Map<String, dynamic>>>{}),
|
||||||
) as _i5.Future<Map<String, List<Map<String, dynamic>>>>);
|
) as _i4.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getTransaction({
|
_i4.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -278,10 +277,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
_i4.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
String? groupId = r'1',
|
String? groupId = r'1',
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -297,10 +296,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<dynamic> getMintData({
|
_i4.Future<dynamic> getMintData({
|
||||||
dynamic mints,
|
dynamic mints,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -313,10 +312,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<dynamic>.value(),
|
returnValue: _i4.Future<dynamic>.value(),
|
||||||
) as _i5.Future<dynamic>);
|
) as _i4.Future<dynamic>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getUsedCoinSerials({
|
_i4.Future<Map<String, dynamic>> getUsedCoinSerials({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -330,19 +329,19 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
|
_i4.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getLatestCoinId,
|
#getLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<int>.value(0),
|
returnValue: _i4.Future<int>.value(0),
|
||||||
) as _i5.Future<int>);
|
) as _i4.Future<int>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFeeRate,
|
#getFeeRate,
|
||||||
|
@ -350,10 +349,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> estimateFee({
|
_i4.Future<_i2.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -366,7 +365,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -377,15 +376,15 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i4.Future<_i2.Decimal>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i4.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -393,50 +392,30 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i4.Future<_i2.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [CachedElectrumX].
|
/// A class which mocks [CachedElectrumX].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX {
|
||||||
MockCachedElectrumX() {
|
MockCachedElectrumX() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get server => (super.noSuchMethod(
|
_i3.ElectrumX get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#server),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: '',
|
returnValue: _FakeElectrumX_1(
|
||||||
) 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
|
|
||||||
_i3.Prefs get prefs => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#prefs),
|
|
||||||
returnValue: _FakePrefs_1(
|
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#prefs),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i3.Prefs);
|
) as _i3.ElectrumX);
|
||||||
@override
|
@override
|
||||||
List<_i4.ElectrumXNode> get failovers => (super.noSuchMethod(
|
_i4.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
Invocation.getter(#failovers),
|
|
||||||
returnValue: <_i4.ElectrumXNode>[],
|
|
||||||
) as List<_i4.ElectrumXNode>);
|
|
||||||
@override
|
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -449,8 +428,8 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -468,9 +447,9 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
returnValue: '',
|
returnValue: '',
|
||||||
) as String);
|
) as String);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getTransaction({
|
_i4.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -484,11 +463,11 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<String>> getUsedCoinSerials({
|
_i4.Future<List<String>> getUsedCoinSerials({
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
int? startNumber = 0,
|
int? startNumber = 0,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -500,26 +479,26 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<String>>.value(<String>[]),
|
returnValue: _i4.Future<List<String>>.value(<String>[]),
|
||||||
) as _i5.Future<List<String>>);
|
) as _i4.Future<List<String>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) =>
|
_i4.Future<void> clearSharedTransactionCache({required _i6.Coin? coin}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#clearSharedTransactionCache,
|
#clearSharedTransactionCache,
|
||||||
[],
|
[],
|
||||||
{#coin: coin},
|
{#coin: coin},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [TransactionNotificationTracker].
|
/// A class which mocks [TransactionNotificationTracker].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockTransactionNotificationTracker extends _i1.Mock
|
class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
implements _i8.TransactionNotificationTracker {
|
implements _i7.TransactionNotificationTracker {
|
||||||
MockTransactionNotificationTracker() {
|
MockTransactionNotificationTracker() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -548,14 +527,14 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedPending,
|
#addNotifiedPending,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
@override
|
@override
|
||||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -565,21 +544,21 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedConfirmed,
|
#addNotifiedConfirmed,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#deleteTransaction,
|
#deleteTransaction,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,16 +3,15 @@
|
||||||
// Do not manually edit this file.
|
// Do not manually edit this file.
|
||||||
|
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i5;
|
import 'dart:async' as _i4;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i2;
|
import 'package:decimal/decimal.dart' as _i2;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i6;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i5;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i4;
|
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i3;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i7;
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i3;
|
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -35,8 +34,8 @@ class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakePrefs_1 extends _i1.SmartFake implements _i3.Prefs {
|
class _FakeElectrumX_1 extends _i1.SmartFake implements _i3.ElectrumX {
|
||||||
_FakePrefs_1(
|
_FakeElectrumX_1(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -48,13 +47,13 @@ class _FakePrefs_1 extends _i1.SmartFake implements _i3.Prefs {
|
||||||
/// A class which mocks [ElectrumX].
|
/// A class which mocks [ElectrumX].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
||||||
MockElectrumX() {
|
MockElectrumX() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
set failovers(List<_i3.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#failovers,
|
#failovers,
|
||||||
_failovers,
|
_failovers,
|
||||||
|
@ -90,7 +89,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.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),
|
Duration? connectionTimeout = const Duration(seconds: 60),
|
||||||
|
@ -109,10 +108,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<dynamic>.value(),
|
returnValue: _i4.Future<dynamic>.value(),
|
||||||
) as _i5.Future<dynamic>);
|
) as _i4.Future<dynamic>);
|
||||||
@override
|
@override
|
||||||
_i5.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? connectionTimeout = const Duration(seconds: 60),
|
||||||
|
@ -129,11 +128,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<bool> ping({
|
_i4.Future<bool> ping({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
int? retryCount = 1,
|
int? retryCount = 1,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -146,10 +145,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retryCount: retryCount,
|
#retryCount: retryCount,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
returnValue: _i4.Future<bool>.value(false),
|
||||||
) as _i5.Future<bool>);
|
) as _i4.Future<bool>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getBlockHeadTip,
|
#getBlockHeadTip,
|
||||||
|
@ -157,10 +156,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getServerFeatures,
|
#getServerFeatures,
|
||||||
|
@ -168,10 +167,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<String> broadcastTransaction({
|
_i4.Future<String> broadcastTransaction({
|
||||||
required String? rawTx,
|
required String? rawTx,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -184,10 +183,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<String>.value(''),
|
returnValue: _i4.Future<String>.value(''),
|
||||||
) as _i5.Future<String>);
|
) as _i4.Future<String>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getBalance({
|
_i4.Future<Map<String, dynamic>> getBalance({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -201,10 +200,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<Map<String, dynamic>>> getHistory({
|
_i4.Future<List<Map<String, dynamic>>> getHistory({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -217,11 +216,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
|
_i4.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
|
||||||
{required Map<String, List<dynamic>>? args}) =>
|
{required Map<String, List<dynamic>>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -229,11 +228,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
returnValue: _i4.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||||
<String, List<Map<String, dynamic>>>{}),
|
<String, List<Map<String, dynamic>>>{}),
|
||||||
) as _i5.Future<Map<String, List<Map<String, dynamic>>>>);
|
) as _i4.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<Map<String, dynamic>>> getUTXOs({
|
_i4.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -246,11 +245,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
|
_i4.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||||
{required Map<String, List<dynamic>>? args}) =>
|
{required Map<String, List<dynamic>>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -258,11 +257,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
returnValue: _i4.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||||
<String, List<Map<String, dynamic>>>{}),
|
<String, List<Map<String, dynamic>>>{}),
|
||||||
) as _i5.Future<Map<String, List<Map<String, dynamic>>>>);
|
) as _i4.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getTransaction({
|
_i4.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -278,10 +277,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
_i4.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
String? groupId = r'1',
|
String? groupId = r'1',
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -297,10 +296,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<dynamic> getMintData({
|
_i4.Future<dynamic> getMintData({
|
||||||
dynamic mints,
|
dynamic mints,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -313,10 +312,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<dynamic>.value(),
|
returnValue: _i4.Future<dynamic>.value(),
|
||||||
) as _i5.Future<dynamic>);
|
) as _i4.Future<dynamic>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getUsedCoinSerials({
|
_i4.Future<Map<String, dynamic>> getUsedCoinSerials({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -330,19 +329,19 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
|
_i4.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getLatestCoinId,
|
#getLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<int>.value(0),
|
returnValue: _i4.Future<int>.value(0),
|
||||||
) as _i5.Future<int>);
|
) as _i4.Future<int>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFeeRate,
|
#getFeeRate,
|
||||||
|
@ -350,10 +349,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> estimateFee({
|
_i4.Future<_i2.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -366,7 +365,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -377,15 +376,15 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i4.Future<_i2.Decimal>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i4.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -393,50 +392,30 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i4.Future<_i2.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [CachedElectrumX].
|
/// A class which mocks [CachedElectrumX].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX {
|
||||||
MockCachedElectrumX() {
|
MockCachedElectrumX() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get server => (super.noSuchMethod(
|
_i3.ElectrumX get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#server),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: '',
|
returnValue: _FakeElectrumX_1(
|
||||||
) 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
|
|
||||||
_i3.Prefs get prefs => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#prefs),
|
|
||||||
returnValue: _FakePrefs_1(
|
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#prefs),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i3.Prefs);
|
) as _i3.ElectrumX);
|
||||||
@override
|
@override
|
||||||
List<_i4.ElectrumXNode> get failovers => (super.noSuchMethod(
|
_i4.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
Invocation.getter(#failovers),
|
|
||||||
returnValue: <_i4.ElectrumXNode>[],
|
|
||||||
) as List<_i4.ElectrumXNode>);
|
|
||||||
@override
|
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -449,8 +428,8 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -468,9 +447,9 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
returnValue: '',
|
returnValue: '',
|
||||||
) as String);
|
) as String);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getTransaction({
|
_i4.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -484,11 +463,11 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<String>> getUsedCoinSerials({
|
_i4.Future<List<String>> getUsedCoinSerials({
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
int? startNumber = 0,
|
int? startNumber = 0,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -500,26 +479,26 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<String>>.value(<String>[]),
|
returnValue: _i4.Future<List<String>>.value(<String>[]),
|
||||||
) as _i5.Future<List<String>>);
|
) as _i4.Future<List<String>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) =>
|
_i4.Future<void> clearSharedTransactionCache({required _i6.Coin? coin}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#clearSharedTransactionCache,
|
#clearSharedTransactionCache,
|
||||||
[],
|
[],
|
||||||
{#coin: coin},
|
{#coin: coin},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [TransactionNotificationTracker].
|
/// A class which mocks [TransactionNotificationTracker].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockTransactionNotificationTracker extends _i1.Mock
|
class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
implements _i8.TransactionNotificationTracker {
|
implements _i7.TransactionNotificationTracker {
|
||||||
MockTransactionNotificationTracker() {
|
MockTransactionNotificationTracker() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -548,14 +527,14 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedPending,
|
#addNotifiedPending,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
@override
|
@override
|
||||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -565,21 +544,21 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedConfirmed,
|
#addNotifiedConfirmed,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#deleteTransaction,
|
#deleteTransaction,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,6 +105,7 @@ void main() {
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.toList();
|
.toList();
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -126,6 +126,7 @@ void main() {
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
when(wallet.transactions).thenAnswer((_) async => [
|
when(wallet.transactions).thenAnswer((_) async => [
|
||||||
tx,
|
tx,
|
||||||
|
|
|
@ -1086,6 +1086,14 @@ class MockFiroWallet extends _i1.Mock implements _i10.FiroWallet {
|
||||||
returnValueForMissingStub: _i11.Future<void>.value(),
|
returnValueForMissingStub: _i11.Future<void>.value(),
|
||||||
) as _i11.Future<void>);
|
) as _i11.Future<void>);
|
||||||
@override
|
@override
|
||||||
|
int firoGetMintIndex() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#firoGetMintIndex,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: 0,
|
||||||
|
) as int);
|
||||||
|
@override
|
||||||
_i11.Future<void> firoUpdateMintIndex(int? mintIndex) => (super.noSuchMethod(
|
_i11.Future<void> firoUpdateMintIndex(int? mintIndex) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#firoUpdateMintIndex,
|
#firoUpdateMintIndex,
|
||||||
|
|
|
@ -3,16 +3,15 @@
|
||||||
// Do not manually edit this file.
|
// Do not manually edit this file.
|
||||||
|
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i5;
|
import 'dart:async' as _i4;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i2;
|
import 'package:decimal/decimal.dart' as _i2;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i6;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i5;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i4;
|
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i3;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i7;
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i3;
|
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -35,8 +34,8 @@ class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakePrefs_1 extends _i1.SmartFake implements _i3.Prefs {
|
class _FakeElectrumX_1 extends _i1.SmartFake implements _i3.ElectrumX {
|
||||||
_FakePrefs_1(
|
_FakeElectrumX_1(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -48,13 +47,13 @@ class _FakePrefs_1 extends _i1.SmartFake implements _i3.Prefs {
|
||||||
/// A class which mocks [ElectrumX].
|
/// A class which mocks [ElectrumX].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
||||||
MockElectrumX() {
|
MockElectrumX() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
set failovers(List<_i3.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#failovers,
|
#failovers,
|
||||||
_failovers,
|
_failovers,
|
||||||
|
@ -90,7 +89,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.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),
|
Duration? connectionTimeout = const Duration(seconds: 60),
|
||||||
|
@ -109,10 +108,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<dynamic>.value(),
|
returnValue: _i4.Future<dynamic>.value(),
|
||||||
) as _i5.Future<dynamic>);
|
) as _i4.Future<dynamic>);
|
||||||
@override
|
@override
|
||||||
_i5.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? connectionTimeout = const Duration(seconds: 60),
|
||||||
|
@ -129,11 +128,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<bool> ping({
|
_i4.Future<bool> ping({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
int? retryCount = 1,
|
int? retryCount = 1,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -146,10 +145,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retryCount: retryCount,
|
#retryCount: retryCount,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
returnValue: _i4.Future<bool>.value(false),
|
||||||
) as _i5.Future<bool>);
|
) as _i4.Future<bool>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getBlockHeadTip,
|
#getBlockHeadTip,
|
||||||
|
@ -157,10 +156,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getServerFeatures,
|
#getServerFeatures,
|
||||||
|
@ -168,10 +167,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<String> broadcastTransaction({
|
_i4.Future<String> broadcastTransaction({
|
||||||
required String? rawTx,
|
required String? rawTx,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -184,10 +183,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<String>.value(''),
|
returnValue: _i4.Future<String>.value(''),
|
||||||
) as _i5.Future<String>);
|
) as _i4.Future<String>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getBalance({
|
_i4.Future<Map<String, dynamic>> getBalance({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -201,10 +200,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<Map<String, dynamic>>> getHistory({
|
_i4.Future<List<Map<String, dynamic>>> getHistory({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -217,11 +216,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
|
_i4.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
|
||||||
{required Map<String, List<dynamic>>? args}) =>
|
{required Map<String, List<dynamic>>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -229,11 +228,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
returnValue: _i4.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||||
<String, List<Map<String, dynamic>>>{}),
|
<String, List<Map<String, dynamic>>>{}),
|
||||||
) as _i5.Future<Map<String, List<Map<String, dynamic>>>>);
|
) as _i4.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<Map<String, dynamic>>> getUTXOs({
|
_i4.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -246,11 +245,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
|
_i4.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||||
{required Map<String, List<dynamic>>? args}) =>
|
{required Map<String, List<dynamic>>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -258,11 +257,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
returnValue: _i4.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||||
<String, List<Map<String, dynamic>>>{}),
|
<String, List<Map<String, dynamic>>>{}),
|
||||||
) as _i5.Future<Map<String, List<Map<String, dynamic>>>>);
|
) as _i4.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getTransaction({
|
_i4.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -278,10 +277,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
_i4.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
String? groupId = r'1',
|
String? groupId = r'1',
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -297,10 +296,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<dynamic> getMintData({
|
_i4.Future<dynamic> getMintData({
|
||||||
dynamic mints,
|
dynamic mints,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -313,10 +312,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<dynamic>.value(),
|
returnValue: _i4.Future<dynamic>.value(),
|
||||||
) as _i5.Future<dynamic>);
|
) as _i4.Future<dynamic>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getUsedCoinSerials({
|
_i4.Future<Map<String, dynamic>> getUsedCoinSerials({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -330,19 +329,19 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
|
_i4.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getLatestCoinId,
|
#getLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<int>.value(0),
|
returnValue: _i4.Future<int>.value(0),
|
||||||
) as _i5.Future<int>);
|
) as _i4.Future<int>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFeeRate,
|
#getFeeRate,
|
||||||
|
@ -350,10 +349,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> estimateFee({
|
_i4.Future<_i2.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -366,7 +365,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -377,15 +376,15 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i4.Future<_i2.Decimal>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i4.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -393,50 +392,30 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i4.Future<_i2.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [CachedElectrumX].
|
/// A class which mocks [CachedElectrumX].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX {
|
||||||
MockCachedElectrumX() {
|
MockCachedElectrumX() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get server => (super.noSuchMethod(
|
_i3.ElectrumX get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#server),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: '',
|
returnValue: _FakeElectrumX_1(
|
||||||
) 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
|
|
||||||
_i3.Prefs get prefs => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#prefs),
|
|
||||||
returnValue: _FakePrefs_1(
|
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#prefs),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i3.Prefs);
|
) as _i3.ElectrumX);
|
||||||
@override
|
@override
|
||||||
List<_i4.ElectrumXNode> get failovers => (super.noSuchMethod(
|
_i4.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
Invocation.getter(#failovers),
|
|
||||||
returnValue: <_i4.ElectrumXNode>[],
|
|
||||||
) as List<_i4.ElectrumXNode>);
|
|
||||||
@override
|
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -449,8 +428,8 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -468,9 +447,9 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
returnValue: '',
|
returnValue: '',
|
||||||
) as String);
|
) as String);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getTransaction({
|
_i4.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -484,11 +463,11 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<String>> getUsedCoinSerials({
|
_i4.Future<List<String>> getUsedCoinSerials({
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
int? startNumber = 0,
|
int? startNumber = 0,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -500,26 +479,26 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<String>>.value(<String>[]),
|
returnValue: _i4.Future<List<String>>.value(<String>[]),
|
||||||
) as _i5.Future<List<String>>);
|
) as _i4.Future<List<String>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) =>
|
_i4.Future<void> clearSharedTransactionCache({required _i6.Coin? coin}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#clearSharedTransactionCache,
|
#clearSharedTransactionCache,
|
||||||
[],
|
[],
|
||||||
{#coin: coin},
|
{#coin: coin},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [TransactionNotificationTracker].
|
/// A class which mocks [TransactionNotificationTracker].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockTransactionNotificationTracker extends _i1.Mock
|
class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
implements _i8.TransactionNotificationTracker {
|
implements _i7.TransactionNotificationTracker {
|
||||||
MockTransactionNotificationTracker() {
|
MockTransactionNotificationTracker() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -548,14 +527,14 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedPending,
|
#addNotifiedPending,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
@override
|
@override
|
||||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -565,21 +544,21 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedConfirmed,
|
#addNotifiedConfirmed,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#deleteTransaction,
|
#deleteTransaction,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,16 +3,15 @@
|
||||||
// Do not manually edit this file.
|
// Do not manually edit this file.
|
||||||
|
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i5;
|
import 'dart:async' as _i4;
|
||||||
|
|
||||||
import 'package:decimal/decimal.dart' as _i2;
|
import 'package:decimal/decimal.dart' as _i2;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i6;
|
import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i5;
|
||||||
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i4;
|
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i3;
|
||||||
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
import 'package:stackwallet/services/transaction_notification_tracker.dart'
|
||||||
as _i8;
|
as _i7;
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i7;
|
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i6;
|
||||||
import 'package:stackwallet/utilities/prefs.dart' as _i3;
|
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
@ -35,8 +34,8 @@ class _FakeDecimal_0 extends _i1.SmartFake implements _i2.Decimal {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FakePrefs_1 extends _i1.SmartFake implements _i3.Prefs {
|
class _FakeElectrumX_1 extends _i1.SmartFake implements _i3.ElectrumX {
|
||||||
_FakePrefs_1(
|
_FakeElectrumX_1(
|
||||||
Object parent,
|
Object parent,
|
||||||
Invocation parentInvocation,
|
Invocation parentInvocation,
|
||||||
) : super(
|
) : super(
|
||||||
|
@ -48,13 +47,13 @@ class _FakePrefs_1 extends _i1.SmartFake implements _i3.Prefs {
|
||||||
/// A class which mocks [ElectrumX].
|
/// A class which mocks [ElectrumX].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
||||||
MockElectrumX() {
|
MockElectrumX() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
set failovers(List<_i3.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||||
Invocation.setter(
|
Invocation.setter(
|
||||||
#failovers,
|
#failovers,
|
||||||
_failovers,
|
_failovers,
|
||||||
|
@ -90,7 +89,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.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),
|
Duration? connectionTimeout = const Duration(seconds: 60),
|
||||||
|
@ -109,10 +108,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<dynamic>.value(),
|
returnValue: _i4.Future<dynamic>.value(),
|
||||||
) as _i5.Future<dynamic>);
|
) as _i4.Future<dynamic>);
|
||||||
@override
|
@override
|
||||||
_i5.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? connectionTimeout = const Duration(seconds: 60),
|
||||||
|
@ -129,11 +128,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retries: retries,
|
#retries: retries,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<bool> ping({
|
_i4.Future<bool> ping({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
int? retryCount = 1,
|
int? retryCount = 1,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -146,10 +145,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#retryCount: retryCount,
|
#retryCount: retryCount,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<bool>.value(false),
|
returnValue: _i4.Future<bool>.value(false),
|
||||||
) as _i5.Future<bool>);
|
) as _i4.Future<bool>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getBlockHeadTip,
|
#getBlockHeadTip,
|
||||||
|
@ -157,10 +156,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getServerFeatures,
|
#getServerFeatures,
|
||||||
|
@ -168,10 +167,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<String> broadcastTransaction({
|
_i4.Future<String> broadcastTransaction({
|
||||||
required String? rawTx,
|
required String? rawTx,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -184,10 +183,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<String>.value(''),
|
returnValue: _i4.Future<String>.value(''),
|
||||||
) as _i5.Future<String>);
|
) as _i4.Future<String>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getBalance({
|
_i4.Future<Map<String, dynamic>> getBalance({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -201,10 +200,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<Map<String, dynamic>>> getHistory({
|
_i4.Future<List<Map<String, dynamic>>> getHistory({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -217,11 +216,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
|
_i4.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
|
||||||
{required Map<String, List<dynamic>>? args}) =>
|
{required Map<String, List<dynamic>>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -229,11 +228,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
returnValue: _i4.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||||
<String, List<Map<String, dynamic>>>{}),
|
<String, List<Map<String, dynamic>>>{}),
|
||||||
) as _i5.Future<Map<String, List<Map<String, dynamic>>>>);
|
) as _i4.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<Map<String, dynamic>>> getUTXOs({
|
_i4.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||||
required String? scripthash,
|
required String? scripthash,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -246,11 +245,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||||
<Map<String, dynamic>>[]),
|
<Map<String, dynamic>>[]),
|
||||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
|
_i4.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||||
{required Map<String, List<dynamic>>? args}) =>
|
{required Map<String, List<dynamic>>? args}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -258,11 +257,11 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
[],
|
[],
|
||||||
{#args: args},
|
{#args: args},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
returnValue: _i4.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||||
<String, List<Map<String, dynamic>>>{}),
|
<String, List<Map<String, dynamic>>>{}),
|
||||||
) as _i5.Future<Map<String, List<Map<String, dynamic>>>>);
|
) as _i4.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getTransaction({
|
_i4.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -278,10 +277,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
_i4.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
String? groupId = r'1',
|
String? groupId = r'1',
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
String? requestID,
|
String? requestID,
|
||||||
|
@ -297,10 +296,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<dynamic> getMintData({
|
_i4.Future<dynamic> getMintData({
|
||||||
dynamic mints,
|
dynamic mints,
|
||||||
String? requestID,
|
String? requestID,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -313,10 +312,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#requestID: requestID,
|
#requestID: requestID,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<dynamic>.value(),
|
returnValue: _i4.Future<dynamic>.value(),
|
||||||
) as _i5.Future<dynamic>);
|
) as _i4.Future<dynamic>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getUsedCoinSerials({
|
_i4.Future<Map<String, dynamic>> getUsedCoinSerials({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? startNumber,
|
required int? startNumber,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -330,19 +329,19 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
|
_i4.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getLatestCoinId,
|
#getLatestCoinId,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<int>.value(0),
|
returnValue: _i4.Future<int>.value(0),
|
||||||
) as _i5.Future<int>);
|
) as _i4.Future<int>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
_i4.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#getFeeRate,
|
#getFeeRate,
|
||||||
|
@ -350,10 +349,10 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> estimateFee({
|
_i4.Future<_i2.Decimal> estimateFee({
|
||||||
String? requestID,
|
String? requestID,
|
||||||
required int? blocks,
|
required int? blocks,
|
||||||
}) =>
|
}) =>
|
||||||
|
@ -366,7 +365,7 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
#blocks: blocks,
|
#blocks: blocks,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#estimateFee,
|
#estimateFee,
|
||||||
|
@ -377,15 +376,15 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i4.Future<_i2.Decimal>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
_i4.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
[],
|
[],
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_0(
|
||||||
this,
|
this,
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#relayFee,
|
#relayFee,
|
||||||
|
@ -393,50 +392,30 @@ class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||||
{#requestID: requestID},
|
{#requestID: requestID},
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
) as _i5.Future<_i2.Decimal>);
|
) as _i4.Future<_i2.Decimal>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [CachedElectrumX].
|
/// A class which mocks [CachedElectrumX].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX {
|
||||||
MockCachedElectrumX() {
|
MockCachedElectrumX() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get server => (super.noSuchMethod(
|
_i3.ElectrumX get electrumXClient => (super.noSuchMethod(
|
||||||
Invocation.getter(#server),
|
Invocation.getter(#electrumXClient),
|
||||||
returnValue: '',
|
returnValue: _FakeElectrumX_1(
|
||||||
) 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
|
|
||||||
_i3.Prefs get prefs => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#prefs),
|
|
||||||
returnValue: _FakePrefs_1(
|
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#prefs),
|
Invocation.getter(#electrumXClient),
|
||||||
),
|
),
|
||||||
) as _i3.Prefs);
|
) as _i3.ElectrumX);
|
||||||
@override
|
@override
|
||||||
List<_i4.ElectrumXNode> get failovers => (super.noSuchMethod(
|
_i4.Future<Map<String, dynamic>> getAnonymitySet({
|
||||||
Invocation.getter(#failovers),
|
|
||||||
returnValue: <_i4.ElectrumXNode>[],
|
|
||||||
) as List<_i4.ElectrumXNode>);
|
|
||||||
@override
|
|
||||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
|
||||||
required String? groupId,
|
required String? groupId,
|
||||||
String? blockhash = r'',
|
String? blockhash = r'',
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -449,8 +428,8 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
String base64ToHex(String? source) => (super.noSuchMethod(
|
String base64ToHex(String? source) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -468,9 +447,9 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
returnValue: '',
|
returnValue: '',
|
||||||
) as String);
|
) as String);
|
||||||
@override
|
@override
|
||||||
_i5.Future<Map<String, dynamic>> getTransaction({
|
_i4.Future<Map<String, dynamic>> getTransaction({
|
||||||
required String? txHash,
|
required String? txHash,
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
bool? verbose = true,
|
bool? verbose = true,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -484,11 +463,11 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue:
|
returnValue:
|
||||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||||
) as _i5.Future<Map<String, dynamic>>);
|
) as _i4.Future<Map<String, dynamic>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<List<String>> getUsedCoinSerials({
|
_i4.Future<List<String>> getUsedCoinSerials({
|
||||||
required _i7.Coin? coin,
|
required _i6.Coin? coin,
|
||||||
int? startNumber = 0,
|
int? startNumber = 0,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
@ -500,26 +479,26 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX {
|
||||||
#startNumber: startNumber,
|
#startNumber: startNumber,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<List<String>>.value(<String>[]),
|
returnValue: _i4.Future<List<String>>.value(<String>[]),
|
||||||
) as _i5.Future<List<String>>);
|
) as _i4.Future<List<String>>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> clearSharedTransactionCache({required _i7.Coin? coin}) =>
|
_i4.Future<void> clearSharedTransactionCache({required _i6.Coin? coin}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#clearSharedTransactionCache,
|
#clearSharedTransactionCache,
|
||||||
[],
|
[],
|
||||||
{#coin: coin},
|
{#coin: coin},
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [TransactionNotificationTracker].
|
/// A class which mocks [TransactionNotificationTracker].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockTransactionNotificationTracker extends _i1.Mock
|
class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
implements _i8.TransactionNotificationTracker {
|
implements _i7.TransactionNotificationTracker {
|
||||||
MockTransactionNotificationTracker() {
|
MockTransactionNotificationTracker() {
|
||||||
_i1.throwOnMissingStub(this);
|
_i1.throwOnMissingStub(this);
|
||||||
}
|
}
|
||||||
|
@ -548,14 +527,14 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> addNotifiedPending(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedPending,
|
#addNotifiedPending,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
@override
|
@override
|
||||||
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
bool wasNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
@ -565,21 +544,21 @@ class MockTransactionNotificationTracker extends _i1.Mock
|
||||||
returnValue: false,
|
returnValue: false,
|
||||||
) as bool);
|
) as bool);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> addNotifiedConfirmed(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#addNotifiedConfirmed,
|
#addNotifiedConfirmed,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
@override
|
@override
|
||||||
_i5.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
_i4.Future<void> deleteTransaction(String? txid) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#deleteTransaction,
|
#deleteTransaction,
|
||||||
[txid],
|
[txid],
|
||||||
),
|
),
|
||||||
returnValue: _i5.Future<void>.value(),
|
returnValue: _i4.Future<void>.value(),
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i4.Future<void>);
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,6 +83,15 @@ class MockThemeService extends _i1.Mock implements _i3.ThemeService {
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i5.Future<void>);
|
||||||
@override
|
@override
|
||||||
|
_i5.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#checkDefaultThemesOnStartup,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: _i5.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||||
|
) as _i5.Future<void>);
|
||||||
|
@override
|
||||||
_i5.Future<bool> verifyInstalled({required String? themeId}) =>
|
_i5.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
|
@ -83,6 +83,15 @@ class MockThemeService extends _i1.Mock implements _i3.ThemeService {
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i5.Future<void>);
|
||||||
@override
|
@override
|
||||||
|
_i5.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#checkDefaultThemesOnStartup,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: _i5.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||||
|
) as _i5.Future<void>);
|
||||||
|
@override
|
||||||
_i5.Future<bool> verifyInstalled({required String? themeId}) =>
|
_i5.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
|
@ -83,6 +83,15 @@ class MockThemeService extends _i1.Mock implements _i3.ThemeService {
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i5.Future<void>);
|
||||||
@override
|
@override
|
||||||
|
_i5.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#checkDefaultThemesOnStartup,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: _i5.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||||
|
) as _i5.Future<void>);
|
||||||
|
@override
|
||||||
_i5.Future<bool> verifyInstalled({required String? themeId}) =>
|
_i5.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
|
@ -2008,6 +2008,15 @@ class MockThemeService extends _i1.Mock implements _i30.ThemeService {
|
||||||
returnValueForMissingStub: _i23.Future<void>.value(),
|
returnValueForMissingStub: _i23.Future<void>.value(),
|
||||||
) as _i23.Future<void>);
|
) as _i23.Future<void>);
|
||||||
@override
|
@override
|
||||||
|
_i23.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#checkDefaultThemesOnStartup,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: _i23.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i23.Future<void>.value(),
|
||||||
|
) as _i23.Future<void>);
|
||||||
|
@override
|
||||||
_i23.Future<bool> verifyInstalled({required String? themeId}) =>
|
_i23.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
|
@ -729,6 +729,15 @@ class MockThemeService extends _i1.Mock implements _i25.ThemeService {
|
||||||
returnValueForMissingStub: _i22.Future<void>.value(),
|
returnValueForMissingStub: _i22.Future<void>.value(),
|
||||||
) as _i22.Future<void>);
|
) as _i22.Future<void>);
|
||||||
@override
|
@override
|
||||||
|
_i22.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#checkDefaultThemesOnStartup,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: _i22.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i22.Future<void>.value(),
|
||||||
|
) as _i22.Future<void>);
|
||||||
|
@override
|
||||||
_i22.Future<bool> verifyInstalled({required String? themeId}) =>
|
_i22.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
|
@ -83,6 +83,15 @@ class MockThemeService extends _i1.Mock implements _i3.ThemeService {
|
||||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||||
) as _i5.Future<void>);
|
) as _i5.Future<void>);
|
||||||
@override
|
@override
|
||||||
|
_i5.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#checkDefaultThemesOnStartup,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: _i5.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||||
|
) as _i5.Future<void>);
|
||||||
|
@override
|
||||||
_i5.Future<bool> verifyInstalled({required String? themeId}) =>
|
_i5.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
|
@ -71,6 +71,7 @@ void main() {
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
)..address.value = Address(
|
)..address.value = Address(
|
||||||
walletId: "walletId",
|
walletId: "walletId",
|
||||||
value: "",
|
value: "",
|
||||||
|
@ -188,6 +189,7 @@ void main() {
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
)..address.value = Address(
|
)..address.value = Address(
|
||||||
walletId: "walletId",
|
walletId: "walletId",
|
||||||
value: "",
|
value: "",
|
||||||
|
@ -302,6 +304,7 @@ void main() {
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
)..address.value = Address(
|
)..address.value = Address(
|
||||||
walletId: "walletId",
|
walletId: "walletId",
|
||||||
value: "",
|
value: "",
|
||||||
|
@ -410,6 +413,7 @@ void main() {
|
||||||
nonce: null,
|
nonce: null,
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
|
numberOfMessages: null,
|
||||||
)..address.value = Address(
|
)..address.value = Address(
|
||||||
walletId: "walletId",
|
walletId: "walletId",
|
||||||
value: "",
|
value: "",
|
||||||
|
|
|
@ -2076,6 +2076,14 @@ class MockFiroWallet extends _i1.Mock implements _i22.FiroWallet {
|
||||||
returnValueForMissingStub: _i18.Future<void>.value(),
|
returnValueForMissingStub: _i18.Future<void>.value(),
|
||||||
) as _i18.Future<void>);
|
) as _i18.Future<void>);
|
||||||
@override
|
@override
|
||||||
|
int firoGetMintIndex() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#firoGetMintIndex,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: 0,
|
||||||
|
) as int);
|
||||||
|
@override
|
||||||
_i18.Future<void> firoUpdateMintIndex(int? mintIndex) => (super.noSuchMethod(
|
_i18.Future<void> firoUpdateMintIndex(int? mintIndex) => (super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#firoUpdateMintIndex,
|
#firoUpdateMintIndex,
|
||||||
|
@ -2864,6 +2872,15 @@ class MockThemeService extends _i1.Mock implements _i30.ThemeService {
|
||||||
returnValueForMissingStub: _i18.Future<void>.value(),
|
returnValueForMissingStub: _i18.Future<void>.value(),
|
||||||
) as _i18.Future<void>);
|
) as _i18.Future<void>);
|
||||||
@override
|
@override
|
||||||
|
_i18.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#checkDefaultThemesOnStartup,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: _i18.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i18.Future<void>.value(),
|
||||||
|
) as _i18.Future<void>);
|
||||||
|
@override
|
||||||
_i18.Future<bool> verifyInstalled({required String? themeId}) =>
|
_i18.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
|
@ -1812,6 +1812,15 @@ class MockThemeService extends _i1.Mock implements _i30.ThemeService {
|
||||||
returnValueForMissingStub: _i21.Future<void>.value(),
|
returnValueForMissingStub: _i21.Future<void>.value(),
|
||||||
) as _i21.Future<void>);
|
) as _i21.Future<void>);
|
||||||
@override
|
@override
|
||||||
|
_i21.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#checkDefaultThemesOnStartup,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: _i21.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i21.Future<void>.value(),
|
||||||
|
) as _i21.Future<void>);
|
||||||
|
@override
|
||||||
_i21.Future<bool> verifyInstalled({required String? themeId}) =>
|
_i21.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
|
@ -741,6 +741,15 @@ class MockThemeService extends _i1.Mock implements _i26.ThemeService {
|
||||||
returnValueForMissingStub: _i23.Future<void>.value(),
|
returnValueForMissingStub: _i23.Future<void>.value(),
|
||||||
) as _i23.Future<void>);
|
) as _i23.Future<void>);
|
||||||
@override
|
@override
|
||||||
|
_i23.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#checkDefaultThemesOnStartup,
|
||||||
|
[],
|
||||||
|
),
|
||||||
|
returnValue: _i23.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i23.Future<void>.value(),
|
||||||
|
) as _i23.Future<void>);
|
||||||
|
@override
|
||||||
_i23.Future<bool> verifyInstalled({required String? themeId}) =>
|
_i23.Future<bool> verifyInstalled({required String? themeId}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
Loading…
Reference in a new issue