Crate op_alloy_protocol

source
Expand description

§op-alloy-protocol

op-alloy-protocol crate

Core protocol types for Optimism.

These include types, constants, and methods for derivation as well as batch-submission.

§Provenance

This code was initially ported from kona-primitives as part of ongoing op-alloy migrations.

Re-exports§

Modules§

  • batch_tx 🔒
    Transaction Types
  • block 🔒
    Block Types for Optimism.
  • This module contains the L1BlockInfoTx type, and various encoding / decoding methods for it.
  • channel 🔒
    Channel Types
  • Contains deposit transaction types and helper methods.
  • This module contains the L1 block fee calculation function.
  • frame 🔒
    Frame Types
  • iter 🔒
    An iterator over encoded frames.
  • utils 🔒
    Utility methods used by protocol types.

Structs§

  • BatchTransaction is a set of Frames that can be Into::into [Bytes]. if the size exceeds the desired threshold.
  • Block Header Info
  • A Channel is a set of batches that are split into at least one, but possibly multiple frames.
  • A channel frame is a segment of a channel’s data.
  • An iterator over encoded frames.
  • L2 Block Header Info

Enums§

Constants§

Functions§

Type Aliases§