prysm-pulse/proto/prysm/storage/BUILD.bazel
Mohamed Zahoor 4ca04dcc4b
Add storage wrapper for BeaconState (#9963)
* adding proto wrapper for BeaconState

* remove BUILD.bazel file spelling mistake

* address terence review comments

* remove capitalization

Co-authored-by: Nishant Das <nishdas93@gmail.com>

* renamed as storage, use v1alpha1 ojects

* fix lint in the generated file

* store state as ssz bytes

* added a seperate version for managing storage

* goimports generated files to satisfy lint

* changed proto to oneof

Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-01-18 15:21:56 +00:00

34 lines
821 B
Python

load("@rules_proto//proto:defs.bzl", "proto_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@prysm//tools/go:def.bzl", "go_library")
# gazelle:ignore
proto_library(
name = "proto",
srcs = [
"beacon_storage.proto",
"version.proto",
],
visibility = ["//visibility:public"],
deps = [
"//proto/eth/v2:proto",
],
)
go_proto_library(
name = "go_proto",
importpath = "github.com/prysmaticlabs/prysm/proto/prysm/storage",
proto = ":proto",
visibility = ["//visibility:public"],
deps = [
"//proto/eth/v2:go_default_library",
],
)
go_library(
name = "go_default_library",
embed = [":go_proto"],
importpath = "github.com/prysmaticlabs/prysm/proto/prysm/storage",
visibility = ["//visibility:public"],
)