ic-query 0.2.10

Internet Computer query CLI for NNS, SNS, and related public network metadata
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{
    nns::{NnsCommandError, command_icp_root},
    subnet_catalog::SubnetCatalogCacheRequest,
};

pub(super) fn cache_request(network: &str) -> Result<SubnetCatalogCacheRequest, NnsCommandError> {
    let icp_root = command_icp_root()?;
    Ok(SubnetCatalogCacheRequest {
        icp_root,
        network: network.to_string(),
    })
}