2021-06-30 19:22:09 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "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",
|
2021-01-11 20:03:28 +00:00
|
|
|
"log.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 = [
|
2021-07-21 21:34:07 +00:00
|
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
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",
|
2021-01-11 23:59:17 +00:00
|
|
|
"//shared/slashutil: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",
|
2021-02-09 10:05:22 +00:00
|
|
|
"@com_github_prysmaticlabs_eth2_types//: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-10-09 21:23:49 +00:00
|
|
|
"//beacon-chain/core/helpers:go_default_library",
|
2021-07-21 21:34:07 +00:00
|
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
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",
|
2021-01-11 23:59:17 +00:00
|
|
|
"//shared/slashutil:go_default_library",
|
2021-05-17 18:32:04 +00:00
|
|
|
"//shared/sszutil:go_default_library",
|
2020-08-18 12:41:25 +00:00
|
|
|
"//shared/testutil/assert:go_default_library",
|
2020-08-13 16:22:25 +00:00
|
|
|
"//shared/testutil/require: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-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
|
|
|
],
|
|
|
|
)
|