kona_protocol/
predeploys.rs

1//! Addresses of OP pre-deploys.
2//!
3//! This module contains the addresses of various predeploy contracts in the OP Stack.
4//! See the complete set of predeploys at <https://specs.optimism.io/protocol/predeploys.html#predeploys>
5
6use alloy_primitives::{Address, address};
7
8/// Container for all predeploy contract addresses
9#[derive(Debug, Copy, Clone, PartialEq, Eq)]
10#[non_exhaustive]
11pub struct Predeploys;
12
13impl Predeploys {
14    /// List of all predeploys.
15    pub const ALL: [Address; 1] = [Self::L2_TO_L1_MESSAGE_PASSER];
16
17    /// The L2 contract `L2ToL1MessagePasser`, stores commitments to withdrawal transactions.
18    pub const L2_TO_L1_MESSAGE_PASSER: Address =
19        address!("0x4200000000000000000000000000000000000016");
20}