alloy_network/ethereum/
mod.rs

1use crate::Network;
2
3mod builder;
4
5mod wallet;
6pub use wallet::{EthereumWallet, IntoWallet};
7
8/// Types for a mainnet-like Ethereum network.
9#[derive(Clone, Copy, Debug)]
10pub struct Ethereum {
11    _private: (),
12}
13
14impl Network for Ethereum {
15    type TxType = alloy_consensus::TxType;
16
17    type TxEnvelope = alloy_consensus::TxEnvelope;
18
19    type UnsignedTx = alloy_consensus::TypedTransaction;
20
21    type ReceiptEnvelope = alloy_consensus::ReceiptEnvelope;
22
23    type Header = alloy_consensus::Header;
24
25    type TransactionRequest = alloy_rpc_types_eth::transaction::TransactionRequest;
26
27    type TransactionResponse = alloy_rpc_types_eth::Transaction;
28
29    type ReceiptResponse = alloy_rpc_types_eth::TransactionReceipt;
30
31    type HeaderResponse = alloy_rpc_types_eth::Header;
32
33    type BlockResponse = alloy_rpc_types_eth::Block;
34}