Skip to main content

Crate xenith_read

Crate xenith_read 

Source
Expand description

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.

use std::collections::HashMap;
use xenith_core::ChainId;
use xenith_read::MultiChainReader;

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.

Re-exports§

pub use alloy_provider::AlloyProvider;
pub use provider::ChainProvider;
pub use provider::MockProvider;
pub use reader::DivergenceReport;
pub use reader::MultiChainReader;

Modules§

alloy_provider
provider
reader