prysm-pulse/validator/client/beacon-api/BUILD.bazel
Patrice Vignola 943a0556e9
Add REST implementation for Validator's DomainData (#11711)
* Add REST implementation for Validator's DomainData

* Add missing dependency

* Fix getForkVersion logic

* Remove unused helpers

* Fix deepsource error

* Fix deepsource error

* Address PR comments

* Remove outdated comment

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-12-05 10:27:41 +00:00

57 lines
2.1 KiB
Python

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