Skip to content
Verified contractPartialMIT

OPContractsManagerStandardValidator

Address0xae6153ec750dfb0871b3e2287caacc0c19f9e809
Balance

0 ETH

 

Transactions

0

 

Compiler

solc 0.8.15

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.15+commit.e14f2714
Language
solidity
Optimization
Yes, 200 runs
EVM version
london
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,480,487
Creation transaction
0xddd9a4984f…b14dee3220

50 files

The source code is large: one file is shown at a time. Choose a file in the list.

src/libraries/Features.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @notice Features is a library that stores feature name constants. Can be used alongside the
///         feature flagging functionality in the SystemConfig contract to selectively enable or
///         disable customizable features of the OP Stack.
/// @dev ADDING A NEW SYSTEM FEATURE:
///      System feature values are read from SystemConfig on-chain.
///      Add the new feature name here first.
///
///      If the feature should be toggleable through contract-test env vars and the CI feature
///      matrix, update every applicable item below.
///
///        1. Add the env var reader in `packages/contracts-bedrock/scripts/libraries/Config.sol`.
///        2. Consume the reader in deployment and test setup code. Initialize SystemConfig state.
///           Search for existing `Config.sysFeature*` consumers. For `CUSTOM_GAS_TOKEN`, this includes
///           packages/contracts-bedrock/scripts/deploy/Deploy.s.sol and
///           packages/contracts-bedrock/test/setup/CommonTest.sol.
///        3. Add the feature name in `packages/contracts-bedrock/test/setup/FeatureFlags.sol`.
///           System features are not added to resolveFeaturesFromEnv(). Their value comes from
///           SystemConfig.
///        4. Register the feature as a system feature in `.circleci/continue/main.yml` under
///           `setup-features.system_features.default`. A missing entry exports DEV_FEATURE__<NAME>
///           instead of SYS_FEATURE__<NAME>.
///        5. Add CI coverage in `.circleci/continue/main.yml` under the `&features_matrix` anchor.
///           Add combination rows when this feature interacts with another feature. Document
///           intentionally unsupported combinations near the matrix.
///
///      System features have no Go mirror. For the parallel DEV feature checklist, see
///      packages/contracts-bedrock/src/libraries/DevFeatures.sol.
library Features {
    /// @notice The ETH_LOCKBOX feature determines whether the system uses an ETHLockbox.
    bytes32 internal constant ETH_LOCKBOX = "ETH_LOCKBOX";

    /// @notice The CUSTOM_GAS_TOKEN feature determines if the system is configured to use a custom
    ///         gas token in the OptimismPortal. When the CUSTOM_GAS_TOKEN feature is active, the
    ///         deposits and withdrawals of native ETH are disabled.
    bytes32 internal constant CUSTOM_GAS_TOKEN = "CUSTOM_GAS_TOKEN";

    /// @notice The INTEROP feature determines if the system is configured to use interop.
    bytes32 internal constant INTEROP = "INTEROP";
}
Compiler settingsShow
{
  "viaIR": false,
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": false
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "london",
  "remappings": [
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@openzeppelin/contracts-v5/=lib/openzeppelin-contracts-v5/contracts/",
    "@rari-capital/solmate/=lib/solmate/",
    "@lib-keccak/=lib/lib-keccak/contracts/lib/",
    "@solady/=lib/solady/src/",
    "forge-std/=lib/forge-std/src/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "safe-contracts/=lib/safe-contracts/contracts/",
    "kontrol-cheatcodes/=lib/kontrol-cheatcodes/src/",
    "interfaces/=interfaces/",
    "lib/lib-keccak/:solady/=lib/lib-keccak/lib/solady/",
    "lib/lib-keccak/:solady/=lib/lib-keccak/lib/solady/",
    "@solady-test/=lib/lib-keccak/lib/solady/test/",
    "erc4626-tests/=lib/openzeppelin-contracts-v5/lib/erc4626-tests/",
    "lib-keccak/=lib/lib-keccak/contracts/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts-v5/=lib/openzeppelin-contracts-v5/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solady/=lib/solady/",
    "solmate/=lib/solmate/src/"
  ]
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.