Skip to content

Commit 528dd8b

Browse files
committed
update l2 genesis for jovian
1 parent 2cee087 commit 528dd8b

File tree

5 files changed

+71
-87
lines changed

5 files changed

+71
-87
lines changed

playground/utils/README.md

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,19 @@
1-
## Regenerating the Rollup Config
2-
3-
TODO: Rewrite these instructions since this doc is out of date
4-
5-
6-
```
7-
# Reset the state
8-
rm state.json
9-
echo '{"version": 1}' > state.json
10-
11-
# NOTE: op-deployer version must match the contract artifacts version in intent.toml
12-
op-deployer apply --workdir . --deployment-target genesis
13-
14-
op-deployer inspect genesis --workdir . --outfile ./genesis.json 13
15-
16-
op-deployer inspect rollup --workdir . --outfile ./rollup.json 13
17-
```
18-
19-
## Updating for New op-deployer Releases
1+
## Updating for New op-deployer Releases / Regenerating Rollup Config
202

213
When a new op-deployer version is released, follow these steps:
224

235
1. **Download the latest op-deployer:**
246
```bash
25-
# Check releases at: https://github.com/ethereum-optimism/optimism/releases
7+
# Check releases at: https://github.com/ethereum-optimism/optimism/releases?q=op-deployer
268
# Download for your platform, e.g.:
279
curl -L https://github.com/ethereum-optimism/optimism/releases/download/op-deployer/vX.Y.Z/op-deployer-X.Y.Z-darwin-arm64.tar.gz -o op-deployer.tar.gz
2810
tar -xzf op-deployer.tar.gz
2911
chmod +x op-deployer
3012
```
3113

3214
2. **Find the latest stable contract artifacts hash:**
33-
```bash
34-
# Browse the standard.go file from the release tag:
35-
curl -s https://raw.githubusercontent.com/ethereum-optimism/optimism/op-deployer/vX.Y.Z/op-deployer/pkg/deployer/standard/standard.go | grep -A 20 "taggedReleases"
36-
# Look for the latest stable version (avoid beta/rc tags) and get its ContentHash
37-
```
15+
In https://github.com/ethereum-optimism/optimism/op-deployer/vX.Y.Z/op-deployer/pkg/deployer/upgrade
16+
Look for the latest version and get its ContentHash from the ArtifactsURL in the upgrade.go file
3817

3918
3. **Update intent.toml with the new artifacts:**
4019
- Set `l1ContractsLocator` and `l2ContractsLocator` to:
@@ -49,5 +28,3 @@ When a new op-deployer version is released, follow these steps:
4928
./op-deployer inspect genesis --workdir . --outfile ./genesis.json 13
5029
./op-deployer inspect rollup --workdir . --outfile ./rollup.json 13
5130
```
52-
53-
**Note:** The ContentHash (not ArtifactsHash) is used in the HTTP URL.

playground/utils/genesis.json

Lines changed: 11 additions & 10 deletions
Large diffs are not rendered by default.

playground/utils/intent.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ configType = "custom"
22
l1ChainID = 1337
33
fundDevAccounts = false
44
useInterop = false
5-
l1ContractsLocator = "tag://op-contracts/v5.0.0-rc.2"
6-
# l1ContractsLocator = "https://storage.googleapis.com/oplabs-contract-artifacts/artifacts-v1-44f2b904c73df5d0e54ca6e51d081ada1e4d75ca5b136513b61ea1566459eaa5.tar.gz"
7-
l2ContractsLocator = "tag://op-contracts/v5.0.0-rc.2"
8-
# l2ContractsLocator = "https://storage.googleapis.com/oplabs-contract-artifacts/artifacts-v1-44f2b904c73df5d0e54ca6e51d081ada1e4d75ca5b136513b61ea1566459eaa5.tar.gz"
5+
l1ContractsLocator = "https://storage.googleapis.com/oplabs-contract-artifacts/artifacts-v1-b112b16f8939fbb732c0693de3d3bd1e8e3e2f0771f91d5ab300a6c9b7b1af73.tar.gz"
6+
l2ContractsLocator = "https://storage.googleapis.com/oplabs-contract-artifacts/artifacts-v1-b112b16f8939fbb732c0693de3d3bd1e8e3e2f0771f91d5ab300a6c9b7b1af73.tar.gz"
97

108
[superchainRoles]
119
proxyAdminOwner = "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
@@ -24,11 +22,12 @@ gasLimit = 60000000
2422
eip1559DenominatorCanyon = 250
2523
eip1559Denominator = 50
2624
eip1559Elasticity = 6
25+
2726
[chains.roles]
2827
l1ProxyAdminOwner = "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
2928
l2ProxyAdminOwner = "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
3029
systemConfigOwner = "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
3130
unsafeBlockSigner = "0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc"
3231
batcher = "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
3332
proposer = "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
34-
challenger = "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
33+
challenger = "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"

playground/utils/rollup.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
{
22
"genesis": {
33
"l1": {
4-
"hash": "0xe8c752dfa34f6a4ccd9c582d7a0de0a4d898f8322e0cb4c9cb675f8423737432",
4+
"hash": "0xf274e2ebfb20072f08536a4dd1827d84a496ad2ae5dfb84f9d212994849172ef",
55
"number": 0
66
},
77
"l2": {
8-
"hash": "0x42712072a1c7fd5114ff2c0fb17ddacd3efd11a16979bd5bbc4de52332a6ec75",
8+
"hash": "0x8b526e01dd4d0c4d2b9949bc88f7077171cd52481e64da8c54adde8c7e476e7a",
99
"number": 0
1010
},
11-
"l2_time": 1759087092,
11+
"l2_time": 1764952273,
1212
"system_config": {
1313
"batcherAddr": "0xa0ee7a142d267c1f36714e4a8f75612f20a79720",
1414
"overhead": "0x0000000000000000000000000000000000000000000000000000000000000000",
15-
"scalar": "0x010000000000000000000000000000000000000000000000000c5fc500000558",
15+
"scalar": "0x010000000000000000000000000000000000000000000000000c3c9d00000558",
1616
"gasLimit": 60000000,
1717
"eip1559Params": "0x0000000000000000",
18-
"operatorFeeParams": "0x0000000000000000000000000000000000000000000000000000000000000000"
18+
"operatorFeeParams": "0x0000000000000000000000000000000000000000000000000000000000000000",
19+
"minBaseFee": 0,
20+
"daFootprintGasScalar": 0
1921
}
2022
},
2123
"block_time": 2,
@@ -32,14 +34,14 @@
3234
"granite_time": 0,
3335
"holocene_time": 0,
3436
"isthmus_time": 0,
35-
"jovian_time": 0,
3637
"batch_inbox_address": "0x00d7b6990105719101dabeb77144f2a3385c8033",
37-
"deposit_contract_address": "0xc6a541529277f51196e84341b6ff7e7ee6c26774",
38-
"l1_system_config_address": "0x2de5d372c3462dff83e9905f34d842016d5c2098",
38+
"deposit_contract_address": "0x9aca77d9775cab295af926ed77f18cb59f816668",
39+
"l1_system_config_address": "0x1b541ae4b6b0f1ef0a69f33adf2e65b8479eb35c",
3940
"protocol_versions_address": "0x9f80021446ff81cdd41208eef8cbbb312148a4d6",
4041
"chain_op_config": {
4142
"eip1559Elasticity": 6,
4243
"eip1559Denominator": 50,
4344
"eip1559DenominatorCanyon": 250
4445
}
4546
}
47+

playground/utils/state.json

Lines changed: 42 additions & 37 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)