Skip to content

Commit 0d705b1

Browse files
authored
op-deployer: Add v1.8.0 mainnet support (#13737)
1 parent 5a18b06 commit 0d705b1

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

op-deployer/pkg/deployer/integration_test/apply_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,17 @@ func TestApplyExistingOPCM(t *testing.T) {
315315
expectedL1SemversV180,
316316
expectedL2SemversV160,
317317
},
318+
{
319+
"mainnet v1.8.0-rc.4",
320+
"mainnet",
321+
"op-contracts/v1.8.0-rc.4",
322+
// The L2 predeploys need to still be the v1.7.0 beta contracts.
323+
"op-contracts/v1.7.0-beta.1+l2-contracts",
324+
// The L2 predeploys do not change in version 1.8.0.
325+
"allocs-l2-v160-1.json.gz",
326+
expectedL1SemversV180,
327+
expectedL2SemversV160,
328+
},
318329
}
319330
for _, tt := range tests {
320331
t.Run(tt.name, func(t *testing.T) {

op-deployer/pkg/deployer/standard/standard.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,16 @@ var opcmBlueprintsByVersion = map[string]OPCMBlueprintsByChain{
116116
},
117117
},
118118
"op-contracts/v1.8.0-rc.4": {
119+
Mainnet: &OPCMBlueprints{
120+
AddressManager: common.HexToAddress("0x29aA24714c06914d9689e933cae2293C569AfeEa"),
121+
Proxy: common.HexToAddress("0x3626ebD458c7f34FD98789A373593fF2fc227bA0"),
122+
ProxyAdmin: common.HexToAddress("0x7170678A5CFFb6872606d251B3CcdB27De962631"),
123+
L1ChugSplashProxy: common.HexToAddress("0x538906C8B000D621fd11B7e8642f504dD8730837"),
124+
ResolvedDelegateProxy: common.HexToAddress("0xF12bD34d6a1d26d230240ECEA761f77e2013926E"),
125+
AnchorStateRegistry: common.HexToAddress("0xbA7Be2bEE016568274a4D1E6c852Bb9a99FaAB8B"),
126+
PermissionedDisputeGame1: common.HexToAddress("0x596A4334a28056c7943c8bcEf220F38cA5B42dC5"), // updated
127+
PermissionedDisputeGame2: common.HexToAddress("0x4E3E5C09B07AAA3fe482F5A1f82a19e91944Fffc"), // updated
128+
},
119129
Sepolia: &OPCMBlueprints{
120130
AddressManager: common.HexToAddress("0x3125a4cB2179E04203D3Eb2b5784aaef9FD64216"),
121131
Proxy: common.HexToAddress("0xe650ADb86a0de96e2c434D0a52E7D5B70980D6f1"),
@@ -234,6 +244,11 @@ func ManagerImplementationAddrFor(chainID uint64, tag string) (common.Address, e
234244
// Verified against compiled bytecode at:
235245
// https://github.com/ethereum-optimism/optimism/releases/tag/op-contracts-v160-artifacts-opcm-redesign-backport
236246
return common.HexToAddress("0x9BC0A1eD534BFb31a6Be69e5b767Cba332f14347"), nil
247+
case "op-contracts/v1.8.0-rc.4":
248+
// Generated using the bootstrap command on 01/23/2025.
249+
// Verified against compiled bytecode at:
250+
// https://github.com/ethereum-optimism/optimism/releases/tag/op-contracts-v180-blueprints-script
251+
return common.HexToAddress("0x5269eed89b0d04d909a0973439e2587e815ba932"), nil
237252
default:
238253
return common.Address{}, fmt.Errorf("unsupported mainnet tag: %s", tag)
239254
}

0 commit comments

Comments
 (0)