ic-query 0.92.0

Internet Computer query library for CloudEngine, NNS, SNS, ICRC, system canisters, and public network metadata
Documentation
#[cfg(feature = "nns-host")]
mod data_center;
#[cfg(feature = "nns-host")]
mod node;
#[cfg(feature = "nns-host")]
mod node_operator;
#[cfg(feature = "nns-host")]
mod node_provider;
#[cfg(feature = "nns-topology-host")]
mod subnet_topology;

use crate::subnet_catalog::SubnetKind;
#[cfg(all(test, feature = "nns-host"))]
use ic_host_tools::registry::proto::SubnetType;

#[cfg(feature = "nns-host")]
pub(super) use data_center::data_center_list_from_inventory;
#[cfg(feature = "nns-host")]
pub(super) use node::node_list_from_inventory;
#[cfg(feature = "nns-host")]
pub(super) use node_operator::node_operator_list_from_inventory;
#[cfg(all(test, feature = "nns-host"))]
pub(super) use node_provider::node_provider_from_governance;
#[cfg(feature = "nns-host")]
pub(super) use node_provider::node_provider_metadata_from_response;
#[cfg(feature = "nns-topology-host")]
pub(super) use subnet_topology::subnet_topology_from_inventory;

pub(in crate::ic_registry) const fn subnet_kind_from_registry(subnet_type: i32) -> SubnetKind {
    SubnetKind::from_registry_subnet_type(subnet_type)
}

#[cfg(all(test, feature = "nns-host"))]
mod tests;