Skip to content

Commit 2cee087

Browse files
committed
wip: update opstack for jovian fork
1 parent 66b7dac commit 2cee087

File tree

9 files changed

+25
-16
lines changed

9 files changed

+25
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ $ builder-playground cook opstack [flags]
4949
Flags:
5050

5151
- `--external-builder`: URL of an external builder to use (enables rollup-boost)
52-
- `--enable-latest-fork` (int): Enables the latest fork (isthmus) at startup (0) or n blocks after genesis.
52+
- `--enable-latest-fork` (int): Enables the latest fork (jovian) at startup (0) or n blocks after genesis.
5353

5454
### Example Commands
5555

playground/artifacts.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ func (b *ArtifactsBuilder) Build() (*Artifacts, error) {
277277
input["config"] = map[string]interface{}{
278278
"pragueTime": *forkTime,
279279
"isthmusTime": *forkTime,
280+
"jovianTime": *forkTime,
280281
}
281282
}
282283

@@ -330,6 +331,7 @@ func (b *ArtifactsBuilder) Build() (*Artifacts, error) {
330331
}
331332
if forkTime != nil {
332333
rollupInput["isthmus_time"] = *forkTime
334+
rollupInput["jovian_time"] = *forkTime
333335
}
334336

335337
newOpRollup, err := overrideJSON(opRollupConfig, rollupInput)

