v2: is locked and is base asset added + balance rqe for user managed irt wallet
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
d16247cc2b
commit
516a97f906
@ -73,6 +73,8 @@ message Asset {
|
|||||||
AssetMeta meta = 32;
|
AssetMeta meta = 32;
|
||||||
string type = 33;
|
string type = 33;
|
||||||
AssetPrice price = 34;
|
AssetPrice price = 34;
|
||||||
|
bool is_base_asset = 35;
|
||||||
|
bool is_locked = 36;
|
||||||
}
|
}
|
||||||
|
|
||||||
message AssetPrice {
|
message AssetPrice {
|
||||||
@ -347,8 +349,17 @@ message TransferAssetRes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// represent the information regarding the withdraw in bank
|
// represent the information regarding the withdraw in bank
|
||||||
|
message BalanceReq {
|
||||||
|
auth.v1.InternalIAM iam = 1;
|
||||||
|
auth.v1.BankInfo bank_info = 2; //BankInfo
|
||||||
|
}
|
||||||
message WithdrawReceipt { string code = 1; }
|
message WithdrawReceipt { string code = 1; }
|
||||||
|
|
||||||
|
message DepositReq{
|
||||||
|
auth.v1.BankInfo bank_info = 1; //BankInfo
|
||||||
|
double amount = 2;
|
||||||
|
}
|
||||||
|
|
||||||
// represent the information regarding the sale of the token
|
// represent the information regarding the sale of the token
|
||||||
message SaleGetTokenReq {
|
message SaleGetTokenReq {
|
||||||
auth.v1.InternalIAM iam = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
@ -400,6 +411,7 @@ message RedeemTokenReq {
|
|||||||
double amount = 4;
|
double amount = 4;
|
||||||
optional string tfa_code = 5;
|
optional string tfa_code = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CalculateRedeemTokenRes {
|
message CalculateRedeemTokenRes {
|
||||||
Asset asset = 1;
|
Asset asset = 1;
|
||||||
double free_balance = 2;
|
double free_balance = 2;
|
||||||
@ -409,6 +421,7 @@ message CalculateRedeemTokenRes {
|
|||||||
double user_capital = 6;
|
double user_capital = 6;
|
||||||
optional auth.v1.BankInfo bank_info = 7;
|
optional auth.v1.BankInfo bank_info = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
message RedeemTokenRes {
|
message RedeemTokenRes {
|
||||||
uint64 id = 1;
|
uint64 id = 1;
|
||||||
int64 user_id = 2;
|
int64 user_id = 2;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user