Crate kona_interop

Source
Expand description

§kona-interop

CI Kona MPT License Codecov

Core functionality and primitives for the Interop feature of the OP Stack.

Structs§

BlockReplacement
Represents a BlockReplacement event where one block replaces another.
ChainDependency
Configuration for a dependency of a chain
ChainRootInfo
Chain Root Info
DependencySet
Configuration for the dependency set
DerivedIdPair
A pair of BlockNumHashs representing a derivation relationship between two blocks.
DerivedRefPair
A pair of BlockInfos representing a derivation relationship between two blocks.
EnrichedExecutingMessage
A wrapper type for ExecutingMessage containing the chain ID of the chain that the message was executed on.
ExecutingDescriptor
An ExecutingDescriptor is a part of the payload to supervisor_checkAccessList Spec: https://github.com/ethereum-optimism/specs/blob/main/specs/interop/supervisor.md#executingdescriptor
ExecutingMessage
@notice Emitted when a cross chain message is being executed. @param payloadHash Hash of message payload being executed. @param identifier Encoded Identifier of the message.
ManagedEvent
Event sent by the node to the supervisor to share updates.
MessageGraph
The MessageGraph represents a set of blocks at a given timestamp and the interop dependencies between them.
MessageIdentifier
@notice The struct for a pointer to a message payload in a remote (or local) chain.
OutputRootWithChain
A wrapper around an output root hash with the chain ID it belongs to.
RawMessagePayload
A RawMessagePayload is the raw payload of an initiating message.
SafetyLevelParseError
Error when parsing SafetyLevel from string.
SuperRoot
The SuperRoot is the snapshot of the superchain at a given timestamp.
SuperRootOutput
The super root response type.

Enums§

ControlEvent
Control Event
InteropValidationError
Errors that can occur during interop validation.
MessageGraphError
An error type for the MessageGraph struct.
SafetyLevel
The safety level of a message.
SuperRootError
An error type for the SuperRoot struct’s serialization and deserialization.

Constants§

MESSAGE_EXPIRY_WINDOW
The expiry window for relaying an initiating message (in seconds). https://specs.optimism.io/interop/messaging.html#message-expiry-invariant
SUPER_ROOT_VERSION
The current version of the SuperRoot encoding format.

Traits§

InteropProvider
Describes the interface of the interop data provider. This provider is multiplexed over several chains, with each method consuming a chain ID to determine the target chain.
InteropValidator
Trait for validating interop-related timestamps and blocks.

Functions§

extract_executing_messages
Extracts all ExecutingMessage events from list of OpReceiptEnvelopes.
parse_access_list_item_to_inbox_entries
Parse AccessListItem to inbox entries, if any. Max 3 inbox entries can exist per AccessListItem that points to Predeploys::CROSS_L2_INBOX.
parse_access_list_items_to_inbox_entries
Parses AccessListItems to inbox entries.
parse_log_to_executing_message
Parse Log to ExecutingMessage, if any.
parse_logs_to_executing_msgs
Parses Logs to ExecutingMessages.

Type Aliases§

MessageGraphResult
A Result alias for the MessageGraphError type.
SuperRootResult
A Result alias for the SuperRootError type.