2020-05-05 07:22:26 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
2020-02-14 16:46:55 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2020-02-14 19:03:25 +00:00
|
|
|
srcs = [
|
2020-02-27 17:22:39 +00:00
|
|
|
"detect.go",
|
2020-02-14 19:03:25 +00:00
|
|
|
"listeners.go",
|
2020-03-10 19:41:55 +00:00
|
|
|
"metrics.go",
|
2020-02-14 19:03:25 +00:00
|
|
|
"service.go",
|
|
|
|
],
|
2020-02-14 16:46:55 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/slasher/detection",
|
2020-02-14 19:03:25 +00:00
|
|
|
visibility = ["//slasher:__subpackages__"],
|
2020-02-14 16:46:55 +00:00
|
|
|
deps = [
|
2020-05-12 20:55:17 +00:00
|
|
|
"//shared/attestationutil:go_default_library",
|
2020-05-20 15:23:22 +00:00
|
|
|
"//shared/blockutil:go_default_library",
|
2020-05-19 00:50:35 +00:00
|
|
|
"//shared/bytesutil:go_default_library",
|
2020-02-14 19:03:25 +00:00
|
|
|
"//shared/event:go_default_library",
|
2020-03-13 18:04:22 +00:00
|
|
|
"//shared/hashutil:go_default_library",
|
2020-02-27 17:22:39 +00:00
|
|
|
"//shared/sliceutil:go_default_library",
|
2020-02-14 19:03:25 +00:00
|
|
|
"//slasher/beaconclient:go_default_library",
|
2020-02-19 22:26:14 +00:00
|
|
|
"//slasher/db:go_default_library",
|
2020-03-12 16:38:58 +00:00
|
|
|
"//slasher/db/types:go_default_library",
|
2020-02-27 17:22:39 +00:00
|
|
|
"//slasher/detection/attestations:go_default_library",
|
|
|
|
"//slasher/detection/attestations/iface:go_default_library",
|
|
|
|
"//slasher/detection/attestations/types:go_default_library",
|
2020-03-19 11:59:35 +00:00
|
|
|
"//slasher/detection/proposals:go_default_library",
|
|
|
|
"//slasher/detection/proposals/iface:go_default_library",
|
2020-02-27 17:22:39 +00:00
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2020-03-10 19:41:55 +00:00
|
|
|
"@com_github_prometheus_client_golang//prometheus:go_default_library",
|
|
|
|
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
|
2020-02-14 16:46:55 +00:00
|
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
2020-02-14 19:03:25 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2020-02-14 16:46:55 +00:00
|
|
|
"@io_opencensus_go//trace:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2020-02-27 17:22:39 +00:00
|
|
|
srcs = [
|
|
|
|
"detect_test.go",
|
|
|
|
"listeners_test.go",
|
|
|
|
],
|
2020-02-14 16:46:55 +00:00
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
2020-03-28 18:32:11 +00:00
|
|
|
"//shared/bytesutil:go_default_library",
|
2020-02-14 19:03:25 +00:00
|
|
|
"//shared/event:go_default_library",
|
|
|
|
"//shared/testutil:go_default_library",
|
2020-02-27 17:22:39 +00:00
|
|
|
"//slasher/db/testing:go_default_library",
|
2020-03-12 16:38:58 +00:00
|
|
|
"//slasher/db/types:go_default_library",
|
2020-02-27 17:22:39 +00:00
|
|
|
"//slasher/detection/attestations:go_default_library",
|
2020-05-19 00:50:35 +00:00
|
|
|
"//slasher/detection/attestations/types:go_default_library",
|
2020-04-14 20:27:03 +00:00
|
|
|
"//slasher/detection/proposals:go_default_library",
|
|
|
|
"//slasher/detection/testing:go_default_library",
|
2020-02-14 19:03:25 +00:00
|
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
2020-02-19 22:26:14 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2020-02-14 19:03:25 +00:00
|
|
|
"@com_github_sirupsen_logrus//hooks/test:go_default_library",
|
2020-02-14 16:46:55 +00:00
|
|
|
],
|
|
|
|
)
|