Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Protobufs to Match Ethereum APIs #2998

Merged
merged 14 commits into from
Jul 19, 2019
5 changes: 2 additions & 3 deletions proto/beacon/p2p/v1/messages.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions proto/beacon/p2p/v1/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/beacon/p2p/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ message Validator {
// 96 byte BLS public key used for the validator's activities.
bytes pubkey = 1 [(gogoproto.moretags) = "ssz-size:\"48\""];
// 32 byte hash of the withdrawal destination public key.
bytes withdrawal_credentials = 2[(gogoproto.moretags) = "ssz-size:\"32\""];
bytes withdrawal_credentials = 2 [(gogoproto.moretags) = "ssz-size:\"32\""];
// The validators current effective balance in gwei.
uint64 effective_balance = 3;
// Whether or not the validator has been slashed.
Expand Down
5 changes: 2 additions & 3 deletions proto/beacon/rpc/v1/services.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions proto/beacon/rpc/v1_gateway/services.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions proto/eth/v1alpha1/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# gazelle:ignore
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")

go_proto_library(
name = "v1alpha1_go_proto",
compiler = "//:proto_compiler",
importpath = "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1",
proto = ":v1alpha1_proto",
visibility = ["//visibility:public"],
deps = [
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
"@go_googleapis//google/api:annotations_go_proto",
],
)

go_library(
name = "go_default_library",
embed = [":v1alpha1_go_proto"],
importpath = "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1",
visibility = ["//visibility:public"],
deps = [
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
],
)

proto_library(
name = "v1alpha1_proto",
srcs = [
"attestation.proto",
"beacon_block.proto",
"beacon_chain.proto",
"node.proto",
"validator.proto",
],
visibility = ["//visibility:public"],
deps = [
"@com_google_protobuf//:empty_proto",
"@go_googleapis//google/api:annotations_proto",
"@com_google_protobuf//:timestamp_proto",
"@gogo_special_proto//github.com/gogo/protobuf/gogoproto",
],
)
Loading