ethportal_api/
lib.rs

1//! # ethportal-api
2//!
3//! `ethportal_api` is a collection of Portal Network APIs and types.
4#![warn(clippy::unwrap_used)]
5#![warn(clippy::uninlined_format_args)]
6
7extern crate lazy_static;
8
9mod beacon;
10pub mod discv5;
11mod eth;
12mod history;
13mod legacy_history;
14mod state;
15#[cfg(test)]
16mod test_utils;
17pub mod types;
18pub mod utils;
19pub mod version;
20mod web3;
21
22pub use beacon::{BeaconNetworkApiClient, BeaconNetworkApiServer};
23pub use discv5::{Discv5ApiClient, Discv5ApiServer};
24pub use eth::{EthApiClient, EthApiServer};
25pub use history::{HistoryNetworkApiClient, HistoryNetworkApiServer};
26// Re-exports jsonrpsee crate
27pub use jsonrpsee;
28pub use legacy_history::{LegacyHistoryNetworkApiClient, LegacyHistoryNetworkApiServer};
29pub use state::{StateNetworkApiClient, StateNetworkApiServer};
30pub use types::{
31    consensus,
32    consensus::light_client,
33    content_key::{
34        beacon::{BeaconContentKey, LightClientBootstrapKey, LightClientUpdatesByRangeKey},
35        error::ContentKeyError,
36        history::HistoryContentKey,
37        legacy_history::LegacyHistoryContentKey,
38        overlay::{IdentityContentKey, OverlayContentKey},
39        state::StateContentKey,
40    },
41    content_value::{
42        beacon::BeaconContentValue, error::ContentValueError, history::HistoryContentValue,
43        legacy_history::LegacyHistoryContentValue, state::StateContentValue, ContentValue,
44    },
45    discv5::*,
46    enr::*,
47    execution::{block_body::*, receipts::*},
48    node_id::*,
49    portal::{RawContentKey, RawContentValue},
50    protocol_info::*,
51    protocol_versions::*,
52};
53pub use web3::{Web3ApiClient, Web3ApiServer};