Skip to content

Commit

Permalink
op-deployer: Add v1.8.0 mainnet support (#13737)
Browse files Browse the repository at this point in the history
  • Loading branch information
mslipper authored Jan 13, 2025
1 parent 5a18b06 commit 0d705b1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions op-deployer/pkg/deployer/integration_test/apply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,17 @@ func TestApplyExistingOPCM(t *testing.T) {
expectedL1SemversV180,
expectedL2SemversV160,
},
{
"mainnet v1.8.0-rc.4",
"mainnet",
"op-contracts/v1.8.0-rc.4",
// The L2 predeploys need to still be the v1.7.0 beta contracts.
"op-contracts/v1.7.0-beta.1+l2-contracts",
// The L2 predeploys do not change in version 1.8.0.
"allocs-l2-v160-1.json.gz",
expectedL1SemversV180,
expectedL2SemversV160,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down
15 changes: 15 additions & 0 deletions op-deployer/pkg/deployer/standard/standard.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ var opcmBlueprintsByVersion = map[string]OPCMBlueprintsByChain{
},
},
"op-contracts/v1.8.0-rc.4": {
Mainnet: &OPCMBlueprints{
AddressManager: common.HexToAddress("0x29aA24714c06914d9689e933cae2293C569AfeEa"),
Proxy: common.HexToAddress("0x3626ebD458c7f34FD98789A373593fF2fc227bA0"),
ProxyAdmin: common.HexToAddress("0x7170678A5CFFb6872606d251B3CcdB27De962631"),
L1ChugSplashProxy: common.HexToAddress("0x538906C8B000D621fd11B7e8642f504dD8730837"),
ResolvedDelegateProxy: common.HexToAddress("0xF12bD34d6a1d26d230240ECEA761f77e2013926E"),
AnchorStateRegistry: common.HexToAddress("0xbA7Be2bEE016568274a4D1E6c852Bb9a99FaAB8B"),
PermissionedDisputeGame1: common.HexToAddress("0x596A4334a28056c7943c8bcEf220F38cA5B42dC5"), // updated
PermissionedDisputeGame2: common.HexToAddress("0x4E3E5C09B07AAA3fe482F5A1f82a19e91944Fffc"), // updated
},
Sepolia: &OPCMBlueprints{
AddressManager: common.HexToAddress("0x3125a4cB2179E04203D3Eb2b5784aaef9FD64216"),
Proxy: common.HexToAddress("0xe650ADb86a0de96e2c434D0a52E7D5B70980D6f1"),
Expand Down Expand Up @@ -234,6 +244,11 @@ func ManagerImplementationAddrFor(chainID uint64, tag string) (common.Address, e
// Verified against compiled bytecode at:
// https://github.com/ethereum-optimism/optimism/releases/tag/op-contracts-v160-artifacts-opcm-redesign-backport
return common.HexToAddress("0x9BC0A1eD534BFb31a6Be69e5b767Cba332f14347"), nil
case "op-contracts/v1.8.0-rc.4":
// Generated using the bootstrap command on 01/23/2025.
// Verified against compiled bytecode at:
// https://github.com/ethereum-optimism/optimism/releases/tag/op-contracts-v180-blueprints-script
return common.HexToAddress("0x5269eed89b0d04d909a0973439e2587e815ba932"), nil
default:
return common.Address{}, fmt.Errorf("unsupported mainnet tag: %s", tag)
}
Expand Down

0 comments on commit 0d705b1

Please sign in to comment.