Commit 712f4d67 authored by Mark Tyneway's avatar Mark Tyneway

contracts-bedrock: upgrade to multichain script

Implements a `forge script` to upgrade to the new L1 contracts.
This assumes that the proxy admin owner is a gnosis safe.

The test can be ran with the following command:

```bash
forge test -vv --contracts scripts/upgrades --mc Multichain --rpc-url $ETH_RPC_URL
```

Where `ETH_RPC_URL` is set to a goerli endpoint. Add `-vvvvv` instead of
`-vv` to see the execution that happens.
parent fc6e12e8
......@@ -38,5 +38,6 @@
"numDeployConfirmations": 1,
"eip1559Denominator": 50,
"eip1559Elasticity": 10,
"l2GenesisRegolithTimeOffset": "0x0"
"l2GenesisRegolithTimeOffset": "0x0",
"systemConfigStartBlock": 0
}
......@@ -56,7 +56,13 @@ abstract contract SafeBuilder is EnhancedScript, GlobalConstants {
if (block.chainid == OP_GOERLI) {
safe = 0xE534ccA2753aCFbcDBCeB2291F596fc60495257e;
proxyAdmin = 0x4200000000000000000000000000000000000018;
} else if (block.chainid == GOERLI) {
safe = 0xBc1233d0C3e6B5d53Ab455cF65A6623F6dCd7e4f;
proxyAdmin = 0x01d3670863c3F4b24D7b107900f0b75d4BbC6e0d;
}
console.log("ChainID: %s", block.chainid);
console.log("Using Safe: %s", safe);
console.log("Using ProxyAdmin: %s", proxyAdmin);
return run(safe, proxyAdmin);
}
......
This diff is collapsed.
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