kona_derive_alloy/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#![doc = include_str!("../README.md")]
#![doc(
    html_logo_url = "https://raw.githubusercontent.com/anton-rs/kona/main/assets/square.png",
    html_favicon_url = "https://raw.githubusercontent.com/anton-rs/kona/main/assets/favicon.ico"
)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![cfg_attr(not(test), warn(unused_crate_dependencies))]

/// Re-export commonly used types and traits.
pub mod prelude {
    pub use super::{
        alloy_providers::{AlloyChainProvider, AlloyL2ChainProvider},
        beacon_client::{BeaconClient, OnlineBeaconClient},
        blob_provider::{
            BlobSidecarProvider, OnlineBlobProvider, OnlineBlobProviderBuilder,
            OnlineBlobProviderWithFallback,
        },
        pipeline::{new_online_pipeline, OnlinePipeline},
    };
    pub use kona_derive::prelude::*;
}

pub mod pipeline;
pub use pipeline::{new_online_pipeline, OnlinePipeline};

pub mod alloy_providers;
pub use alloy_providers::{AlloyChainProvider, AlloyL2ChainProvider};

pub mod beacon_client;
pub use beacon_client::{APIConfigResponse, APIGenesisResponse, BeaconClient, OnlineBeaconClient};

pub mod blob_provider;
pub use blob_provider::{
    BlobSidecarProvider, OnlineBlobProvider, OnlineBlobProviderBuilder,
    OnlineBlobProviderWithFallback,
};

pub mod errors;
pub use errors::AlloyProviderError;

#[cfg(any(test, feature = "test-utils"))]
pub mod test_utils;