Add hratls_pubkey to NewAppReq and AppDeployConfig; adjust field indices

This commit is contained in:
Noor 2025-03-06 00:59:58 +00:00
parent a6baa4059d
commit 9ba3bc3186
Signed by: noormohammedb
GPG Key ID: E424C39E19EFD7DF
2 changed files with 7 additions and 2 deletions

@ -26,8 +26,9 @@ message NewAppReq {
AppResource resource = 3; AppResource resource = 3;
string uuid = 4; string uuid = 4;
string admin_pubkey = 5; string admin_pubkey = 5;
uint64 price_per_unit = 15; uint64 price_per_unit = 6;
uint64 locked_nano = 16; uint64 locked_nano = 7;
string hratls_pubkey = 8;
} }
message AppResource { message AppResource {

@ -44,6 +44,8 @@ pub struct AppDeployConfig {
pub price_per_unit: u64, pub price_per_unit: u64,
#[serde(default)] #[serde(default)]
pub locked_nano: u64, pub locked_nano: u64,
#[serde(default)]
pub hratls_pubkey: String,
} }
impl From<NewAppReq> for AppDeployConfig { impl From<NewAppReq> for AppDeployConfig {
@ -56,6 +58,7 @@ impl From<NewAppReq> for AppDeployConfig {
node_pubkey: pb_val.node_pubkey, node_pubkey: pb_val.node_pubkey,
price_per_unit: pb_val.price_per_unit, price_per_unit: pb_val.price_per_unit,
locked_nano: pb_val.locked_nano, locked_nano: pb_val.locked_nano,
hratls_pubkey: pb_val.hratls_pubkey,
} }
} }
} }
@ -70,6 +73,7 @@ impl From<AppDeployConfig> for NewAppReq {
node_pubkey: val.node_pubkey, node_pubkey: val.node_pubkey,
price_per_unit: val.price_per_unit, price_per_unit: val.price_per_unit,
locked_nano: val.locked_nano, locked_nano: val.locked_nano,
hratls_pubkey: val.hratls_pubkey,
} }
} }
} }