Crate op_revm

Crate op_revm 

Available on crate feature evm only.
Expand description

Optimism-specific constants, types, and helpers.

Modules§

api
Optimism API types.
constants
Optimism constants used in the Optimism EVM.
evm
Contains the [OpEvm] type and its implementation of the execution EVM traits.
fast_lz
Contains the [flz_compress_len] function.
handler
Handler related to Optimism chain
l1block
Contains the [L1BlockInfo] type and its implementation.
precompiles
Contains Optimism specific precompiles.
result
Contains the [OpHaltReason] type.
spec
Contains the [OpSpecId] type and its implementation.
transaction
Contains the [OpTransaction] type and its implementation.

Structs§

L1BlockInfo
L1 block info
OpEvm
Optimism EVM extends the Evm type with Optimism specific types and logic.
OpTransaction
Optimism transaction.

Enums§

OpHaltReason
Optimism halt reason.
OpSpecId
Optimism spec id.
OpTransactionError
Optimism transaction validation error.

Traits§

DefaultOp
Trait that allows for a default context to be created.
OpBuilder
Trait that allows for optimism OpEvm to be built.

Functions§

estimate_tx_compressed_size
Estimates the compressed size of a transaction.

Type Aliases§

OpContext
Type alias for the default context type of the OpEvm.