maili_rpc/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#![doc = include_str!("../README.md")]
#![doc(
    html_logo_url = "https://raw.githubusercontent.com/op-rs/maili/main/assets/square.png",
    html_favicon_url = "https://raw.githubusercontent.com/op-rs/maili/main/assets/favicon.ico"
)]
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![cfg_attr(not(feature = "std"), no_std)]

extern crate alloc;

mod net;
pub use net::{
    Connectedness, Direction, GossipScores, PeerDump, PeerInfo, PeerScores, PeerStats,
    ReqRespScores, TopicScores,
};

mod response;
pub use response::SafeHeadResponse;

mod superchain;
pub use superchain::{
    ProtocolVersion, ProtocolVersionError, ProtocolVersionFormatV0, SuperchainSignal,
};

mod output;
pub use output::OutputResponse;

mod attributes;
pub use attributes::OpAttributesWithParent;

mod sync;
pub use sync::{L2BlockRef, SyncStatus};

#[cfg(feature = "interop")]
mod supervisor;
#[cfg(feature = "interop")]
pub use supervisor::{Supervisor, SupervisorClient, SupervisorError};

#[cfg(feature = "jsonrpsee")]
mod api;
#[cfg(all(feature = "jsonrpsee", feature = "client"))]
pub use api::{
    EngineApiExtClient, MinerApiExtClient, OpAdminApiClient, OpP2PApiClient, RollupNodeClient,
    SupervisorApiClient,
};
#[cfg(feature = "jsonrpsee")]
pub use api::{
    EngineApiExtServer, MinerApiExtServer, OpAdminApiServer, OpP2PApiServer, RollupNodeServer,
    SupervisorApiServer,
};

#[cfg(all(feature = "jsonrpsee", feature = "client", feature = "interop"))]
mod traits;
#[cfg(all(feature = "jsonrpsee", feature = "client", feature = "interop"))]
pub use traits::{ExecutingMessageValidator, ExecutingMessageValidatorError};