2018-07-07 17:23:19 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
2018-08-09 22:54:59 +00:00
|
|
|
load("@com_github_jmhodges_bazel_gomock//:gomock.bzl", "gomock")
|
2018-07-07 17:23:19 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2018-08-09 22:54:59 +00:00
|
|
|
srcs = ["service.go"],
|
2018-07-26 01:57:19 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/client/attester",
|
2018-07-20 21:31:26 +00:00
|
|
|
visibility = ["//client:__subpackages__"],
|
2018-07-07 17:23:19 +00:00
|
|
|
deps = [
|
2018-08-09 22:54:59 +00:00
|
|
|
"//client/types:go_default_library",
|
|
|
|
"//proto/beacon/rpc/v1:go_default_library",
|
|
|
|
"@com_github_gogo_protobuf//proto:go_default_library",
|
2018-07-10 02:27:23 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2018-08-09 22:54:59 +00:00
|
|
|
"@io_bazel_rules_go//proto/wkt:empty_go_proto",
|
|
|
|
"@org_golang_x_crypto//blake2b:go_default_library",
|
2018-07-07 17:23:19 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2018-08-09 22:54:59 +00:00
|
|
|
srcs = [
|
|
|
|
"mock_beacon_service_test.go",
|
|
|
|
"service_test.go",
|
|
|
|
],
|
2018-07-07 17:23:19 +00:00
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
2018-07-20 21:31:26 +00:00
|
|
|
"//client/internal:go_default_library",
|
2018-08-09 22:54:59 +00:00
|
|
|
"//proto/beacon/p2p/v1:go_default_library", #keep
|
|
|
|
"//proto/beacon/rpc/v1:go_default_library",
|
|
|
|
"//shared/testutil:go_default_library",
|
|
|
|
"@com_github_golang_mock//gomock:go_default_library", #keep
|
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
"@com_github_sirupsen_logrus//hooks/test:go_default_library",
|
|
|
|
"@io_bazel_rules_go//proto/wkt:empty_go_proto",
|
|
|
|
"@org_golang_google_grpc//:go_default_library", #keep
|
|
|
|
"@org_golang_google_grpc//metadata:go_default_library", #keep
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
gomock(
|
|
|
|
name = "mock_beacon_service_test",
|
|
|
|
out = "mock_beacon_service_test.go",
|
|
|
|
interfaces = [
|
|
|
|
"BeaconServiceClient",
|
|
|
|
"BeaconService_LatestBeaconBlockClient",
|
2018-07-07 17:23:19 +00:00
|
|
|
],
|
2018-08-09 22:54:59 +00:00
|
|
|
library = "//proto/beacon/rpc/v1:go_default_library",
|
|
|
|
package = "attester",
|
2018-07-07 17:23:19 +00:00
|
|
|
)
|