// GENERATED CODE - DO NOT MODIFY BY HAND part of 'spark_coin.dart'; // ************************************************************************** // IsarCollectionGenerator // ************************************************************************** // 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, always_specify_types extension GetSparkCoinCollection on Isar { IsarCollection get sparkCoins => this.collection(); } const SparkCoinSchema = CollectionSchema( name: r'SparkCoin', id: -187103855721793545, properties: { r'address': PropertySchema( id: 0, name: r'address', type: IsarType.string, ), r'contextB64': PropertySchema( id: 1, name: r'contextB64', type: IsarType.string, ), r'diversifierIntString': PropertySchema( id: 2, name: r'diversifierIntString', type: IsarType.string, ), r'encryptedDiversifier': PropertySchema( id: 3, name: r'encryptedDiversifier', type: IsarType.longList, ), r'groupId': PropertySchema( id: 4, name: r'groupId', type: IsarType.long, ), r'height': PropertySchema( id: 5, name: r'height', type: IsarType.long, ), r'isUsed': PropertySchema( id: 6, name: r'isUsed', type: IsarType.bool, ), r'lTagHash': PropertySchema( id: 7, name: r'lTagHash', type: IsarType.string, ), r'memo': PropertySchema( id: 8, name: r'memo', type: IsarType.string, ), r'nonce': PropertySchema( id: 9, name: r'nonce', type: IsarType.longList, ), r'serial': PropertySchema( id: 10, name: r'serial', type: IsarType.longList, ), r'serialContext': PropertySchema( id: 11, name: r'serialContext', type: IsarType.longList, ), r'serializedCoinB64': PropertySchema( id: 12, name: r'serializedCoinB64', type: IsarType.string, ), r'tag': PropertySchema( id: 13, name: r'tag', type: IsarType.longList, ), r'txHash': PropertySchema( id: 14, name: r'txHash', type: IsarType.string, ), r'type': PropertySchema( id: 15, name: r'type', type: IsarType.byte, enumMap: _SparkCointypeEnumValueMap, ), r'valueIntString': PropertySchema( id: 16, name: r'valueIntString', type: IsarType.string, ), r'walletId': PropertySchema( id: 17, name: r'walletId', type: IsarType.string, ) }, estimateSize: _sparkCoinEstimateSize, serialize: _sparkCoinSerialize, deserialize: _sparkCoinDeserialize, deserializeProp: _sparkCoinDeserializeProp, idName: r'id', indexes: { r'walletId_lTagHash': IndexSchema( id: 3478068730295484116, name: r'walletId_lTagHash', unique: true, replace: true, properties: [ IndexPropertySchema( name: r'walletId', type: IndexType.hash, caseSensitive: true, ), IndexPropertySchema( name: r'lTagHash', type: IndexType.hash, caseSensitive: true, ) ], ) }, links: {}, embeddedSchemas: {}, getId: _sparkCoinGetId, getLinks: _sparkCoinGetLinks, attach: _sparkCoinAttach, version: '3.1.8', ); int _sparkCoinEstimateSize( SparkCoin object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; bytesCount += 3 + object.address.length * 3; { final value = object.contextB64; if (value != null) { bytesCount += 3 + value.length * 3; } } bytesCount += 3 + object.diversifierIntString.length * 3; { final value = object.encryptedDiversifier; if (value != null) { bytesCount += 3 + value.length * 8; } } bytesCount += 3 + object.lTagHash.length * 3; { final value = object.memo; if (value != null) { bytesCount += 3 + value.length * 3; } } { final value = object.nonce; if (value != null) { bytesCount += 3 + value.length * 8; } } { final value = object.serial; if (value != null) { bytesCount += 3 + value.length * 8; } } { final value = object.serialContext; if (value != null) { bytesCount += 3 + value.length * 8; } } { final value = object.serializedCoinB64; if (value != null) { bytesCount += 3 + value.length * 3; } } { final value = object.tag; if (value != null) { bytesCount += 3 + value.length * 8; } } bytesCount += 3 + object.txHash.length * 3; bytesCount += 3 + object.valueIntString.length * 3; bytesCount += 3 + object.walletId.length * 3; return bytesCount; } void _sparkCoinSerialize( SparkCoin object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeString(offsets[0], object.address); writer.writeString(offsets[1], object.contextB64); writer.writeString(offsets[2], object.diversifierIntString); writer.writeLongList(offsets[3], object.encryptedDiversifier); writer.writeLong(offsets[4], object.groupId); writer.writeLong(offsets[5], object.height); writer.writeBool(offsets[6], object.isUsed); writer.writeString(offsets[7], object.lTagHash); writer.writeString(offsets[8], object.memo); writer.writeLongList(offsets[9], object.nonce); writer.writeLongList(offsets[10], object.serial); writer.writeLongList(offsets[11], object.serialContext); writer.writeString(offsets[12], object.serializedCoinB64); writer.writeLongList(offsets[13], object.tag); writer.writeString(offsets[14], object.txHash); writer.writeByte(offsets[15], object.type.index); writer.writeString(offsets[16], object.valueIntString); writer.writeString(offsets[17], object.walletId); } SparkCoin _sparkCoinDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = SparkCoin( address: reader.readString(offsets[0]), contextB64: reader.readStringOrNull(offsets[1]), diversifierIntString: reader.readString(offsets[2]), encryptedDiversifier: reader.readLongList(offsets[3]), groupId: reader.readLong(offsets[4]), height: reader.readLongOrNull(offsets[5]), isUsed: reader.readBool(offsets[6]), lTagHash: reader.readString(offsets[7]), memo: reader.readStringOrNull(offsets[8]), nonce: reader.readLongList(offsets[9]), serial: reader.readLongList(offsets[10]), serialContext: reader.readLongList(offsets[11]), serializedCoinB64: reader.readStringOrNull(offsets[12]), tag: reader.readLongList(offsets[13]), txHash: reader.readString(offsets[14]), type: _SparkCointypeValueEnumMap[reader.readByteOrNull(offsets[15])] ?? SparkCoinType.mint, valueIntString: reader.readString(offsets[16]), walletId: reader.readString(offsets[17]), ); object.id = id; return object; } P _sparkCoinDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readString(offset)) as P; case 1: return (reader.readStringOrNull(offset)) as P; case 2: return (reader.readString(offset)) as P; case 3: return (reader.readLongList(offset)) as P; case 4: return (reader.readLong(offset)) as P; case 5: return (reader.readLongOrNull(offset)) as P; case 6: return (reader.readBool(offset)) as P; case 7: return (reader.readString(offset)) as P; case 8: return (reader.readStringOrNull(offset)) as P; case 9: return (reader.readLongList(offset)) as P; case 10: return (reader.readLongList(offset)) as P; case 11: return (reader.readLongList(offset)) as P; case 12: return (reader.readStringOrNull(offset)) as P; case 13: return (reader.readLongList(offset)) as P; case 14: return (reader.readString(offset)) as P; case 15: return (_SparkCointypeValueEnumMap[reader.readByteOrNull(offset)] ?? SparkCoinType.mint) as P; case 16: return (reader.readString(offset)) as P; case 17: return (reader.readString(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } const _SparkCointypeEnumValueMap = { 'mint': 0, 'spend': 1, }; const _SparkCointypeValueEnumMap = { 0: SparkCoinType.mint, 1: SparkCoinType.spend, }; Id _sparkCoinGetId(SparkCoin object) { return object.id; } List> _sparkCoinGetLinks(SparkCoin object) { return []; } void _sparkCoinAttach(IsarCollection col, Id id, SparkCoin object) { object.id = id; } extension SparkCoinByIndex on IsarCollection { Future getByWalletIdLTagHash(String walletId, String lTagHash) { return getByIndex(r'walletId_lTagHash', [walletId, lTagHash]); } SparkCoin? getByWalletIdLTagHashSync(String walletId, String lTagHash) { return getByIndexSync(r'walletId_lTagHash', [walletId, lTagHash]); } Future deleteByWalletIdLTagHash(String walletId, String lTagHash) { return deleteByIndex(r'walletId_lTagHash', [walletId, lTagHash]); } bool deleteByWalletIdLTagHashSync(String walletId, String lTagHash) { return deleteByIndexSync(r'walletId_lTagHash', [walletId, lTagHash]); } Future> getAllByWalletIdLTagHash( List walletIdValues, List lTagHashValues) { final len = walletIdValues.length; assert(lTagHashValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values.add([walletIdValues[i], lTagHashValues[i]]); } return getAllByIndex(r'walletId_lTagHash', values); } List getAllByWalletIdLTagHashSync( List walletIdValues, List lTagHashValues) { final len = walletIdValues.length; assert(lTagHashValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values.add([walletIdValues[i], lTagHashValues[i]]); } return getAllByIndexSync(r'walletId_lTagHash', values); } Future deleteAllByWalletIdLTagHash( List walletIdValues, List lTagHashValues) { final len = walletIdValues.length; assert(lTagHashValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values.add([walletIdValues[i], lTagHashValues[i]]); } return deleteAllByIndex(r'walletId_lTagHash', values); } int deleteAllByWalletIdLTagHashSync( List walletIdValues, List lTagHashValues) { final len = walletIdValues.length; assert(lTagHashValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values.add([walletIdValues[i], lTagHashValues[i]]); } return deleteAllByIndexSync(r'walletId_lTagHash', values); } Future putByWalletIdLTagHash(SparkCoin object) { return putByIndex(r'walletId_lTagHash', object); } Id putByWalletIdLTagHashSync(SparkCoin object, {bool saveLinks = true}) { return putByIndexSync(r'walletId_lTagHash', object, saveLinks: saveLinks); } Future> putAllByWalletIdLTagHash(List objects) { return putAllByIndex(r'walletId_lTagHash', objects); } List putAllByWalletIdLTagHashSync(List objects, {bool saveLinks = true}) { return putAllByIndexSync(r'walletId_lTagHash', objects, saveLinks: saveLinks); } } extension SparkCoinQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension SparkCoinQueryWhere on QueryBuilder { QueryBuilder idEqualTo(Id id) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IdWhereClause.between( lower: id, upper: id, )); }); } QueryBuilder idNotEqualTo(Id id) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause( IdWhereClause.lessThan(upper: id, includeUpper: false), ) .addWhereClause( IdWhereClause.greaterThan(lower: id, includeLower: false), ); } else { return query .addWhereClause( IdWhereClause.greaterThan(lower: id, includeLower: false), ) .addWhereClause( IdWhereClause.lessThan(upper: id, includeUpper: false), ); } }); } QueryBuilder idGreaterThan(Id id, {bool include = false}) { return QueryBuilder.apply(this, (query) { return query.addWhereClause( IdWhereClause.greaterThan(lower: id, includeLower: include), ); }); } QueryBuilder idLessThan(Id id, {bool include = false}) { return QueryBuilder.apply(this, (query) { return query.addWhereClause( IdWhereClause.lessThan(upper: id, includeUpper: include), ); }); } QueryBuilder idBetween( Id lowerId, Id upperId, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IdWhereClause.between( lower: lowerId, includeLower: includeLower, upper: upperId, includeUpper: includeUpper, )); }); } QueryBuilder walletIdEqualToAnyLTagHash(String walletId) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'walletId_lTagHash', value: [walletId], )); }); } QueryBuilder walletIdNotEqualToAnyLTagHash(String walletId) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'walletId_lTagHash', lower: [], upper: [walletId], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'walletId_lTagHash', lower: [walletId], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'walletId_lTagHash', lower: [walletId], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'walletId_lTagHash', lower: [], upper: [walletId], includeUpper: false, )); } }); } QueryBuilder walletIdLTagHashEqualTo( String walletId, String lTagHash) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'walletId_lTagHash', value: [walletId, lTagHash], )); }); } QueryBuilder walletIdEqualToLTagHashNotEqualTo(String walletId, String lTagHash) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'walletId_lTagHash', lower: [walletId], upper: [walletId, lTagHash], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'walletId_lTagHash', lower: [walletId, lTagHash], includeLower: false, upper: [walletId], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'walletId_lTagHash', lower: [walletId, lTagHash], includeLower: false, upper: [walletId], )) .addWhereClause(IndexWhereClause.between( indexName: r'walletId_lTagHash', lower: [walletId], upper: [walletId, lTagHash], includeUpper: false, )); } }); } } extension SparkCoinQueryFilter on QueryBuilder { QueryBuilder addressEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'address', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder addressGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'address', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder addressLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'address', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder addressBetween( 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'address', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder addressStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'address', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder addressEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'address', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder addressContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'address', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder addressMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'address', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder addressIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'address', value: '', )); }); } QueryBuilder addressIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'address', value: '', )); }); } QueryBuilder contextB64IsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'contextB64', )); }); } QueryBuilder contextB64IsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'contextB64', )); }); } QueryBuilder contextB64EqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'contextB64', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder contextB64GreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'contextB64', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder contextB64LessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'contextB64', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder contextB64Between( 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'contextB64', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder contextB64StartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'contextB64', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder contextB64EndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'contextB64', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder contextB64Contains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'contextB64', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder contextB64Matches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'contextB64', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder contextB64IsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'contextB64', value: '', )); }); } QueryBuilder contextB64IsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'contextB64', value: '', )); }); } QueryBuilder diversifierIntStringEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'diversifierIntString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder diversifierIntStringGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'diversifierIntString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder diversifierIntStringLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'diversifierIntString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder diversifierIntStringBetween( 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'diversifierIntString', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder diversifierIntStringStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'diversifierIntString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder diversifierIntStringEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'diversifierIntString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder diversifierIntStringContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'diversifierIntString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder diversifierIntStringMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'diversifierIntString', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder diversifierIntStringIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'diversifierIntString', value: '', )); }); } QueryBuilder diversifierIntStringIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'diversifierIntString', value: '', )); }); } QueryBuilder encryptedDiversifierIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'encryptedDiversifier', )); }); } QueryBuilder encryptedDiversifierIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'encryptedDiversifier', )); }); } QueryBuilder encryptedDiversifierElementEqualTo(int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'encryptedDiversifier', value: value, )); }); } QueryBuilder encryptedDiversifierElementGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'encryptedDiversifier', value: value, )); }); } QueryBuilder encryptedDiversifierElementLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'encryptedDiversifier', value: value, )); }); } QueryBuilder encryptedDiversifierElementBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'encryptedDiversifier', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder encryptedDiversifierLengthEqualTo(int length) { return QueryBuilder.apply(this, (query) { return query.listLength( r'encryptedDiversifier', length, true, length, true, ); }); } QueryBuilder encryptedDiversifierIsEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'encryptedDiversifier', 0, true, 0, true, ); }); } QueryBuilder encryptedDiversifierIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'encryptedDiversifier', 0, false, 999999, true, ); }); } QueryBuilder encryptedDiversifierLengthLessThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'encryptedDiversifier', 0, true, length, include, ); }); } QueryBuilder encryptedDiversifierLengthGreaterThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'encryptedDiversifier', length, include, 999999, true, ); }); } QueryBuilder encryptedDiversifierLengthBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'encryptedDiversifier', lower, includeLower, upper, includeUpper, ); }); } QueryBuilder groupIdEqualTo( int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'groupId', value: value, )); }); } QueryBuilder groupIdGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'groupId', value: value, )); }); } QueryBuilder groupIdLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'groupId', value: value, )); }); } QueryBuilder groupIdBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'groupId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder heightIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'height', )); }); } QueryBuilder heightIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'height', )); }); } QueryBuilder heightEqualTo( int? value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'height', value: value, )); }); } QueryBuilder heightGreaterThan( int? value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'height', value: value, )); }); } QueryBuilder heightLessThan( int? value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'height', value: value, )); }); } QueryBuilder heightBetween( int? lower, int? upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'height', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder idEqualTo( Id value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'id', value: value, )); }); } QueryBuilder idGreaterThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'id', value: value, )); }); } QueryBuilder idLessThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'id', value: value, )); }); } QueryBuilder idBetween( Id lower, Id upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'id', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder isUsedEqualTo( bool value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isUsed', value: value, )); }); } QueryBuilder lTagHashEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'lTagHash', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder lTagHashGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'lTagHash', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder lTagHashLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'lTagHash', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder lTagHashBetween( 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'lTagHash', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder lTagHashStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'lTagHash', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder lTagHashEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'lTagHash', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder lTagHashContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'lTagHash', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder lTagHashMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'lTagHash', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder lTagHashIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'lTagHash', value: '', )); }); } QueryBuilder lTagHashIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'lTagHash', value: '', )); }); } QueryBuilder memoIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'memo', )); }); } QueryBuilder memoIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'memo', )); }); } QueryBuilder memoEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'memo', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder memoGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'memo', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder memoLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'memo', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder memoBetween( 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'memo', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder memoStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'memo', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder memoEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'memo', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder memoContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'memo', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder memoMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'memo', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder memoIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'memo', value: '', )); }); } QueryBuilder memoIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'memo', value: '', )); }); } QueryBuilder nonceIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'nonce', )); }); } QueryBuilder nonceIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'nonce', )); }); } QueryBuilder nonceElementEqualTo( int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'nonce', value: value, )); }); } QueryBuilder nonceElementGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'nonce', value: value, )); }); } QueryBuilder nonceElementLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'nonce', value: value, )); }); } QueryBuilder nonceElementBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'nonce', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder nonceLengthEqualTo( int length) { return QueryBuilder.apply(this, (query) { return query.listLength( r'nonce', length, true, length, true, ); }); } QueryBuilder nonceIsEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'nonce', 0, true, 0, true, ); }); } QueryBuilder nonceIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'nonce', 0, false, 999999, true, ); }); } QueryBuilder nonceLengthLessThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'nonce', 0, true, length, include, ); }); } QueryBuilder nonceLengthGreaterThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'nonce', length, include, 999999, true, ); }); } QueryBuilder nonceLengthBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'nonce', lower, includeLower, upper, includeUpper, ); }); } QueryBuilder serialIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'serial', )); }); } QueryBuilder serialIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'serial', )); }); } QueryBuilder serialElementEqualTo(int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'serial', value: value, )); }); } QueryBuilder serialElementGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'serial', value: value, )); }); } QueryBuilder serialElementLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'serial', value: value, )); }); } QueryBuilder serialElementBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'serial', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder serialLengthEqualTo( int length) { return QueryBuilder.apply(this, (query) { return query.listLength( r'serial', length, true, length, true, ); }); } QueryBuilder serialIsEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'serial', 0, true, 0, true, ); }); } QueryBuilder serialIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'serial', 0, false, 999999, true, ); }); } QueryBuilder serialLengthLessThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'serial', 0, true, length, include, ); }); } QueryBuilder serialLengthGreaterThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'serial', length, include, 999999, true, ); }); } QueryBuilder serialLengthBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'serial', lower, includeLower, upper, includeUpper, ); }); } QueryBuilder serialContextIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'serialContext', )); }); } QueryBuilder serialContextIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'serialContext', )); }); } QueryBuilder serialContextElementEqualTo(int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'serialContext', value: value, )); }); } QueryBuilder serialContextElementGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'serialContext', value: value, )); }); } QueryBuilder serialContextElementLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'serialContext', value: value, )); }); } QueryBuilder serialContextElementBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'serialContext', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder serialContextLengthEqualTo(int length) { return QueryBuilder.apply(this, (query) { return query.listLength( r'serialContext', length, true, length, true, ); }); } QueryBuilder serialContextIsEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'serialContext', 0, true, 0, true, ); }); } QueryBuilder serialContextIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'serialContext', 0, false, 999999, true, ); }); } QueryBuilder serialContextLengthLessThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'serialContext', 0, true, length, include, ); }); } QueryBuilder serialContextLengthGreaterThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'serialContext', length, include, 999999, true, ); }); } QueryBuilder serialContextLengthBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'serialContext', lower, includeLower, upper, includeUpper, ); }); } QueryBuilder serializedCoinB64IsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'serializedCoinB64', )); }); } QueryBuilder serializedCoinB64IsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'serializedCoinB64', )); }); } QueryBuilder serializedCoinB64EqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'serializedCoinB64', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder serializedCoinB64GreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'serializedCoinB64', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder serializedCoinB64LessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'serializedCoinB64', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder serializedCoinB64Between( 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'serializedCoinB64', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder serializedCoinB64StartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'serializedCoinB64', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder serializedCoinB64EndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'serializedCoinB64', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder serializedCoinB64Contains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'serializedCoinB64', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder serializedCoinB64Matches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'serializedCoinB64', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder serializedCoinB64IsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'serializedCoinB64', value: '', )); }); } QueryBuilder serializedCoinB64IsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'serializedCoinB64', value: '', )); }); } QueryBuilder tagIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'tag', )); }); } QueryBuilder tagIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'tag', )); }); } QueryBuilder tagElementEqualTo( int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'tag', value: value, )); }); } QueryBuilder tagElementGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'tag', value: value, )); }); } QueryBuilder tagElementLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'tag', value: value, )); }); } QueryBuilder tagElementBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'tag', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder tagLengthEqualTo( int length) { return QueryBuilder.apply(this, (query) { return query.listLength( r'tag', length, true, length, true, ); }); } QueryBuilder tagIsEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'tag', 0, true, 0, true, ); }); } QueryBuilder tagIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'tag', 0, false, 999999, true, ); }); } QueryBuilder tagLengthLessThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'tag', 0, true, length, include, ); }); } QueryBuilder tagLengthGreaterThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'tag', length, include, 999999, true, ); }); } QueryBuilder tagLengthBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'tag', lower, includeLower, upper, includeUpper, ); }); } QueryBuilder txHashEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'txHash', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder txHashGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'txHash', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder txHashLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'txHash', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder txHashBetween( 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'txHash', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder txHashStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'txHash', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder txHashEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'txHash', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder txHashContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'txHash', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder txHashMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'txHash', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder txHashIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'txHash', value: '', )); }); } QueryBuilder txHashIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'txHash', value: '', )); }); } QueryBuilder typeEqualTo( SparkCoinType value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'type', value: value, )); }); } QueryBuilder typeGreaterThan( SparkCoinType value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'type', value: value, )); }); } QueryBuilder typeLessThan( SparkCoinType value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'type', value: value, )); }); } QueryBuilder typeBetween( SparkCoinType lower, SparkCoinType upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'type', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder valueIntStringEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'valueIntString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder valueIntStringGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'valueIntString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder valueIntStringLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'valueIntString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder valueIntStringBetween( 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'valueIntString', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder valueIntStringStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'valueIntString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder valueIntStringEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'valueIntString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder valueIntStringContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'valueIntString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder valueIntStringMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'valueIntString', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder valueIntStringIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'valueIntString', value: '', )); }); } QueryBuilder valueIntStringIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'valueIntString', value: '', )); }); } QueryBuilder walletIdEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdBetween( 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'walletId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'walletId', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'walletId', value: '', )); }); } QueryBuilder walletIdIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'walletId', value: '', )); }); } } extension SparkCoinQueryObject on QueryBuilder {} extension SparkCoinQueryLinks on QueryBuilder {} extension SparkCoinQuerySortBy on QueryBuilder { QueryBuilder sortByAddress() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'address', Sort.asc); }); } QueryBuilder sortByAddressDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'address', Sort.desc); }); } QueryBuilder sortByContextB64() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'contextB64', Sort.asc); }); } QueryBuilder sortByContextB64Desc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'contextB64', Sort.desc); }); } QueryBuilder sortByDiversifierIntString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'diversifierIntString', Sort.asc); }); } QueryBuilder sortByDiversifierIntStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'diversifierIntString', Sort.desc); }); } QueryBuilder sortByGroupId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'groupId', Sort.asc); }); } QueryBuilder sortByGroupIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'groupId', Sort.desc); }); } QueryBuilder sortByHeight() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'height', Sort.asc); }); } QueryBuilder sortByHeightDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'height', Sort.desc); }); } QueryBuilder sortByIsUsed() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isUsed', Sort.asc); }); } QueryBuilder sortByIsUsedDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isUsed', Sort.desc); }); } QueryBuilder sortByLTagHash() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'lTagHash', Sort.asc); }); } QueryBuilder sortByLTagHashDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'lTagHash', Sort.desc); }); } QueryBuilder sortByMemo() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'memo', Sort.asc); }); } QueryBuilder sortByMemoDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'memo', Sort.desc); }); } QueryBuilder sortBySerializedCoinB64() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'serializedCoinB64', Sort.asc); }); } QueryBuilder sortBySerializedCoinB64Desc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'serializedCoinB64', Sort.desc); }); } QueryBuilder sortByTxHash() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'txHash', Sort.asc); }); } QueryBuilder sortByTxHashDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'txHash', Sort.desc); }); } QueryBuilder sortByType() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'type', Sort.asc); }); } QueryBuilder sortByTypeDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'type', Sort.desc); }); } QueryBuilder sortByValueIntString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'valueIntString', Sort.asc); }); } QueryBuilder sortByValueIntStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'valueIntString', Sort.desc); }); } QueryBuilder sortByWalletId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'walletId', Sort.asc); }); } QueryBuilder sortByWalletIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'walletId', Sort.desc); }); } } extension SparkCoinQuerySortThenBy on QueryBuilder { QueryBuilder thenByAddress() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'address', Sort.asc); }); } QueryBuilder thenByAddressDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'address', Sort.desc); }); } QueryBuilder thenByContextB64() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'contextB64', Sort.asc); }); } QueryBuilder thenByContextB64Desc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'contextB64', Sort.desc); }); } QueryBuilder thenByDiversifierIntString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'diversifierIntString', Sort.asc); }); } QueryBuilder thenByDiversifierIntStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'diversifierIntString', Sort.desc); }); } QueryBuilder thenByGroupId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'groupId', Sort.asc); }); } QueryBuilder thenByGroupIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'groupId', Sort.desc); }); } QueryBuilder thenByHeight() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'height', Sort.asc); }); } QueryBuilder thenByHeightDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'height', Sort.desc); }); } QueryBuilder thenById() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.asc); }); } QueryBuilder thenByIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.desc); }); } QueryBuilder thenByIsUsed() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isUsed', Sort.asc); }); } QueryBuilder thenByIsUsedDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isUsed', Sort.desc); }); } QueryBuilder thenByLTagHash() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'lTagHash', Sort.asc); }); } QueryBuilder thenByLTagHashDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'lTagHash', Sort.desc); }); } QueryBuilder thenByMemo() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'memo', Sort.asc); }); } QueryBuilder thenByMemoDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'memo', Sort.desc); }); } QueryBuilder thenBySerializedCoinB64() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'serializedCoinB64', Sort.asc); }); } QueryBuilder thenBySerializedCoinB64Desc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'serializedCoinB64', Sort.desc); }); } QueryBuilder thenByTxHash() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'txHash', Sort.asc); }); } QueryBuilder thenByTxHashDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'txHash', Sort.desc); }); } QueryBuilder thenByType() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'type', Sort.asc); }); } QueryBuilder thenByTypeDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'type', Sort.desc); }); } QueryBuilder thenByValueIntString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'valueIntString', Sort.asc); }); } QueryBuilder thenByValueIntStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'valueIntString', Sort.desc); }); } QueryBuilder thenByWalletId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'walletId', Sort.asc); }); } QueryBuilder thenByWalletIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'walletId', Sort.desc); }); } } extension SparkCoinQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByAddress( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'address', caseSensitive: caseSensitive); }); } QueryBuilder distinctByContextB64( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'contextB64', caseSensitive: caseSensitive); }); } QueryBuilder distinctByDiversifierIntString( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'diversifierIntString', caseSensitive: caseSensitive); }); } QueryBuilder distinctByEncryptedDiversifier() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'encryptedDiversifier'); }); } QueryBuilder distinctByGroupId() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'groupId'); }); } QueryBuilder distinctByHeight() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'height'); }); } QueryBuilder distinctByIsUsed() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'isUsed'); }); } QueryBuilder distinctByLTagHash( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'lTagHash', caseSensitive: caseSensitive); }); } QueryBuilder distinctByMemo( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'memo', caseSensitive: caseSensitive); }); } QueryBuilder distinctByNonce() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'nonce'); }); } QueryBuilder distinctBySerial() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'serial'); }); } QueryBuilder distinctBySerialContext() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'serialContext'); }); } QueryBuilder distinctBySerializedCoinB64( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'serializedCoinB64', caseSensitive: caseSensitive); }); } QueryBuilder distinctByTag() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'tag'); }); } QueryBuilder distinctByTxHash( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'txHash', caseSensitive: caseSensitive); }); } QueryBuilder distinctByType() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'type'); }); } QueryBuilder distinctByValueIntString( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'valueIntString', caseSensitive: caseSensitive); }); } QueryBuilder distinctByWalletId( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'walletId', caseSensitive: caseSensitive); }); } } extension SparkCoinQueryProperty on QueryBuilder { QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder addressProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'address'); }); } QueryBuilder contextB64Property() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'contextB64'); }); } QueryBuilder diversifierIntStringProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'diversifierIntString'); }); } QueryBuilder?, QQueryOperations> encryptedDiversifierProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'encryptedDiversifier'); }); } QueryBuilder groupIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'groupId'); }); } QueryBuilder heightProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'height'); }); } QueryBuilder isUsedProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isUsed'); }); } QueryBuilder lTagHashProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'lTagHash'); }); } QueryBuilder memoProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'memo'); }); } QueryBuilder?, QQueryOperations> nonceProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'nonce'); }); } QueryBuilder?, QQueryOperations> serialProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'serial'); }); } QueryBuilder?, QQueryOperations> serialContextProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'serialContext'); }); } QueryBuilder serializedCoinB64Property() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'serializedCoinB64'); }); } QueryBuilder?, QQueryOperations> tagProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'tag'); }); } QueryBuilder txHashProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'txHash'); }); } QueryBuilder typeProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'type'); }); } QueryBuilder valueIntStringProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'valueIntString'); }); } QueryBuilder walletIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'walletId'); }); } }