Skip to content

Commit

Permalink
docs: update readme instructions to make it easier (and more reproduc…
Browse files Browse the repository at this point in the history
…ible) to spin up the op devnet (#21)
  • Loading branch information
samlaf authored Jan 2, 2025
1 parent 4928ce5 commit 49a4c80
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 19 deletions.
23 changes: 4 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,15 @@ 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
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)
39 changes: 39 additions & 0 deletions op-devnet.docker-compose.yml.patch
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 49a4c80

Please sign in to comment.