maili-interop 0.1.9

Interop types for Optimism
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Constants for the OP Stack interop protocol.

use alloy_primitives::{address, Address};

/// The address of the L2 cross chain inbox predeploy proxy.
pub const CROSS_L2_INBOX_ADDRESS: Address = address!("4200000000000000000000000000000000000022");

/// The expiry window for relaying an initiating message (in seconds).
/// <https://specs.optimism.io/interop/messaging.html#message-expiry-invariant>
pub const MESSAGE_EXPIRY_WINDOW: u64 = 180 * 24 * 60 * 60;

/// The current version of the super root encoding format.
pub const SUPER_ROOT_VERSION: u8 = 1;