ic-query 0.25.12

Internet Computer query library for NNS, SNS, ICRC, system canisters, and public network metadata
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::model::TopologyRequestParts;
use crate::{nns::NnsInventoryCacheRequest, subnet_catalog::SubnetCatalogCacheRequest};

pub(in crate::nns::topology::report) fn subnet_catalog_cache_request(
    request: &impl TopologyRequestParts,
) -> SubnetCatalogCacheRequest {
    SubnetCatalogCacheRequest::new(request.cache_root(), request.network())
}

pub(in crate::nns::topology::report) fn inventory_cache_request(
    request: &impl TopologyRequestParts,
) -> NnsInventoryCacheRequest {
    NnsInventoryCacheRequest::new(request.cache_root(), request.network())
}