2021-07-16 20:55:22 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
2021-07-12 15:38:55 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"server.go",
|
|
|
|
"validator.go",
|
|
|
|
],
|
2023-03-17 18:52:56 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/eth/validator",
|
2021-07-12 15:38:55 +00:00
|
|
|
visibility = ["//beacon-chain:__subpackages__"],
|
|
|
|
deps = [
|
2021-07-16 20:55:22 +00:00
|
|
|
"//beacon-chain/blockchain:go_default_library",
|
2022-08-17 11:41:51 +00:00
|
|
|
"//beacon-chain/builder:go_default_library",
|
2021-08-05 07:23:52 +00:00
|
|
|
"//beacon-chain/cache:go_default_library",
|
2021-07-16 20:55:22 +00:00
|
|
|
"//beacon-chain/core/helpers:go_default_library",
|
2023-03-20 20:04:40 +00:00
|
|
|
"//beacon-chain/db:go_default_library",
|
2022-08-23 17:26:43 +00:00
|
|
|
"//beacon-chain/db/kv:go_default_library",
|
2021-07-22 17:48:32 +00:00
|
|
|
"//beacon-chain/operations/attestations:go_default_library",
|
2021-09-03 14:47:35 +00:00
|
|
|
"//beacon-chain/operations/synccommittee:go_default_library",
|
2021-08-04 09:01:38 +00:00
|
|
|
"//beacon-chain/p2p:go_default_library",
|
2021-08-05 07:23:52 +00:00
|
|
|
"//beacon-chain/rpc/eth/helpers:go_default_library",
|
2023-03-28 16:44:41 +00:00
|
|
|
"//beacon-chain/rpc/lookup:go_default_library",
|
2021-07-23 16:11:21 +00:00
|
|
|
"//beacon-chain/state:go_default_library",
|
2022-09-16 22:17:46 +00:00
|
|
|
"//beacon-chain/state/state-native:go_default_library",
|
2021-07-16 20:55:22 +00:00
|
|
|
"//beacon-chain/sync:go_default_library",
|
2021-12-15 20:14:30 +00:00
|
|
|
"//config/fieldparams:go_default_library",
|
2021-09-21 19:59:25 +00:00
|
|
|
"//config/params:go_default_library",
|
2022-04-29 14:32:11 +00:00
|
|
|
"//consensus-types/primitives:go_default_library",
|
2021-09-23 15:23:37 +00:00
|
|
|
"//encoding/bytesutil:go_default_library",
|
2021-07-12 15:38:55 +00:00
|
|
|
"//proto/eth/v1:go_default_library",
|
2021-08-14 16:41:03 +00:00
|
|
|
"//proto/eth/v2:go_default_library",
|
2021-07-22 17:48:32 +00:00
|
|
|
"//proto/migration:go_default_library",
|
|
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
2021-10-01 20:17:57 +00:00
|
|
|
"//time/slots:go_default_library",
|
2022-03-16 15:17:41 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//common:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//common/hexutil:go_default_library",
|
2021-07-12 15:38:55 +00:00
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2021-08-04 09:01:38 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2021-07-12 15:38:55 +00:00
|
|
|
"@io_bazel_rules_go//proto/wkt:empty_go_proto",
|
2021-07-16 20:55:22 +00:00
|
|
|
"@io_opencensus_go//trace:go_default_library",
|
|
|
|
"@org_golang_google_grpc//codes:go_default_library",
|
|
|
|
"@org_golang_google_grpc//status:go_default_library",
|
2021-08-28 20:00:46 +00:00
|
|
|
"@org_golang_google_protobuf//types/known/emptypb:go_default_library",
|
2021-07-16 20:55:22 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = ["validator_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
|
|
|
"//beacon-chain/blockchain/testing:go_default_library",
|
2022-08-17 11:41:51 +00:00
|
|
|
"//beacon-chain/builder/testing:go_default_library",
|
2021-07-26 19:22:58 +00:00
|
|
|
"//beacon-chain/cache:go_default_library",
|
2021-09-08 10:41:47 +00:00
|
|
|
"//beacon-chain/core/transition:go_default_library",
|
2021-07-23 14:29:38 +00:00
|
|
|
"//beacon-chain/db/testing:go_default_library",
|
2021-07-22 17:48:32 +00:00
|
|
|
"//beacon-chain/operations/attestations:go_default_library",
|
2021-09-03 14:47:35 +00:00
|
|
|
"//beacon-chain/operations/synccommittee:go_default_library",
|
2021-07-26 19:22:58 +00:00
|
|
|
"//beacon-chain/p2p/testing:go_default_library",
|
2021-07-23 14:29:38 +00:00
|
|
|
"//beacon-chain/rpc/prysm/v1alpha1/validator:go_default_library",
|
2021-08-28 20:00:46 +00:00
|
|
|
"//beacon-chain/rpc/testutil:go_default_library",
|
2021-10-14 18:52:26 +00:00
|
|
|
"//beacon-chain/state:go_default_library",
|
2021-07-16 20:55:22 +00:00
|
|
|
"//beacon-chain/sync/initial-sync/testing:go_default_library",
|
2021-12-15 20:14:30 +00:00
|
|
|
"//config/fieldparams:go_default_library",
|
2021-09-21 19:59:25 +00:00
|
|
|
"//config/params:go_default_library",
|
2022-04-29 14:32:11 +00:00
|
|
|
"//consensus-types/primitives:go_default_library",
|
2021-09-15 22:55:11 +00:00
|
|
|
"//crypto/bls:go_default_library",
|
2021-09-23 15:23:37 +00:00
|
|
|
"//encoding/bytesutil:go_default_library",
|
2021-07-16 20:55:22 +00:00
|
|
|
"//proto/eth/v1:go_default_library",
|
2021-08-28 20:00:46 +00:00
|
|
|
"//proto/eth/v2:go_default_library",
|
2021-07-22 17:48:32 +00:00
|
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
2021-09-23 18:53:46 +00:00
|
|
|
"//testing/assert:go_default_library",
|
2023-04-26 16:59:29 +00:00
|
|
|
"//testing/mock:go_default_library",
|
2021-09-23 18:53:46 +00:00
|
|
|
"//testing/require:go_default_library",
|
|
|
|
"//testing/util:go_default_library",
|
2021-10-01 20:17:57 +00:00
|
|
|
"//time/slots:go_default_library",
|
2022-03-16 15:17:41 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//common:go_default_library",
|
2023-04-26 16:59:29 +00:00
|
|
|
"@com_github_golang_mock//gomock:go_default_library",
|
2021-07-22 17:48:32 +00:00
|
|
|
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
|
2022-08-23 17:26:43 +00:00
|
|
|
"@com_github_sirupsen_logrus//hooks/test:go_default_library",
|
2021-07-26 19:22:58 +00:00
|
|
|
"@org_golang_google_protobuf//proto:go_default_library",
|
2021-07-12 15:38:55 +00:00
|
|
|
],
|
|
|
|
)
|