mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-18 15:54:13 +00:00
ead9a83d8d
* WIP * Refactor to use iface.ValidatorClient instead of ethpb.BeaconNodeValidatorClient * Add mocks for iface.ValidatorClient * Fix mocks * Update update-mockgen.sh * Fix warnings * Fix config_setting syntax * Use custom build settings * WIP * WIP * WIP * WIP * WIP * WIP * Fix endpoint address and reduce timeout * Revert most e2e changes * Use e2e.TestParams.Ports.PrysmBeaconNodeGatewayPort * Fix BeaconRESTApiProviderFlag port * Revert e2e changes
32 lines
966 B
Python
32 lines
966 B
Python
load("@prysm//tools/go:def.bzl", "go_library")
|
|
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
|
|
|
|
bool_flag(
|
|
name = "use_beacon_api",
|
|
build_setting_default = False,
|
|
)
|
|
|
|
config_setting(
|
|
name = "beacon_api_usage",
|
|
flag_values = {
|
|
":use_beacon_api": "true",
|
|
},
|
|
)
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = select({
|
|
":beacon_api_usage": ["beacon_api_validator_client_factory.go"],
|
|
"//conditions:default": ["grpc_validator_client_factory.go"],
|
|
}),
|
|
importpath = "github.com/prysmaticlabs/prysm/v3/validator/client/validator-client-factory",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//validator/client/iface:go_default_library",
|
|
"//validator/helpers:go_default_library",
|
|
] + select({
|
|
":beacon_api_usage": ["//validator/client/beacon-api:go_default_library"],
|
|
"//conditions:default": ["//validator/client/grpc-api:go_default_library"],
|
|
}),
|
|
)
|