Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // OptimismPortalInteropFlag enables interop features in OptimismPortal2. OptimismPortalInteropFlag = common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000001") // CannonKonaFlag enables Kona as the default cannon prover. CannonKonaFlag = common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000010") // DeployV2DisputeGamesFlag enables deployment of V2 dispute game contracts. DeployV2DisputeGamesFlag = common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000100") // L2CMFlag enables L2CM. L2CMFlag = common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000100000") // ZKDisputeGameFlag enables the ZK dispute game system. // TODO(#19432): Use this flag in the OPCM/OPD integration pipeline. ZKDisputeGameFlag = common.HexToHash("0x0000000000000000000000000000000000000000000000000000000001000000") // SuperRootGamesMigrationFlag enables the super root games migration path in OPCM upgrade. SuperRootGamesMigrationFlag = common.HexToHash("0x0000000000000000000000000000000000000000000000000000000010000000") )
Development feature flag constants.
IMPORTANT: each value here MUST be byte-for-byte identical to the matching constant in packages/contracts-bedrock/src/libraries/DevFeatures.sol. These values are independent literals. No compile-time check keeps them in sync. A mismatch silently diverges Go and Solidity behavior.
When adding a dev feature, update: - packages/contracts-bedrock/scripts/libraries/Config.sol - packages/contracts-bedrock/test/setup/FeatureFlags.sol - .circleci/continue/main.yml (&features_matrix)
Use packages/contracts-bedrock/src/libraries/DevFeatures.sol as the full checklist.
Functions ¶
func EnableDevFeature ¶
EnableDevFeature sets a specific development feature flag in a feature bitmap.
func IsDevFeatureEnabled ¶
IsDevFeatureEnabled checks if a specific development feature is enabled in a feature bitmap. It performs a bitwise AND between the bitmap and flag to determine if the feature is set. This follows the same pattern as the Solidity DevFeatures library.
Types ¶
This section is empty.