use crate::sns::report::cache_paths::{SnsCacheCollection, SnsSnapshotCachePaths};
use std::path::{Path, PathBuf};
pub(super) type SnsProposalsCachePaths = SnsSnapshotCachePaths<SnsProposalsCacheCollection>;
#[derive(Clone, Debug, Eq, PartialEq)]
pub(super) enum SnsProposalsCacheCollection {}
impl SnsCacheCollection for SnsProposalsCacheCollection {
const COLLECTION: &'static str = "proposals";
}
#[must_use]
pub fn sns_proposals_cache_path(
cache_root: &Path,
network: &str,
root_canister_id: &str,
) -> PathBuf {
SnsProposalsCachePaths::for_root(cache_root, network, root_canister_id).cache_path
}
#[must_use]
pub fn sns_proposals_refresh_lock_path(
cache_root: &Path,
network: &str,
root_canister_id: &str,
) -> PathBuf {
SnsProposalsCachePaths::for_root(cache_root, network, root_canister_id).lock_path
}
#[must_use]
pub fn sns_proposals_refresh_attempt_path(
cache_root: &Path,
network: &str,
root_canister_id: &str,
) -> PathBuf {
SnsProposalsCachePaths::for_root(cache_root, network, root_canister_id).attempt_path
}