devfeatures

package
v1.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

Functions

func EnableDevFeature

func EnableDevFeature(bitmap, flag common.Hash) common.Hash

EnableDevFeature sets a specific development feature flag in a feature bitmap.

func IsDevFeatureEnabled

func IsDevFeatureEnabled(bitmap, flag common.Hash) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL