v2: asset meta changes

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2025-05-20 16:12:58 +03:30
parent bba9c90c6e
commit 206836156a
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F

View File

@ -140,7 +140,7 @@ message AssetList { repeated Asset list = 1; }
message AssetFilter {
repeated int64 ids = 1;
repeated AssetType type = 2; // AssetType
repeated AssetType type = 2; // AssetType
repeated AssetType token_type = 3; // AssetType
repeated AssetStatus status = 4;
repeated string name = 5;
@ -166,7 +166,8 @@ message AssetDiscountRes {
double static_amount = 4;
double percentage = 5;
double max_amount = 6;
double effective_amount = 7; // based of asset price and discount amount in req
double effective_amount =
7; // based of asset price and discount amount in req
optional int64 supported_asset = 8;
}
@ -196,6 +197,18 @@ message PropertyMeta {
string completion_date = 10;
string user_agreement_url = 11;
string location_image = 12;
PropertyDetail detail = 13;
}
message PropertyDetail {
repeated Content badge = 1; // 2>
repeated Content content = 2; // 4>
}
message Content {
string label = 1;
string value = 2;
string value_type = 3;
}
// Used for both locking and releasing asset :)
@ -588,7 +601,7 @@ message DeclineBuyContractReq {
message ConfirmBuyAssetReq {
auth.v1.InternalIAM iam = 1;
uint64 agreement_id = 2; // Only in asset that require agreement contract
uint64 agreement_id = 2; // Only in asset that require agreement contract
optional auth.v1.TFA tfa = 3; // This might be used in the future
}
@ -620,7 +633,7 @@ enum ContractType {
CONTRACT_TYPE_REDEEM = 3;
}
//agreement_id
// agreement_id
message ContractRes {
string link = 1;
uint64 agreement_id = 2;