From 206836156aa53d42ead7202a25cb415a531d95c3 Mon Sep 17 00:00:00 2001 From: nfel Date: Tue, 20 May 2025 16:12:58 +0330 Subject: [PATCH] v2: asset meta changes Signed-off-by: nfel --- wallet/v1/msg.proto | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/wallet/v1/msg.proto b/wallet/v1/msg.proto index 8d56bdc..e370097 100644 --- a/wallet/v1/msg.proto +++ b/wallet/v1/msg.proto @@ -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;