dev - trx status + type enum added

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2024-09-23 13:51:00 +03:30
parent 330f8e8bf1
commit 9609bdfa05
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F

View File

@ -219,6 +219,22 @@ message TransactionList {
int64 total_count = 2;
}
enum TransactionType {
Unknown = 0;
Buy = 1;
Sell = 2;
Transfer = 3;
Redeem = 4;
}
enum TransactionStatus {
Undetermined = 0;
Failed = -10;
Suspended = -9;
Created = -1;
Pending = 1;
Successful = 2;
}
message Transaction {
int64 id = 1;
int64 asset_id = 2;
@ -232,8 +248,8 @@ message Transaction {
optional int64 to_federation_id = 10;
optional Federation to_federation_info = 11;
double amount = 12;
int32 status = 13;
int32 type = 14;
TransactionStatus status = 13;
TransactionType type = 14;
string updated_at = 15;
string created_at = 16;
string tracking_code = 17;