From 9533cf3f1de2d9d21ebf9699ae4e1789784e7d94 Mon Sep 17 00:00:00 2001 From: Samuel Laferriere Date: Thu, 2 Jan 2025 16:45:36 -0500 Subject: [PATCH] docs: update readme instructions to make it easier (and more reproducible) to spin up the op devnet --- README.md | 23 +++--------------- op-devnet.docker-compose.yml.patch | 39 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 19 deletions(-) create mode 100644 op-devnet.docker-compose.yml.patch diff --git a/README.md b/README.md index d340b8f..2ee09cc 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,10 @@ Hokulea is a library to provide the altda providers for a derivation pipeline bu First start the devnet: ```bash -git clone https://github.com/ethereum-optimism/optimism.git -cd optimism -DEVNET_ALTDA=true GENERIC_ALTDA=true make devnet-up +git clone -b v1.10.0 https://github.com/ethereum-optimism/optimism.git +# this patches the optimism devnet to use the eigenda-proxy instead of their da-server +git patch optimism/ops-bedrock/docker-compose.yml < op-devnet.docker-compose.yml.patch +DEVNET_ALTDA=true GENERIC_ALTDA=true make -C ./optimism devnet-up ``` Then run hokulea: ```bash @@ -16,20 +17,4 @@ cd bin/client just run-client-native-against-devnet ``` -To use eigenda proxy within optimism devnet, modify ops-bedrock/docker-compose.yaml: -``` -da-server: - image: ghcr.io/layr-labs/eigenda-proxy:v1.6.1 - environment: - EIGENDA_PROXY_ADDR: 0.0.0.0 - EIGENDA_PROXY_PORT: 3100 - EIGENDA_PROXY_METRICS_ENABLED: true - EIGENDA_PROXY_METRICS_PORT: 7300 - EIGENDA_PROXY_MEMSTORE_ENABLED: true - EIGENDA_PROXY_MEMSTORE_EXPIRATION: 45m - EIGENDA_PROXY_MEMSTORE_PUT_LATENCY: 0s - EIGENDA_PROXY_MEMSTORE_GET_LATENCY: 0s - EIGENDA_PROXY_EIGENDA_CERT_VERIFICATION_DISABLED: true -``` - ![](./hokulea.jpeg) \ No newline at end of file diff --git a/op-devnet.docker-compose.yml.patch b/op-devnet.docker-compose.yml.patch new file mode 100644 index 0000000..83bc7cb --- /dev/null +++ b/op-devnet.docker-compose.yml.patch @@ -0,0 +1,39 @@ +diff --git a/ops-bedrock/docker-compose.yml b/ops-bedrock/docker-compose.yml +index adcaea8f4..5c5e2e8ee 100644 +--- a/ops-bedrock/docker-compose.yml ++++ b/ops-bedrock/docker-compose.yml +@@ -240,22 +240,20 @@ services: + OP_CHALLENGER_NUM_CONFIRMATIONS: 1 + + da-server: +- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/da-server:devnet +- build: +- context: ../ +- dockerfile: ops/docker/op-stack-go/Dockerfile +- target: da-server-target +- command: > +- da-server +- --file.path=/data +- --addr=0.0.0.0 +- --port=3100 +- --log.level=debug +- --generic-commitment="${ALTDA_GENERIC_DA}" ++ image: ghcr.io/layr-labs/eigenda-proxy:v1.6.1 ++ environment: ++ EIGENDA_PROXY_ADDR: 0.0.0.0 ++ EIGENDA_PROXY_PORT: 3100 ++ EIGENDA_PROXY_METRICS_ENABLED: "true" ++ EIGENDA_PROXY_METRICS_PORT: 7300 ++ EIGENDA_PROXY_MEMSTORE_ENABLED: "true" ++ EIGENDA_PROXY_MEMSTORE_EXPIRATION: 45m ++ EIGENDA_PROXY_MEMSTORE_PUT_LATENCY: 0s ++ EIGENDA_PROXY_MEMSTORE_GET_LATENCY: 0s ++ EIGENDA_PROXY_EIGENDA_CERT_VERIFICATION_DISABLED: "true" + ports: + - "3100:3100" +- volumes: +- - "da_data:/data" ++ - "6969:7300" + + sentinel: + image: quarry/sentinel # TODO(10141): We need a public image for this (sentinel is out of repo)