mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-06 01:32:18 +00:00
62c25eaedb
* Revert "Fix `ListValidatorBalances` for v0.11 (#5458)" This reverts commit3763a8ce5d
. * Revert "Deprecate archival service (#5445)" This reverts commit4fbcedf541
. * Revert "Delete archival DB methods (#5459)" This reverts commit8a3ea1e936
. * Revert "Modify `ListBeaconCommittees ` to use new state service (#5411)" This reverts commit497fa6ed50
. * Revert "Modify `GetValidatorParticipation` to use new state service (#5409)" This reverts commit046a00aa87
. * Revert "Modify `GetValidatorActiveSetChanges` to use new state service (#5408)" This reverts commit5eb6485e14
. * Revert "Modify `ListValidatorAssignments` to use new state service (#5365)" This reverts commit5a1a768135
.
70 lines
1.8 KiB
Python
70 lines
1.8 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 = "//:proto_compiler",
|
|
importpath = "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1",
|
|
proto = ":v1_proto",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
|
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
|
|
],
|
|
)
|
|
|
|
ssz_gen_marshal(
|
|
name = "ssz_generated_files",
|
|
go_proto = ":v1_go_proto",
|
|
includes = [
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
|
],
|
|
objs = [
|
|
"BeaconBlocksByRangeRequest",
|
|
"ENRForkID",
|
|
"MetaData",
|
|
"Fork",
|
|
"HistoricalBatch",
|
|
"Status",
|
|
"BeaconState",
|
|
],
|
|
)
|
|
|
|
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 = [
|
|
"archive.proto",
|
|
"messages.proto",
|
|
"types.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 = [
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:proto",
|
|
"@com_google_protobuf//:timestamp_proto",
|
|
"@gogo_special_proto//github.com/gogo/protobuf/gogoproto",
|
|
],
|
|
)
|