alloy_rpc_types_engine/
lib.rs

1#![doc = include_str!("../README.md")]
2#![doc(
3    html_logo_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/alloy.jpg",
4    html_favicon_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/favicon.ico"
5)]
6#![cfg_attr(not(test), warn(unused_crate_dependencies))]
7#![cfg_attr(docsrs, feature(doc_cfg))]
8#![cfg_attr(not(feature = "std"), no_std)]
9
10#[macro_use]
11extern crate alloc;
12
13mod cancun;
14pub use cancun::*;
15mod prague;
16pub use prague::*;
17mod sidecar;
18pub use sidecar::*;
19
20mod forkchoice;
21pub use forkchoice::*;
22
23mod version;
24pub use version::ForkchoiceUpdateVersion;
25
26mod identification;
27pub use identification::*;
28
29#[cfg(feature = "jwt")]
30mod jwt;
31#[cfg(feature = "jwt")]
32pub use jwt::*;
33
34pub mod payload;
35pub use payload::*;
36
37mod error;
38pub use error::*;
39
40mod transition;
41pub use transition::*;
42
43#[doc(inline)]
44pub use alloy_eips::eip4844::BlobAndProofV1;
45
46/// The list of all supported Engine capabilities available over the engine endpoint.
47///
48/// Latest spec: Prague
49pub const CAPABILITIES: &[&str] = &[
50    "engine_forkchoiceUpdatedV1",
51    "engine_forkchoiceUpdatedV2",
52    "engine_forkchoiceUpdatedV3",
53    "engine_exchangeTransitionConfigurationV1",
54    "engine_getClientVersionV1",
55    "engine_getPayloadV1",
56    "engine_getPayloadV2",
57    "engine_getPayloadV3",
58    "engine_getPayloadV4",
59    "engine_newPayloadV1",
60    "engine_newPayloadV2",
61    "engine_newPayloadV3",
62    "engine_newPayloadV4",
63    "engine_getPayloadBodiesByHashV1",
64    "engine_getPayloadBodiesByRangeV1",
65];