diff --git a/lib/wallets/isar/models/wallet_info.g.dart b/lib/wallets/isar/models/wallet_info.g.dart
index b5e46abe6..5b8982dd3 100644
--- a/lib/wallets/isar/models/wallet_info.g.dart
+++ b/lib/wallets/isar/models/wallet_info.g.dart
@@ -82,12 +82,6 @@ const WalletInfoSchema = CollectionSchema(
id: 12,
name: r'walletId',
type: IsarType.string,
- ),
- r'walletType': PropertySchema(
- id: 13,
- name: r'walletType',
- type: IsarType.byte,
- enumMap: _WalletInfowalletTypeEnumValueMap,
)
},
estimateSize: _walletInfoEstimateSize,
@@ -169,7 +163,6 @@ void _walletInfoSerialize(
writer.writeLong(offsets[10], object.restoreHeight);
writer.writeStringList(offsets[11], object.tokenContractAddresses);
writer.writeString(offsets[12], object.walletId);
- writer.writeByte(offsets[13], object.walletType.index);
}
WalletInfo _walletInfoDeserialize(
@@ -192,9 +185,6 @@ WalletInfo _walletInfoDeserialize(
otherDataJsonString: reader.readStringOrNull(offsets[9]),
restoreHeight: reader.readLongOrNull(offsets[10]) ?? 0,
walletId: reader.readString(offsets[12]),
- walletType:
- _WalletInfowalletTypeValueEnumMap[reader.readByteOrNull(offsets[13])] ??
- WalletType.bip39,
);
object.id = id;
return object;
@@ -235,10 +225,6 @@ P _walletInfoDeserializeProp
(
return (reader.readStringList(offset) ?? []) as P;
case 12:
return (reader.readString(offset)) as P;
- case 13:
- return (_WalletInfowalletTypeValueEnumMap[
- reader.readByteOrNull(offset)] ??
- WalletType.bip39) as P;
default:
throw IsarError('Unknown property with id $propertyId');
}
@@ -268,18 +254,6 @@ const _WalletInfomainAddressTypeValueEnumMap = {
8: AddressType.nano,
9: AddressType.banano,
};
-const _WalletInfowalletTypeEnumValueMap = {
- 'bip39': 0,
- 'bip39HD': 1,
- 'cryptonote': 2,
- 'privateKeyBased': 3,
-};
-const _WalletInfowalletTypeValueEnumMap = {
- 0: WalletType.bip39,
- 1: WalletType.bip39HD,
- 2: WalletType.cryptonote,
- 3: WalletType.privateKeyBased,
-};
Id _walletInfoGetId(WalletInfo object) {
return object.id;
@@ -1839,61 +1813,6 @@ extension WalletInfoQueryFilter
));
});
}
-
- QueryBuilder walletTypeEqualTo(
- WalletType value) {
- return QueryBuilder.apply(this, (query) {
- return query.addFilterCondition(FilterCondition.equalTo(
- property: r'walletType',
- value: value,
- ));
- });
- }
-
- QueryBuilder
- walletTypeGreaterThan(
- WalletType value, {
- bool include = false,
- }) {
- return QueryBuilder.apply(this, (query) {
- return query.addFilterCondition(FilterCondition.greaterThan(
- include: include,
- property: r'walletType',
- value: value,
- ));
- });
- }
-
- QueryBuilder
- walletTypeLessThan(
- WalletType value, {
- bool include = false,
- }) {
- return QueryBuilder.apply(this, (query) {
- return query.addFilterCondition(FilterCondition.lessThan(
- include: include,
- property: r'walletType',
- value: value,
- ));
- });
- }
-
- QueryBuilder walletTypeBetween(
- WalletType lower,
- WalletType upper, {
- bool includeLower = true,
- bool includeUpper = true,
- }) {
- return QueryBuilder.apply(this, (query) {
- return query.addFilterCondition(FilterCondition.between(
- property: r'walletType',
- lower: lower,
- includeLower: includeLower,
- upper: upper,
- includeUpper: includeUpper,
- ));
- });
- }
}
extension WalletInfoQueryObject
@@ -2059,18 +1978,6 @@ extension WalletInfoQuerySortBy
return query.addSortBy(r'walletId', Sort.desc);
});
}
-
- QueryBuilder sortByWalletType() {
- return QueryBuilder.apply(this, (query) {
- return query.addSortBy(r'walletType', Sort.asc);
- });
- }
-
- QueryBuilder sortByWalletTypeDesc() {
- return QueryBuilder.apply(this, (query) {
- return query.addSortBy(r'walletType', Sort.desc);
- });
- }
}
extension WalletInfoQuerySortThenBy
@@ -2242,18 +2149,6 @@ extension WalletInfoQuerySortThenBy
return query.addSortBy(r'walletId', Sort.desc);
});
}
-
- QueryBuilder thenByWalletType() {
- return QueryBuilder.apply(this, (query) {
- return query.addSortBy(r'walletType', Sort.asc);
- });
- }
-
- QueryBuilder thenByWalletTypeDesc() {
- return QueryBuilder.apply(this, (query) {
- return query.addSortBy(r'walletType', Sort.desc);
- });
- }
}
extension WalletInfoQueryWhereDistinct
@@ -2348,12 +2243,6 @@ extension WalletInfoQueryWhereDistinct
return query.addDistinctBy(r'walletId', caseSensitive: caseSensitive);
});
}
-
- QueryBuilder distinctByWalletType() {
- return QueryBuilder.apply(this, (query) {
- return query.addDistinctBy(r'walletType');
- });
- }
}
extension WalletInfoQueryProperty
@@ -2448,10 +2337,4 @@ extension WalletInfoQueryProperty
return query.addPropertyName(r'walletId');
});
}
-
- QueryBuilder walletTypeProperty() {
- return QueryBuilder.apply(this, (query) {
- return query.addPropertyName(r'walletType');
- });
- }
}