+13
-2
@@ -79,7 +79,6 @@ message Asset {
|
|||||||
AssetPrice price = 34;
|
AssetPrice price = 34;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
message AssetPrice {
|
message AssetPrice {
|
||||||
string updated_at = 1;
|
string updated_at = 1;
|
||||||
double market_price = 2;
|
double market_price = 2;
|
||||||
@@ -479,9 +478,21 @@ message Commission {
|
|||||||
string created_at = 11;
|
string created_at = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
message LockAssetReq{
|
message LockAssetReq {
|
||||||
int64 asset_id = 1;
|
int64 asset_id = 1;
|
||||||
double amount = 2;
|
double amount = 2;
|
||||||
auth.v1.InternalIAM iam = 3;
|
auth.v1.InternalIAM iam = 3;
|
||||||
optional auth.v1.TFA tfa = 4; // if request is not internal
|
optional auth.v1.TFA tfa = 4; // if request is not internal
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message AssetDiscountReq {
|
||||||
|
string code = 1;
|
||||||
|
string asset_id = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message AssetDiscountRes {
|
||||||
|
string code = 1;
|
||||||
|
string expires_at = 2;
|
||||||
|
double static_amount = 3;
|
||||||
|
double percentage = 4;
|
||||||
|
}
|
||||||
|
|||||||
@@ -50,4 +50,6 @@ service WalletService {
|
|||||||
|
|
||||||
rpc LockAsset(LockAssetReq) returns (base.v1.StatusRes);
|
rpc LockAsset(LockAssetReq) returns (base.v1.StatusRes);
|
||||||
rpc ReleaseAsset(LockAssetReq) returns (base.v1.StatusRes);
|
rpc ReleaseAsset(LockAssetReq) returns (base.v1.StatusRes);
|
||||||
|
|
||||||
|
rpc AssetDiscount(AssetDiscountReq) returns (AssetDiscountRes);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user