Skip to main content

reth_rpc_eth_types/
lib.rs

1//! Reth RPC server types, used in server implementation of `eth` namespace API.
2
3#![doc(
4    html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",
5    html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
6    issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
7)]
8#![cfg_attr(docsrs, feature(doc_cfg))]
9#![cfg_attr(not(test), warn(unused_crate_dependencies))]
10
11// `url` is needed for serde support on `reqwest::Url`
12use url as _;
13
14pub mod block;
15pub mod builder;
16pub mod cache;
17pub mod error;
18pub mod fee_history;
19pub mod gas_oracle;
20pub mod id_provider;
21pub mod logs_utils;
22pub mod pending_block;
23pub mod receipt;
24pub mod simulate;
25pub mod transaction;
26pub mod tx_forward;
27pub mod utils;
28
29pub use alloy_rpc_types_eth::FillTransaction;
30pub use block::CachedTransaction;
31pub use builder::config::{EthConfig, EthFilterConfig};
32pub use cache::{
33    config::EthStateCacheConfig, db::StateCacheDb, multi_consumer::MultiConsumerLruCache,
34    EthStateCache,
35};
36pub use error::{EthApiError, EthResult, RevertError, RpcInvalidTransactionError, SignError};
37pub use fee_history::{FeeHistoryCache, FeeHistoryCacheConfig, FeeHistoryEntry};
38pub use gas_oracle::{
39    GasCap, GasPriceOracle, GasPriceOracleConfig, GasPriceOracleResult, RPC_DEFAULT_GAS_CAP,
40};
41pub use id_provider::EthSubscriptionIdProvider;
42pub use pending_block::{PendingBlock, PendingBlockEnv, PendingBlockEnvOrigin};
43pub use transaction::TransactionSource;
44pub use tx_forward::ForwardConfig;