mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-03 09:19:22 +00:00
build runner
This commit is contained in:
parent
cb7e63ba3b
commit
68754e3329
2 changed files with 684 additions and 1365 deletions
|
@ -38,46 +38,71 @@ const TransactionV2Schema = CollectionSchema(
|
|||
type: IsarType.objectList,
|
||||
target: r'InputV2',
|
||||
),
|
||||
r'otherData': PropertySchema(
|
||||
r'isCancelled': PropertySchema(
|
||||
id: 4,
|
||||
name: r'isCancelled',
|
||||
type: IsarType.bool,
|
||||
),
|
||||
r'isEpiccashTransaction': PropertySchema(
|
||||
id: 5,
|
||||
name: r'isEpiccashTransaction',
|
||||
type: IsarType.bool,
|
||||
),
|
||||
r'numberOfMessages': PropertySchema(
|
||||
id: 6,
|
||||
name: r'numberOfMessages',
|
||||
type: IsarType.long,
|
||||
),
|
||||
r'onChainNote': PropertySchema(
|
||||
id: 7,
|
||||
name: r'onChainNote',
|
||||
type: IsarType.string,
|
||||
),
|
||||
r'otherData': PropertySchema(
|
||||
id: 8,
|
||||
name: r'otherData',
|
||||
type: IsarType.string,
|
||||
),
|
||||
r'outputs': PropertySchema(
|
||||
id: 5,
|
||||
id: 9,
|
||||
name: r'outputs',
|
||||
type: IsarType.objectList,
|
||||
target: r'OutputV2',
|
||||
),
|
||||
r'slateId': PropertySchema(
|
||||
id: 10,
|
||||
name: r'slateId',
|
||||
type: IsarType.string,
|
||||
),
|
||||
r'subType': PropertySchema(
|
||||
id: 6,
|
||||
id: 11,
|
||||
name: r'subType',
|
||||
type: IsarType.byte,
|
||||
enumMap: _TransactionV2subTypeEnumValueMap,
|
||||
),
|
||||
r'timestamp': PropertySchema(
|
||||
id: 7,
|
||||
id: 12,
|
||||
name: r'timestamp',
|
||||
type: IsarType.long,
|
||||
),
|
||||
r'txid': PropertySchema(
|
||||
id: 8,
|
||||
id: 13,
|
||||
name: r'txid',
|
||||
type: IsarType.string,
|
||||
),
|
||||
r'type': PropertySchema(
|
||||
id: 9,
|
||||
id: 14,
|
||||
name: r'type',
|
||||
type: IsarType.byte,
|
||||
enumMap: _TransactionV2typeEnumValueMap,
|
||||
),
|
||||
r'version': PropertySchema(
|
||||
id: 10,
|
||||
id: 15,
|
||||
name: r'version',
|
||||
type: IsarType.long,
|
||||
),
|
||||
r'walletId': PropertySchema(
|
||||
id: 11,
|
||||
id: 16,
|
||||
name: r'walletId',
|
||||
type: IsarType.string,
|
||||
)
|
||||
|
@ -166,6 +191,12 @@ int _transactionV2EstimateSize(
|
|||
bytesCount += InputV2Schema.estimateSize(value, offsets, allOffsets);
|
||||
}
|
||||
}
|
||||
{
|
||||
final value = object.onChainNote;
|
||||
if (value != null) {
|
||||
bytesCount += 3 + value.length * 3;
|
||||
}
|
||||
}
|
||||
{
|
||||
final value = object.otherData;
|
||||
if (value != null) {
|
||||
|
@ -180,6 +211,12 @@ int _transactionV2EstimateSize(
|
|||
bytesCount += OutputV2Schema.estimateSize(value, offsets, allOffsets);
|
||||
}
|
||||
}
|
||||
{
|
||||
final value = object.slateId;
|
||||
if (value != null) {
|
||||
bytesCount += 3 + value.length * 3;
|
||||
}
|
||||
}
|
||||
bytesCount += 3 + object.txid.length * 3;
|
||||
bytesCount += 3 + object.walletId.length * 3;
|
||||
return bytesCount;
|
||||
|
@ -200,19 +237,24 @@ void _transactionV2Serialize(
|
|||
InputV2Schema.serialize,
|
||||
object.inputs,
|
||||
);
|
||||
writer.writeString(offsets[4], object.otherData);
|
||||
writer.writeBool(offsets[4], object.isCancelled);
|
||||
writer.writeBool(offsets[5], object.isEpiccashTransaction);
|
||||
writer.writeLong(offsets[6], object.numberOfMessages);
|
||||
writer.writeString(offsets[7], object.onChainNote);
|
||||
writer.writeString(offsets[8], object.otherData);
|
||||
writer.writeObjectList<OutputV2>(
|
||||
offsets[5],
|
||||
offsets[9],
|
||||
allOffsets,
|
||||
OutputV2Schema.serialize,
|
||||
object.outputs,
|
||||
);
|
||||
writer.writeByte(offsets[6], object.subType.index);
|
||||
writer.writeLong(offsets[7], object.timestamp);
|
||||
writer.writeString(offsets[8], object.txid);
|
||||
writer.writeByte(offsets[9], object.type.index);
|
||||
writer.writeLong(offsets[10], object.version);
|
||||
writer.writeString(offsets[11], object.walletId);
|
||||
writer.writeString(offsets[10], object.slateId);
|
||||
writer.writeByte(offsets[11], object.subType.index);
|
||||
writer.writeLong(offsets[12], object.timestamp);
|
||||
writer.writeString(offsets[13], object.txid);
|
||||
writer.writeByte(offsets[14], object.type.index);
|
||||
writer.writeLong(offsets[15], object.version);
|
||||
writer.writeString(offsets[16], object.walletId);
|
||||
}
|
||||
|
||||
TransactionV2 _transactionV2Deserialize(
|
||||
|
@ -232,23 +274,23 @@ TransactionV2 _transactionV2Deserialize(
|
|||
InputV2(),
|
||||
) ??
|
||||
[],
|
||||
otherData: reader.readStringOrNull(offsets[4]),
|
||||
otherData: reader.readStringOrNull(offsets[8]),
|
||||
outputs: reader.readObjectList<OutputV2>(
|
||||
offsets[5],
|
||||
offsets[9],
|
||||
OutputV2Schema.deserialize,
|
||||
allOffsets,
|
||||
OutputV2(),
|
||||
) ??
|
||||
[],
|
||||
subType:
|
||||
_TransactionV2subTypeValueEnumMap[reader.readByteOrNull(offsets[6])] ??
|
||||
_TransactionV2subTypeValueEnumMap[reader.readByteOrNull(offsets[11])] ??
|
||||
TransactionSubType.none,
|
||||
timestamp: reader.readLong(offsets[7]),
|
||||
txid: reader.readString(offsets[8]),
|
||||
type: _TransactionV2typeValueEnumMap[reader.readByteOrNull(offsets[9])] ??
|
||||
timestamp: reader.readLong(offsets[12]),
|
||||
txid: reader.readString(offsets[13]),
|
||||
type: _TransactionV2typeValueEnumMap[reader.readByteOrNull(offsets[14])] ??
|
||||
TransactionType.outgoing,
|
||||
version: reader.readLong(offsets[10]),
|
||||
walletId: reader.readString(offsets[11]),
|
||||
version: reader.readLong(offsets[15]),
|
||||
walletId: reader.readString(offsets[16]),
|
||||
);
|
||||
object.id = id;
|
||||
return object;
|
||||
|
@ -276,8 +318,16 @@ P _transactionV2DeserializeProp<P>(
|
|||
) ??
|
||||
[]) as P;
|
||||
case 4:
|
||||
return (reader.readStringOrNull(offset)) as P;
|
||||
return (reader.readBool(offset)) as P;
|
||||
case 5:
|
||||
return (reader.readBool(offset)) as P;
|
||||
case 6:
|
||||
return (reader.readLongOrNull(offset)) as P;
|
||||
case 7:
|
||||
return (reader.readStringOrNull(offset)) as P;
|
||||
case 8:
|
||||
return (reader.readStringOrNull(offset)) as P;
|
||||
case 9:
|
||||
return (reader.readObjectList<OutputV2>(
|
||||
offset,
|
||||
OutputV2Schema.deserialize,
|
||||
|
@ -285,20 +335,22 @@ P _transactionV2DeserializeProp<P>(
|
|||
OutputV2(),
|
||||
) ??
|
||||
[]) as P;
|
||||
case 6:
|
||||
case 10:
|
||||
return (reader.readStringOrNull(offset)) as P;
|
||||
case 11:
|
||||
return (_TransactionV2subTypeValueEnumMap[
|
||||
reader.readByteOrNull(offset)] ??
|
||||
TransactionSubType.none) as P;
|
||||
case 7:
|
||||
case 12:
|
||||
return (reader.readLong(offset)) as P;
|
||||
case 8:
|
||||
case 13:
|
||||
return (reader.readString(offset)) as P;
|
||||
case 9:
|
||||
case 14:
|
||||
return (_TransactionV2typeValueEnumMap[reader.readByteOrNull(offset)] ??
|
||||
TransactionType.outgoing) as P;
|
||||
case 10:
|
||||
case 15:
|
||||
return (reader.readLong(offset)) as P;
|
||||
case 11:
|
||||
case 16:
|
||||
return (reader.readString(offset)) as P;
|
||||
default:
|
||||
throw IsarError('Unknown property with id $propertyId');
|
||||
|
@ -1263,6 +1315,254 @@ extension TransactionV2QueryFilter
|
|||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
isCancelledEqualTo(bool value) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'isCancelled',
|
||||
value: value,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
isEpiccashTransactionEqualTo(bool value) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'isEpiccashTransaction',
|
||||
value: value,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
numberOfMessagesIsNull() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(const FilterCondition.isNull(
|
||||
property: r'numberOfMessages',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
numberOfMessagesIsNotNull() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(const FilterCondition.isNotNull(
|
||||
property: r'numberOfMessages',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
numberOfMessagesEqualTo(int? value) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'numberOfMessages',
|
||||
value: value,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
numberOfMessagesGreaterThan(
|
||||
int? value, {
|
||||
bool include = false,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||
include: include,
|
||||
property: r'numberOfMessages',
|
||||
value: value,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
numberOfMessagesLessThan(
|
||||
int? value, {
|
||||
bool include = false,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.lessThan(
|
||||
include: include,
|
||||
property: r'numberOfMessages',
|
||||
value: value,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
numberOfMessagesBetween(
|
||||
int? lower,
|
||||
int? upper, {
|
||||
bool includeLower = true,
|
||||
bool includeUpper = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.between(
|
||||
property: r'numberOfMessages',
|
||||
lower: lower,
|
||||
includeLower: includeLower,
|
||||
upper: upper,
|
||||
includeUpper: includeUpper,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
onChainNoteIsNull() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(const FilterCondition.isNull(
|
||||
property: r'onChainNote',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
onChainNoteIsNotNull() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(const FilterCondition.isNotNull(
|
||||
property: r'onChainNote',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
onChainNoteEqualTo(
|
||||
String? value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'onChainNote',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
onChainNoteGreaterThan(
|
||||
String? value, {
|
||||
bool include = false,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||
include: include,
|
||||
property: r'onChainNote',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
onChainNoteLessThan(
|
||||
String? value, {
|
||||
bool include = false,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.lessThan(
|
||||
include: include,
|
||||
property: r'onChainNote',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
onChainNoteBetween(
|
||||
String? lower,
|
||||
String? upper, {
|
||||
bool includeLower = true,
|
||||
bool includeUpper = true,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.between(
|
||||
property: r'onChainNote',
|
||||
lower: lower,
|
||||
includeLower: includeLower,
|
||||
upper: upper,
|
||||
includeUpper: includeUpper,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
onChainNoteStartsWith(
|
||||
String value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.startsWith(
|
||||
property: r'onChainNote',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
onChainNoteEndsWith(
|
||||
String value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.endsWith(
|
||||
property: r'onChainNote',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
onChainNoteContains(String value, {bool caseSensitive = true}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.contains(
|
||||
property: r'onChainNote',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
onChainNoteMatches(String pattern, {bool caseSensitive = true}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.matches(
|
||||
property: r'onChainNote',
|
||||
wildcard: pattern,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
onChainNoteIsEmpty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'onChainNote',
|
||||
value: '',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
onChainNoteIsNotEmpty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||
property: r'onChainNote',
|
||||
value: '',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
otherDataIsNull() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
|
@ -1506,6 +1806,160 @@ extension TransactionV2QueryFilter
|
|||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
slateIdIsNull() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(const FilterCondition.isNull(
|
||||
property: r'slateId',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
slateIdIsNotNull() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(const FilterCondition.isNotNull(
|
||||
property: r'slateId',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
slateIdEqualTo(
|
||||
String? value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'slateId',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
slateIdGreaterThan(
|
||||
String? value, {
|
||||
bool include = false,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||
include: include,
|
||||
property: r'slateId',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
slateIdLessThan(
|
||||
String? value, {
|
||||
bool include = false,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.lessThan(
|
||||
include: include,
|
||||
property: r'slateId',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
slateIdBetween(
|
||||
String? lower,
|
||||
String? upper, {
|
||||
bool includeLower = true,
|
||||
bool includeUpper = true,
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.between(
|
||||
property: r'slateId',
|
||||
lower: lower,
|
||||
includeLower: includeLower,
|
||||
upper: upper,
|
||||
includeUpper: includeUpper,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
slateIdStartsWith(
|
||||
String value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.startsWith(
|
||||
property: r'slateId',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
slateIdEndsWith(
|
||||
String value, {
|
||||
bool caseSensitive = true,
|
||||
}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.endsWith(
|
||||
property: r'slateId',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
slateIdContains(String value, {bool caseSensitive = true}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.contains(
|
||||
property: r'slateId',
|
||||
value: value,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
slateIdMatches(String pattern, {bool caseSensitive = true}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.matches(
|
||||
property: r'slateId',
|
||||
wildcard: pattern,
|
||||
caseSensitive: caseSensitive,
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
slateIdIsEmpty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.equalTo(
|
||||
property: r'slateId',
|
||||
value: '',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
slateIdIsNotEmpty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addFilterCondition(FilterCondition.greaterThan(
|
||||
property: r'slateId',
|
||||
value: '',
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterFilterCondition>
|
||||
subTypeEqualTo(TransactionSubType value) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
|
@ -2060,6 +2514,60 @@ extension TransactionV2QuerySortBy
|
|||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy> sortByIsCancelled() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'isCancelled', Sort.asc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy>
|
||||
sortByIsCancelledDesc() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'isCancelled', Sort.desc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy>
|
||||
sortByIsEpiccashTransaction() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'isEpiccashTransaction', Sort.asc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy>
|
||||
sortByIsEpiccashTransactionDesc() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'isEpiccashTransaction', Sort.desc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy>
|
||||
sortByNumberOfMessages() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'numberOfMessages', Sort.asc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy>
|
||||
sortByNumberOfMessagesDesc() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'numberOfMessages', Sort.desc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy> sortByOnChainNote() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'onChainNote', Sort.asc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy>
|
||||
sortByOnChainNoteDesc() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'onChainNote', Sort.desc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy> sortByOtherData() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'otherData', Sort.asc);
|
||||
|
@ -2073,6 +2581,18 @@ extension TransactionV2QuerySortBy
|
|||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy> sortBySlateId() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'slateId', Sort.asc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy> sortBySlateIdDesc() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'slateId', Sort.desc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy> sortBySubType() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'subType', Sort.asc);
|
||||
|
@ -2199,6 +2719,60 @@ extension TransactionV2QuerySortThenBy
|
|||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy> thenByIsCancelled() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'isCancelled', Sort.asc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy>
|
||||
thenByIsCancelledDesc() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'isCancelled', Sort.desc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy>
|
||||
thenByIsEpiccashTransaction() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'isEpiccashTransaction', Sort.asc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy>
|
||||
thenByIsEpiccashTransactionDesc() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'isEpiccashTransaction', Sort.desc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy>
|
||||
thenByNumberOfMessages() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'numberOfMessages', Sort.asc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy>
|
||||
thenByNumberOfMessagesDesc() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'numberOfMessages', Sort.desc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy> thenByOnChainNote() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'onChainNote', Sort.asc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy>
|
||||
thenByOnChainNoteDesc() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'onChainNote', Sort.desc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy> thenByOtherData() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'otherData', Sort.asc);
|
||||
|
@ -2212,6 +2786,18 @@ extension TransactionV2QuerySortThenBy
|
|||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy> thenBySlateId() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'slateId', Sort.asc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy> thenBySlateIdDesc() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'slateId', Sort.desc);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QAfterSortBy> thenBySubType() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addSortBy(r'subType', Sort.asc);
|
||||
|
@ -2309,6 +2895,34 @@ extension TransactionV2QueryWhereDistinct
|
|||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QDistinct>
|
||||
distinctByIsCancelled() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addDistinctBy(r'isCancelled');
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QDistinct>
|
||||
distinctByIsEpiccashTransaction() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addDistinctBy(r'isEpiccashTransaction');
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QDistinct>
|
||||
distinctByNumberOfMessages() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addDistinctBy(r'numberOfMessages');
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QDistinct> distinctByOnChainNote(
|
||||
{bool caseSensitive = true}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addDistinctBy(r'onChainNote', caseSensitive: caseSensitive);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QDistinct> distinctByOtherData(
|
||||
{bool caseSensitive = true}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
|
@ -2316,6 +2930,13 @@ extension TransactionV2QueryWhereDistinct
|
|||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QDistinct> distinctBySlateId(
|
||||
{bool caseSensitive = true}) {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addDistinctBy(r'slateId', caseSensitive: caseSensitive);
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionV2, QDistinct> distinctBySubType() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addDistinctBy(r'subType');
|
||||
|
@ -2388,6 +3009,32 @@ extension TransactionV2QueryProperty
|
|||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, bool, QQueryOperations> isCancelledProperty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addPropertyName(r'isCancelled');
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, bool, QQueryOperations>
|
||||
isEpiccashTransactionProperty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addPropertyName(r'isEpiccashTransaction');
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, int?, QQueryOperations>
|
||||
numberOfMessagesProperty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addPropertyName(r'numberOfMessages');
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, String?, QQueryOperations> onChainNoteProperty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addPropertyName(r'onChainNote');
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, String?, QQueryOperations> otherDataProperty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addPropertyName(r'otherData');
|
||||
|
@ -2401,6 +3048,12 @@ extension TransactionV2QueryProperty
|
|||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, String?, QQueryOperations> slateIdProperty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
return query.addPropertyName(r'slateId');
|
||||
});
|
||||
}
|
||||
|
||||
QueryBuilder<TransactionV2, TransactionSubType, QQueryOperations>
|
||||
subTypeProperty() {
|
||||
return QueryBuilder.apply(this, (query) {
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue