#[non_exhaustive]pub struct Predeploys;Expand description
Container for all predeploy contract addresses
Implementations§
Source§impl Predeploys
impl Predeploys
Sourcepub const LEGACY_MESSAGE_PASSER: Address
pub const LEGACY_MESSAGE_PASSER: Address
The LegacyMessagePasser contract stores commitments to withdrawal transactions before the Bedrock upgrade. https://specs.optimism.io/protocol/predeploys.html#legacymessagepasser
Sourcepub const DEPLOYER_WHITELIST: Address
pub const DEPLOYER_WHITELIST: Address
The DeployerWhitelist was used to provide additional safety during initial phases of Optimism. https://specs.optimism.io/protocol/predeploys.html#deployerwhitelist
Sourcepub const LEGACY_ERC20_ETH: Address
pub const LEGACY_ERC20_ETH: Address
The LegacyERC20ETH predeploy represented all ether in the system before the Bedrock upgrade. https://specs.optimism.io/protocol/predeploys.html#legacyerc20eth
Sourcepub const WETH9: Address
pub const WETH9: Address
The WETH9 predeploy address. https://specs.optimism.io/protocol/predeploys.html#weth9
Sourcepub const L2_CROSS_DOMAIN_MESSENGER: Address
pub const L2_CROSS_DOMAIN_MESSENGER: Address
Higher level API for sending cross domain messages. https://specs.optimism.io/protocol/predeploys.html#l2crossdomainmessenger
Sourcepub const L2_STANDARD_BRIDGE: Address
pub const L2_STANDARD_BRIDGE: Address
The L2 cross-domain messenger proxy address. https://specs.optimism.io/protocol/predeploys.html#l2standardbridge
Sourcepub const SEQUENCER_FEE_VAULT: Address
pub const SEQUENCER_FEE_VAULT: Address
The sequencer fee vault proxy address. https://specs.optimism.io/protocol/predeploys.html#sequencerfeevault
Sourcepub const OP_MINTABLE_ERC20_FACTORY: Address
pub const OP_MINTABLE_ERC20_FACTORY: Address
The Optimism mintable ERC20 factory proxy address. https://specs.optimism.io/protocol/predeploys.html#optimismmintableerc20factory
Sourcepub const L1_BLOCK_NUMBER: Address
pub const L1_BLOCK_NUMBER: Address
Returns the last known L1 block number (legacy system). https://specs.optimism.io/protocol/predeploys.html#l1blocknumber
Sourcepub const GAS_PRICE_ORACLE: Address
pub const GAS_PRICE_ORACLE: Address
The gas price oracle proxy address. https://specs.optimism.io/protocol/predeploys.html#gaspriceoracle
Sourcepub const GOVERNANCE_TOKEN: Address
pub const GOVERNANCE_TOKEN: Address
The governance token proxy address. https://specs.optimism.io/governance/gov-token.html
Sourcepub const L1_BLOCK_INFO: Address
pub const L1_BLOCK_INFO: Address
The L1 block information proxy address. https://specs.optimism.io/protocol/predeploys.html#l1block
Sourcepub const L2_TO_L1_MESSAGE_PASSER: Address
pub const L2_TO_L1_MESSAGE_PASSER: Address
The L2 contract L2ToL1MessagePasser, stores commitments to withdrawal transactions.
https://specs.optimism.io/protocol/predeploys.html#l2tol1messagepasser
Sourcepub const L2_ERC721_BRIDGE: Address
pub const L2_ERC721_BRIDGE: Address
The L2 ERC721 bridge proxy address. https://specs.optimism.io/protocol/predeploys.html
Sourcepub const OP_MINTABLE_ERC721_FACTORY: Address
pub const OP_MINTABLE_ERC721_FACTORY: Address
The Optimism mintable ERC721 proxy address. https://specs.optimism.io/protocol/predeploys.html#optimismmintableerc721factory
Sourcepub const PROXY_ADMIN: Address
pub const PROXY_ADMIN: Address
The L2 proxy admin address. https://specs.optimism.io/protocol/predeploys.html#proxyadmin
Sourcepub const BASE_FEE_VAULT: Address
pub const BASE_FEE_VAULT: Address
The base fee vault address. https://specs.optimism.io/protocol/predeploys.html#basefeevault
Sourcepub const L1_FEE_VAULT: Address
pub const L1_FEE_VAULT: Address
The L1 fee vault address. https://specs.optimism.io/protocol/predeploys.html#l1feevault
Sourcepub const SCHEMA_REGISTRY: Address
pub const SCHEMA_REGISTRY: Address
The schema registry proxy address. https://specs.optimism.io/protocol/predeploys.html#schemaregistry
Sourcepub const EAS: Address
pub const EAS: Address
The EAS proxy address. https://specs.optimism.io/protocol/predeploys.html#eas
Sourcepub const BEACON_BLOCK_ROOT: Address
pub const BEACON_BLOCK_ROOT: Address
Provides access to L1 beacon block roots (EIP-4788). https://specs.optimism.io/protocol/predeploys.html#beacon-block-root
Sourcepub const OPERATOR_FEE_VAULT: Address
pub const OPERATOR_FEE_VAULT: Address
The Operator Fee Vault proxy address.
Sourcepub const CROSS_L2_INBOX: Address
pub const CROSS_L2_INBOX: Address
The CrossL2Inbox proxy address.
Sourcepub const L2_TO_L2_XDM: Address
pub const L2_TO_L2_XDM: Address
The L2ToL2CrossDomainMessenger proxy address.
Trait Implementations§
Source§impl Clone for Predeploys
impl Clone for Predeploys
Source§fn clone(&self) -> Predeploys
fn clone(&self) -> Predeploys
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Predeploys
impl Debug for Predeploys
Source§impl PartialEq for Predeploys
impl PartialEq for Predeploys
impl Copy for Predeploys
impl Eq for Predeploys
impl StructuralPartialEq for Predeploys
Auto Trait Implementations§
impl Freeze for Predeploys
impl RefUnwindSafe for Predeploys
impl Send for Predeploys
impl Sync for Predeploys
impl Unpin for Predeploys
impl UnwindSafe for Predeploys
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more