stratus/
alias.rs

1//! Type aliases for external crates types that conflict with our own types or are too verbose.
2
3use alloy_primitives::B256;
4
5use crate::eth::primitives::ExternalTransaction;
6
7// -----------------------------------------------------------------------------
8// Serde
9// -----------------------------------------------------------------------------
10pub type JsonValue = serde_json::Value;
11
12// -----------------------------------------------------------------------------
13// Alloy
14// -----------------------------------------------------------------------------
15pub type AlloyBlockVoid = alloy_rpc_types_eth::Block<()>;
16pub type AlloyBlockAlloyTransaction = alloy_rpc_types_eth::Block<alloy_rpc_types_eth::Transaction>;
17pub type AlloyBlockExternalTransaction = alloy_rpc_types_eth::Block<ExternalTransaction>;
18pub type AlloyBlockB256 = alloy_rpc_types_eth::Block<B256>;
19pub type AlloyBytes = alloy_primitives::Bytes;
20pub type AlloyLog = alloy_rpc_types_eth::Log;
21pub type AlloyLogData = alloy_primitives::LogData;
22pub type AlloyLogPrimitive = alloy_primitives::Log;
23pub type AlloyBloom = alloy_primitives::Bloom;
24pub type AlloyReceipt = alloy_rpc_types_eth::TransactionReceipt;
25pub type AlloyTransaction = alloy_rpc_types_eth::Transaction;
26pub type AlloyAddress = alloy_primitives::Address;
27pub type AlloyConsensusHeader = alloy_consensus::Header;
28pub type AlloyHeader = alloy_rpc_types_eth::Header;
29
30// -----------------------------------------------------------------------------
31// REVM
32// -----------------------------------------------------------------------------
33pub type RevmAccountInfo = revm::state::AccountInfo;
34pub type RevmAddress = revm::primitives::Address;
35pub type RevmBytecode = revm::state::Bytecode;
36pub type RevmBytes = revm::primitives::Bytes;
37pub type RevmLog = revm::primitives::Log;
38pub type RevmOutput = revm::context::result::Output;
39pub type RevmState = revm::state::EvmState;