use candid::CandidType;
use serde::{Deserialize, Serialize};

#[derive(CandidType, Debug, Default, Clone, Deserialize, Serialize, PartialEq, Eq)]
pub struct ReportRange {
    /// Total leaves in the merkle tree
    pub total_count: usize,
    pub sharding_range: CandidRange,
    pub report_range: CandidRange,
}

#[derive(CandidType, Debug, Default, Clone, Deserialize, Serialize, PartialEq, Eq)]
pub struct CandidRange {
    pub start: usize,
    pub end: usize,
}
