prysm-pulse/proto/prysm/v2/state/BUILD.bazel
Raul Jordan 2d10bcf179
Move State Protos Into V2 Namespace (#9257)
* move state protos

* regen ssz

* edit v1 code

* fix imports

* building

* beacon chain builds

* validator and shared builds

* fuzz builds

* changes

* spectest builds

* tools build

* remove import cycle

* generate ssz

* pcli

* gaz

* kafka

* gaz
2021-07-23 08:07:40 -05:00

80 lines
2.4 KiB
Python

load("@rules_proto//proto:defs.bzl", "proto_library")
# gazelle:ignore
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("//proto:ssz_proto_library.bzl", "ssz_proto_files")
load("//tools:ssz.bzl", "SSZ_DEPS", "ssz_gen_marshal")
go_proto_library(
name = "v1_go_proto",
compiler = "@prysm//:cast_proto_compiler",
importpath = "github.com/prysmaticlabs/prysm/proto/prysm/v2/state",
proto = ":v1_proto",
visibility = ["//visibility:public"],
deps = [
"@com_github_golang_protobuf//proto:go_default_library",
"@com_github_prysmaticlabs_eth2_types//:go_default_library",
"//proto/prysm/v1alpha1:go_default_library",
"//proto/eth/ext:go_default_library",
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
"@io_bazel_rules_go//proto/wkt:descriptor_go_proto",
"@io_bazel_rules_go//proto/wkt:struct_go_proto",
"@org_golang_google_protobuf//reflect/protoreflect:go_default_library",
"@org_golang_google_protobuf//runtime/protoimpl:go_default_library",
"@org_golang_google_protobuf//types/descriptorpb:go_default_library",
],
)
ssz_gen_marshal(
name = "ssz_generated_files",
go_proto = ":v1_go_proto",
includes = [
"@com_github_prysmaticlabs_eth2_types//:go_default_library",
"//proto/prysm/v1alpha1:go_default_library",
],
objs = [
"DepositMessage",
"Fork",
"ForkData",
"HistoricalBatch",
"Status",
"BeaconState",
"BeaconStateAltair",
"SigningData",
"SyncCommittee",
"SyncAggregatorSelectionData",
],
)
go_library(
name = "go_default_library",
srcs = [":ssz_generated_files"],
embed = [":v1_go_proto"],
visibility = ["//visibility:public"],
deps = SSZ_DEPS,
)
ssz_proto_files(
name = "ssz_proto_files",
srcs = [
"beacon_state.proto",
],
config = select({
"//conditions:default": "mainnet",
"//proto:ssz_mainnet": "mainnet",
"//proto:ssz_minimal": "minimal",
}),
)
proto_library(
name = "v1_proto",
srcs = [":ssz_proto_files"],
visibility = ["//visibility:public"],
deps = [
"//proto/prysm/v1alpha1:proto",
"//proto/eth/ext:proto",
"@com_google_protobuf//:descriptor_proto",
"@com_google_protobuf//:timestamp_proto",
],
)