Skip to content

Commit

Permalink
Reconcile project structure (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooselumph authored Nov 21, 2023
1 parent 2020a95 commit b9edd65
Show file tree
Hide file tree
Showing 43 changed files with 36 additions and 36 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.PHONY: compile-el compile-dl clean protoc lint build unit-tests integration-tests-churner integration-tests-indexer integration-tests-inabox integration-tests-inabox-nochurner integration-tests-graph-indexer

PROTOS := ./api/proto
PROTOS_DISPERSER := ./disperser/proto
PROTOS_DISPERSER := ./disperser/api/proto
PROTO_GEN := ./api/grpc
PROTO_GEN_DISPERSER_PATH = ./disperser/proto/protogen
PROTO_GEN_DISPERSER_PATH = ./disperser/api/grpc

compile-el:
cd contracts && ./compile.sh compile-el
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion disperser/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build_batcher:
go build -o ./bin/batcher ./cmd/batcher

build_server:
go build -o ./bin/server ./cmd/disperserserver
go build -o ./bin/server ./cmd/apiserver

build_encoder:
go build -o ./bin/encoder ./cmd/encoder
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion disperser/apiserver/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/Layr-Labs/eigenda/disperser/apiserver"
"github.com/Layr-Labs/eigenda/disperser/blobstore"
"github.com/Layr-Labs/eigenda/disperser/common/blobstore"
gethcommon "github.com/ethereum/go-ethereum/common"
"github.com/google/uuid"

Expand Down
2 changes: 1 addition & 1 deletion disperser/batcher/batcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/Layr-Labs/eigenda/disperser"
bat "github.com/Layr-Labs/eigenda/disperser/batcher"
batchermock "github.com/Layr-Labs/eigenda/disperser/batcher/mock"
"github.com/Layr-Labs/eigenda/disperser/inmem"
"github.com/Layr-Labs/eigenda/disperser/common/inmem"
dmock "github.com/Layr-Labs/eigenda/disperser/mock"
"github.com/Layr-Labs/eigenda/pkg/encoding/kzgEncoder"
gethcommon "github.com/ethereum/go-ethereum/common"
Expand Down
2 changes: 1 addition & 1 deletion disperser/batcher/encoding_streamer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
coremock "github.com/Layr-Labs/eigenda/core/mock"
"github.com/Layr-Labs/eigenda/disperser"
"github.com/Layr-Labs/eigenda/disperser/batcher"
"github.com/Layr-Labs/eigenda/disperser/inmem"
"github.com/Layr-Labs/eigenda/disperser/common/inmem"
"github.com/Layr-Labs/eigenda/disperser/mock"
"github.com/stretchr/testify/assert"
tmock "github.com/stretchr/testify/mock"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/Layr-Labs/eigenda/core"
coremock "github.com/Layr-Labs/eigenda/core/mock"
"github.com/Layr-Labs/eigenda/disperser/eth"
"github.com/Layr-Labs/eigenda/disperser/batcher/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion disperser/batcher/finalizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/Layr-Labs/eigenda/core"
"github.com/Layr-Labs/eigenda/disperser"
"github.com/Layr-Labs/eigenda/disperser/batcher"
"github.com/Layr-Labs/eigenda/disperser/inmem"
"github.com/Layr-Labs/eigenda/disperser/common/inmem"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/stretchr/testify/assert"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/Layr-Labs/eigenda/common/ratelimit"
"github.com/Layr-Labs/eigenda/disperser"
"github.com/Layr-Labs/eigenda/disperser/apiserver"
"github.com/Layr-Labs/eigenda/disperser/blobstore"
"github.com/Layr-Labs/eigenda/disperser/cmd/disperserserver/flags"
"github.com/Layr-Labs/eigenda/disperser/cmd/apiserver/flags"
"github.com/Layr-Labs/eigenda/disperser/common/blobstore"
"github.com/urfave/cli"
)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/Layr-Labs/eigenda/common"
"github.com/Layr-Labs/eigenda/disperser/apiserver"
"github.com/Layr-Labs/eigenda/disperser/blobstore"
"github.com/Layr-Labs/eigenda/disperser/common/blobstore"

