mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49:22 +00:00
WIP Isar transaction sub type enum
This commit is contained in:
parent
c4cc5b1a02
commit
5712fab88f
1 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue