ethportal-api 0.1.4

Definitions for various Ethereum Portal Network JSONRPC APIs
//! # ethportal-api
//!
//! `ethportal_api` is a collection of Portal Network APIs and types.

mod discv5;
mod history;
pub mod types;
mod web3;

#[cfg(feature = "client")]
pub use discv5::Discv5ApiClient;

#[cfg(feature = "server")]
pub use discv5::Discv5ApiServer;

#[cfg(feature = "client")]
pub use history::HistoryNetworkApiClient;

#[cfg(feature = "server")]
pub use history::HistoryNetworkApiServer;

#[cfg(feature = "client")]
pub use web3::Web3ApiClient;

#[cfg(feature = "server")]
pub use web3::Web3ApiServer;

pub use types::{
    accumulator::EpochAccumulator, block_body::BlockBody, block_header::BlockHeaderWithProof,
    content_item::HistoryContentItem, content_key::HistoryContentKey, receipts::BlockReceipts,
};

// Re-exports jsonrpsee crate
pub use jsonrpsee;