Skip to content

Commit 733ba37

Browse files
authored
Merge pull request #201 from niran/authorize-signers
Update the chain configuration to match the keys in use so safe head can advance
2 parents e19c038 + a82f365 commit 733ba37

File tree

5 files changed

+195
-122
lines changed

5 files changed

+195
-122
lines changed

playground/utils/README.md

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,50 @@
1-
Reset the state
1+
## Regenerating the Rollup Config
2+
3+
```
4+
# Reset the state
25
rm state.json
3-
vim {"version": 1} > state.json
6+
echo '{"version": 1}' > state.json
47
8+
# NOTE: op-deployer version must match the contract artifacts version in intent.toml
59
op-deployer apply --workdir . --deployment-target genesis
610
711
op-deployer inspect genesis --workdir . --outfile ./genesis.json 13
812
913
op-deployer inspect rollup --workdir . --outfile ./rollup.json 13
14+
```
15+
16+
## Updating for New op-deployer Releases
17+
18+
When a new op-deployer version is released, follow these steps:
19+
20+
1. **Download the latest op-deployer:**
21+
```bash
22+
# Check releases at: https://github.com/ethereum-optimism/optimism/releases
23+
# Download for your platform, e.g.:
24+
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
25+
tar -xzf op-deployer.tar.gz
26+
chmod +x op-deployer
27+
```
28+
29+
2. **Find the latest stable contract artifacts hash:**
30+
```bash
31+
# Browse the standard.go file from the release tag:
32+
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"
33+
# Look for the latest stable version (avoid beta/rc tags) and get its ContentHash
34+
```
35+
36+
3. **Update intent.toml with the new artifacts:**
37+
- Set `l1ContractsLocator` and `l2ContractsLocator` to:
38+
`https://storage.googleapis.com/oplabs-contract-artifacts/artifacts-v1-<ContentHash>.tar.gz`
39+
- Ensure `configType = "custom"` for HTTP URLs
40+
41+
4. **Deploy with the new version:**
42+
```bash
43+
rm state.json
44+
echo '{"version": 1}' > state.json
45+
./op-deployer apply --workdir . --deployment-target genesis
46+
./op-deployer inspect genesis --workdir . --outfile ./genesis.json 13
47+
./op-deployer inspect rollup --workdir . --outfile ./rollup.json 13
48+
```
49+
50+
**Note:** The ContentHash (not ArtifactsHash) is used in the HTTP URL.

0 commit comments

Comments
 (0)