mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 17:22:18 +00:00
ff99a2ed40
* register events handler in v1 * begin `status.Error` messages with uppercase * something works * handle errors * topic comments * handle the rest of event types * gzl * make code more testable + test * better error handling * tests * gzl * fix deps Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
52 lines
2.2 KiB
Python
52 lines
2.2 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"events.go",
|
|
"server.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/rpc/eventsv1",
|
|
visibility = ["//beacon-chain:__subpackages__"],
|
|
deps = [
|
|
"//beacon-chain/core/feed:go_default_library",
|
|
"//beacon-chain/core/feed/block:go_default_library",
|
|
"//beacon-chain/core/feed/operation:go_default_library",
|
|
"//beacon-chain/core/feed/state:go_default_library",
|
|
"//proto/eth/v1:go_default_library",
|
|
"//proto/migration:go_default_library",
|
|
"@com_github_grpc_ecosystem_grpc_gateway_v2//proto/gateway:go_default_library",
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
"@org_golang_google_grpc//codes:go_default_library",
|
|
"@org_golang_google_grpc//status:go_default_library",
|
|
"@org_golang_google_protobuf//proto:go_default_library",
|
|
"@org_golang_google_protobuf//types/known/anypb:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = ["events_test.go"],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//beacon-chain/blockchain/testing:go_default_library",
|
|
"//beacon-chain/core/feed:go_default_library",
|
|
"//beacon-chain/core/feed/block:go_default_library",
|
|
"//beacon-chain/core/feed/operation:go_default_library",
|
|
"//beacon-chain/core/feed/state:go_default_library",
|
|
"//proto/eth/v1:go_default_library",
|
|
"//proto/eth/v1alpha1:go_default_library",
|
|
"//proto/migration:go_default_library",
|
|
"//shared/event:go_default_library",
|
|
"//shared/interfaces:go_default_library",
|
|
"//shared/mock:go_default_library",
|
|
"//shared/testutil:go_default_library",
|
|
"//shared/testutil/assert:go_default_library",
|
|
"//shared/testutil/require:go_default_library",
|
|
"@com_github_golang_mock//gomock:go_default_library",
|
|
"@com_github_grpc_ecosystem_grpc_gateway_v2//proto/gateway:go_default_library",
|
|
"@org_golang_google_protobuf//types/known/anypb:go_default_library",
|
|
],
|
|
)
|