Skip to content

Commit

Permalink
[v2] Disperser and Node service protobuf (Layr-Labs#784)
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Littley <[email protected]>
Co-authored-by: Cody Littley <[email protected]>
  • Loading branch information
ian-shim and cody-littley authored Oct 8, 2024
1 parent 0fb25d9 commit 5323e99
Show file tree
Hide file tree
Showing 21 changed files with 2,970 additions and 655 deletions.
8 changes: 6 additions & 2 deletions api/builder/protoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ PROTO_DIR="${API_DIR}/proto"
GRPC_DIR="${API_DIR}/grpc"
mkdir -p "${GRPC_DIR}"

PROTO_FILES=( $(find "${PROTO_DIR}" -name '*.proto') )

protoc -I "${PROTO_DIR}" \
--go_out="${GRPC_DIR}" \
--go_opt=paths=source_relative \
--go-grpc_out="${GRPC_DIR}" \
--go-grpc_opt=paths=source_relative \
"${PROTO_DIR}"/**/*.proto
${PROTO_FILES[@]}

# Build protobufs in the disperser/api/proto directory.

Expand All @@ -26,9 +28,11 @@ DISPERSER_PROTO_DIR="$DISPERSER_DIR/api/proto"
DISPERSER_GRPC_DIR="$DISPERSER_DIR/api/grpc"
mkdir -p "${DISPERSER_GRPC_DIR}"

DISPERSER_PROTO_FILES=( $(find "${DISPERSER_PROTO_DIR}" -name '*.proto') )

protoc -I "${DISPERSER_PROTO_DIR}" -I "${PROTO_DIR}" \
--go_out="${DISPERSER_GRPC_DIR}" \
--go_opt=paths=source_relative \
--go-grpc_out="${DISPERSER_GRPC_DIR}" \
--go-grpc_opt=paths=source_relative \
"${DISPERSER_PROTO_DIR}"/**/*.proto
${DISPERSER_PROTO_FILES[@]}
Loading

0 comments on commit 5323e99

Please sign in to comment.