cycles-quartz/crates/cli/src/request/dev.rs
Daniel Gushchyan 14a6913632
refactor: refactor repo as standard rust monorepo (#222)
Co-authored-by: hu55a1n1 <sufialhussaini@gmail.com>
2024-09-30 23:33:22 +04:00

26 lines
587 B
Rust

use std::path::PathBuf;
use cosmrs::AccountId;
use quartz_common::enclave::types::Fmspc;
use crate::request::Request;
#[derive(Clone, Debug)]
pub struct DevRequest {
pub watch: bool,
pub unsafe_trust_latest: bool,
pub init_msg: serde_json::Value,
pub label: String,
pub contract_manifest: PathBuf,
pub release: bool,
pub fmspc: Option<Fmspc>,
pub tcbinfo_contract: Option<AccountId>,
pub dcap_verifier_contract: Option<AccountId>,
}
impl From<DevRequest> for Request {
fn from(request: DevRequest) -> Self {
Self::Dev(request)
}
}