Add app_name field to AppContract and NewAppReq messages; update AppDeployConfig struct
This commit is contained in:
parent
d6ffc0d4cb
commit
099f0a0488
@ -20,6 +20,7 @@ message AppContract {
|
||||
string collected_at = 12;
|
||||
string hratls_pubkey = 13;
|
||||
optional bytes public_package_mr_enclave = 14;
|
||||
string app_name = 15;
|
||||
}
|
||||
|
||||
message NewAppReq {
|
||||
@ -32,6 +33,7 @@ message NewAppReq {
|
||||
uint64 locked_nano = 7;
|
||||
string hratls_pubkey = 8;
|
||||
optional bytes public_package_mr_enclave = 9;
|
||||
string app_name = 10;
|
||||
}
|
||||
|
||||
message AppResource {
|
||||
|
@ -51,7 +51,8 @@ pub struct AppDeployConfig {
|
||||
pub hours: u64,
|
||||
#[serde(default)]
|
||||
pub private_package: bool,
|
||||
// pub public_package: bool,
|
||||
#[serde(default)]
|
||||
pub app_name: String,
|
||||
}
|
||||
|
||||
impl From<NewAppReq> for AppDeployConfig {
|
||||
@ -83,6 +84,7 @@ impl From<AppDeployConfig> for NewAppReq {
|
||||
locked_nano: val.locked_nano,
|
||||
hratls_pubkey: val.hratls_pubkey,
|
||||
public_package_mr_enclave: val.public_package_mr_enclave,
|
||||
app_name: val.app_name,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user