Merge pull request 'feat: add asset price message and add asset price for asset schema' (#17) from feat-asset-price into v2
Reviewed-on: https://git.kahrobatoken.com/Kahroba/proto/pulls/17
This commit is contained in:
commit
c568f0307e
@ -76,6 +76,14 @@ message Asset {
|
||||
int32 status = 31;
|
||||
AssetMeta meta = 32;
|
||||
string type = 33;
|
||||
AssetPrice price = 34;
|
||||
}
|
||||
|
||||
|
||||
message AssetPrice {
|
||||
string updated_at = 1;
|
||||
double market_price = 2;
|
||||
double admin_price = 3;
|
||||
}
|
||||
|
||||
message GetAssetReq {
|
||||
|
||||
@ -18,6 +18,7 @@ service WalletService {
|
||||
rpc UserGetAssetList(base.v1.Empty) returns (AssetList);
|
||||
rpc AdminGetAssetList(base.v1.Empty) returns (AssetList);
|
||||
rpc GetAsset(GetAssetReq) returns (Asset);
|
||||
rpc GetAssetPrice(base.v1.IdReq) returns (AssetPrice);
|
||||
|
||||
rpc UserInitWallet(UserInitWalletReq) returns (base.v1.StatusRes);
|
||||
rpc UserGetWalletList(auth.v1.InternalIAM) returns (WalletList);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user