Commit 0d705b1a authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

op-deployer: Add v1.8.0 mainnet support (#13737)

parent 5a18b066
......@@ -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) {
......
......@@ -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"),
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment