mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-03 17:29:23 +00:00
build runner
This commit is contained in:
parent
45737084fd
commit
4a619d68ad
40 changed files with 9534 additions and 4586 deletions
1616
lib/models/isar/models/blockchain_data/v2/input_v2.g.dart
Normal file
1616
lib/models/isar/models/blockchain_data/v2/input_v2.g.dart
Normal file
File diff suppressed because it is too large
Load diff
659
lib/models/isar/models/blockchain_data/v2/output_v2.g.dart
Normal file
659
lib/models/isar/models/blockchain_data/v2/output_v2.g.dart
Normal file
|
@ -0,0 +1,659 @@
|
|||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'output_v2.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// IsarEmbeddedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
||||
|
||||
const OutputV2Schema = Schema(
|
||||
name: r'OutputV2',
|
||||
id: -6134367361914065515,
|
||||
properties: {
|
||||
r'addresses': PropertySchema(
|
||||
id: 0,
|
||||
name: r'addresses',
|
||||
type: IsarType.stringList,
|
||||
),
|
||||
r'hashCode': PropertySchema(
|
||||
id: 1,
|
||||
name: r'hashCode',
|
||||
type: IsarType.long,
|
||||
),
|
||||
r'scriptPubKeyHex': PropertySchema(
|
||||
id: 2,
|
||||
name: r'scriptPubKeyHex',
|
||||
type: IsarType.string,
|
||||
),
|
||||
r'valueStringSats': PropertySchema(
|
||||
id: 3,
|
||||
name: r'valueStringSats',
|
||||
type: IsarType.string,
|
||||
)
|
||||
},
|
||||
estimateSize: _outputV2EstimateSize,
|
||||
serialize: _outputV2Serialize,
|
||||
deserialize: _outputV2Deserialize,
|
||||
deserializeProp: _outputV2DeserializeProp,
|
||||
);
|
||||
|
||||
int _outputV2EstimateSize(
|
||||
OutputV2 object,
|
||||
List<int> offsets,
|
||||
Map<Type, List<int>> allOffsets,
|
||||
) {
|
||||
var bytesCount = offsets.last;
|
||||
bytesCount += 3 + object.addresses.length * 3;
|
||||
{
|
||||
for (var i = 0; i < object.addresses.length; i++) {
|
||||
final value = object.addresses[i];
|
||||
bytesCount += value.length * 3;
|
||||
}
|
||||
}
|
||||
bytesCount += 3 + object.scriptPubKeyHex.length * 3;
|
||||
bytesCount += 3 + object.valueStringSats.length * 3;
|
||||
return bytesCount;
|
||||
}
|
||||
|
||||
void _outputV2Serialize(
|
||||
OutputV2 object,
|
||||
IsarWriter writer,
|
||||
List<int> offsets,
|
||||
Map<Type, List<int>> allOffsets,
|
||||
) {
|
||||
writer.writeStringList(offsets[0], object.addresses);
|
||||
writer.writeLong(offsets[1], object.hashCode);
|
||||
writer.writeString(offsets[2], object.scriptPubKeyHex);
|
||||
writer.writeString(offsets[3], object.valueStringSats);
|
||||
}
|
||||
|
||||
OutputV2 _outputV2Deserialize(
|
||||
Id id,
|
||||
IsarReader reader,
|
||||
List<int> offsets,
|
||||
Map<Type, List<int>> allOffsets,
|
||||
) {
|
||||
final object = OutputV2();
|
||||
object.addresses = reader.readStringList(offsets[0]) ?? [];
|
||||
object.scriptPubKeyHex = reader.readString(offsets[2]);
|
||||
object.valueStringSats = reader.readString(offsets[3]);
|
||||
return object;
|
||||
}
|
||||
|
||||
P _outputV2DeserializeProp<P>(
|
||||
IsarReader reader,
|
||||
int propertyId,
|
||||
int offset,
|
||||
Map<Type, List<int>> allOffsets,
|
||||
) {
|
||||
switch (propertyId) {
|
||||
case 0:
|
||||
return (reader.readStringList(offset) ?? []) as P;
|
||||
case 1:
|
||||
return (reader.readLong(offset)) as P;
|
||||
case 2:
|
||||
return (reader.readString(offset)) as P;
|
||||
case 3:
|
||||
return (reader.readString(offset)) as P;
|
||||
default:
|
||||
throw IsarError('Unknown property with id $propertyId');
|
||||
}
|
||||
}
|
||||
|
||||
extension OutputV2QueryFilter
|
||||
on QueryBuilder<OutputV2, OutputV2, QFilterCondition> {
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesElementEqualTo(
|
||||
String value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'addresses',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesElementGreaterThan(
|
||||
String value, {
|
||||
bool include = false,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||
include: include,
|
||||
property: r'addresses',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesElementLessThan(
|
||||
String value, {
|
||||
bool include = false,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.lessThan(
|
||||
include: include,
|
||||
property: r'addresses',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesElementBetween(
|
||||
String lower,
|
||||
String upper, {
|
||||
bool includeLower = true,
|
||||
bool includeUpper = true,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.between(
|
||||
property: r'addresses',
|
||||
lower: lower,
|
||||
includeLower: includeLower,
|
||||
upper: upper,
|
||||
includeUpper: includeUpper,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesElementStartsWith(
|
||||
String value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.startsWith(
|
||||
property: r'addresses',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesElementEndsWith(
|
||||
String value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.endsWith(
|
||||
property: r'addresses',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesElementContains(String value, {bool caseSensitive = true}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.contains(
|
||||
property: r'addresses',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesElementMatches(String pattern, {bool caseSensitive = true}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.matches(
|
||||
property: r'addresses',
|
||||
wildcard: pattern,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesElementIsEmpty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'addresses',
|
||||
value: '',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesElementIsNotEmpty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||
property: r'addresses',
|
||||
value: '',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesLengthEqualTo(int length) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.listLength(
|
||||
r'addresses',
|
||||
length,
|
||||
true,
|
||||
length,
|
||||
true,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition> addressesIsEmpty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.listLength(
|
||||
r'addresses',
|
||||
0,
|
||||
true,
|
||||
0,
|
||||
true,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesIsNotEmpty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.listLength(
|
||||
r'addresses',
|
||||
0,
|
||||
false,
|
||||
999999,
|
||||
true,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesLengthLessThan(
|
||||
int length, {
|
||||
bool include = false,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.listLength(
|
||||
r'addresses',
|
||||
0,
|
||||
true,
|
||||
length,
|
||||
include,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesLengthGreaterThan(
|
||||
int length, {
|
||||
bool include = false,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.listLength(
|
||||
r'addresses',
|
||||
length,
|
||||
include,
|
||||
999999,
|
||||
true,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
addressesLengthBetween(
|
||||
int lower,
|
||||
int upper, {
|
||||
bool includeLower = true,
|
||||
bool includeUpper = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.listLength(
|
||||
r'addresses',
|
||||
lower,
|
||||
includeLower,
|
||||
upper,
|
||||
includeUpper,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition> hashCodeEqualTo(
|
||||
int value) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'hashCode',
|
||||
value: value,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition> hashCodeGreaterThan(
|
||||
int value, {
|
||||
bool include = false,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||
include: include,
|
||||
property: r'hashCode',
|
||||
value: value,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition> hashCodeLessThan(
|
||||
int value, {
|
||||
bool include = false,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.lessThan(
|
||||
include: include,
|
||||
property: r'hashCode',
|
||||
value: value,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition> hashCodeBetween(
|
||||
int lower,
|
||||
int upper, {
|
||||
bool includeLower = true,
|
||||
bool includeUpper = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.between(
|
||||
property: r'hashCode',
|
||||
lower: lower,
|
||||
includeLower: includeLower,
|
||||
upper: upper,
|
||||
includeUpper: includeUpper,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
scriptPubKeyHexEqualTo(
|
||||
String value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'scriptPubKeyHex',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
scriptPubKeyHexGreaterThan(
|
||||
String value, {
|
||||
bool include = false,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||
include: include,
|
||||
property: r'scriptPubKeyHex',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
scriptPubKeyHexLessThan(
|
||||
String value, {
|
||||
bool include = false,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.lessThan(
|
||||
include: include,
|
||||
property: r'scriptPubKeyHex',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
scriptPubKeyHexBetween(
|
||||
String lower,
|
||||
String upper, {
|
||||
bool includeLower = true,
|
||||
bool includeUpper = true,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.between(
|
||||
property: r'scriptPubKeyHex',
|
||||
lower: lower,
|
||||
includeLower: includeLower,
|
||||
upper: upper,
|
||||
includeUpper: includeUpper,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
scriptPubKeyHexStartsWith(
|
||||
String value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.startsWith(
|
||||
property: r'scriptPubKeyHex',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
scriptPubKeyHexEndsWith(
|
||||
String value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.endsWith(
|
||||
property: r'scriptPubKeyHex',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
scriptPubKeyHexContains(String value, {bool caseSensitive = true}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.contains(
|
||||
property: r'scriptPubKeyHex',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
scriptPubKeyHexMatches(String pattern, {bool caseSensitive = true}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.matches(
|
||||
property: r'scriptPubKeyHex',
|
||||
wildcard: pattern,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
scriptPubKeyHexIsEmpty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'scriptPubKeyHex',
|
||||
value: '',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
scriptPubKeyHexIsNotEmpty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||
property: r'scriptPubKeyHex',
|
||||
value: '',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
valueStringSatsEqualTo(
|
||||
String value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'valueStringSats',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
valueStringSatsGreaterThan(
|
||||
String value, {
|
||||
bool include = false,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||
include: include,
|
||||
property: r'valueStringSats',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
valueStringSatsLessThan(
|
||||
String value, {
|
||||
bool include = false,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.lessThan(
|
||||
include: include,
|
||||
property: r'valueStringSats',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
valueStringSatsBetween(
|
||||
String lower,
|
||||
String upper, {
|
||||
bool includeLower = true,
|
||||
bool includeUpper = true,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.between(
|
||||
property: r'valueStringSats',
|
||||
lower: lower,
|
||||
includeLower: includeLower,
|
||||
upper: upper,
|
||||
includeUpper: includeUpper,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
valueStringSatsStartsWith(
|
||||
String value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.startsWith(
|
||||
property: r'valueStringSats',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
valueStringSatsEndsWith(
|
||||
String value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.endsWith(
|
||||
property: r'valueStringSats',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
valueStringSatsContains(String value, {bool caseSensitive = true}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.contains(
|
||||
property: r'valueStringSats',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
valueStringSatsMatches(String pattern, {bool caseSensitive = true}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.matches(
|
||||
property: r'valueStringSats',
|
||||
wildcard: pattern,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
valueStringSatsIsEmpty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'valueStringSats',
|
||||
value: '',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<OutputV2, OutputV2, QAfterFilterCondition>
|
||||
valueStringSatsIsNotEmpty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||
property: r'valueStringSats',
|
||||
value: '',
|
||||
));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
extension OutputV2QueryObject
|
||||
on QueryBuilder<OutputV2, OutputV2, QFilterCondition> {}
|
1986
lib/models/isar/models/blockchain_data/v2/transaction_v2.g.dart
Normal file
1986
lib/models/isar/models/blockchain_data/v2/transaction_v2.g.dart
Normal file
File diff suppressed because it is too large
Load diff
|
@ -3,17 +3,19 @@
|
|||
// Do not manually edit this file.
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i4;
|
||||
import 'dart:ui' as _i10;
|
||||
import 'dart:async' as _i5;
|
||||
import 'dart:ui' as _i11;
|
||||
|
||||
import 'package:decimal/decimal.dart' as _i2;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i3;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i8;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i7;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i9;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i6;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i5;
|
||||
import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i4;
|
||||
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart'
|
||||
as _i3;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i9;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i8;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i10;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i7;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i6;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: avoid_redundant_argument_values
|
||||
|
@ -46,16 +48,26 @@ class _FakeDecimal_1 extends _i1.SmartFake implements _i2.Decimal {
|
|||
);
|
||||
}
|
||||
|
||||
class _FakeFusionInfo_2 extends _i1.SmartFake implements _i3.FusionInfo {
|
||||
_FakeFusionInfo_2(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
parent,
|
||||
parentInvocation,
|
||||
);
|
||||
}
|
||||
|
||||
/// A class which mocks [ElectrumX].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
||||
class MockElectrumX extends _i1.Mock implements _i4.ElectrumX {
|
||||
MockElectrumX() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
set failovers(List<_i3.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||
set failovers(List<_i4.ElectrumXNode>? _failovers) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#failovers,
|
||||
_failovers,
|
||||
|
@ -100,7 +112,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
_i4.Future<dynamic> request({
|
||||
_i5.Future<dynamic> request({
|
||||
required String? command,
|
||||
List<dynamic>? args = const [],
|
||||
String? requestID,
|
||||
|
@ -119,10 +131,10 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
#requestTimeout: requestTimeout,
|
||||
},
|
||||
),
|
||||
returnValue: _i4.Future<dynamic>.value(),
|
||||
) as _i4.Future<dynamic>);
|
||||
returnValue: _i5.Future<dynamic>.value(),
|
||||
) as _i5.Future<dynamic>);
|
||||
@override
|
||||
_i4.Future<List<Map<String, dynamic>>> batchRequest({
|
||||
_i5.Future<List<Map<String, dynamic>>> batchRequest({
|
||||
required String? command,
|
||||
required Map<String, List<dynamic>>? args,
|
||||
Duration? requestTimeout = const Duration(seconds: 60),
|
||||
|
@ -139,11 +151,11 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
#retries: retries,
|
||||
},
|
||||
),
|
||||
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
||||
@override
|
||||
_i4.Future<bool> ping({
|
||||
_i5.Future<bool> ping({
|
||||
String? requestID,
|
||||
int? retryCount = 1,
|
||||
}) =>
|
||||
|
@ -156,10 +168,10 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
#retryCount: retryCount,
|
||||
},
|
||||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
returnValue: _i5.Future<bool>.value(false),
|
||||
) as _i5.Future<bool>);
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||
_i5.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getBlockHeadTip,
|
||||
|
@ -167,10 +179,10 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
{#requestID: requestID},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i5.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||
_i5.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getServerFeatures,
|
||||
|
@ -178,10 +190,10 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
{#requestID: requestID},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i5.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i4.Future<String> broadcastTransaction({
|
||||
_i5.Future<String> broadcastTransaction({
|
||||
required String? rawTx,
|
||||
String? requestID,
|
||||
}) =>
|
||||
|
@ -194,10 +206,10 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
#requestID: requestID,
|
||||
},
|
||||
),
|
||||
returnValue: _i4.Future<String>.value(''),
|
||||
) as _i4.Future<String>);
|
||||
returnValue: _i5.Future<String>.value(''),
|
||||
) as _i5.Future<String>);
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getBalance({
|
||||
_i5.Future<Map<String, dynamic>> getBalance({
|
||||
required String? scripthash,
|
||||
String? requestID,
|
||||
}) =>
|
||||
|
@ -211,10 +223,10 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i5.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i4.Future<List<Map<String, dynamic>>> getHistory({
|
||||
_i5.Future<List<Map<String, dynamic>>> getHistory({
|
||||
required String? scripthash,
|
||||
String? requestID,
|
||||
}) =>
|
||||
|
@ -227,11 +239,11 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
#requestID: requestID,
|
||||
},
|
||||
),
|
||||
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
||||
@override
|
||||
_i4.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
|
||||
_i5.Future<Map<String, List<Map<String, dynamic>>>> getBatchHistory(
|
||||
{required Map<String, List<dynamic>>? args}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -239,11 +251,11 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
[],
|
||||
{#args: args},
|
||||
),
|
||||
returnValue: _i4.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||
returnValue: _i5.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||
<String, List<Map<String, dynamic>>>{}),
|
||||
) as _i4.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||
) as _i5.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||
@override
|
||||
_i4.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||
_i5.Future<List<Map<String, dynamic>>> getUTXOs({
|
||||
required String? scripthash,
|
||||
String? requestID,
|
||||
}) =>
|
||||
|
@ -256,11 +268,11 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
#requestID: requestID,
|
||||
},
|
||||
),
|
||||
returnValue: _i4.Future<List<Map<String, dynamic>>>.value(
|
||||
returnValue: _i5.Future<List<Map<String, dynamic>>>.value(
|
||||
<Map<String, dynamic>>[]),
|
||||
) as _i4.Future<List<Map<String, dynamic>>>);
|
||||
) as _i5.Future<List<Map<String, dynamic>>>);
|
||||
@override
|
||||
_i4.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||
_i5.Future<Map<String, List<Map<String, dynamic>>>> getBatchUTXOs(
|
||||
{required Map<String, List<dynamic>>? args}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -268,11 +280,11 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
[],
|
||||
{#args: args},
|
||||
),
|
||||
returnValue: _i4.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||
returnValue: _i5.Future<Map<String, List<Map<String, dynamic>>>>.value(
|
||||
<String, List<Map<String, dynamic>>>{}),
|
||||
) as _i4.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||
) as _i5.Future<Map<String, List<Map<String, dynamic>>>>);
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getTransaction({
|
||||
_i5.Future<Map<String, dynamic>> getTransaction({
|
||||
required String? txHash,
|
||||
bool? verbose = true,
|
||||
String? requestID,
|
||||
|
@ -288,10 +300,10 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i5.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getAnonymitySet({
|
||||
_i5.Future<Map<String, dynamic>> getAnonymitySet({
|
||||
String? groupId = r'1',
|
||||
String? blockhash = r'',
|
||||
String? requestID,
|
||||
|
@ -307,10 +319,10 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i5.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i4.Future<dynamic> getMintData({
|
||||
_i5.Future<dynamic> getMintData({
|
||||
dynamic mints,
|
||||
String? requestID,
|
||||
}) =>
|
||||
|
@ -323,10 +335,10 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
#requestID: requestID,
|
||||
},
|
||||
),
|
||||
returnValue: _i4.Future<dynamic>.value(),
|
||||
) as _i4.Future<dynamic>);
|
||||
returnValue: _i5.Future<dynamic>.value(),
|
||||
) as _i5.Future<dynamic>);
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getUsedCoinSerials({
|
||||
_i5.Future<Map<String, dynamic>> getUsedCoinSerials({
|
||||
String? requestID,
|
||||
required int? startNumber,
|
||||
}) =>
|
||||
|
@ -340,19 +352,19 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i5.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i4.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
|
||||
_i5.Future<int> getLatestCoinId({String? requestID}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getLatestCoinId,
|
||||
[],
|
||||
{#requestID: requestID},
|
||||
),
|
||||
returnValue: _i4.Future<int>.value(0),
|
||||
) as _i4.Future<int>);
|
||||
returnValue: _i5.Future<int>.value(0),
|
||||
) as _i5.Future<int>);
|
||||
@override
|
||||
_i4.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||
_i5.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getFeeRate,
|
||||
|
@ -360,10 +372,10 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
{#requestID: requestID},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i4.Future<Map<String, dynamic>>);
|
||||
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
||||
) as _i5.Future<Map<String, dynamic>>);
|
||||
@override
|
||||
_i4.Future<_i2.Decimal> estimateFee({
|
||||
_i5.Future<_i2.Decimal> estimateFee({
|
||||
String? requestID,
|
||||
required int? blocks,
|
||||
}) =>
|
||||
|
@ -376,7 +388,7 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
#blocks: blocks,
|
||||
},
|
||||
),
|
||||
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
||||
this,
|
||||
Invocation.method(
|
||||
#estimateFee,
|
||||
|
@ -387,15 +399,15 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
},
|
||||
),
|
||||
)),
|
||||
) as _i4.Future<_i2.Decimal>);
|
||||
) as _i5.Future<_i2.Decimal>);
|
||||
@override
|
||||
_i4.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||
_i5.Future<_i2.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#relayFee,
|
||||
[],
|
||||
{#requestID: requestID},
|
||||
),
|
||||
returnValue: _i4.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
||||
returnValue: _i5.Future<_i2.Decimal>.value(_FakeDecimal_1(
|
||||
this,
|
||||
Invocation.method(
|
||||
#relayFee,
|
||||
|
@ -403,13 +415,13 @@ class MockElectrumX extends _i1.Mock implements _i3.ElectrumX {
|
|||
{#requestID: requestID},
|
||||
),
|
||||
)),
|
||||
) as _i4.Future<_i2.Decimal>);
|
||||
) as _i5.Future<_i2.Decimal>);
|
||||
}
|
||||
|
||||
/// A class which mocks [Prefs].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
||||
class MockPrefs extends _i1.Mock implements _i6.Prefs {
|
||||
MockPrefs() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -465,12 +477,12 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i6.SyncingType get syncType => (super.noSuchMethod(
|
||||
_i7.SyncingType get syncType => (super.noSuchMethod(
|
||||
Invocation.getter(#syncType),
|
||||
returnValue: _i6.SyncingType.currentWalletOnly,
|
||||
) as _i6.SyncingType);
|
||||
returnValue: _i7.SyncingType.currentWalletOnly,
|
||||
) as _i7.SyncingType);
|
||||
@override
|
||||
set syncType(_i6.SyncingType? syncType) => super.noSuchMethod(
|
||||
set syncType(_i7.SyncingType? syncType) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#syncType,
|
||||
syncType,
|
||||
|
@ -629,12 +641,12 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i7.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
_i8.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
Invocation.getter(#backupFrequencyType),
|
||||
returnValue: _i7.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i7.BackupFrequencyType);
|
||||
returnValue: _i8.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i8.BackupFrequencyType);
|
||||
@override
|
||||
set backupFrequencyType(_i7.BackupFrequencyType? backupFrequencyType) =>
|
||||
set backupFrequencyType(_i8.BackupFrequencyType? backupFrequencyType) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#backupFrequencyType,
|
||||
|
@ -780,66 +792,82 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i3.FusionInfo get fusionServerInfo => (super.noSuchMethod(
|
||||
Invocation.getter(#fusionServerInfo),
|
||||
returnValue: _FakeFusionInfo_2(
|
||||
this,
|
||||
Invocation.getter(#fusionServerInfo),
|
||||
),
|
||||
) as _i3.FusionInfo);
|
||||
@override
|
||||
set fusionServerInfo(_i3.FusionInfo? fusionServerInfo) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#fusionServerInfo,
|
||||
fusionServerInfo,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
_i4.Future<void> init() => (super.noSuchMethod(
|
||||
_i5.Future<void> init() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#init,
|
||||
[],
|
||||
),
|
||||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i4.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||
_i5.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#incrementCurrentNotificationIndex,
|
||||
[],
|
||||
),
|
||||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i4.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||
_i5.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#isExternalCallsSet,
|
||||
[],
|
||||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
returnValue: _i5.Future<bool>.value(false),
|
||||
) as _i5.Future<bool>);
|
||||
@override
|
||||
_i4.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||
_i5.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#saveUserID,
|
||||
[userId],
|
||||
),
|
||||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i4.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||
_i5.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#saveSignupEpoch,
|
||||
[signupEpoch],
|
||||
),
|
||||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i8.AmountUnit amountUnit(_i9.Coin? coin) => (super.noSuchMethod(
|
||||
_i9.AmountUnit amountUnit(_i10.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#amountUnit,
|
||||
[coin],
|
||||
),
|
||||
returnValue: _i8.AmountUnit.normal,
|
||||
) as _i8.AmountUnit);
|
||||
returnValue: _i9.AmountUnit.normal,
|
||||
) as _i9.AmountUnit);
|
||||
@override
|
||||
void updateAmountUnit({
|
||||
required _i9.Coin? coin,
|
||||
required _i8.AmountUnit? amountUnit,
|
||||
required _i10.Coin? coin,
|
||||
required _i9.AmountUnit? amountUnit,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -853,7 +881,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
int maxDecimals(_i9.Coin? coin) => (super.noSuchMethod(
|
||||
int maxDecimals(_i10.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#maxDecimals,
|
||||
[coin],
|
||||
|
@ -862,7 +890,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
) as int);
|
||||
@override
|
||||
void updateMaxDecimals({
|
||||
required _i9.Coin? coin,
|
||||
required _i10.Coin? coin,
|
||||
required int? maxDecimals,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -877,7 +905,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void addListener(_i10.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -885,7 +913,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i10.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
|
|
@ -3,21 +3,23 @@
|
|||
// Do not manually edit this file.
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i4;
|
||||
import 'dart:io' as _i3;
|
||||
import 'dart:ui' as _i10;
|
||||
import 'dart:async' as _i5;
|
||||
import 'dart:io' as _i4;
|
||||
import 'dart:ui' as _i11;
|
||||
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:stackwallet/electrumx_rpc/rpc.dart' as _i2;
|
||||
import 'package:stackwallet/services/event_bus/events/global/tor_connection_status_changed_event.dart'
|
||||
as _i12;
|
||||
import 'package:stackwallet/services/tor_service.dart' as _i11;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i8;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i7;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i9;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i6;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i5;
|
||||
import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i13;
|
||||
as _i13;
|
||||
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart'
|
||||
as _i3;
|
||||
import 'package:stackwallet/services/tor_service.dart' as _i12;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i9;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i8;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i10;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i7;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i6;
|
||||
import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i14;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: avoid_redundant_argument_values
|
||||
|
@ -51,9 +53,19 @@ class _FakeJsonRPCResponse_1 extends _i1.SmartFake
|
|||
);
|
||||
}
|
||||
|
||||
class _FakeInternetAddress_2 extends _i1.SmartFake
|
||||
implements _i3.InternetAddress {
|
||||
_FakeInternetAddress_2(
|
||||
class _FakeFusionInfo_2 extends _i1.SmartFake implements _i3.FusionInfo {
|
||||
_FakeFusionInfo_2(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
parent,
|
||||
parentInvocation,
|
||||
);
|
||||
}
|
||||
|
||||
class _FakeInternetAddress_3 extends _i1.SmartFake
|
||||
implements _i4.InternetAddress {
|
||||
_FakeInternetAddress_3(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
|
@ -94,7 +106,7 @@ class MockJsonRPC extends _i1.Mock implements _i2.JsonRPC {
|
|||
),
|
||||
) as Duration);
|
||||
@override
|
||||
set proxyInfo(({_i3.InternetAddress host, int port})? _proxyInfo) =>
|
||||
set proxyInfo(({_i4.InternetAddress host, int port})? _proxyInfo) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#proxyInfo,
|
||||
|
@ -103,7 +115,7 @@ class MockJsonRPC extends _i1.Mock implements _i2.JsonRPC {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i4.Future<_i2.JsonRPCResponse> request(
|
||||
_i5.Future<_i2.JsonRPCResponse> request(
|
||||
String? jsonRpcRequest,
|
||||
Duration? requestTimeout,
|
||||
) =>
|
||||
|
@ -116,7 +128,7 @@ class MockJsonRPC extends _i1.Mock implements _i2.JsonRPC {
|
|||
],
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<_i2.JsonRPCResponse>.value(_FakeJsonRPCResponse_1(
|
||||
_i5.Future<_i2.JsonRPCResponse>.value(_FakeJsonRPCResponse_1(
|
||||
this,
|
||||
Invocation.method(
|
||||
#request,
|
||||
|
@ -126,32 +138,32 @@ class MockJsonRPC extends _i1.Mock implements _i2.JsonRPC {
|
|||
],
|
||||
),
|
||||
)),
|
||||
) as _i4.Future<_i2.JsonRPCResponse>);
|
||||
) as _i5.Future<_i2.JsonRPCResponse>);
|
||||
@override
|
||||
_i4.Future<void> disconnect({required String? reason}) => (super.noSuchMethod(
|
||||
_i5.Future<void> disconnect({required String? reason}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#disconnect,
|
||||
[],
|
||||
{#reason: reason},
|
||||
),
|
||||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i4.Future<void> connect() => (super.noSuchMethod(
|
||||
_i5.Future<void> connect() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#connect,
|
||||
[],
|
||||
),
|
||||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
}
|
||||
|
||||
/// A class which mocks [Prefs].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
||||
class MockPrefs extends _i1.Mock implements _i6.Prefs {
|
||||
MockPrefs() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -207,12 +219,12 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i6.SyncingType get syncType => (super.noSuchMethod(
|
||||
_i7.SyncingType get syncType => (super.noSuchMethod(
|
||||
Invocation.getter(#syncType),
|
||||
returnValue: _i6.SyncingType.currentWalletOnly,
|
||||
) as _i6.SyncingType);
|
||||
returnValue: _i7.SyncingType.currentWalletOnly,
|
||||
) as _i7.SyncingType);
|
||||
@override
|
||||
set syncType(_i6.SyncingType? syncType) => super.noSuchMethod(
|
||||
set syncType(_i7.SyncingType? syncType) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#syncType,
|
||||
syncType,
|
||||
|
@ -371,12 +383,12 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i7.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
_i8.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
Invocation.getter(#backupFrequencyType),
|
||||
returnValue: _i7.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i7.BackupFrequencyType);
|
||||
returnValue: _i8.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i8.BackupFrequencyType);
|
||||
@override
|
||||
set backupFrequencyType(_i7.BackupFrequencyType? backupFrequencyType) =>
|
||||
set backupFrequencyType(_i8.BackupFrequencyType? backupFrequencyType) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#backupFrequencyType,
|
||||
|
@ -522,66 +534,82 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i3.FusionInfo get fusionServerInfo => (super.noSuchMethod(
|
||||
Invocation.getter(#fusionServerInfo),
|
||||
returnValue: _FakeFusionInfo_2(
|
||||
this,
|
||||
Invocation.getter(#fusionServerInfo),
|
||||
),
|
||||
) as _i3.FusionInfo);
|
||||
@override
|
||||
set fusionServerInfo(_i3.FusionInfo? fusionServerInfo) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#fusionServerInfo,
|
||||
fusionServerInfo,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
_i4.Future<void> init() => (super.noSuchMethod(
|
||||
_i5.Future<void> init() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#init,
|
||||
[],
|
||||
),
|
||||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i4.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||
_i5.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#incrementCurrentNotificationIndex,
|
||||
[],
|
||||
),
|
||||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i4.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||
_i5.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#isExternalCallsSet,
|
||||
[],
|
||||
),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
) as _i4.Future<bool>);
|
||||
returnValue: _i5.Future<bool>.value(false),
|
||||
) as _i5.Future<bool>);
|
||||
@override
|
||||
_i4.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||
_i5.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#saveUserID,
|
||||
[userId],
|
||||
),
|
||||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i4.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||
_i5.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#saveSignupEpoch,
|
||||
[signupEpoch],
|
||||
),
|
||||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i8.AmountUnit amountUnit(_i9.Coin? coin) => (super.noSuchMethod(
|
||||
_i9.AmountUnit amountUnit(_i10.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#amountUnit,
|
||||
[coin],
|
||||
),
|
||||
returnValue: _i8.AmountUnit.normal,
|
||||
) as _i8.AmountUnit);
|
||||
returnValue: _i9.AmountUnit.normal,
|
||||
) as _i9.AmountUnit);
|
||||
@override
|
||||
void updateAmountUnit({
|
||||
required _i9.Coin? coin,
|
||||
required _i8.AmountUnit? amountUnit,
|
||||
required _i10.Coin? coin,
|
||||
required _i9.AmountUnit? amountUnit,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -595,7 +623,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
int maxDecimals(_i9.Coin? coin) => (super.noSuchMethod(
|
||||
int maxDecimals(_i10.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#maxDecimals,
|
||||
[coin],
|
||||
|
@ -604,7 +632,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
) as int);
|
||||
@override
|
||||
void updateMaxDecimals({
|
||||
required _i9.Coin? coin,
|
||||
required _i10.Coin? coin,
|
||||
required int? maxDecimals,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -619,7 +647,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void addListener(_i10.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -627,7 +655,7 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i10.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -655,24 +683,24 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
/// A class which mocks [TorService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockTorService extends _i1.Mock implements _i11.TorService {
|
||||
class MockTorService extends _i1.Mock implements _i12.TorService {
|
||||
MockTorService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i12.TorConnectionStatus get status => (super.noSuchMethod(
|
||||
_i13.TorConnectionStatus get status => (super.noSuchMethod(
|
||||
Invocation.getter(#status),
|
||||
returnValue: _i12.TorConnectionStatus.disconnected,
|
||||
) as _i12.TorConnectionStatus);
|
||||
returnValue: _i13.TorConnectionStatus.disconnected,
|
||||
) as _i13.TorConnectionStatus);
|
||||
@override
|
||||
({_i3.InternetAddress host, int port}) getProxyInfo() => (super.noSuchMethod(
|
||||
({_i4.InternetAddress host, int port}) getProxyInfo() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getProxyInfo,
|
||||
[],
|
||||
),
|
||||
returnValue: (
|
||||
host: _FakeInternetAddress_2(
|
||||
host: _FakeInternetAddress_3(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getProxyInfo,
|
||||
|
@ -681,11 +709,11 @@ class MockTorService extends _i1.Mock implements _i11.TorService {
|
|||
),
|
||||
port: 0
|
||||
),
|
||||
) as ({_i3.InternetAddress host, int port}));
|
||||
) as ({_i4.InternetAddress host, int port}));
|
||||
@override
|
||||
void init({
|
||||
required String? torDataDirPath,
|
||||
_i13.Tor? mockableOverride,
|
||||
_i14.Tor? mockableOverride,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -699,21 +727,21 @@ class MockTorService extends _i1.Mock implements _i11.TorService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i4.Future<void> start() => (super.noSuchMethod(
|
||||
_i5.Future<void> start() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#start,
|
||||
[],
|
||||
),
|
||||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
@override
|
||||
_i4.Future<void> disable() => (super.noSuchMethod(
|
||||
_i5.Future<void> disable() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#disable,
|
||||
[],
|
||||
),
|
||||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -401,6 +401,11 @@ class MockManager extends _i1.Mock implements _i12.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -362,6 +362,11 @@ class MockManager extends _i1.Mock implements _i10.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -360,6 +360,11 @@ class MockManager extends _i1.Mock implements _i10.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -3,38 +3,40 @@
|
|||
// Do not manually edit this file.
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i7;
|
||||
import 'dart:ui' as _i10;
|
||||
import 'dart:async' as _i8;
|
||||
import 'dart:ui' as _i11;
|
||||
|
||||
import 'package:decimal/decimal.dart' as _i16;
|
||||
import 'package:decimal/decimal.dart' as _i17;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:stackwallet/models/exchange/change_now/cn_exchange_estimate.dart'
|
||||
as _i19;
|
||||
import 'package:stackwallet/models/exchange/change_now/exchange_transaction.dart'
|
||||
as _i21;
|
||||
import 'package:stackwallet/models/exchange/change_now/exchange_transaction_status.dart'
|
||||
as _i22;
|
||||
import 'package:stackwallet/models/exchange/response_objects/estimate.dart'
|
||||
as _i18;
|
||||
import 'package:stackwallet/models/exchange/response_objects/fixed_rate_market.dart'
|
||||
as _i20;
|
||||
import 'package:stackwallet/models/exchange/change_now/exchange_transaction.dart'
|
||||
as _i22;
|
||||
import 'package:stackwallet/models/exchange/change_now/exchange_transaction_status.dart'
|
||||
as _i23;
|
||||
import 'package:stackwallet/models/exchange/response_objects/estimate.dart'
|
||||
as _i19;
|
||||
import 'package:stackwallet/models/exchange/response_objects/fixed_rate_market.dart'
|
||||
as _i21;
|
||||
import 'package:stackwallet/models/exchange/response_objects/range.dart'
|
||||
as _i17;
|
||||
as _i18;
|
||||
import 'package:stackwallet/models/exchange/response_objects/trade.dart'
|
||||
as _i12;
|
||||
import 'package:stackwallet/models/isar/exchange_cache/currency.dart' as _i15;
|
||||
import 'package:stackwallet/models/isar/exchange_cache/pair.dart' as _i23;
|
||||
import 'package:stackwallet/networking/http.dart' as _i2;
|
||||
as _i13;
|
||||
import 'package:stackwallet/models/isar/exchange_cache/currency.dart' as _i16;
|
||||
import 'package:stackwallet/models/isar/exchange_cache/pair.dart' as _i24;
|
||||
import 'package:stackwallet/networking/http.dart' as _i3;
|
||||
import 'package:stackwallet/services/exchange/change_now/change_now_api.dart'
|
||||
as _i14;
|
||||
import 'package:stackwallet/services/exchange/exchange_response.dart' as _i3;
|
||||
import 'package:stackwallet/services/trade_notes_service.dart' as _i13;
|
||||
import 'package:stackwallet/services/trade_service.dart' as _i11;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i8;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i6;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i9;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i5;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i4;
|
||||
as _i15;
|
||||
import 'package:stackwallet/services/exchange/exchange_response.dart' as _i4;
|
||||
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart'
|
||||
as _i2;
|
||||
import 'package:stackwallet/services/trade_notes_service.dart' as _i14;
|
||||
import 'package:stackwallet/services/trade_service.dart' as _i12;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i9;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i7;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i10;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i6;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i5;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: avoid_redundant_argument_values
|
||||
|
@ -47,8 +49,8 @@ import 'package:stackwallet/utilities/prefs.dart' as _i4;
|
|||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
|
||||
class _FakeHTTP_0 extends _i1.SmartFake implements _i2.HTTP {
|
||||
_FakeHTTP_0(
|
||||
class _FakeFusionInfo_0 extends _i1.SmartFake implements _i2.FusionInfo {
|
||||
_FakeFusionInfo_0(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
|
@ -57,9 +59,19 @@ class _FakeHTTP_0 extends _i1.SmartFake implements _i2.HTTP {
|
|||
);
|
||||
}
|
||||
|
||||
class _FakeExchangeResponse_1<T> extends _i1.SmartFake
|
||||
implements _i3.ExchangeResponse<T> {
|
||||
_FakeExchangeResponse_1(
|
||||
class _FakeHTTP_1 extends _i1.SmartFake implements _i3.HTTP {
|
||||
_FakeHTTP_1(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
parent,
|
||||
parentInvocation,
|
||||
);
|
||||
}
|
||||
|
||||
class _FakeExchangeResponse_2<T> extends _i1.SmartFake
|
||||
implements _i4.ExchangeResponse<T> {
|
||||
_FakeExchangeResponse_2(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
|
@ -71,7 +83,7 @@ class _FakeExchangeResponse_1<T> extends _i1.SmartFake
|
|||
/// A class which mocks [Prefs].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
||||
class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
||||
MockPrefs() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -127,12 +139,12 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i5.SyncingType get syncType => (super.noSuchMethod(
|
||||
_i6.SyncingType get syncType => (super.noSuchMethod(
|
||||
Invocation.getter(#syncType),
|
||||
returnValue: _i5.SyncingType.currentWalletOnly,
|
||||
) as _i5.SyncingType);
|
||||
returnValue: _i6.SyncingType.currentWalletOnly,
|
||||
) as _i6.SyncingType);
|
||||
@override
|
||||
set syncType(_i5.SyncingType? syncType) => super.noSuchMethod(
|
||||
set syncType(_i6.SyncingType? syncType) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#syncType,
|
||||
syncType,
|
||||
|
@ -291,12 +303,12 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i6.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
_i7.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
Invocation.getter(#backupFrequencyType),
|
||||
returnValue: _i6.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i6.BackupFrequencyType);
|
||||
returnValue: _i7.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i7.BackupFrequencyType);
|
||||
@override
|
||||
set backupFrequencyType(_i6.BackupFrequencyType? backupFrequencyType) =>
|
||||
set backupFrequencyType(_i7.BackupFrequencyType? backupFrequencyType) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#backupFrequencyType,
|
||||
|
@ -442,66 +454,82 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i2.FusionInfo get fusionServerInfo => (super.noSuchMethod(
|
||||
Invocation.getter(#fusionServerInfo),
|
||||
returnValue: _FakeFusionInfo_0(
|
||||
this,
|
||||
Invocation.getter(#fusionServerInfo),
|
||||
),
|
||||
) as _i2.FusionInfo);
|
||||
@override
|
||||
set fusionServerInfo(_i2.FusionInfo? fusionServerInfo) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#fusionServerInfo,
|
||||
fusionServerInfo,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
_i7.Future<void> init() => (super.noSuchMethod(
|
||||
_i8.Future<void> init() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#init,
|
||||
[],
|
||||
),
|
||||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
@override
|
||||
_i7.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||
_i8.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#incrementCurrentNotificationIndex,
|
||||
[],
|
||||
),
|
||||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
@override
|
||||
_i7.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||
_i8.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#isExternalCallsSet,
|
||||
[],
|
||||
),
|
||||
returnValue: _i7.Future<bool>.value(false),
|
||||
) as _i7.Future<bool>);
|
||||
returnValue: _i8.Future<bool>.value(false),
|
||||
) as _i8.Future<bool>);
|
||||
@override
|
||||
_i7.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||
_i8.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#saveUserID,
|
||||
[userId],
|
||||
),
|
||||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
@override
|
||||
_i7.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||
_i8.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#saveSignupEpoch,
|
||||
[signupEpoch],
|
||||
),
|
||||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
@override
|
||||
_i8.AmountUnit amountUnit(_i9.Coin? coin) => (super.noSuchMethod(
|
||||
_i9.AmountUnit amountUnit(_i10.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#amountUnit,
|
||||
[coin],
|
||||
),
|
||||
returnValue: _i8.AmountUnit.normal,
|
||||
) as _i8.AmountUnit);
|
||||
returnValue: _i9.AmountUnit.normal,
|
||||
) as _i9.AmountUnit);
|
||||
@override
|
||||
void updateAmountUnit({
|
||||
required _i9.Coin? coin,
|
||||
required _i8.AmountUnit? amountUnit,
|
||||
required _i10.Coin? coin,
|
||||
required _i9.AmountUnit? amountUnit,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -515,7 +543,7 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
int maxDecimals(_i9.Coin? coin) => (super.noSuchMethod(
|
||||
int maxDecimals(_i10.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#maxDecimals,
|
||||
[coin],
|
||||
|
@ -524,7 +552,7 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
|||
) as int);
|
||||
@override
|
||||
void updateMaxDecimals({
|
||||
required _i9.Coin? coin,
|
||||
required _i10.Coin? coin,
|
||||
required int? maxDecimals,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -539,7 +567,7 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void addListener(_i10.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -547,7 +575,7 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i10.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -575,29 +603,29 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
|||
/// A class which mocks [TradesService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockTradesService extends _i1.Mock implements _i11.TradesService {
|
||||
class MockTradesService extends _i1.Mock implements _i12.TradesService {
|
||||
MockTradesService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
List<_i12.Trade> get trades => (super.noSuchMethod(
|
||||
List<_i13.Trade> get trades => (super.noSuchMethod(
|
||||
Invocation.getter(#trades),
|
||||
returnValue: <_i12.Trade>[],
|
||||
) as List<_i12.Trade>);
|
||||
returnValue: <_i13.Trade>[],
|
||||
) as List<_i13.Trade>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
_i12.Trade? get(String? tradeId) => (super.noSuchMethod(Invocation.method(
|
||||
_i13.Trade? get(String? tradeId) => (super.noSuchMethod(Invocation.method(
|
||||
#get,
|
||||
[tradeId],
|
||||
)) as _i12.Trade?);
|
||||
)) as _i13.Trade?);
|
||||
@override
|
||||
_i7.Future<void> add({
|
||||
required _i12.Trade? trade,
|
||||
_i8.Future<void> add({
|
||||
required _i13.Trade? trade,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -609,12 +637,12 @@ class MockTradesService extends _i1.Mock implements _i11.TradesService {
|
|||
#shouldNotifyListeners: shouldNotifyListeners,
|
||||
},
|
||||
),
|
||||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
@override
|
||||
_i7.Future<void> edit({
|
||||
required _i12.Trade? trade,
|
||||
_i8.Future<void> edit({
|
||||
required _i13.Trade? trade,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -626,12 +654,12 @@ class MockTradesService extends _i1.Mock implements _i11.TradesService {
|
|||
#shouldNotifyListeners: shouldNotifyListeners,
|
||||
},
|
||||
),
|
||||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
@override
|
||||
_i7.Future<void> delete({
|
||||
required _i12.Trade? trade,
|
||||
_i8.Future<void> delete({
|
||||
required _i13.Trade? trade,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -643,11 +671,11 @@ class MockTradesService extends _i1.Mock implements _i11.TradesService {
|
|||
#shouldNotifyListeners: shouldNotifyListeners,
|
||||
},
|
||||
),
|
||||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
@override
|
||||
_i7.Future<void> deleteByUuid({
|
||||
_i8.Future<void> deleteByUuid({
|
||||
required String? uuid,
|
||||
required bool? shouldNotifyListeners,
|
||||
}) =>
|
||||
|
@ -660,11 +688,11 @@ class MockTradesService extends _i1.Mock implements _i11.TradesService {
|
|||
#shouldNotifyListeners: shouldNotifyListeners,
|
||||
},
|
||||
),
|
||||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
@override
|
||||
void addListener(_i10.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -672,7 +700,7 @@ class MockTradesService extends _i1.Mock implements _i11.TradesService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i10.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -700,7 +728,7 @@ class MockTradesService extends _i1.Mock implements _i11.TradesService {
|
|||
/// A class which mocks [TradeNotesService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockTradeNotesService extends _i1.Mock implements _i13.TradeNotesService {
|
||||
class MockTradeNotesService extends _i1.Mock implements _i14.TradeNotesService {
|
||||
MockTradeNotesService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -725,7 +753,7 @@ class MockTradeNotesService extends _i1.Mock implements _i13.TradeNotesService {
|
|||
returnValue: '',
|
||||
) as String);
|
||||
@override
|
||||
_i7.Future<void> set({
|
||||
_i8.Future<void> set({
|
||||
required String? tradeId,
|
||||
required String? note,
|
||||
}) =>
|
||||
|
@ -738,21 +766,21 @@ class MockTradeNotesService extends _i1.Mock implements _i13.TradeNotesService {
|
|||
#note: note,
|
||||
},
|
||||
),
|
||||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
@override
|
||||
_i7.Future<void> delete({required String? tradeId}) => (super.noSuchMethod(
|
||||
_i8.Future<void> delete({required String? tradeId}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#delete,
|
||||
[],
|
||||
{#tradeId: tradeId},
|
||||
),
|
||||
returnValue: _i7.Future<void>.value(),
|
||||
returnValueForMissingStub: _i7.Future<void>.value(),
|
||||
) as _i7.Future<void>);
|
||||
returnValue: _i8.Future<void>.value(),
|
||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
||||
) as _i8.Future<void>);
|
||||
@override
|
||||
void addListener(_i10.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -760,7 +788,7 @@ class MockTradeNotesService extends _i1.Mock implements _i13.TradeNotesService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i10.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i11.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -788,21 +816,21 @@ class MockTradeNotesService extends _i1.Mock implements _i13.TradeNotesService {
|
|||
/// A class which mocks [ChangeNowAPI].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
||||
class MockChangeNowAPI extends _i1.Mock implements _i15.ChangeNowAPI {
|
||||
MockChangeNowAPI() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i2.HTTP get client => (super.noSuchMethod(
|
||||
_i3.HTTP get client => (super.noSuchMethod(
|
||||
Invocation.getter(#client),
|
||||
returnValue: _FakeHTTP_0(
|
||||
returnValue: _FakeHTTP_1(
|
||||
this,
|
||||
Invocation.getter(#client),
|
||||
),
|
||||
) as _i2.HTTP);
|
||||
) as _i3.HTTP);
|
||||
@override
|
||||
_i7.Future<_i3.ExchangeResponse<List<_i15.Currency>>> getAvailableCurrencies({
|
||||
_i8.Future<_i4.ExchangeResponse<List<_i16.Currency>>> getAvailableCurrencies({
|
||||
bool? fixedRate,
|
||||
bool? active,
|
||||
}) =>
|
||||
|
@ -816,8 +844,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
},
|
||||
),
|
||||
returnValue:
|
||||
_i7.Future<_i3.ExchangeResponse<List<_i15.Currency>>>.value(
|
||||
_FakeExchangeResponse_1<List<_i15.Currency>>(
|
||||
_i8.Future<_i4.ExchangeResponse<List<_i16.Currency>>>.value(
|
||||
_FakeExchangeResponse_2<List<_i16.Currency>>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getAvailableCurrencies,
|
||||
|
@ -828,26 +856,26 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
},
|
||||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.ExchangeResponse<List<_i15.Currency>>>);
|
||||
) as _i8.Future<_i4.ExchangeResponse<List<_i16.Currency>>>);
|
||||
@override
|
||||
_i7.Future<_i3.ExchangeResponse<List<_i15.Currency>>> getCurrenciesV2() =>
|
||||
_i8.Future<_i4.ExchangeResponse<List<_i16.Currency>>> getCurrenciesV2() =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getCurrenciesV2,
|
||||
[],
|
||||
),
|
||||
returnValue:
|
||||
_i7.Future<_i3.ExchangeResponse<List<_i15.Currency>>>.value(
|
||||
_FakeExchangeResponse_1<List<_i15.Currency>>(
|
||||
_i8.Future<_i4.ExchangeResponse<List<_i16.Currency>>>.value(
|
||||
_FakeExchangeResponse_2<List<_i16.Currency>>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getCurrenciesV2,
|
||||
[],
|
||||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.ExchangeResponse<List<_i15.Currency>>>);
|
||||
) as _i8.Future<_i4.ExchangeResponse<List<_i16.Currency>>>);
|
||||
@override
|
||||
_i7.Future<_i3.ExchangeResponse<List<_i15.Currency>>> getPairedCurrencies({
|
||||
_i8.Future<_i4.ExchangeResponse<List<_i16.Currency>>> getPairedCurrencies({
|
||||
required String? ticker,
|
||||
bool? fixedRate,
|
||||
}) =>
|
||||
|
@ -861,8 +889,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
},
|
||||
),
|
||||
returnValue:
|
||||
_i7.Future<_i3.ExchangeResponse<List<_i15.Currency>>>.value(
|
||||
_FakeExchangeResponse_1<List<_i15.Currency>>(
|
||||
_i8.Future<_i4.ExchangeResponse<List<_i16.Currency>>>.value(
|
||||
_FakeExchangeResponse_2<List<_i16.Currency>>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getPairedCurrencies,
|
||||
|
@ -873,9 +901,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
},
|
||||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.ExchangeResponse<List<_i15.Currency>>>);
|
||||
) as _i8.Future<_i4.ExchangeResponse<List<_i16.Currency>>>);
|
||||
@override
|
||||
_i7.Future<_i3.ExchangeResponse<_i16.Decimal>> getMinimalExchangeAmount({
|
||||
_i8.Future<_i4.ExchangeResponse<_i17.Decimal>> getMinimalExchangeAmount({
|
||||
required String? fromTicker,
|
||||
required String? toTicker,
|
||||
String? apiKey,
|
||||
|
@ -890,8 +918,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
#apiKey: apiKey,
|
||||
},
|
||||
),
|
||||
returnValue: _i7.Future<_i3.ExchangeResponse<_i16.Decimal>>.value(
|
||||
_FakeExchangeResponse_1<_i16.Decimal>(
|
||||
returnValue: _i8.Future<_i4.ExchangeResponse<_i17.Decimal>>.value(
|
||||
_FakeExchangeResponse_2<_i17.Decimal>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getMinimalExchangeAmount,
|
||||
|
@ -903,9 +931,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
},
|
||||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.ExchangeResponse<_i16.Decimal>>);
|
||||
) as _i8.Future<_i4.ExchangeResponse<_i17.Decimal>>);
|
||||
@override
|
||||
_i7.Future<_i3.ExchangeResponse<_i17.Range>> getRange({
|
||||
_i8.Future<_i4.ExchangeResponse<_i18.Range>> getRange({
|
||||
required String? fromTicker,
|
||||
required String? toTicker,
|
||||
required bool? isFixedRate,
|
||||
|
@ -922,8 +950,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
#apiKey: apiKey,
|
||||
},
|
||||
),
|
||||
returnValue: _i7.Future<_i3.ExchangeResponse<_i17.Range>>.value(
|
||||
_FakeExchangeResponse_1<_i17.Range>(
|
||||
returnValue: _i8.Future<_i4.ExchangeResponse<_i18.Range>>.value(
|
||||
_FakeExchangeResponse_2<_i18.Range>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getRange,
|
||||
|
@ -936,12 +964,12 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
},
|
||||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.ExchangeResponse<_i17.Range>>);
|
||||
) as _i8.Future<_i4.ExchangeResponse<_i18.Range>>);
|
||||
@override
|
||||
_i7.Future<_i3.ExchangeResponse<_i18.Estimate>> getEstimatedExchangeAmount({
|
||||
_i8.Future<_i4.ExchangeResponse<_i19.Estimate>> getEstimatedExchangeAmount({
|
||||
required String? fromTicker,
|
||||
required String? toTicker,
|
||||
required _i16.Decimal? fromAmount,
|
||||
required _i17.Decimal? fromAmount,
|
||||
String? apiKey,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -955,8 +983,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
#apiKey: apiKey,
|
||||
},
|
||||
),
|
||||
returnValue: _i7.Future<_i3.ExchangeResponse<_i18.Estimate>>.value(
|
||||
_FakeExchangeResponse_1<_i18.Estimate>(
|
||||
returnValue: _i8.Future<_i4.ExchangeResponse<_i19.Estimate>>.value(
|
||||
_FakeExchangeResponse_2<_i19.Estimate>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getEstimatedExchangeAmount,
|
||||
|
@ -969,13 +997,13 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
},
|
||||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.ExchangeResponse<_i18.Estimate>>);
|
||||
) as _i8.Future<_i4.ExchangeResponse<_i19.Estimate>>);
|
||||
@override
|
||||
_i7.Future<_i3.ExchangeResponse<_i18.Estimate>>
|
||||
_i8.Future<_i4.ExchangeResponse<_i19.Estimate>>
|
||||
getEstimatedExchangeAmountFixedRate({
|
||||
required String? fromTicker,
|
||||
required String? toTicker,
|
||||
required _i16.Decimal? fromAmount,
|
||||
required _i17.Decimal? fromAmount,
|
||||
required bool? reversed,
|
||||
bool? useRateId = true,
|
||||
String? apiKey,
|
||||
|
@ -993,8 +1021,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
#apiKey: apiKey,
|
||||
},
|
||||
),
|
||||
returnValue: _i7.Future<_i3.ExchangeResponse<_i18.Estimate>>.value(
|
||||
_FakeExchangeResponse_1<_i18.Estimate>(
|
||||
returnValue: _i8.Future<_i4.ExchangeResponse<_i19.Estimate>>.value(
|
||||
_FakeExchangeResponse_2<_i19.Estimate>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getEstimatedExchangeAmountFixedRate,
|
||||
|
@ -1009,17 +1037,17 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
},
|
||||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.ExchangeResponse<_i18.Estimate>>);
|
||||
) as _i8.Future<_i4.ExchangeResponse<_i19.Estimate>>);
|
||||
@override
|
||||
_i7.Future<_i3.ExchangeResponse<_i19.CNExchangeEstimate>>
|
||||
_i8.Future<_i4.ExchangeResponse<_i20.CNExchangeEstimate>>
|
||||
getEstimatedExchangeAmountV2({
|
||||
required String? fromTicker,
|
||||
required String? toTicker,
|
||||
required _i19.CNEstimateType? fromOrTo,
|
||||
required _i16.Decimal? amount,
|
||||
required _i20.CNEstimateType? fromOrTo,
|
||||
required _i17.Decimal? amount,
|
||||
String? fromNetwork,
|
||||
String? toNetwork,
|
||||
_i19.CNFlowType? flow = _i19.CNFlowType.standard,
|
||||
_i20.CNFlowType? flow = _i20.CNFlowType.standard,
|
||||
String? apiKey,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -1038,8 +1066,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
},
|
||||
),
|
||||
returnValue:
|
||||
_i7.Future<_i3.ExchangeResponse<_i19.CNExchangeEstimate>>.value(
|
||||
_FakeExchangeResponse_1<_i19.CNExchangeEstimate>(
|
||||
_i8.Future<_i4.ExchangeResponse<_i20.CNExchangeEstimate>>.value(
|
||||
_FakeExchangeResponse_2<_i20.CNExchangeEstimate>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getEstimatedExchangeAmountV2,
|
||||
|
@ -1056,18 +1084,18 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
},
|
||||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.ExchangeResponse<_i19.CNExchangeEstimate>>);
|
||||
) as _i8.Future<_i4.ExchangeResponse<_i20.CNExchangeEstimate>>);
|
||||
@override
|
||||
_i7.Future<_i3.ExchangeResponse<List<_i20.FixedRateMarket>>>
|
||||
_i8.Future<_i4.ExchangeResponse<List<_i21.FixedRateMarket>>>
|
||||
getAvailableFixedRateMarkets({String? apiKey}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getAvailableFixedRateMarkets,
|
||||
[],
|
||||
{#apiKey: apiKey},
|
||||
),
|
||||
returnValue: _i7
|
||||
.Future<_i3.ExchangeResponse<List<_i20.FixedRateMarket>>>.value(
|
||||
_FakeExchangeResponse_1<List<_i20.FixedRateMarket>>(
|
||||
returnValue: _i8
|
||||
.Future<_i4.ExchangeResponse<List<_i21.FixedRateMarket>>>.value(
|
||||
_FakeExchangeResponse_2<List<_i21.FixedRateMarket>>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getAvailableFixedRateMarkets,
|
||||
|
@ -1075,14 +1103,14 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
{#apiKey: apiKey},
|
||||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.ExchangeResponse<List<_i20.FixedRateMarket>>>);
|
||||
) as _i8.Future<_i4.ExchangeResponse<List<_i21.FixedRateMarket>>>);
|
||||
@override
|
||||
_i7.Future<_i3.ExchangeResponse<_i21.ExchangeTransaction>>
|
||||
_i8.Future<_i4.ExchangeResponse<_i22.ExchangeTransaction>>
|
||||
createStandardExchangeTransaction({
|
||||
required String? fromTicker,
|
||||
required String? toTicker,
|
||||
required String? receivingAddress,
|
||||
required _i16.Decimal? amount,
|
||||
required _i17.Decimal? amount,
|
||||
String? extraId = r'',
|
||||
String? userId = r'',
|
||||
String? contactEmail = r'',
|
||||
|
@ -1107,9 +1135,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
#apiKey: apiKey,
|
||||
},
|
||||
),
|
||||
returnValue: _i7
|
||||
.Future<_i3.ExchangeResponse<_i21.ExchangeTransaction>>.value(
|
||||
_FakeExchangeResponse_1<_i21.ExchangeTransaction>(
|
||||
returnValue: _i8
|
||||
.Future<_i4.ExchangeResponse<_i22.ExchangeTransaction>>.value(
|
||||
_FakeExchangeResponse_2<_i22.ExchangeTransaction>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#createStandardExchangeTransaction,
|
||||
|
@ -1128,14 +1156,14 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
},
|
||||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.ExchangeResponse<_i21.ExchangeTransaction>>);
|
||||
) as _i8.Future<_i4.ExchangeResponse<_i22.ExchangeTransaction>>);
|
||||
@override
|
||||
_i7.Future<_i3.ExchangeResponse<_i21.ExchangeTransaction>>
|
||||
_i8.Future<_i4.ExchangeResponse<_i22.ExchangeTransaction>>
|
||||
createFixedRateExchangeTransaction({
|
||||
required String? fromTicker,
|
||||
required String? toTicker,
|
||||
required String? receivingAddress,
|
||||
required _i16.Decimal? amount,
|
||||
required _i17.Decimal? amount,
|
||||
required String? rateId,
|
||||
required bool? reversed,
|
||||
String? extraId = r'',
|
||||
|
@ -1164,9 +1192,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
#apiKey: apiKey,
|
||||
},
|
||||
),
|
||||
returnValue: _i7
|
||||
.Future<_i3.ExchangeResponse<_i21.ExchangeTransaction>>.value(
|
||||
_FakeExchangeResponse_1<_i21.ExchangeTransaction>(
|
||||
returnValue: _i8
|
||||
.Future<_i4.ExchangeResponse<_i22.ExchangeTransaction>>.value(
|
||||
_FakeExchangeResponse_2<_i22.ExchangeTransaction>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#createFixedRateExchangeTransaction,
|
||||
|
@ -1187,11 +1215,11 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
},
|
||||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.ExchangeResponse<_i21.ExchangeTransaction>>);
|
||||
) as _i8.Future<_i4.ExchangeResponse<_i22.ExchangeTransaction>>);
|
||||
@override
|
||||
_i7.Future<
|
||||
_i3
|
||||
.ExchangeResponse<_i22.ExchangeTransactionStatus>> getTransactionStatus({
|
||||
_i8.Future<
|
||||
_i4
|
||||
.ExchangeResponse<_i23.ExchangeTransactionStatus>> getTransactionStatus({
|
||||
required String? id,
|
||||
String? apiKey,
|
||||
}) =>
|
||||
|
@ -1204,9 +1232,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
#apiKey: apiKey,
|
||||
},
|
||||
),
|
||||
returnValue: _i7
|
||||
.Future<_i3.ExchangeResponse<_i22.ExchangeTransactionStatus>>.value(
|
||||
_FakeExchangeResponse_1<_i22.ExchangeTransactionStatus>(
|
||||
returnValue: _i8
|
||||
.Future<_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>.value(
|
||||
_FakeExchangeResponse_2<_i23.ExchangeTransactionStatus>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getTransactionStatus,
|
||||
|
@ -1217,9 +1245,9 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
},
|
||||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.ExchangeResponse<_i22.ExchangeTransactionStatus>>);
|
||||
) as _i8.Future<_i4.ExchangeResponse<_i23.ExchangeTransactionStatus>>);
|
||||
@override
|
||||
_i7.Future<_i3.ExchangeResponse<List<_i23.Pair>>>
|
||||
_i8.Future<_i4.ExchangeResponse<List<_i24.Pair>>>
|
||||
getAvailableFloatingRatePairs({bool? includePartners = false}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1228,8 +1256,8 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
{#includePartners: includePartners},
|
||||
),
|
||||
returnValue:
|
||||
_i7.Future<_i3.ExchangeResponse<List<_i23.Pair>>>.value(
|
||||
_FakeExchangeResponse_1<List<_i23.Pair>>(
|
||||
_i8.Future<_i4.ExchangeResponse<List<_i24.Pair>>>.value(
|
||||
_FakeExchangeResponse_2<List<_i24.Pair>>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getAvailableFloatingRatePairs,
|
||||
|
@ -1237,5 +1265,5 @@ class MockChangeNowAPI extends _i1.Mock implements _i14.ChangeNowAPI {
|
|||
{#includePartners: includePartners},
|
||||
),
|
||||
)),
|
||||
) as _i7.Future<_i3.ExchangeResponse<List<_i23.Pair>>>);
|
||||
) as _i8.Future<_i4.ExchangeResponse<List<_i24.Pair>>>);
|
||||
}
|
||||
|
|
|
@ -680,6 +680,11 @@ class MockManager extends _i1.Mock implements _i13.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -467,6 +467,11 @@ class MockManager extends _i1.Mock implements _i10.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -467,6 +467,11 @@ class MockManager extends _i1.Mock implements _i10.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -467,6 +467,11 @@ class MockManager extends _i1.Mock implements _i10.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -234,6 +234,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -465,6 +465,11 @@ class MockManager extends _i1.Mock implements _i10.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -680,6 +680,11 @@ class MockManager extends _i1.Mock implements _i13.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -521,6 +521,11 @@ class MockManager extends _i1.Mock implements _i13.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -234,6 +234,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -234,6 +234,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -449,6 +449,11 @@ class MockManager extends _i1.Mock implements _i12.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -449,6 +449,11 @@ class MockManager extends _i1.Mock implements _i12.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -234,6 +234,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -234,6 +234,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -465,6 +465,11 @@ class MockManager extends _i1.Mock implements _i10.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -701,6 +701,11 @@ class MockManager extends _i1.Mock implements _i15.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -465,6 +465,11 @@ class MockManager extends _i1.Mock implements _i10.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -236,6 +236,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -235,6 +235,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -234,6 +234,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -276,6 +276,11 @@ class MockManager extends _i1.Mock implements _i9.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -236,6 +236,11 @@ class MockManager extends _i1.Mock implements _i6.Manager {
|
|||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
bool get hasFusionSupport => (super.noSuchMethod(
|
||||
Invocation.getter(#hasFusionSupport),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
int get rescanOnOpenVersion => (super.noSuchMethod(
|
||||
Invocation.getter(#rescanOnOpenVersion),
|
||||
returnValue: 0,
|
||||
|
|
|
@ -855,6 +855,33 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
|
|||
),
|
||||
) as _i4.QueryBuilder<_i12.UTXO, _i12.UTXO, _i4.QAfterWhereClause>);
|
||||
@override
|
||||
_i4.QueryBuilder<_i12.UTXO, _i12.UTXO, _i4.QAfterFilterCondition>
|
||||
getUTXOsByAddress(
|
||||
String? walletId,
|
||||
String? address,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getUTXOsByAddress,
|
||||
[
|
||||
walletId,
|
||||
address,
|
||||
],
|
||||
),
|
||||
returnValue: _FakeQueryBuilder_4<_i12.UTXO, _i12.UTXO,
|
||||
_i4.QAfterFilterCondition>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getUTXOsByAddress,
|
||||
[
|
||||
walletId,
|
||||
address,
|
||||
],
|
||||
),
|
||||
),
|
||||
) as _i4
|
||||
.QueryBuilder<_i12.UTXO, _i12.UTXO, _i4.QAfterFilterCondition>);
|
||||
@override
|
||||
_i5.Future<void> putUTXO(_i12.UTXO? utxo) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#putUTXO,
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -3,30 +3,32 @@
|
|||
// Do not manually edit this file.
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i12;
|
||||
import 'dart:io' as _i8;
|
||||
import 'dart:ui' as _i14;
|
||||
import 'dart:async' as _i13;
|
||||
import 'dart:io' as _i9;
|
||||
import 'dart:ui' as _i15;
|
||||
|
||||
import 'package:flutter/foundation.dart' as _i4;
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i18;
|
||||
import 'package:stackwallet/models/node_model.dart' as _i19;
|
||||
import 'package:stackwallet/services/coins/manager.dart' as _i6;
|
||||
import 'package:stackwallet/services/event_bus/events/global/tor_connection_status_changed_event.dart'
|
||||
as _i20;
|
||||
import 'package:stackwallet/services/node_service.dart' as _i3;
|
||||
import 'package:stackwallet/services/tor_service.dart' as _i19;
|
||||
import 'package:stackwallet/services/wallets.dart' as _i9;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i2;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i17;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i16;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i10;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i15;
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||
as _i21;
|
||||
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart'
|
||||
as _i7;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i13;
|
||||
import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i21;
|
||||
import 'package:tuple/tuple.dart' as _i11;
|
||||
import 'package:stackwallet/services/node_service.dart' as _i3;
|
||||
import 'package:stackwallet/services/tor_service.dart' as _i20;
|
||||
import 'package:stackwallet/services/wallets.dart' as _i10;
|
||||
import 'package:stackwallet/services/wallets_service.dart' as _i2;
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i18;
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i17;
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i11;
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i16;
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
|
||||
as _i8;
|
||||
import 'package:stackwallet/utilities/prefs.dart' as _i14;
|
||||
import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i22;
|
||||
import 'package:tuple/tuple.dart' as _i12;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: avoid_redundant_argument_values
|
||||
|
@ -81,9 +83,8 @@ class _FakeManager_3 extends _i1.SmartFake implements _i6.Manager {
|
|||
);
|
||||
}
|
||||
|
||||
class _FakeSecureStorageInterface_4 extends _i1.SmartFake
|
||||
implements _i7.SecureStorageInterface {
|
||||
_FakeSecureStorageInterface_4(
|
||||
class _FakeFusionInfo_4 extends _i1.SmartFake implements _i7.FusionInfo {
|
||||
_FakeFusionInfo_4(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
|
@ -92,9 +93,20 @@ class _FakeSecureStorageInterface_4 extends _i1.SmartFake
|
|||
);
|
||||
}
|
||||
|
||||
class _FakeInternetAddress_5 extends _i1.SmartFake
|
||||
implements _i8.InternetAddress {
|
||||
_FakeInternetAddress_5(
|
||||
class _FakeSecureStorageInterface_5 extends _i1.SmartFake
|
||||
implements _i8.SecureStorageInterface {
|
||||
_FakeSecureStorageInterface_5(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
parent,
|
||||
parentInvocation,
|
||||
);
|
||||
}
|
||||
|
||||
class _FakeInternetAddress_6 extends _i1.SmartFake
|
||||
implements _i9.InternetAddress {
|
||||
_FakeInternetAddress_6(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
|
@ -106,7 +118,7 @@ class _FakeInternetAddress_5 extends _i1.SmartFake
|
|||
/// A class which mocks [Wallets].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockWallets extends _i1.Mock implements _i9.Wallets {
|
||||
class MockWallets extends _i1.Mock implements _i10.Wallets {
|
||||
MockWallets() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -173,7 +185,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
List<String> getWalletIdsFor({required _i10.Coin? coin}) =>
|
||||
List<String> getWalletIdsFor({required _i11.Coin? coin}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getWalletIdsFor,
|
||||
|
@ -183,20 +195,20 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
returnValue: <String>[],
|
||||
) as List<String>);
|
||||
@override
|
||||
List<_i11.Tuple2<_i10.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>
|
||||
List<_i12.Tuple2<_i11.Coin, List<_i5.ChangeNotifierProvider<_i6.Manager>>>>
|
||||
getManagerProvidersByCoin() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getManagerProvidersByCoin,
|
||||
[],
|
||||
),
|
||||
returnValue: <_i11.Tuple2<_i10.Coin,
|
||||
returnValue: <_i12.Tuple2<_i11.Coin,
|
||||
List<_i5.ChangeNotifierProvider<_i6.Manager>>>>[],
|
||||
) as List<
|
||||
_i11.Tuple2<_i10.Coin,
|
||||
_i12.Tuple2<_i11.Coin,
|
||||
List<_i5.ChangeNotifierProvider<_i6.Manager>>>>);
|
||||
@override
|
||||
List<_i5.ChangeNotifierProvider<_i6.Manager>> getManagerProvidersForCoin(
|
||||
_i10.Coin? coin) =>
|
||||
_i11.Coin? coin) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getManagerProvidersForCoin,
|
||||
|
@ -260,17 +272,17 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i12.Future<void> load(_i13.Prefs? prefs) => (super.noSuchMethod(
|
||||
_i13.Future<void> load(_i14.Prefs? prefs) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#load,
|
||||
[prefs],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i12.Future<void> loadAfterStackRestore(
|
||||
_i13.Prefs? prefs,
|
||||
_i13.Future<void> loadAfterStackRestore(
|
||||
_i14.Prefs? prefs,
|
||||
List<_i6.Manager>? managers,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -281,11 +293,11 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
managers,
|
||||
],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
void addListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i15.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -293,7 +305,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -313,7 +325,7 @@ class MockWallets extends _i1.Mock implements _i9.Wallets {
|
|||
/// A class which mocks [Prefs].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockPrefs extends _i1.Mock implements _i13.Prefs {
|
||||
class MockPrefs extends _i1.Mock implements _i14.Prefs {
|
||||
MockPrefs() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
@ -369,12 +381,12 @@ class MockPrefs extends _i1.Mock implements _i13.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i15.SyncingType get syncType => (super.noSuchMethod(
|
||||
_i16.SyncingType get syncType => (super.noSuchMethod(
|
||||
Invocation.getter(#syncType),
|
||||
returnValue: _i15.SyncingType.currentWalletOnly,
|
||||
) as _i15.SyncingType);
|
||||
returnValue: _i16.SyncingType.currentWalletOnly,
|
||||
) as _i16.SyncingType);
|
||||
@override
|
||||
set syncType(_i15.SyncingType? syncType) => super.noSuchMethod(
|
||||
set syncType(_i16.SyncingType? syncType) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#syncType,
|
||||
syncType,
|
||||
|
@ -533,12 +545,12 @@ class MockPrefs extends _i1.Mock implements _i13.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i16.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
_i17.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
|
||||
Invocation.getter(#backupFrequencyType),
|
||||
returnValue: _i16.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i16.BackupFrequencyType);
|
||||
returnValue: _i17.BackupFrequencyType.everyTenMinutes,
|
||||
) as _i17.BackupFrequencyType);
|
||||
@override
|
||||
set backupFrequencyType(_i16.BackupFrequencyType? backupFrequencyType) =>
|
||||
set backupFrequencyType(_i17.BackupFrequencyType? backupFrequencyType) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#backupFrequencyType,
|
||||
|
@ -684,66 +696,82 @@ class MockPrefs extends _i1.Mock implements _i13.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i7.FusionInfo get fusionServerInfo => (super.noSuchMethod(
|
||||
Invocation.getter(#fusionServerInfo),
|
||||
returnValue: _FakeFusionInfo_4(
|
||||
this,
|
||||
Invocation.getter(#fusionServerInfo),
|
||||
),
|
||||
) as _i7.FusionInfo);
|
||||
@override
|
||||
set fusionServerInfo(_i7.FusionInfo? fusionServerInfo) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#fusionServerInfo,
|
||||
fusionServerInfo,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
_i12.Future<void> init() => (super.noSuchMethod(
|
||||
_i13.Future<void> init() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#init,
|
||||
[],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i12.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||
_i13.Future<void> incrementCurrentNotificationIndex() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#incrementCurrentNotificationIndex,
|
||||
[],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i12.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||
_i13.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#isExternalCallsSet,
|
||||
[],
|
||||
),
|
||||
returnValue: _i12.Future<bool>.value(false),
|
||||
) as _i12.Future<bool>);
|
||||
returnValue: _i13.Future<bool>.value(false),
|
||||
) as _i13.Future<bool>);
|
||||
@override
|
||||
_i12.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||
_i13.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#saveUserID,
|
||||
[userId],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i12.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||
_i13.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#saveSignupEpoch,
|
||||
[signupEpoch],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i17.AmountUnit amountUnit(_i10.Coin? coin) => (super.noSuchMethod(
|
||||
_i18.AmountUnit amountUnit(_i11.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#amountUnit,
|
||||
[coin],
|
||||
),
|
||||
returnValue: _i17.AmountUnit.normal,
|
||||
) as _i17.AmountUnit);
|
||||
returnValue: _i18.AmountUnit.normal,
|
||||
) as _i18.AmountUnit);
|
||||
@override
|
||||
void updateAmountUnit({
|
||||
required _i10.Coin? coin,
|
||||
required _i17.AmountUnit? amountUnit,
|
||||
required _i11.Coin? coin,
|
||||
required _i18.AmountUnit? amountUnit,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -757,7 +785,7 @@ class MockPrefs extends _i1.Mock implements _i13.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
int maxDecimals(_i10.Coin? coin) => (super.noSuchMethod(
|
||||
int maxDecimals(_i11.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#maxDecimals,
|
||||
[coin],
|
||||
|
@ -766,7 +794,7 @@ class MockPrefs extends _i1.Mock implements _i13.Prefs {
|
|||
) as int);
|
||||
@override
|
||||
void updateMaxDecimals({
|
||||
required _i10.Coin? coin,
|
||||
required _i11.Coin? coin,
|
||||
required int? maxDecimals,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
|
@ -781,7 +809,7 @@ class MockPrefs extends _i1.Mock implements _i13.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void addListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i15.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -789,7 +817,7 @@ class MockPrefs extends _i1.Mock implements _i13.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -823,41 +851,41 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
}
|
||||
|
||||
@override
|
||||
_i7.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod(
|
||||
_i8.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod(
|
||||
Invocation.getter(#secureStorageInterface),
|
||||
returnValue: _FakeSecureStorageInterface_4(
|
||||
returnValue: _FakeSecureStorageInterface_5(
|
||||
this,
|
||||
Invocation.getter(#secureStorageInterface),
|
||||
),
|
||||
) as _i7.SecureStorageInterface);
|
||||
) as _i8.SecureStorageInterface);
|
||||
@override
|
||||
List<_i18.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
List<_i19.NodeModel> get primaryNodes => (super.noSuchMethod(
|
||||
Invocation.getter(#primaryNodes),
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
returnValue: <_i19.NodeModel>[],
|
||||
) as List<_i19.NodeModel>);
|
||||
@override
|
||||
List<_i18.NodeModel> get nodes => (super.noSuchMethod(
|
||||
List<_i19.NodeModel> get nodes => (super.noSuchMethod(
|
||||
Invocation.getter(#nodes),
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
returnValue: <_i19.NodeModel>[],
|
||||
) as List<_i19.NodeModel>);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
_i12.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
_i13.Future<void> updateDefaults() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#updateDefaults,
|
||||
[],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i12.Future<void> setPrimaryNodeFor({
|
||||
required _i10.Coin? coin,
|
||||
required _i18.NodeModel? node,
|
||||
_i13.Future<void> setPrimaryNodeFor({
|
||||
required _i11.Coin? coin,
|
||||
required _i19.NodeModel? node,
|
||||
bool? shouldNotifyListeners = false,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -870,44 +898,44 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
#shouldNotifyListeners: shouldNotifyListeners,
|
||||
},
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i18.NodeModel? getPrimaryNodeFor({required _i10.Coin? coin}) =>
|
||||
_i19.NodeModel? getPrimaryNodeFor({required _i11.Coin? coin}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getPrimaryNodeFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
)) as _i18.NodeModel?);
|
||||
)) as _i19.NodeModel?);
|
||||
@override
|
||||
List<_i18.NodeModel> getNodesFor(_i10.Coin? coin) => (super.noSuchMethod(
|
||||
List<_i19.NodeModel> getNodesFor(_i11.Coin? coin) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getNodesFor,
|
||||
[coin],
|
||||
),
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
returnValue: <_i19.NodeModel>[],
|
||||
) as List<_i19.NodeModel>);
|
||||
@override
|
||||
_i18.NodeModel? getNodeById({required String? id}) =>
|
||||
_i19.NodeModel? getNodeById({required String? id}) =>
|
||||
(super.noSuchMethod(Invocation.method(
|
||||
#getNodeById,
|
||||
[],
|
||||
{#id: id},
|
||||
)) as _i18.NodeModel?);
|
||||
)) as _i19.NodeModel?);
|
||||
@override
|
||||
List<_i18.NodeModel> failoverNodesFor({required _i10.Coin? coin}) =>
|
||||
List<_i19.NodeModel> failoverNodesFor({required _i11.Coin? coin}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#failoverNodesFor,
|
||||
[],
|
||||
{#coin: coin},
|
||||
),
|
||||
returnValue: <_i18.NodeModel>[],
|
||||
) as List<_i18.NodeModel>);
|
||||
returnValue: <_i19.NodeModel>[],
|
||||
) as List<_i19.NodeModel>);
|
||||
@override
|
||||
_i12.Future<void> add(
|
||||
_i18.NodeModel? node,
|
||||
_i13.Future<void> add(
|
||||
_i19.NodeModel? node,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -920,11 +948,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
shouldNotifyListeners,
|
||||
],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i12.Future<void> delete(
|
||||
_i13.Future<void> delete(
|
||||
String? id,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -936,11 +964,11 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
shouldNotifyListeners,
|
||||
],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i12.Future<void> setEnabledState(
|
||||
_i13.Future<void> setEnabledState(
|
||||
String? id,
|
||||
bool? enabled,
|
||||
bool? shouldNotifyListeners,
|
||||
|
@ -954,12 +982,12 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
shouldNotifyListeners,
|
||||
],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i12.Future<void> edit(
|
||||
_i18.NodeModel? editedNode,
|
||||
_i13.Future<void> edit(
|
||||
_i19.NodeModel? editedNode,
|
||||
String? password,
|
||||
bool? shouldNotifyListeners,
|
||||
) =>
|
||||
|
@ -972,20 +1000,20 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
shouldNotifyListeners,
|
||||
],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i12.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
_i13.Future<void> updateCommunityNodes() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#updateCommunityNodes,
|
||||
[],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
void addListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
void addListener(_i15.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addListener,
|
||||
[listener],
|
||||
|
@ -993,7 +1021,7 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod(
|
||||
void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#removeListener,
|
||||
[listener],
|
||||
|
@ -1021,24 +1049,24 @@ class MockNodeService extends _i1.Mock implements _i3.NodeService {
|
|||
/// A class which mocks [TorService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockTorService extends _i1.Mock implements _i19.TorService {
|
||||
class MockTorService extends _i1.Mock implements _i20.TorService {
|
||||
MockTorService() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
|
||||
@override
|
||||
_i20.TorConnectionStatus get status => (super.noSuchMethod(
|
||||
_i21.TorConnectionStatus get status => (super.noSuchMethod(
|
||||
Invocation.getter(#status),
|
||||
returnValue: _i20.TorConnectionStatus.disconnected,
|
||||
) as _i20.TorConnectionStatus);
|
||||
returnValue: _i21.TorConnectionStatus.disconnected,
|
||||
) as _i21.TorConnectionStatus);
|
||||
@override
|
||||
({_i8.InternetAddress host, int port}) getProxyInfo() => (super.noSuchMethod(
|
||||
({_i9.InternetAddress host, int port}) getProxyInfo() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getProxyInfo,
|
||||
[],
|
||||
),
|
||||
returnValue: (
|
||||
host: _FakeInternetAddress_5(
|
||||
host: _FakeInternetAddress_6(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getProxyInfo,
|
||||
|
@ -1047,11 +1075,11 @@ class MockTorService extends _i1.Mock implements _i19.TorService {
|
|||
),
|
||||
port: 0
|
||||
),
|
||||
) as ({_i8.InternetAddress host, int port}));
|
||||
) as ({_i9.InternetAddress host, int port}));
|
||||
@override
|
||||
void init({
|
||||
required String? torDataDirPath,
|
||||
_i21.Tor? mockableOverride,
|
||||
_i22.Tor? mockableOverride,
|
||||
}) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -1065,21 +1093,21 @@ class MockTorService extends _i1.Mock implements _i19.TorService {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
_i12.Future<void> start() => (super.noSuchMethod(
|
||||
_i13.Future<void> start() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#start,
|
||||
[],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
@override
|
||||
_i12.Future<void> disable() => (super.noSuchMethod(
|
||||
_i13.Future<void> disable() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#disable,
|
||||
[],
|
||||
),
|
||||
returnValue: _i12.Future<void>.value(),
|
||||
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||
) as _i12.Future<void>);
|
||||
returnValue: _i13.Future<void>.value(),
|
||||
returnValueForMissingStub: _i13.Future<void>.value(),
|
||||
) as _i13.Future<void>);
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue