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
213When a new op-deployer version is released, follow these steps:
224
2351 . ** 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
32142 . ** 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
39183 . ** 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.
0 commit comments