use crate::dto::prelude::*;
#[derive(CandidType, Clone, Copy, Debug, Deserialize, Eq, PartialEq)]
pub enum AppCommand {
SetStatus(AppStatus),
SetCyclesFundingEnabled(bool),
}
#[derive(CandidType, Clone, Copy, Debug, Deserialize, Eq, PartialEq)]
pub enum AppStatus {
Active,
Readonly,
Stopped,
}
#[derive(CandidType, Clone, Copy, Debug, Deserialize, Eq, PartialEq)]
pub enum AppMode {
Enabled,
Readonly,
Disabled,
}
#[derive(CandidType, Clone, Copy, Debug, Deserialize, Eq, PartialEq)]
pub struct AppStateInput {
pub mode: AppMode,
pub cycles_funding_enabled: bool,
}
#[derive(CandidType, Deserialize)]
pub struct AppStateResponse {
pub mode: AppMode,
pub cycles_funding_enabled: bool,
}
#[derive(CandidType, Clone, Copy, Debug, Default, Deserialize, Eq, PartialEq)]
pub struct SubnetStateInput;
#[derive(CandidType, Clone, Copy, Debug, Default, Deserialize, Eq, PartialEq)]
pub struct SubnetStateResponse;
#[derive(CandidType, Clone, Debug, Deserialize, Eq, PartialEq)]
pub struct BootstrapStatusResponse {
pub ready: bool,
pub phase: String,
pub last_error: Option<String>,
}