reth_codecs/txtype.rs
1//! Commonly used constants for transaction types.
2
3/// Identifier parameter for legacy transaction
4pub const COMPACT_IDENTIFIER_LEGACY: usize = 0;
5
6/// Identifier parameter for EIP-2930 transaction
7pub const COMPACT_IDENTIFIER_EIP2930: usize = 1;
8
9/// Identifier parameter for EIP-1559 transaction
10pub const COMPACT_IDENTIFIER_EIP1559: usize = 2;
11
12/// For backwards compatibility purposes only 2 bits of the type are encoded in the identifier
13/// parameter. In the case of a [`COMPACT_EXTENDED_IDENTIFIER_FLAG`], the full transaction type is
14/// read from the buffer as a single byte.
15pub const COMPACT_EXTENDED_IDENTIFIER_FLAG: usize = 3;