2022-11-22 12:12:55 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
2022-11-07 10:29:27 +00:00
|
|
|
|
2022-11-22 12:12:55 +00:00
|
|
|
# gazelle:build_tags use_beacon_api
|
2022-11-07 10:29:27 +00:00
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2022-11-22 12:12:55 +00:00
|
|
|
srcs = [
|
|
|
|
"beacon_api_helpers.go",
|
|
|
|
"beacon_api_validator_client.go",
|
2022-12-05 10:27:41 +00:00
|
|
|
"domain_data.go",
|
2022-11-22 12:12:55 +00:00
|
|
|
"genesis.go",
|
|
|
|
],
|
2022-11-07 10:29:27 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v3/validator/client/beacon-api",
|
|
|
|
visibility = ["//validator:__subpackages__"],
|
|
|
|
deps = [
|
2022-11-22 12:12:55 +00:00
|
|
|
"//api/gateway/apimiddleware:go_default_library",
|
2022-12-05 10:27:41 +00:00
|
|
|
"//beacon-chain/core/signing:go_default_library",
|
2022-11-22 12:12:55 +00:00
|
|
|
"//beacon-chain/rpc/apimiddleware:go_default_library",
|
2022-12-05 10:27:41 +00:00
|
|
|
"//consensus-types/primitives:go_default_library",
|
|
|
|
"//encoding/bytesutil:go_default_library",
|
|
|
|
"//network/forks:go_default_library",
|
2022-11-07 10:29:27 +00:00
|
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
|
|
|
"//validator/client/iface:go_default_library",
|
2022-11-22 12:12:55 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//common/hexutil:go_default_library",
|
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2022-11-07 10:29:27 +00:00
|
|
|
"@io_bazel_rules_go//proto/wkt:empty_go_proto",
|
|
|
|
],
|
|
|
|
)
|
2022-11-22 12:12:55 +00:00
|
|
|
|
|
|
|
# gazelle:build_tags use_beacon_api
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = [
|
|
|
|
"beacon_api_helpers_test.go",
|
2022-12-05 10:27:41 +00:00
|
|
|
"beacon_api_validator_client_test.go",
|
|
|
|
"domain_data_test.go",
|
2022-11-22 12:12:55 +00:00
|
|
|
"genesis_test.go",
|
|
|
|
"handlers_test.go",
|
|
|
|
"wait_for_chain_start_test.go",
|
|
|
|
],
|
|
|
|
embed = [":go_default_library"],
|
2022-11-24 10:50:13 +00:00
|
|
|
gotags = ["use_beacon_api"],
|
2022-11-22 12:12:55 +00:00
|
|
|
deps = [
|
|
|
|
"//api/gateway/apimiddleware:go_default_library",
|
|
|
|
"//beacon-chain/rpc/apimiddleware:go_default_library",
|
2022-12-05 10:27:41 +00:00
|
|
|
"//config/params:go_default_library",
|
|
|
|
"//encoding/bytesutil:go_default_library",
|
|
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
2022-11-22 12:12:55 +00:00
|
|
|
"//testing/assert:go_default_library",
|
|
|
|
"//testing/require:go_default_library",
|
2022-12-05 10:27:41 +00:00
|
|
|
"//validator/client/beacon-api/mock:go_default_library",
|
2022-11-22 12:12:55 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//common/hexutil:go_default_library",
|
2022-12-05 10:27:41 +00:00
|
|
|
"@com_github_golang_mock//gomock:go_default_library",
|
2022-11-22 12:12:55 +00:00
|
|
|
"@org_golang_google_protobuf//types/known/emptypb:go_default_library",
|
|
|
|
],
|
|
|
|
)
|