MarketPlace: parent order
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
20bc178ea4
commit
d727e8cd59
@ -18,7 +18,7 @@ message MarketOrder {
|
|||||||
double total_price = 7;
|
double total_price = 7;
|
||||||
MarketOrderType type = 8;
|
MarketOrderType type = 8;
|
||||||
MarketOrderStatus status = 9;
|
MarketOrderStatus status = 9;
|
||||||
string from = 10;
|
int64 from = 10;
|
||||||
float commission = 11;
|
float commission = 11;
|
||||||
float completion_rate = 12;
|
float completion_rate = 12;
|
||||||
string created_at = 13;
|
string created_at = 13;
|
||||||
@ -27,6 +27,7 @@ message MarketOrder {
|
|||||||
wallet.v1.TransactionList trx = 16;
|
wallet.v1.TransactionList trx = 16;
|
||||||
repeated string tags = 17;
|
repeated string tags = 17;
|
||||||
repeated string comment = 18;
|
repeated string comment = 18;
|
||||||
|
optional MarketOrder parent = 19; // purchase is done via this field
|
||||||
// repeated string attachments = 14; // possible files included by seller/buyer
|
// repeated string attachments = 14; // possible files included by seller/buyer
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,6 +35,7 @@ message MarketAssetListReq{
|
|||||||
base.v1.BaseQueryParam base = 1;
|
base.v1.BaseQueryParam base = 1;
|
||||||
optional auth.v1.InternalIAM iam = 2; // If not set, will returns only public orders which are limited by a white list
|
optional auth.v1.InternalIAM iam = 2; // If not set, will returns only public orders which are limited by a white list
|
||||||
}
|
}
|
||||||
|
|
||||||
message MarketAssetList{
|
message MarketAssetList{
|
||||||
repeated wallet.v1.Asset list = 1;
|
repeated wallet.v1.Asset list = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ service MarketplaceSrv {
|
|||||||
rpc GetMarketOrderDet(auth.v1.IdReqWithIAM) returns (MarketOrder); // details of an order by id
|
rpc GetMarketOrderDet(auth.v1.IdReqWithIAM) returns (MarketOrder); // details of an order by id
|
||||||
rpc GetAllOrderList(OrderListFilter) returns (MarketOrderList); // list of all orders (seller and buyer combined)
|
rpc GetAllOrderList(OrderListFilter) returns (MarketOrderList); // list of all orders (seller and buyer combined)
|
||||||
|
|
||||||
rpc GetAssetList(MarketAssetListReq) returns (MarketAssetList); // assets that can be listed in marketplace
|
rpc GetMarketAssetList(MarketAssetListReq) returns (MarketAssetList); // assets that can be listed in marketplace
|
||||||
|
|
||||||
rpc GetSellerList(OrderListFilter) returns (MarketOrderList); // list of orders by sellers
|
rpc GetSellerList(OrderListFilter) returns (MarketOrderList); // list of orders by sellers
|
||||||
rpc GetBuyerList(OrderListFilter) returns (MarketOrderList); // list of orders by buyers
|
rpc GetBuyerList(OrderListFilter) returns (MarketOrderList); // list of orders by buyers
|
||||||
@ -18,7 +18,6 @@ service MarketplaceSrv {
|
|||||||
rpc NewSellOrder(NewMarketReq) returns (MarketOrder); // insert new sell order to market
|
rpc NewSellOrder(NewMarketReq) returns (MarketOrder); // insert new sell order to market
|
||||||
rpc NewBuyOrder(NewMarketReq) returns (MarketOrder); // insert new buy order to market
|
rpc NewBuyOrder(NewMarketReq) returns (MarketOrder); // insert new buy order to market
|
||||||
|
|
||||||
|
|
||||||
rpc Purchace(PurchaseReq) returns (PurchaseRes); // purchase from an order
|
rpc Purchace(PurchaseReq) returns (PurchaseRes); // purchase from an order
|
||||||
|
|
||||||
rpc CancelOrder(auth.v1.IdReqWithIAM) returns (base.v1.StatusRes); // cancel an order
|
rpc CancelOrder(auth.v1.IdReqWithIAM) returns (base.v1.StatusRes); // cancel an order
|
||||||
|
|||||||
@ -239,6 +239,9 @@ enum TransactionType {
|
|||||||
WAGE = 7;
|
WAGE = 7;
|
||||||
EXTERNAL_DEPOSIT = 8;
|
EXTERNAL_DEPOSIT = 8;
|
||||||
INTERNAL_DEPOSIT = 9;
|
INTERNAL_DEPOSIT = 9;
|
||||||
|
MARKETPLACE_BUY = 10;
|
||||||
|
MARKETPLACE_SELL = 11;
|
||||||
|
LOCK = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum TransactionStatus {
|
enum TransactionStatus {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user