github.com/prysmaticlabs/prysm@v1.4.4/proto/eth/v1/BUILD.bazel (about) 1 ############################################################################## 2 # Common 3 ############################################################################## 4 5 load("@rules_proto//proto:defs.bzl", "proto_library") 6 7 # gazelle:ignore 8 proto_library( 9 name = "proto", 10 srcs = [ 11 "attestation.proto", 12 "beacon_block.proto", 13 "beacon_chain_service.proto", 14 "beacon_debug_service.proto", 15 "beacon_state.proto", 16 "node.proto", 17 "events_service.proto", 18 "validator.proto", 19 "validator_service.proto", 20 ], 21 visibility = ["//visibility:public"], 22 deps = [ 23 "//proto/eth/ext:proto", 24 "@com_google_protobuf//:descriptor_proto", 25 "@com_google_protobuf//:empty_proto", 26 "@com_google_protobuf//:timestamp_proto", 27 "@go_googleapis//google/api:annotations_proto", 28 "@com_github_grpc_ecosystem_grpc_gateway_v2//proto/gateway:event_source_proto", 29 ], 30 ) 31 32 ############################################################################## 33 # Go 34 ############################################################################## 35 load("@io_bazel_rules_go//go:def.bzl", "go_library") 36 load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") 37 load("//tools:ssz.bzl", "SSZ_DEPS", "ssz_gen_marshal") 38 39 ssz_gen_marshal( 40 name = "ssz_generated_files", 41 go_proto = ":go_proto", 42 includes = [ 43 "@com_github_prysmaticlabs_eth2_types//:go_default_library", 44 ], 45 objs = [ 46 "AggregateAttestationAndProof", 47 "Attestation", 48 "AttestationData", 49 "AttesterSlashing", 50 "BeaconBlock", 51 "BeaconBlockV1", 52 "BeaconBlockHeader", 53 "BeaconBlockBodyV1", 54 "Checkpoint", 55 "Deposit", 56 "DepositData", 57 "Eth1Data", 58 "IndexedAttestation", 59 "ProposerSlashing", 60 "SignedAggregateAttestationAndProof", 61 "SignedBeaconBlock", 62 "SignedBeaconBlockV1", 63 "SignedBeaconBlockHeader", 64 "SignedVoluntaryExit", 65 "Validator", 66 "VoluntaryExit", 67 ], 68 ) 69 70 go_proto_library( 71 name = "go_proto", 72 compilers = [ 73 "@com_github_prysmaticlabs_protoc_gen_go_cast//:go_cast_grpc", 74 ], 75 importpath = "github.com/prysmaticlabs/prysm/proto/eth/v1", 76 proto = ":proto", 77 visibility = ["//visibility:public"], 78 deps = [ 79 "//proto/eth/ext:go_default_library", 80 "@io_bazel_rules_go//proto/wkt:descriptor_go_proto", 81 "@com_github_golang_protobuf//proto:go_default_library", 82 "@io_bazel_rules_go//proto/wkt:empty_go_proto", 83 "@io_bazel_rules_go//proto/wkt:timestamp_go_proto", 84 "@com_github_prysmaticlabs_go_bitfield//:go_default_library", # keep 85 "@com_github_prysmaticlabs_eth2_types//:go_default_library", 86 "@go_googleapis//google/api:annotations_go_proto", 87 "@org_golang_google_protobuf//reflect/protoreflect:go_default_library", 88 "@org_golang_google_protobuf//runtime/protoimpl:go_default_library", 89 "@org_golang_google_protobuf//types/descriptorpb:go_default_library", 90 "@org_golang_google_protobuf//types/known/timestamppb:go_default_library", 91 "@com_github_grpc_ecosystem_grpc_gateway_v2//proto/gateway:go_default_library", 92 ], 93 ) 94 95 go_proto_library( 96 name = "go_grpc_gateway_library", 97 compilers = [ 98 "@com_github_grpc_ecosystem_grpc_gateway_v2//protoc-gen-grpc-gateway:go_gen_grpc_gateway", 99 ], 100 embed = [":go_proto"], 101 importpath = "github.com/prysmaticlabs/prysm/proto/eth/v1", 102 protos = [":proto"], 103 visibility = ["//proto:__subpackages__"], 104 deps = [ 105 "//proto/eth/ext:go_default_library", 106 "@io_bazel_rules_go//proto/wkt:empty_go_proto", 107 "@com_github_grpc_ecosystem_grpc_gateway_v2//protoc-gen-openapiv2/options:options_go_proto", 108 "@com_github_prysmaticlabs_go_bitfield//:go_default_library", 109 "@go_googleapis//google/api:annotations_go_proto", 110 "@io_bazel_rules_go//proto/wkt:timestamp_go_proto", 111 "@io_bazel_rules_go//proto/wkt:descriptor_go_proto", 112 "@com_github_grpc_ecosystem_grpc_gateway_v2//proto/gateway:go_default_library", 113 ], 114 ) 115 116 go_library( 117 name = "go_default_library", 118 srcs = [ 119 ":ssz_generated_files", # keep 120 ], 121 embed = [ 122 ":go_grpc_gateway_library", 123 ], 124 importpath = "github.com/prysmaticlabs/prysm/proto/eth/v1", 125 visibility = ["//visibility:public"], 126 deps = SSZ_DEPS + [ 127 "//proto/eth/ext:go_default_library", 128 "@com_github_grpc_ecosystem_grpc_gateway_v2//runtime:go_default_library", 129 "@com_github_grpc_ecosystem_grpc_gateway_v2//utilities:go_default_library", 130 "@io_bazel_rules_go//proto/wkt:empty_go_proto", 131 "@org_golang_google_grpc//:go_default_library", 132 "@org_golang_google_grpc//codes:go_default_library", 133 "@org_golang_google_grpc//grpclog:go_default_library", 134 "@org_golang_google_grpc//metadata:go_default_library", 135 "@org_golang_google_grpc//status:go_default_library", 136 "@io_bazel_rules_go//proto/wkt:descriptor_go_proto", 137 "@com_github_golang_protobuf//proto:go_default_library", 138 "@io_bazel_rules_go//proto/wkt:struct_go_proto", 139 "@io_bazel_rules_go//proto/wkt:timestamp_go_proto", 140 "@com_github_prysmaticlabs_go_bitfield//:go_default_library", # keep 141 "@go_googleapis//google/api:annotations_go_proto", 142 "@org_golang_google_protobuf//reflect/protoreflect:go_default_library", 143 "@org_golang_google_protobuf//runtime/protoimpl:go_default_library", 144 ], # keep 145 )