feat: revert opcm v1 & add opcmv2 op-deployer support
Description
Adds OPCM v2 support to the deployment pipeline with a feature flag to conditionally route deployments through v1 or v2. When OPCM v2 is enabled, v1 public functions are disabled.
Changes:
- Added
OPCMV2DevFlaginop-deployer/pkg/deployer/devfeatures.go - OPCM v1 functions (
deploy,upgrade,upgradeSuperchainConfig,addGameType,updatePrestate,migrate) revert withOPContractsManager_V1Disabled()when v2 is enabled DeployOPChain.s.solchecks the feature flag and routes to v1 or v2 accordingly- OPCM v2 config builder supports three dispute game types:
CANNON,PERMISSIONED_CANNON,CANNON_KONA - Converter functions unify v1/v2 outputs to a common
Outputstruct - Validation logic updated to handle both versions
- Added
OpcmV2ImplandOpcmContainerImplto implementations tracking - Commented out
deny_warningsinfoundry.tomltemporarily
/ci authorize e805bdc3209656669b70b960e537a09510ff68e4
/ci authorize https://github.com/ethereum-optimism/optimism/pull/18399/commits/a324054f0a5a55039aa83ff0e66081a5ef580138
/ci authorize https://github.com/ethereum-optimism/optimism/pull/18399/commits/709037ec50a80375698600a1d0fc3d4b66c8fe62
/ci authorize https://github.com/ethereum-optimism/optimism/pull/18399/commits/709037ec50a80375698600a1d0fc3d4b66c8fe62
/ci authorize 11d0efa2ca45cbf8317aa3eb2d09d94a577db46c
/ci authorize https://github.com/ethereum-optimism/optimism/pull/18399/commits/ee078758c222922093ec3acc47f1c0c9aadd3b75
/ci authorize https://github.com/ethereum-optimism/optimism/pull/18399/commits/416feae4f6ae078a8d7bb554ea82abef32d14c15