From 54abe74d42946b238c2ce44bb33f55778490b13d Mon Sep 17 00:00:00 2001 From: Noor Date: Tue, 18 Feb 2025 20:56:03 +0530 Subject: [PATCH] admin pubkey in DelAppReq for authendicate and serde default for AppDeployConfig fields --- proto/sgx/brain.proto | 1 + src/sgx/types/brain.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/proto/sgx/brain.proto b/proto/sgx/brain.proto index 96098ed..b291e04 100644 --- a/proto/sgx/brain.proto +++ b/proto/sgx/brain.proto @@ -52,6 +52,7 @@ message MappedPort { message DelAppReq { string uuid= 1; + string admin_pubkey = 2; } message ListAppContractsReq { diff --git a/src/sgx/types/brain.rs b/src/sgx/types/brain.rs index a3d7135..da1a4cd 100644 --- a/src/sgx/types/brain.rs +++ b/src/sgx/types/brain.rs @@ -40,7 +40,9 @@ pub struct AppDeployConfig { #[serde(default)] pub admin_pubkey: String, pub node_pubkey: String, + #[serde(default)] pub price_per_unit: u64, + #[serde(default)] pub locked_nano: u64, }