MarketPlace: freezed balance added in wallet

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2025-02-18 13:07:50 +03:30
parent bf0978c722
commit b774a4602d
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F
3 changed files with 34 additions and 11 deletions

View File

@ -19,8 +19,8 @@ message MarketOrder {
MarketOrderSide side = 8;
MarketOrderStatus status = 9;
int64 from = 10;
float commission = 11;
float completion_rate = 12;
wallet.v1.Commission commission = 11;
float completed_amount = 12;
string created_at = 13;
string updated_at = 14;
bool is_public = 15;
@ -82,6 +82,7 @@ enum MarketOrderStatus {
MO_REFUNDED = 5; // Order is refunded by platform to user due to regulation
// MO_EXPIRED = 4; // Order is expired
}
message OrderListFilter {
optional auth.v1.InternalIAM iam = 1;
base.v1.BaseQueryParam base = 2;

View File

@ -20,7 +20,4 @@ service MarketplaceSrv {
rpc GetMarketPubHistory(OrderListFilter) returns (MarketOrderList); // This is for public market
rpc GetUserMarketHistory(OrderListFilter) returns (MarketOrderList); // list of order + purchase related to buying an asset
// rpc GetBuyHistory(OrderListFilterWithIAM) returns (MarketOrderList); // list of order + purchase related to buying an asset
// rpc GetSellHistory(OrderListFilterWithIAM) returns (MarketOrderList); // list of order + purchase related to selling an asset
}

View File

@ -183,6 +183,7 @@ message BNPLInfo {
string created_at = 13;
string expires_at = 14;
}
message BNPLList {
repeated BNPLInfo list = 1;
}
@ -207,11 +208,23 @@ message Wallet {
int64 federation_id = 5;
Federation federation_info = 6;
double balance = 7;
string updated_at = 8;
string created_at = 9;
string wallet_code = 10;
bool accepted_terms = 11;
bool is_locked = 12;
double frozen_balance = 8;
string updated_at = 9;
string created_at = 10;
string wallet_code = 11;
bool accepted_terms = 12;
bool is_locked = 13;
}
// Frozen Asset is asset locked due to reservation
message FrozenAsset {
uint64 id = 1;
int64 asset_id = 2;
int64 wallet_id = 4;
double amount = 5;
string created_at = 6;
string updated_at = 7;
optional string expires_at = 8;
}
message UserInitWalletReq {
@ -445,3 +458,15 @@ message Network {
message NetworkList {
repeated Network list = 1;
}
message Commission {
uint64 id = 1;
string name = 2;
double service = 3;
double tax = 4;
double total = 5;
string collector = 6;
optional string description = 7;
string updated_at = 10;
string created_at = 11;
}