WIP Isar transaction sub type enum

This commit is contained in:
julian 2023-01-10 09:21:22 -06:00
parent c4cc5b1a02
commit 5712fab88f

View file

@ -17,7 +17,7 @@ class Transaction {
late TransactionType txType;
late String subType;
late TransactionSubType subType;
late int amount;
@ -57,3 +57,15 @@ enum TransactionType with IsarEnum<int> {
@override
int get value => index;
}
// Used in Isar db and stored there as int indexes so adding/removing values
// in this definition should be done extremely carefully in production
enum TransactionSubType with IsarEnum<int> {
// TODO: add more types before prod release?
none,
bip47Notification, // bip47 payment code notification transaction flag
mint; // firo specific
@override
int get value => index;
}