//! This code was AUTOGENERATED using the Codama library.
/// Panic state for emergency protocol pausing
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, borsh::BorshSerialize, borsh::BorshDeserialize, PartialEq)]
pub struct PanicState {
/// Whether the protocol is currently paused (1 = paused, 0 = not paused)
pub pause_flags: u8,
/// Number of times paused today (resets every 24 hours)
pub daily_pause_count: u8,
/// Number of consecutive pauses (resets when unpause happens)
pub consecutive_pause_count: u8,
pub reserved: [u8; 5],
/// Timestamp when the current pause started (0 if not paused)
/// * When a pause is extended before expiring, this could be in the future.
pub pause_start_timestamp: i64,
/// Timestamp of the last daily reset (for tracking daily pause count)
pub last_daily_reset_timestamp: i64,
/// Reserved for future use (making total struct 32 bytes)
pub reserved_space: [u8; 8],
}