From 9ba3bc318617b08d8c761767a23abd77519b7e6d Mon Sep 17 00:00:00 2001 From: Noor Date: Thu, 6 Mar 2025 00:59:58 +0000 Subject: [PATCH] Add hratls_pubkey to NewAppReq and AppDeployConfig; adjust field indices --- proto/sgx/brain.proto | 5 +++-- src/sgx/types/brain.rs | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/proto/sgx/brain.proto b/proto/sgx/brain.proto index a3b96b2..3e38d85 100644 --- a/proto/sgx/brain.proto +++ b/proto/sgx/brain.proto @@ -26,8 +26,9 @@ message NewAppReq { AppResource resource = 3; string uuid = 4; string admin_pubkey = 5; - uint64 price_per_unit = 15; - uint64 locked_nano = 16; + uint64 price_per_unit = 6; + uint64 locked_nano = 7; + string hratls_pubkey = 8; } message AppResource { diff --git a/src/sgx/types/brain.rs b/src/sgx/types/brain.rs index da1a4cd..5e88c29 100644 --- a/src/sgx/types/brain.rs +++ b/src/sgx/types/brain.rs @@ -44,6 +44,8 @@ pub struct AppDeployConfig { pub price_per_unit: u64, #[serde(default)] pub locked_nano: u64, + #[serde(default)] + pub hratls_pubkey: String, } impl From for AppDeployConfig { @@ -56,6 +58,7 @@ impl From for AppDeployConfig { node_pubkey: pb_val.node_pubkey, price_per_unit: pb_val.price_per_unit, locked_nano: pb_val.locked_nano, + hratls_pubkey: pb_val.hratls_pubkey, } } } @@ -70,6 +73,7 @@ impl From for NewAppReq { node_pubkey: val.node_pubkey, price_per_unit: val.price_per_unit, locked_nano: val.locked_nano, + hratls_pubkey: val.hratls_pubkey, } } }