Expand description
§revm-primitives
EVM primitive types.
Re-exports§
pub use eip7702::AuthorizationList;
pub use eip7702::Eip7702Bytecode;
pub use eip7702::Eip7702DecodeError;
pub use eip7702::EIP7702_MAGIC;
pub use eip7702::EIP7702_MAGIC_BYTES;
pub use kzg::EnvKzgSettings;
pub use alloy_primitives;
pub use alloy_primitives::bytes;
pub use alloy_primitives::hex;
pub use alloy_primitives::hex_literal;
pub use alloy_primitives::ruint;
pub use bitvec;
pub use env::*;
pub use precompile::*;
pub use result::*;
pub use specification::*;
pub use state::*;
pub use utilities::*;
Modules§
- A hash map implemented with quadratic probing and SIMD lookup.
- A hash set implemented as a
HashMap
where the value is()
. - Re-exports of map types and utilities.
Macros§
- Converts a sequence of string literals containing hex-encoded data into a new
Address
at compile time. - Converts a sequence of string literals containing hex-encoded data into a new
B256
at compile time. - Converts a sequence of string literals containing hex-encoded data into a new
Bytes
at compile time. - Converts a sequence of string literals containing hex-encoded data into a new
FixedBytes
at compile time. - Macro for converting sequence of string literals containing hex-encoded data into an array of bytes.
Structs§
- AccessList as defined in EIP-2930
- A list of addresses and storage keys that the transaction plans to access. Accesses outside the list are possible, but become more expensive.
- An Ethereum address, 20 bytes in length.
- An unsigned EIP-7702 authorization.
- Wrapper type around
bytes::Bytes
to support “0x” prefixed hex strings. - EVM Object Format (EOF) container.
- A byte array of fixed length (
[u8; N]
). - A map of valid
jump
destinations. - Stores the setup and parameters needed for computing KZG proofs.
- Legacy analyzed
- A log consists of an address, and some log data.
- An Ethereum event log object.
- A recovered authorization.
- An Ethereum ECDSA signature.
- A signed EIP-7702 authorization.
Enums§
- State of the
Bytecode
analysis. - EOF decode errors.
- Represents the outcome of an attempt to recover the authority from an authorization. It can either be valid (containing an
Address
) or invalid (indicating recovery failure). - The
to
field of a transaction. Either a target address, or empty for a contract creation.
Constants§
- Controls the maximum rate of change for blob gas price.
- EIP-2935: Serve historical block hashes from state
- EIP-2935: Serve historical block hashes from state
- Number of block hashes that EVM can access in the past (pre-Prague).
- EOF Magic in u16 form.
- Hash of EF00 bytes that is used for EXTCODEHASH when called from legacy bytecode.
- Gas consumption of a single data blob (== blob byte size).
- Maximum consumable blob gas for data blobs per block.
- Max number of blobs per block
- EIP-170: Contract code size limit
- EIP-3860: Limit and meter initcode
- Minimum gas price for data blobs.
- The address of precompile 3, which is handled specially in a few places.
- Target consumable blob gas for data blobs per block (for 1559-like pricing).
- Target number of the blob per block.
- First version of the blob.
Statics§
- EOF magic number in array form.
Type Aliases§
- 32-byte fixed byte-array type.
- A
HashMap
using the default hasher. - A
HashSet
using the default hasher. - 256-bit signed integer type, consisting of 4, 64-bit limbs.
- 256-bit unsigned integer type, consisting of 4, 64-bit limbs.