v2: gen contract + healthcheck rpc added
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
+27
-2
@@ -551,8 +551,9 @@ message BuyAssetReq {
|
||||
double amount_irt = 3;
|
||||
double amount_asset = 4;
|
||||
BuyAssetSide side = 5;
|
||||
optional string discount_code = 6;
|
||||
optional auth.v1.TFA tfa = 7; // This might be used in the future
|
||||
optional uint64 contract_id = 6; // Only in asset that require agreement contract
|
||||
optional string discount_code = 7;
|
||||
optional auth.v1.TFA tfa = 8; // This might be used in the future
|
||||
}
|
||||
|
||||
enum BuyAssetSide {
|
||||
@@ -578,3 +579,27 @@ message BuyAssetRes {
|
||||
string irt_hash = 2;
|
||||
string asset_hash = 3;
|
||||
}
|
||||
|
||||
/* Contract */
|
||||
|
||||
enum ContractType {
|
||||
CONTRACT_TYPE_ICO = 0;
|
||||
CONTRACT_TYPE_MARKET = 1;
|
||||
CONTRACT_TYPE_BNPL = 2;
|
||||
CONTRACT_TYPE_REDEEM = 3;
|
||||
}
|
||||
|
||||
message GenerateContractReq {
|
||||
auth.v1.InternalIAM iam = 1;
|
||||
int64 asset_id = 2;
|
||||
int64 amount = 3;
|
||||
ContractType contract_type = 4;
|
||||
map<string, string> metadata = 5;
|
||||
}
|
||||
|
||||
message ContractRes {
|
||||
string link = 1;
|
||||
uint64 contract_id = 2;
|
||||
string contract_hash = 3;
|
||||
string contract_content = 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user