mod attempt;
mod collection;
mod model;
mod paths;
mod publish;
mod refresh;
mod reports;
pub use model::{NnsNeuronCacheStatusReport, NnsNeuronCacheSummary, NnsNeuronRefreshReport};
pub use paths::{
nns_neuron_cache_path, nns_neuron_refresh_attempt_path, nns_neuron_refresh_lock_path,
};
pub use refresh::{
DEFAULT_NNS_NEURON_REFRESH_LOCK_STALE_SECONDS, refresh_nns_neuron_cache,
refresh_nns_neuron_cache_with_progress, refresh_nns_neuron_cache_with_source,
};
pub use reports::{
build_nns_neuron_cache_status_report, build_nns_neuron_info_report_from_cache,
build_nns_neuron_list_report_from_cache,
};
use super::NnsNeuronHostError;
use crate::HostCacheError;
const NNS_NEURON_CACHE_SCHEMA_VERSION: u32 = 1;
const NNS_NEURON_REFRESH_REPORT_SCHEMA_VERSION: u32 = 1;
const NNS_NEURON_CACHE_STATUS_REPORT_SCHEMA_VERSION: u32 = 1;
const NNS_NEURON_CACHE_COMPONENT: &str = "NNS neuron";
const fn cache_operation(error: crate::CacheFileError) -> NnsNeuronHostError {
NnsNeuronHostError::Cache(HostCacheError::operation(NNS_NEURON_CACHE_COMPONENT, error))
}