"github.com/Layr-Labs/eigenda/common/aws/dynamodb"
"github.com/Layr-Labs/eigenda/common/aws/s3"
Expand All @@ -19,7 +19,7 @@ import (
"github.com/Layr-Labs/eigenda/common/store"
"github.com/Layr-Labs/eigenda/core/eth"
"github.com/Layr-Labs/eigenda/disperser"
"github.com/Layr-Labs/eigenda/disperser/cmd/disperserserver/flags"
"github.com/Layr-Labs/eigenda/disperser/cmd/apiserver/flags"
"github.com/urfave/cli"
)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion disperser/cmd/batcher/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/Layr-Labs/eigenda/common/logging"
"github.com/Layr-Labs/eigenda/core/encoding"
"github.com/Layr-Labs/eigenda/disperser/batcher"
"github.com/Layr-Labs/eigenda/disperser/blobstore"
"github.com/Layr-Labs/eigenda/disperser/cmd/batcher/flags"
"github.com/Layr-Labs/eigenda/disperser/common/blobstore"
"github.com/Layr-Labs/eigenda/indexer"
"github.com/urfave/cli"
)
Expand Down
6 changes: 3 additions & 3 deletions disperser/cmd/batcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
"github.com/Layr-Labs/eigenda/core"
coreeth "github.com/Layr-Labs/eigenda/core/eth"
"github.com/Layr-Labs/eigenda/disperser/batcher"
"github.com/Layr-Labs/eigenda/disperser/blobstore"
"github.com/Layr-Labs/eigenda/disperser/batcher/eth"
dispatcher "github.com/Layr-Labs/eigenda/disperser/batcher/grpc"
"github.com/Layr-Labs/eigenda/disperser/cmd/batcher/flags"
"github.com/Layr-Labs/eigenda/disperser/dispatcher"
"github.com/Layr-Labs/eigenda/disperser/common/blobstore"
"github.com/Layr-Labs/eigenda/disperser/encoder"
"github.com/Layr-Labs/eigenda/disperser/eth"
"github.com/ethereum/go-ethereum/rpc"
"github.com/urfave/cli"
)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion disperser/cmd/dataapi/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"github.com/Layr-Labs/eigenda/common/aws"
"github.com/Layr-Labs/eigenda/common/geth"
"github.com/Layr-Labs/eigenda/common/logging"
"github.com/Layr-Labs/eigenda/disperser/blobstore"
"github.com/Layr-Labs/eigenda/disperser/cmd/dataapi/flags"
"github.com/Layr-Labs/eigenda/disperser/common/blobstore"
"github.com/Layr-Labs/eigenda/disperser/dataapi"
"github.com/Layr-Labs/eigenda/disperser/dataapi/prometheus"
"github.com/urfave/cli"
Expand Down
2 changes: 1 addition & 1 deletion disperser/cmd/dataapi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/Layr-Labs/eigenda/common/geth"
"github.com/Layr-Labs/eigenda/common/logging"
coreeth "github.com/Layr-Labs/eigenda/core/eth"
"github.com/Layr-Labs/eigenda/disperser/blobstore"
"github.com/Layr-Labs/eigenda/disperser/cmd/dataapi/flags"
"github.com/Layr-Labs/eigenda/disperser/common/blobstore"
"github.com/Layr-Labs/eigenda/disperser/dataapi"
"github.com/Layr-Labs/eigenda/disperser/dataapi/prometheus"
"github.com/Layr-Labs/eigenda/disperser/dataapi/subgraph"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

cmock "github.com/Layr-Labs/eigenda/common/mock"
"github.com/Layr-Labs/eigenda/core"
"github.com/Layr-Labs/eigenda/disperser/blobstore"
"github.com/Layr-Labs/eigenda/disperser/common/blobstore"
"github.com/Layr-Labs/eigenda/inabox/deploy"
"github.com/ory/dockertest/v3"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/Layr-Labs/eigenda/core"
"github.com/Layr-Labs/eigenda/disperser"
"github.com/Layr-Labs/eigenda/disperser/inmem"
"github.com/Layr-Labs/eigenda/disperser/common/inmem"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion disperser/dataapi/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"github.com/Layr-Labs/eigenda/core"
coremock "github.com/Layr-Labs/eigenda/core/mock"
"github.com/Layr-Labs/eigenda/disperser"
"github.com/Layr-Labs/eigenda/disperser/common/inmem"
"github.com/Layr-Labs/eigenda/disperser/dataapi"
prommock "github.com/Layr-Labs/eigenda/disperser/dataapi/prometheus/mock"
subgraphmock "github.com/Layr-Labs/eigenda/disperser/dataapi/subgraph/mock"
"github.com/Layr-Labs/eigenda/disperser/inmem"
"github.com/Layr-Labs/eigenda/pkg/kzg/bn254"
"github.com/consensys/gnark-crypto/ecc/bn254/fp"
"github.com/ethereum/go-ethereum/common"
Expand Down
2 changes: 1 addition & 1 deletion disperser/encoder/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/Layr-Labs/eigenda/core"
"github.com/Layr-Labs/eigenda/disperser"
pb "github.com/Layr-Labs/eigenda/disperser/proto/protogen/encoder"
pb "github.com/Layr-Labs/eigenda/disperser/api/grpc/encoder"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
)
Expand Down
2 changes: 1 addition & 1 deletion disperser/encoder/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/Layr-Labs/eigenda/common/healthcheck"
"github.com/Layr-Labs/eigenda/core"
"github.com/Layr-Labs/eigenda/disperser"
pb "github.com/Layr-Labs/eigenda/disperser/proto/protogen/encoder"
pb "github.com/Layr-Labs/eigenda/disperser/api/grpc/encoder"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
Expand Down
2 changes: 1 addition & 1 deletion disperser/encoder/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/Layr-Labs/eigenda/core"
"github.com/Layr-Labs/eigenda/core/encoding"
coremock "github.com/Layr-Labs/eigenda/core/mock"
pb "github.com/Layr-Labs/eigenda/disperser/proto/protogen/encoder"
pb "github.com/Layr-Labs/eigenda/disperser/api/grpc/encoder"
"github.com/Layr-Labs/eigenda/pkg/encoding/kzgEncoder"
"github.com/Layr-Labs/eigenda/pkg/kzg/bn254"
)
Expand Down
12 changes: 6 additions & 6 deletions docker-compose-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ services:
batcher:
build:
context: .
dockerfile: disperser/batcher.Dockerfile
dockerfile: disperser/cmd/batcher/Dockerfile
image: ghcr.io/layr-labs/eigenda/batcher:${BUILD_TAG:-latest}
disperser:
build:
context: .
dockerfile: disperser/disperser.Dockerfile
dockerfile: disperser/cmd/apiserver/Dockerfile
image: ghcr.io/layr-labs/eigenda/disperser:${BUILD_TAG:-latest}
encoder:
build:
context: .
dockerfile: disperser/encoder.Dockerfile
dockerfile: disperser/cmd/encoder/Dockerfile
image: ghcr.io/layr-labs/eigenda/encoder:${BUILD_TAG:-latest}
retriever:
build:
context: .
dockerfile: retriever/Dockerfile
dockerfile: retriever/cmd/Dockerfile
image: ghcr.io/layr-labs/eigenda/retriever:${BUILD_TAG:-latest}
node:
build:
Expand All @@ -28,10 +28,10 @@ services:
churner:
build:
context: .
dockerfile: churner/Dockerfile
dockerfile: churner/cmd/Dockerfile
image: ghcr.io/layr-labs/eigenda/churner:${BUILD_TAG:-latest}
nodeplugin:
build:
context: .
dockerfile: node/plugin/Dockerfile
dockerfile: node/plugin/cmd/Dockerfile
image: ghcr.io/layr-labs/eigenda/nodeplugin:${BUILD_TAG:-latest}
2 changes: 1 addition & 1 deletion inabox/deploy/codegen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"text/template"

