graph_networks_registry/
lib.rs

1//! Networks Registry for managing blockchain network configurations
2//!
3//! # Main Types
4//!
5//! - [`NetworksRegistry`] - The main struct for managing network configurations
6//!
7//! # Example
8//!
9//! ```
10//! use graph_networks_registry::NetworksRegistry;
11//!
12//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
13//! // Load the latest registry from online source
14//! let registry = NetworksRegistry::from_latest_version().await?;
15//!
16//! // Look up a network by ID
17//! let mainnet = registry.get_network_by_id("mainnet");
18//! # Ok(())
19//! # }
20//! ```
21//!
22//! # Additional Types
23//!
24//! - [`Network`] - Individual network configuration
25
26mod client;
27mod error;
28mod types;
29mod version;
30
31pub use error::Error;
32pub use types::*;