-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathalias.rs
44 lines (39 loc) · 2.09 KB
/
alias.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
//! Type aliases for external crates types that conflict with our own types or are too verbose.
use ethereum_types::H256;
use crate::eth::primitives::ExternalTransaction;
// -----------------------------------------------------------------------------
// Serde
// -----------------------------------------------------------------------------
pub type JsonValue = serde_json::Value;
// -----------------------------------------------------------------------------
// Alloy
// -----------------------------------------------------------------------------
pub type AlloyBlockVoid = alloy_rpc_types_eth::Block<()>;
pub type AlloyBlockAlloyTransaction = alloy_rpc_types_eth::Block<alloy_rpc_types_eth::Transaction>;
pub type AlloyBlockExternalTransaction = alloy_rpc_types_eth::Block<ExternalTransaction>;
pub type AlloyBlockH256 = alloy_rpc_types_eth::Block<H256>;
pub type AlloyBytes = alloy_primitives::Bytes;
pub type AlloyLog = alloy_rpc_types_eth::Log;
pub type AlloyLogData = alloy_primitives::LogData;
pub type AlloyLogPrimitive = alloy_primitives::Log;
pub type AlloyBloom = alloy_primitives::Bloom;
pub type AlloyReceipt = alloy_rpc_types_eth::TransactionReceipt;
pub type AlloyTransaction = alloy_rpc_types_eth::Transaction;
pub type AlloyAddress = alloy_primitives::Address;
pub type AlloyB256 = alloy_primitives::B256;
pub type AlloyB64 = alloy_primitives::B64;
pub type AlloyConsensusHeader = alloy_consensus::Header;
pub type AlloyHeader = alloy_rpc_types_eth::Header;
pub type AlloyUint256 = alloy_primitives::Uint<256, 4>;
// -----------------------------------------------------------------------------
// REVM
// -----------------------------------------------------------------------------
pub type RevmAccountInfo = revm::primitives::AccountInfo;
pub type RevmAddress = revm::primitives::Address;
pub type RevmB256 = revm::primitives::B256;
pub type RevmBytecode = revm::primitives::Bytecode;
pub type RevmBytes = revm::primitives::Bytes;
pub type RevmLog = revm::primitives::Log;
pub type RevmOutput = revm::primitives::Output;
pub type RevmState = revm::primitives::EvmState;
pub type RevmU256 = revm::primitives::U256;