playground/components.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type RollupBoost struct {
2727
func (r *RollupBoost) Run(service *Service, ctx *ExContext) {
2828
service.
2929
WithImage("docker.io/flashbots/rollup-boost").
30-
WithTag("v0.7.5").
30+
WithTag("v0.7.12").
3131
WithArgs(
3232
"--rpc-host", "0.0.0.0",
3333
"--rpc-port", `{{Port "authrpc" 8551}}`,
@@ -61,7 +61,7 @@ type OpRbuilder struct {
6161

6262
func (o *OpRbuilder) Run(service *Service, ctx *ExContext) {
6363
service.WithImage("ghcr.io/flashbots/op-rbuilder").
64-
WithTag("v0.2.8").
64+
WithTag("v0.2.12").
6565
WithArgs(
6666
"node",
6767
"--authrpc.port", `{{Port "authrpc" 8551}}`,
@@ -238,7 +238,7 @@ func (o *OpBatcher) Run(service *Service, ctx *ExContext) {
238238
}
239239
service.
240240
WithImage("us-docker.pkg.dev/oplabs-tools-artifacts/images/op-batcher").
241-
WithTag("v1.12.0-rc.1").
241+
WithTag("v1.16.2").
242242
WithEntrypoint("op-batcher").
243243
WithArgs(
244244
"--l1-eth-rpc", Connect(o.L1Node, "http"),
@@ -265,7 +265,7 @@ type OpNode struct {
265265
func (o *OpNode) Run(service *Service, ctx *ExContext) {
266266
service.
267267
WithImage("us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node").
268-
WithTag("v1.13.0-rc.1").
268+
WithTag("v1.16.2").
269269
WithEntrypoint("op-node").
270270
WithEnv("A", "B"). // this is just a placeholder to make sure env works since we e2e test with the recipes
271271
WithArgs(
@@ -275,6 +275,7 @@ func (o *OpNode) Run(service *Service, ctx *ExContext) {
275275
"--l1.http-poll-interval", "6s",
276276
"--l2", Connect(o.L2Node, "authrpc"),
277277
"--l2.jwt-secret", "/data/jwtsecret",
278+
"--rollup.l1-chain-config", "/data/genesis.json",
278279
"--sequencer.enabled",
279280
"--sequencer.l1-confs", "0",
280281
"--verifier.l1-confs", "0",
@@ -294,6 +295,7 @@ func (o *OpNode) Run(service *Service, ctx *ExContext) {
294295
"--rpc.enable-admin",
295296
"--safedb.path", "/data_db",
296297
).
298+
WithArtifact("/data/genesis.json", "genesis.json").
297299
WithArtifact("/data/jwtsecret", "jwtsecret").
298300
WithArtifact("/data/rollup.json", "rollup.json").
299301
WithVolume("data", "/data_db")
@@ -335,7 +337,7 @@ func (o *OpGeth) Run(service *Service, ctx *ExContext) {
335337

336338
service.
337339
WithImage("us-docker.pkg.dev/oplabs-tools-artifacts/images/op-geth").
338-
WithTag("v1.101503.2-rc.5").
340+
WithTag("v1.101603.5").
339341
WithEntrypoint("/bin/sh").
340342
WithLabel("metrics_path", "/debug/metrics/prometheus").
341343
WithArgs(
@@ -404,7 +406,7 @@ func (r *RethEL) ReleaseArtifact() *release {
404406
return &release{
405407
Name: "reth",
406408
Org: "paradigmxyz",
407-
Version: "v1.4.8",
409+
Version: "v1.9.3",
408410
Arch: func(goos, goarch string) string {
409411
if goos == "linux" {
410412
return "x86_64-unknown-linux-gnu"
@@ -439,7 +441,7 @@ func (r *RethEL) Run(svc *Service, ctx *ExContext) {
439441
// start the reth el client
440442
svc.
441443
WithImage("ghcr.io/paradigmxyz/reth").
442-
WithTag("v1.8.2").
444+
WithTag("v1.9.3").
443445
WithEntrypoint("/usr/local/bin/reth").
444446
WithArgs(
445447
"node",

playground/recipe_opstack.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type OpRecipe struct {
1212
// rollup-boost on the sequencer and uses this URL as the external builder.
1313
externalBuilder string
1414

15-
// whether to enable the latest fork isthmus and when
15+
// whether to enable the latest fork jovian and when
1616
enableLatestFork *uint64
1717

1818
// blockTime is the block time to use for the rollup
@@ -49,7 +49,7 @@ func (o *OpRecipe) Description() string {
4949
func (o *OpRecipe) Flags() *flag.FlagSet {
5050
flags := flag.NewFlagSet("opstack", flag.ContinueOnError)
5151
flags.StringVar(&o.externalBuilder, "external-builder", "", "External builder URL")
52-
flags.Var(&nullableUint64Value{&o.enableLatestFork}, "enable-latest-fork", "Enable latest fork isthmus (nil or empty = disabled, otherwise enabled at specified block)")
52+
flags.Var(&nullableUint64Value{&o.enableLatestFork}, "enable-latest-fork", "Enable latest fork jovian (nil or empty = disabled, otherwise enabled at specified block)")
5353
flags.Uint64Var(&o.blockTime, "block-time", defaultOpBlockTimeSeconds, "Block time to use for the rollup")
5454
flags.Uint64Var(&o.batcherMaxChannelDuration, "batcher-max-channel-duration", 2, "Maximum channel duration to use for the batcher")
5555
flags.BoolVar(&o.flashblocks, "flashblocks", false, "Whether to enable flashblocks")

playground/testcases/l2_genesis_ishtmus.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"graniteTime": 0,
2626
"holoceneTime": 0,
2727
"isthmusTime": 0,
28+
"jovianTime": 0,
2829
"terminalTotalDifficulty": 0,
2930
"terminalTotalDifficultyPassed": true,
3031
"depositContractAddress": "0x0000000000000000000000000000000000000000",
@@ -15338,4 +15339,4 @@
1533815339
"baseFeePerGas": "0x3b9aca00",
1533915340
"excessBlobGas": "0x0",
1534015341
"blobGasUsed": "0x0"
15341-
}
15342+
}

playground/utils/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Regenerating the Rollup Config
22

3+
TODO: Rewrite these instructions since this doc is out of date
4+
5+
36
```
47
# Reset the state
58
rm state.json

playground/utils/genesis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"graniteTime": 0,
2727
"holoceneTime": 0,
2828
"isthmusTime": 0,
29+
"jovianTime": 0,
2930
"terminalTotalDifficulty": 0,
3031
"depositContractAddress": "0x0000000000000000000000000000000000000000",
3132
"optimism": {
@@ -15353,4 +15354,3 @@
1535315354
"excessBlobGas": "0x0",
1535415355
"blobGasUsed": "0x0"
1535515356
}
15356-

playground/utils/intent.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ configType = "custom"
22
l1ChainID = 1337
33
fundDevAccounts = false
44
useInterop = false
5-
l1ContractsLocator = "https://storage.googleapis.com/oplabs-contract-artifacts/artifacts-v1-44f2b904c73df5d0e54ca6e51d081ada1e4d75ca5b136513b61ea1566459eaa5.tar.gz"
6-
l2ContractsLocator = "https://storage.googleapis.com/oplabs-contract-artifacts/artifacts-v1-44f2b904c73df5d0e54ca6e51d081ada1e4d75ca5b136513b61ea1566459eaa5.tar.gz"
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"
79

810
[superchainRoles]
911
proxyAdminOwner = "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
@@ -30,4 +32,3 @@ unsafeBlockSigner = "0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc"
3032
batcher = "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
3133
proposer = "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
3234
challenger = "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
33-

playground/utils/rollup.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"granite_time": 0,
3333
"holocene_time": 0,
3434
"isthmus_time": 0,
35+
"jovian_time": 0,
3536
"batch_inbox_address": "0x00d7b6990105719101dabeb77144f2a3385c8033",
3637
"deposit_contract_address": "0xc6a541529277f51196e84341b6ff7e7ee6c26774",
3738
"l1_system_config_address": "0x2de5d372c3462dff83e9905f34d842016d5c2098",
@@ -42,4 +43,3 @@
4243
"eip1559DenominatorCanyon": 250
4344
}
4445
}
45-

0 commit comments

Comments
 (0)