Skip to content
Open
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
11 changes: 0 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go build -o ./bin/dataapi ./cmd/dataapi

# Batcher build stage
FROM common-builder AS batcher-builder
WORKDIR /app/disperser
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go build -o ./bin/batcher ./cmd/batcher

# Retriever build stage
FROM common-builder AS retriever-builder
WORKDIR /app/retriever
Expand Down Expand Up @@ -146,10 +139,6 @@ FROM alpine:3.22 AS dataapi
COPY --from=dataapi-builder /app/disperser/bin/dataapi /usr/local/bin
ENTRYPOINT ["dataapi"]

FROM alpine:3.22 AS batcher
COPY --from=batcher-builder /app/disperser/bin/batcher /usr/local/bin
ENTRYPOINT ["batcher"]

FROM alpine:3.22 AS retriever
COPY --from=retriever-builder /app/retriever/bin/retriever /usr/local/bin
ENTRYPOINT ["retriever"]
Expand Down
2 changes: 1 addition & 1 deletion core/indexer/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func mustMakeChainState(
logger logging.Logger,
) *coreindexer.IndexedChainState {
t.Helper()
client, rpcClient := mustMakeTestClients(t, env, env.Batcher[0].BATCHER_PRIVATE_KEY, logger)
client, rpcClient := mustMakeTestClients(t, env, env.Churner.CHURNER_PRIVATE_KEY, logger)

tx, err := eth.NewWriter(logger, client, env.EigenDA.OperatorStateRetriever, env.EigenDA.ServiceManager)
require.NoError(t, err, "failed to create writer")
Expand Down
26 changes: 1 addition & 25 deletions disperser/Makefile
Original file line number Diff line number Diff line change
@@ -1,38 +1,14 @@
build:
# We build the apiserver individually to change its name to "server" instead of "apiserver"
go build -o ./bin/server ./cmd/apiserver
# All the other binaries (dataapi, encoder, batcher, etc) are then built together.
# All the other binaries (dataapi, encoder, etc) are then built together.
go build -o ./bin ./...

clean:
rm -rf ./bin

# Below are example run commands. They are not maintained so likely to be out of date.

run_batcher: build
./bin/batcher \
--batcher.pull-interval 10s \
--batcher.bls-operator-state-retriever 0x9d4454B023096f34B160D6B654540c56A1F81688 \
--batcher.eigenda-service-manager 0x67d269191c92Caf3cD7723F116c85e6E9bf55933 \
--chain.rpc http://localhost:8545 \
--chain.private-key ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
--batcher.aws.region us-east-1 \
--batcher.aws.access-key-id xyz \
--batcher.aws.secret-access-key hello \
--batcher.aws.endpoint-url http://0.0.0.0:4566 \
--batcher.s3-bucket-name test-eigenda-blobstore \
--batcher.dynamodb-table-name test-BlobMetadata \
--encoder-socket 34000 \
--batcher.enable-metrics \
--batcher.graph-url false \
--batcher.batch-size-limit 10000 \
--batcher.use-graph false \
--batcher.srs-order 3000 \
--encoding-timeout 10s \
--attestation-timeout 11s \
--chain-read-timeout 12s \
--chain-write-timeout 13s

run_server: build
./bin/server \
--grpc-port 51001 \
Expand Down
Loading
Loading