xenith-read 0.1.0

Multi-chain parallel storage reads and divergence detection for xenith
Documentation
//! Multi-chain parallel storage read layer for xenith.
//!
//! Provides [`MultiChainReader`], which issues concurrent EVM storage reads and
//! contract calls across many chains and reports slot-level divergence. Depends
//! on [`xenith_core`] for error types and chain identifiers. Enable the
//! `live-rpc` feature to use the alloy-backed `AlloyProvider` against real
//! JSON-RPC nodes; [`MockProvider`] is always available for tests.
//!
//! ```rust,no_run
//! use std::collections::HashMap;
//! use xenith_core::ChainId;
//! use xenith_read::MultiChainReader;
//!
//! # async fn example() {
//! let reader = MultiChainReader::new(HashMap::new());
//! let report = reader
//!     .check_divergence(vec![ChainId::from(1)], [0u8; 20], [0u8; 32])
//!     .await;
//! # }
//! ```
//!
//! See the [xenith_core] crate for core types and traits.

#[cfg(feature = "live-rpc")]
pub mod alloy_provider;
pub mod provider;
pub mod reader;

#[cfg(feature = "live-rpc")]
pub use alloy_provider::AlloyProvider;
pub use provider::{ChainProvider, MockProvider};
pub use reader::{DivergenceReport, MultiChainReader};