kona_rpc/
lib.rs

1#![doc = include_str!("../README.md")]
2#![doc(
3    html_logo_url = "https://raw.githubusercontent.com/op-rs/kona/main/assets/square.png",
4    html_favicon_url = "https://raw.githubusercontent.com/op-rs/kona/main/assets/favicon.ico",
5    issue_tracker_base_url = "https://github.com/op-rs/kona/issues/"
6)]
7#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
8
9#[macro_use]
10extern crate tracing;
11
12mod admin;
13pub use admin::{AdminRpc, NetworkAdminQuery, SequencerAdminQuery};
14
15mod config;
16pub use config::RpcBuilder;
17
18mod net;
19pub use net::P2pRpc;
20
21mod p2p;
22
23mod response;
24pub use response::SafeHeadResponse;
25
26mod output;
27pub use output::OutputResponse;
28
29mod dev;
30pub use dev::DevEngineRpc;
31
32mod jsonrpsee;
33pub use jsonrpsee::{
34    AdminApiServer, DevEngineApiServer, MinerApiExtServer, OpAdminApiServer, OpP2PApiServer,
35    RollupNodeApiServer, WsServer,
36};
37
38#[cfg(feature = "client")]
39mod interop;
40#[cfg(feature = "client")]
41pub use interop::{CheckAccessListClient, InteropTxValidator, InteropTxValidatorError};
42
43mod rollup;
44pub use rollup::RollupRpc;
45
46mod l1_watcher;
47pub use l1_watcher::{L1State, L1WatcherQueries, L1WatcherQuerySender};
48
49mod ws;
50pub use ws::WsRPC;
51
52/// A healthcheck response for the RPC server.
53#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
54pub struct HealthzResponse {
55    /// The application version.
56    pub version: String,
57}