Skip to main content

reth_rpc_convert/
lib.rs

1//! Reth compatibility and utils for RPC types
2//!
3//! This crate various helper functions to convert between reth primitive types and rpc types.
4
5#![doc(
6    html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",
7    html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
8    issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
9)]
10#![cfg_attr(not(test), warn(unused_crate_dependencies))]
11#![cfg_attr(docsrs, feature(doc_cfg))]
12
13mod fees;
14mod rpc;
15pub mod transaction;
16
17pub use fees::{CallFees, CallFeesError};
18pub use rpc::*;
19pub use transaction::{
20    normalize_transaction_request, EthTxEnvError, RpcConvert, RpcConverter,
21    TransactionConversionError, TryIntoTxEnv,
22};
23
24// Re-export traits from reth-rpc-traits
25pub use reth_rpc_traits::{
26    FromConsensusHeader, FromConsensusTx, SignTxRequestError, SignableTxRequest, TryIntoSimTx,
27    TxInfoMapper,
28};