churner "github.com/Layr-Labs/eigenda/churner/flags"
dis "github.com/Layr-Labs/eigenda/disperser/cmd/apiserver/flags"
bat "github.com/Layr-Labs/eigenda/disperser/cmd/batcher/flags"
dis "github.com/Layr-Labs/eigenda/disperser/cmd/disperserserver/flags"
enc "github.com/Layr-Labs/eigenda/disperser/cmd/encoder/flags"
opr "github.com/Layr-Labs/eigenda/node/flags"
retriever "github.com/Layr-Labs/eigenda/retriever/flags"
Expand Down
2 changes: 1 addition & 1 deletion inabox/deploy/localstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/Layr-Labs/eigenda/common/aws"
"github.com/Layr-Labs/eigenda/common/store"
"github.com/Layr-Labs/eigenda/disperser/blobstore"
"github.com/Layr-Labs/eigenda/disperser/common/blobstore"
"github.com/ory/dockertest/v3"
"github.com/ory/dockertest/v3/docker"

Expand Down
2 changes: 1 addition & 1 deletion node/grpc/server_load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/Layr-Labs/eigenda/core"
"github.com/Layr-Labs/eigenda/disperser/batcher"
"github.com/Layr-Labs/eigenda/disperser/dispatcher"
dispatcher "github.com/Layr-Labs/eigenda/disperser/batcher/grpc"
"github.com/stretchr/testify/assert"
)

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

clientsmock "github.com/Layr-Labs/eigenda/clients/mock"
"github.com/Layr-Labs/eigenda/disperser/apiserver"
"github.com/Layr-Labs/eigenda/disperser/dispatcher"
dispatcher "github.com/Layr-Labs/eigenda/disperser/batcher/grpc"
"github.com/Layr-Labs/eigenda/disperser/encoder"
"github.com/Layr-Labs/eigenda/retriever"
retrievermock "github.com/Layr-Labs/eigenda/retriever/mock"
Expand All @@ -36,7 +36,7 @@ import (
"github.com/Layr-Labs/eigenda/disperser"
"github.com/Layr-Labs/eigenda/disperser/batcher"
batchermock "github.com/Layr-Labs/eigenda/disperser/batcher/mock"
"github.com/Layr-Labs/eigenda/disperser/inmem"
"github.com/Layr-Labs/eigenda/disperser/common/inmem"
dispersermock "github.com/Layr-Labs/eigenda/disperser/mock"
"github.com/Layr-Labs/eigenda/node"
nodegrpc "github.com/Layr-Labs/eigenda/node/grpc"
Expand Down
2 changes: 1 addition & 1 deletion test/synthetic-test/synthetic_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/Layr-Labs/eigenda/core"
"github.com/Layr-Labs/eigenda/core/encoding"
coremock "github.com/Layr-Labs/eigenda/core/mock"
encoder_rpc "github.com/Layr-Labs/eigenda/disperser/proto/protogen/encoder"
encoder_rpc "github.com/Layr-Labs/eigenda/disperser/api/grpc/encoder"
"github.com/Layr-Labs/eigenda/pkg/encoding/kzgEncoder"
gcommon "github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert"
Expand Down

0 comments on commit b9edd65

Please sign in to comment.