ic-query 0.76.6

Internet Computer query library for CloudEngine, NNS, SNS, ICRC, system canisters, and public network metadata
Documentation
//! Module: sns::report::proposals_cache
//!
//! Responsibility: complete SNS proposal snapshot refresh and inspection.
//! Does not own: command parsing, live proposal conversion, or text rendering.
//! Boundary: stores complete proposal snapshots and refresh-attempt metadata.

mod collection;
mod model;
mod paths;
mod refresh;
mod reports;

pub(in crate::sns::report) use paths::SnsProposalsCacheCollection;
pub use paths::{
    sns_proposals_cache_path, sns_proposals_refresh_attempt_path, sns_proposals_refresh_lock_path,
};
pub(in crate::sns::report) use refresh::refresh_sns_proposals_cache_with_source_and_progress;
pub use refresh::{
    refresh_sns_proposals_cache, refresh_sns_proposals_cache_with_progress,
    refresh_sns_proposals_cache_with_source,
};
pub(in crate::sns::report) use reports::{
    build_sns_proposal_report_from_cache, build_sns_proposals_report_from_cache_or_refresh,
};
pub use reports::{build_sns_proposals_cache_list_report, build_sns_proposals_cache_status_report};

pub(super) const SNS_PROPOSALS_CACHE_SCHEMA_VERSION: u32 = 1;

const SNS_PROPOSALS_AUTO_REFRESH_PAGE_SIZE: u32 = 100;