mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
4ca04dcc4b
* 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>
34 lines
821 B
Python
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"],
|
|
)
|