optimism icon indicating copy to clipboard operation
optimism copied to clipboard

feat: revert opcm v1 & add opcmv2 op-deployer support

Open 0xniha opened this issue 3 weeks ago • 4 comments

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 OPCMV2DevFlag in op-deployer/pkg/deployer/devfeatures.go
  • OPCM v1 functions (deploy, upgrade, upgradeSuperchainConfig, addGameType, updatePrestate, migrate) revert with OPContractsManager_V1Disabled() when v2 is enabled
  • DeployOPChain.s.sol checks 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 Output struct
  • Validation logic updated to handle both versions
  • Added OpcmV2Impl and OpcmContainerImpl to implementations tracking
  • Commented out deny_warnings in foundry.toml temporarily

0xniha avatar Nov 27 '25 16:11 0xniha

/ci authorize e805bdc3209656669b70b960e537a09510ff68e4

maurelian avatar Nov 28 '25 20:11 maurelian

/ci authorize https://github.com/ethereum-optimism/optimism/pull/18399/commits/a324054f0a5a55039aa83ff0e66081a5ef580138

0xOneTony avatar Dec 08 '25 21:12 0xOneTony

/ci authorize https://github.com/ethereum-optimism/optimism/pull/18399/commits/709037ec50a80375698600a1d0fc3d4b66c8fe62

0xiamflux avatar Dec 09 '25 18:12 0xiamflux

/ci authorize https://github.com/ethereum-optimism/optimism/pull/18399/commits/709037ec50a80375698600a1d0fc3d4b66c8fe62

0xOneTony avatar Dec 09 '25 18:12 0xOneTony

/ci authorize 11d0efa2ca45cbf8317aa3eb2d09d94a577db46c

smartcontracts avatar Dec 11 '25 22:12 smartcontracts

/ci authorize https://github.com/ethereum-optimism/optimism/pull/18399/commits/ee078758c222922093ec3acc47f1c0c9aadd3b75

0xOneTony avatar Dec 15 '25 15:12 0xOneTony

/ci authorize https://github.com/ethereum-optimism/optimism/pull/18399/commits/416feae4f6ae078a8d7bb554ea82abef32d14c15

0xOneTony avatar Dec 15 '25 16:12 0xOneTony