From c8fb9c1c7cd950861a5d55ab621a291be8bc1744 Mon Sep 17 00:00:00 2001
From: Emilia Hane <elsaemiliaevahane@gmail.com>
Date: Wed, 29 Jan 2025 22:19:29 +0100
Subject: [PATCH] feat(ci): Add kurtosis network params for op-reth sequencer
 and no op-reth (#49)

Ref https://github.com/ethereum-optimism/op-reth/issues/54

Adds kurtosis network params files for
i) no op-reth
ii) op-reth as sequencer
---
 .../kurtosis_op_network_params_local.yaml     |  1 +
 ...is_op_network_params_local_no_op_reth.yaml | 19 ++++++++++++++
 ...etwork_params_local_op_reth_sequencer.yaml | 26 +++++++++++++++++++
 .../kurtosis_op_network_params_remote.yaml    |  1 +
 ...s_op_network_params_remote_no_op_reth.yaml | 19 ++++++++++++++
 ...twork_params_remote_op_reth_sequencer.yaml | 26 +++++++++++++++++++
 6 files changed, 92 insertions(+)
 create mode 100644 .github/assets/kurtosis_op_network_params_local_no_op_reth.yaml
 create mode 100644 .github/assets/kurtosis_op_network_params_local_op_reth_sequencer.yaml
 create mode 100644 .github/assets/kurtosis_op_network_params_remote_no_op_reth.yaml
 create mode 100644 .github/assets/kurtosis_op_network_params_remote_op_reth_sequencer.yaml

diff --git a/.github/assets/kurtosis_op_network_params_local.yaml b/.github/assets/kurtosis_op_network_params_local.yaml
index bb2e87bd8841..525e362694d3 100644
--- a/.github/assets/kurtosis_op_network_params_local.yaml
+++ b/.github/assets/kurtosis_op_network_params_local.yaml
@@ -5,6 +5,7 @@ ethereum_package:
 optimism_package:
   chains:
     - participants:
+      # first participant is sequencer
       - el_type: op-geth
         el_image: "ghcr.io/ethereum-optimism/op-geth:kurtosis-ci"
         cl_type: op-node
diff --git a/.github/assets/kurtosis_op_network_params_local_no_op_reth.yaml b/.github/assets/kurtosis_op_network_params_local_no_op_reth.yaml
new file mode 100644
index 000000000000..fc162da59b21
--- /dev/null
+++ b/.github/assets/kurtosis_op_network_params_local_no_op_reth.yaml
@@ -0,0 +1,19 @@
+ethereum_package:
+  participants:
+    - el_type: reth
+      cl_type: lighthouse
+optimism_package:
+  chains:
+    - participants:
+      - el_type: op-geth
+        el_image: "ghcr.io/ethereum-optimism/op-geth:kurtosis-ci"
+        cl_type: op-node
+        cl_image: "ghcr.io/ethereum-optimism/op-node:kurtosis-ci"
+        cl_extra_params:
+          - "--l1.trustrpc=true"
+      batcher_params:
+        extra_params:
+          - "--throttle-interval=0"
+      network_params:
+        holocene_time_offset: 0
+        isthmus_time_offset: 0
diff --git a/.github/assets/kurtosis_op_network_params_local_op_reth_sequencer.yaml b/.github/assets/kurtosis_op_network_params_local_op_reth_sequencer.yaml
new file mode 100644
index 000000000000..92f28200ac09
--- /dev/null
+++ b/.github/assets/kurtosis_op_network_params_local_op_reth_sequencer.yaml
@@ -0,0 +1,26 @@
+ethereum_package:
+  participants:
+    - el_type: reth
+      cl_type: lighthouse
+optimism_package:
+  chains:
+    - participants:
+      # first participant is sequencer
+      - el_type: op-reth
+        el_image: "ghcr.io/paradigmxyz/op-reth:kurtosis-ci"
+        cl_type: op-node
+        cl_image: "ghcr.io/ethereum-optimism/op-node:kurtosis-ci"
+        cl_extra_params:
+          - "--l1.trustrpc=true"
+      - el_type: op-geth
+        el_image: "ghcr.io/ethereum-optimism/op-geth:kurtosis-ci"
+        cl_type: op-node
+        cl_image: "ghcr.io/ethereum-optimism/op-node:kurtosis-ci"
+        cl_extra_params:
+          - "--l1.trustrpc=true"
+      batcher_params:
+        extra_params:
+          - "--throttle-interval=0"
+      network_params:
+        holocene_time_offset: 0
+        isthmus_time_offset: 0
diff --git a/.github/assets/kurtosis_op_network_params_remote.yaml b/.github/assets/kurtosis_op_network_params_remote.yaml
index 486936e05880..6f44db405c21 100644
--- a/.github/assets/kurtosis_op_network_params_remote.yaml
+++ b/.github/assets/kurtosis_op_network_params_remote.yaml
@@ -5,6 +5,7 @@ ethereum_package:
 optimism_package:
   chains:
     - participants:
+      # first participant is sequencer
       - el_type: op-geth
         el_image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-geth:latest
         cl_type: op-node
diff --git a/.github/assets/kurtosis_op_network_params_remote_no_op_reth.yaml b/.github/assets/kurtosis_op_network_params_remote_no_op_reth.yaml
new file mode 100644
index 000000000000..683e2a4e0d6f
--- /dev/null
+++ b/.github/assets/kurtosis_op_network_params_remote_no_op_reth.yaml
@@ -0,0 +1,19 @@
+ethereum_package:
+  participants:
+    - el_type: reth
+      cl_type: lighthouse
+optimism_package:
+  chains:
+    - participants:
+      - el_type: op-geth
+        el_image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-geth:latest
+        cl_type: op-node
+        cl_image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:develop
+        cl_extra_params:
+          - "--l1.trustrpc=true"
+      batcher_params:
+        extra_params:
+          - "--throttle-interval=0"
+      network_params:
+        holocene_time_offset: 0
+        isthmus_time_offset: 0
\ No newline at end of file
diff --git a/.github/assets/kurtosis_op_network_params_remote_op_reth_sequencer.yaml b/.github/assets/kurtosis_op_network_params_remote_op_reth_sequencer.yaml
new file mode 100644
index 000000000000..1253d529e3d2
--- /dev/null
+++ b/.github/assets/kurtosis_op_network_params_remote_op_reth_sequencer.yaml
@@ -0,0 +1,26 @@
+ethereum_package:
+  participants:
+    - el_type: reth
+      cl_type: lighthouse
+optimism_package:
+  chains:
+    - participants:
+      # first participant is sequencer
+      - el_type: op-reth
+        el_image: "op-reth:latest"
+        cl_type: op-node
+        cl_image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:develop
+        cl_extra_params:
+          - "--l1.trustrpc=true"
+      - el_type: op-geth
+        el_image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-geth:latest
+        cl_type: op-node
+        cl_image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:develop
+        cl_extra_params:
+          - "--l1.trustrpc=true"
+      batcher_params:
+        extra_params:
+          - "--throttle-interval=0"
+      network_params:
+        holocene_time_offset: 0
+        isthmus_time_offset: 0
\ No newline at end of file