mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 20:20:05 +00:00
65 lines
2.0 KiB
Python
65 lines
2.0 KiB
Python
# gazelle:ignore
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
|
|
load("//proto:ssz_proto_library.bzl", "ssz_proto_files")
|
|
|
|
ssz_proto_files(
|
|
name = "ssz_proto_files",
|
|
srcs = [
|
|
"archive.proto",
|
|
"attestation.proto",
|
|
"beacon_block.proto",
|
|
"beacon_chain.proto",
|
|
"node.proto",
|
|
"slasher.proto",
|
|
"validator.proto",
|
|
],
|
|
config = select({
|
|
"//conditions:default": "mainnet",
|
|
"//proto:ssz_mainnet": "mainnet",
|
|
"//proto:ssz_minimal": "minimal",
|
|
}),
|
|
)
|
|
|
|
proto_library(
|
|
name = "v1alpha1_proto",
|
|
srcs = [":ssz_proto_files"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"@com_google_protobuf//:empty_proto",
|
|
"@com_google_protobuf//:timestamp_proto",
|
|
"@go_googleapis//google/api:annotations_proto",
|
|
"@gogo_special_proto//github.com/gogo/protobuf/gogoproto",
|
|
],
|
|
)
|
|
|
|
go_proto_library(
|
|
name = "go_default_library",
|
|
compiler = "//:grpc_proto_compiler",
|
|
importpath = "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1",
|
|
proto = ":v1alpha1_proto",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
|
|
"@go_googleapis//google/api:annotations_go_proto",
|
|
],
|
|
)
|
|
|
|
go_proto_library(
|
|
name = "go_grpc_gateway_library",
|
|
compilers = [
|
|
"//:grpc_nogogo_proto_compiler",
|
|
"@grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway:go_gen_grpc_gateway",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1_gateway",
|
|
proto = ":v1alpha1_proto",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"@com_github_gogo_protobuf//gogoproto:go_default_library",
|
|
"@com_github_golang_protobuf//descriptor:go_default_library",
|
|
"@com_github_golang_protobuf//ptypes/empty:go_default_library",
|
|
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
|
|
"@go_googleapis//google/api:annotations_go_proto",
|
|
],
|
|
)
|