alloy_rpc_types_eth/
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#![doc = include_str!("../README.md")]
#![doc(
    html_logo_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/alloy.jpg",
    html_favicon_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/favicon.ico"
)]
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![cfg_attr(not(any(test, feature = "std")), no_std)]

#[macro_use]
#[allow(unused_imports)]
extern crate alloc;

pub use alloy_eips::eip4895::Withdrawal;

mod account;
pub use account::*;

mod block;
pub use block::*;

#[cfg(feature = "serde")]
use alloy_serde::WithOtherFields;

/// A catch-all block type for handling blocks on multiple networks.
#[cfg(feature = "serde")]
pub type AnyNetworkBlock = WithOtherFields<Block<WithOtherFields<Transaction>>>;

pub use alloy_network_primitives::{
    BlockTransactionHashes, BlockTransactions, BlockTransactionsKind,
};

mod call;
pub use call::{Bundle, EthCallResponse, StateContext, TransactionIndex};

pub mod error;

mod fee;
pub use fee::{FeeHistory, TxGasAndReward};

mod filter;
pub use filter::*;

mod index;
pub use index::Index;

mod log;
pub use log::*;

#[cfg(feature = "serde")]
pub mod pubsub;

mod raw_log;
pub use raw_log::{logs_bloom, Log as RawLog};

pub mod state;

mod syncing;
pub use syncing::*;

pub mod transaction;
pub use transaction::*;

mod work;
pub use work::Work;

/// This module provides implementations for EIP-4337.
pub mod erc4337;
pub use erc4337::{
    PackedUserOperation, SendUserOperation, SendUserOperationResponse, UserOperation,
    UserOperationGasEstimation, UserOperationReceipt,
};

pub mod simulate;