diff --git a/lib/models/isar/models/blockchain_data/v2/input_v2.g.dart b/lib/models/isar/models/blockchain_data/v2/input_v2.g.dart
index eb3bc3cd3..c1a3b781b 100644
--- a/lib/models/isar/models/blockchain_data/v2/input_v2.g.dart
+++ b/lib/models/isar/models/blockchain_data/v2/input_v2.g.dart
@@ -357,28 +357,33 @@ const InputV2Schema = Schema(
type: IsarType.object,
target: r'OutpointV2',
),
- r'scriptSigHex': PropertySchema(
+ r'scriptSigAsm': PropertySchema(
id: 4,
+ name: r'scriptSigAsm',
+ type: IsarType.string,
+ ),
+ r'scriptSigHex': PropertySchema(
+ id: 5,
name: r'scriptSigHex',
type: IsarType.string,
),
r'sequence': PropertySchema(
- id: 5,
+ id: 6,
name: r'sequence',
type: IsarType.long,
),
r'valueStringSats': PropertySchema(
- id: 6,
+ id: 7,
name: r'valueStringSats',
type: IsarType.string,
),
r'walletOwns': PropertySchema(
- id: 7,
+ id: 8,
name: r'walletOwns',
type: IsarType.bool,
),
r'witness': PropertySchema(
- id: 8,
+ id: 9,
name: r'witness',
type: IsarType.string,
)
@@ -422,6 +427,12 @@ int _inputV2EstimateSize(
value, allOffsets[OutpointV2]!, allOffsets);
}
}
+ {
+ final value = object.scriptSigAsm;
+ if (value != null) {
+ bytesCount += 3 + value.length * 3;
+ }
+ }
{
final value = object.scriptSigHex;
if (value != null) {
@@ -453,11 +464,12 @@ void _inputV2Serialize(
OutpointV2Schema.serialize,
object.outpoint,
);
- writer.writeString(offsets[4], object.scriptSigHex);
- writer.writeLong(offsets[5], object.sequence);
- writer.writeString(offsets[6], object.valueStringSats);
- writer.writeBool(offsets[7], object.walletOwns);
- writer.writeString(offsets[8], object.witness);
+ writer.writeString(offsets[4], object.scriptSigAsm);
+ writer.writeString(offsets[5], object.scriptSigHex);
+ writer.writeLong(offsets[6], object.sequence);
+ writer.writeString(offsets[7], object.valueStringSats);
+ writer.writeBool(offsets[8], object.walletOwns);
+ writer.writeString(offsets[9], object.witness);
}
InputV2 _inputV2Deserialize(
@@ -475,11 +487,12 @@ InputV2 _inputV2Deserialize(
OutpointV2Schema.deserialize,
allOffsets,
);
- object.scriptSigHex = reader.readStringOrNull(offsets[4]);
- object.sequence = reader.readLongOrNull(offsets[5]);
- object.valueStringSats = reader.readString(offsets[6]);
- object.walletOwns = reader.readBool(offsets[7]);
- object.witness = reader.readStringOrNull(offsets[8]);
+ object.scriptSigAsm = reader.readStringOrNull(offsets[4]);
+ object.scriptSigHex = reader.readStringOrNull(offsets[5]);
+ object.sequence = reader.readLongOrNull(offsets[6]);
+ object.valueStringSats = reader.readString(offsets[7]);
+ object.walletOwns = reader.readBool(offsets[8]);
+ object.witness = reader.readStringOrNull(offsets[9]);
return object;
}
@@ -505,12 +518,14 @@ P _inputV2DeserializeProp
(
case 4:
return (reader.readStringOrNull(offset)) as P;
case 5:
- return (reader.readLongOrNull(offset)) as P;
+ return (reader.readStringOrNull(offset)) as P;
case 6:
- return (reader.readString(offset)) as P;
+ return (reader.readLongOrNull(offset)) as P;
case 7:
- return (reader.readBool(offset)) as P;
+ return (reader.readString(offset)) as P;
case 8:
+ return (reader.readBool(offset)) as P;
+ case 9:
return (reader.readStringOrNull(offset)) as P;
default:
throw IsarError('Unknown property with id $propertyId');
@@ -1055,6 +1070,154 @@ extension InputV2QueryFilter
});
}
+ QueryBuilder scriptSigAsmIsNull() {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(const FilterCondition.isNull(
+ property: r'scriptSigAsm',
+ ));
+ });
+ }
+
+ QueryBuilder
+ scriptSigAsmIsNotNull() {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(const FilterCondition.isNotNull(
+ property: r'scriptSigAsm',
+ ));
+ });
+ }
+
+ QueryBuilder scriptSigAsmEqualTo(
+ String? value, {
+ bool caseSensitive = true,
+ }) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.equalTo(
+ property: r'scriptSigAsm',
+ value: value,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder scriptSigAsmGreaterThan(
+ String? value, {
+ bool include = false,
+ bool caseSensitive = true,
+ }) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.greaterThan(
+ include: include,
+ property: r'scriptSigAsm',
+ value: value,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder scriptSigAsmLessThan(
+ String? value, {
+ bool include = false,
+ bool caseSensitive = true,
+ }) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.lessThan(
+ include: include,
+ property: r'scriptSigAsm',
+ value: value,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder scriptSigAsmBetween(
+ 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'scriptSigAsm',
+ lower: lower,
+ includeLower: includeLower,
+ upper: upper,
+ includeUpper: includeUpper,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder scriptSigAsmStartsWith(
+ String value, {
+ bool caseSensitive = true,
+ }) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.startsWith(
+ property: r'scriptSigAsm',
+ value: value,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder scriptSigAsmEndsWith(
+ String value, {
+ bool caseSensitive = true,
+ }) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.endsWith(
+ property: r'scriptSigAsm',
+ value: value,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder scriptSigAsmContains(
+ String value,
+ {bool caseSensitive = true}) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.contains(
+ property: r'scriptSigAsm',
+ value: value,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder scriptSigAsmMatches(
+ String pattern,
+ {bool caseSensitive = true}) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.matches(
+ property: r'scriptSigAsm',
+ wildcard: pattern,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder scriptSigAsmIsEmpty() {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.equalTo(
+ property: r'scriptSigAsm',
+ value: '',
+ ));
+ });
+ }
+
+ QueryBuilder
+ scriptSigAsmIsNotEmpty() {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.greaterThan(
+ property: r'scriptSigAsm',
+ value: '',
+ ));
+ });
+ }
+
QueryBuilder scriptSigHexIsNull() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(const FilterCondition.isNull(
diff --git a/lib/models/isar/models/blockchain_data/v2/output_v2.g.dart b/lib/models/isar/models/blockchain_data/v2/output_v2.g.dart
index bf966d5ec..e26075d44 100644
--- a/lib/models/isar/models/blockchain_data/v2/output_v2.g.dart
+++ b/lib/models/isar/models/blockchain_data/v2/output_v2.g.dart
@@ -18,18 +18,23 @@ const OutputV2Schema = Schema(
name: r'addresses',
type: IsarType.stringList,
),
- r'scriptPubKeyHex': PropertySchema(
+ r'scriptPubKeyAsm': PropertySchema(
id: 1,
+ name: r'scriptPubKeyAsm',
+ type: IsarType.string,
+ ),
+ r'scriptPubKeyHex': PropertySchema(
+ id: 2,
name: r'scriptPubKeyHex',
type: IsarType.string,
),
r'valueStringSats': PropertySchema(
- id: 2,
+ id: 3,
name: r'valueStringSats',
type: IsarType.string,
),
r'walletOwns': PropertySchema(
- id: 3,
+ id: 4,
name: r'walletOwns',
type: IsarType.bool,
)
@@ -53,6 +58,12 @@ int _outputV2EstimateSize(
bytesCount += value.length * 3;
}
}
+ {
+ final value = object.scriptPubKeyAsm;
+ if (value != null) {
+ bytesCount += 3 + value.length * 3;
+ }
+ }
bytesCount += 3 + object.scriptPubKeyHex.length * 3;
bytesCount += 3 + object.valueStringSats.length * 3;
return bytesCount;
@@ -65,9 +76,10 @@ void _outputV2Serialize(
Map> allOffsets,
) {
writer.writeStringList(offsets[0], object.addresses);
- writer.writeString(offsets[1], object.scriptPubKeyHex);
- writer.writeString(offsets[2], object.valueStringSats);
- writer.writeBool(offsets[3], object.walletOwns);
+ writer.writeString(offsets[1], object.scriptPubKeyAsm);
+ writer.writeString(offsets[2], object.scriptPubKeyHex);
+ writer.writeString(offsets[3], object.valueStringSats);
+ writer.writeBool(offsets[4], object.walletOwns);
}
OutputV2 _outputV2Deserialize(
@@ -78,9 +90,10 @@ OutputV2 _outputV2Deserialize(
) {
final object = OutputV2();
object.addresses = reader.readStringList(offsets[0]) ?? [];
- object.scriptPubKeyHex = reader.readString(offsets[1]);
- object.valueStringSats = reader.readString(offsets[2]);
- object.walletOwns = reader.readBool(offsets[3]);
+ object.scriptPubKeyAsm = reader.readStringOrNull(offsets[1]);
+ object.scriptPubKeyHex = reader.readString(offsets[2]);
+ object.valueStringSats = reader.readString(offsets[3]);
+ object.walletOwns = reader.readBool(offsets[4]);
return object;
}
@@ -94,10 +107,12 @@ P _outputV2DeserializeProp(
case 0:
return (reader.readStringList(offset) ?? []) as P;
case 1:
- return (reader.readString(offset)) as P;
+ return (reader.readStringOrNull(offset)) as P;
case 2:
return (reader.readString(offset)) as P;
case 3:
+ return (reader.readString(offset)) as P;
+ case 4:
return (reader.readBool(offset)) as P;
default:
throw IsarError('Unknown property with id $propertyId');
@@ -330,6 +345,160 @@ extension OutputV2QueryFilter
});
}
+ QueryBuilder
+ scriptPubKeyAsmIsNull() {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(const FilterCondition.isNull(
+ property: r'scriptPubKeyAsm',
+ ));
+ });
+ }
+
+ QueryBuilder
+ scriptPubKeyAsmIsNotNull() {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(const FilterCondition.isNotNull(
+ property: r'scriptPubKeyAsm',
+ ));
+ });
+ }
+
+ QueryBuilder
+ scriptPubKeyAsmEqualTo(
+ String? value, {
+ bool caseSensitive = true,
+ }) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.equalTo(
+ property: r'scriptPubKeyAsm',
+ value: value,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder
+ scriptPubKeyAsmGreaterThan(
+ String? value, {
+ bool include = false,
+ bool caseSensitive = true,
+ }) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.greaterThan(
+ include: include,
+ property: r'scriptPubKeyAsm',
+ value: value,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder
+ scriptPubKeyAsmLessThan(
+ String? value, {
+ bool include = false,
+ bool caseSensitive = true,
+ }) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.lessThan(
+ include: include,
+ property: r'scriptPubKeyAsm',
+ value: value,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder
+ scriptPubKeyAsmBetween(
+ 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'scriptPubKeyAsm',
+ lower: lower,
+ includeLower: includeLower,
+ upper: upper,
+ includeUpper: includeUpper,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder
+ scriptPubKeyAsmStartsWith(
+ String value, {
+ bool caseSensitive = true,
+ }) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.startsWith(
+ property: r'scriptPubKeyAsm',
+ value: value,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder
+ scriptPubKeyAsmEndsWith(
+ String value, {
+ bool caseSensitive = true,
+ }) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.endsWith(
+ property: r'scriptPubKeyAsm',
+ value: value,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder
+ scriptPubKeyAsmContains(String value, {bool caseSensitive = true}) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.contains(
+ property: r'scriptPubKeyAsm',
+ value: value,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder
+ scriptPubKeyAsmMatches(String pattern, {bool caseSensitive = true}) {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.matches(
+ property: r'scriptPubKeyAsm',
+ wildcard: pattern,
+ caseSensitive: caseSensitive,
+ ));
+ });
+ }
+
+ QueryBuilder
+ scriptPubKeyAsmIsEmpty() {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.equalTo(
+ property: r'scriptPubKeyAsm',
+ value: '',
+ ));
+ });
+ }
+
+ QueryBuilder
+ scriptPubKeyAsmIsNotEmpty() {
+ return QueryBuilder.apply(this, (query) {
+ return query.addFilterCondition(FilterCondition.greaterThan(
+ property: r'scriptPubKeyAsm',
+ value: '',
+ ));
+ });
+ }
+
QueryBuilder
scriptPubKeyHexEqualTo(
String value, {