Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update readme instructions to make it easier to spin up op-devnet #21

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading