2021-06-30 14:22:09 -05:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
2018-10-15 00:29:57 +09:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2019-10-22 07:15:32 +08:00
|
|
|
srcs = [
|
2020-06-12 13:47:18 -05:00
|
|
|
"countdown.go",
|
2019-10-22 07:15:32 +08:00
|
|
|
"slotticker.go",
|
|
|
|
"slottime.go",
|
|
|
|
],
|
2024-02-14 21:46:47 -08:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v5/time/slots",
|
2018-10-15 00:29:57 +09:00
|
|
|
visibility = ["//visibility:public"],
|
2019-10-22 07:15:32 +08:00
|
|
|
deps = [
|
2021-09-21 14:59:25 -05:00
|
|
|
"//config/params:go_default_library",
|
2022-04-29 14:32:11 +00:00
|
|
|
"//consensus-types/primitives:go_default_library",
|
2022-05-24 15:22:46 +08:00
|
|
|
"//math:go_default_library",
|
2021-09-14 17:09:04 -07:00
|
|
|
"//time:go_default_library",
|
2021-10-01 13:17:57 -07:00
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2020-06-12 13:47:18 -05:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2019-10-22 07:15:32 +08:00
|
|
|
],
|
2018-10-15 00:29:57 +09:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2019-06-30 12:00:22 -04:00
|
|
|
size = "small",
|
2020-06-12 13:47:18 -05:00
|
|
|
srcs = [
|
|
|
|
"countdown_test.go",
|
|
|
|
"slotticker_test.go",
|
2020-06-15 14:56:11 -07:00
|
|
|
"slottime_test.go",
|
2020-09-04 21:07:50 +03:00
|
|
|
"slotutil_test.go",
|
2020-06-12 13:47:18 -05:00
|
|
|
],
|
2018-10-15 00:29:57 +09:00
|
|
|
embed = [":go_default_library"],
|
2020-06-12 13:47:18 -05:00
|
|
|
deps = [
|
2021-09-21 14:59:25 -05:00
|
|
|
"//config/params:go_default_library",
|
2022-04-29 14:32:11 +00:00
|
|
|
"//consensus-types/primitives:go_default_library",
|
2021-10-07 12:15:35 -07:00
|
|
|
"//testing/assert:go_default_library",
|
2021-09-23 13:53:46 -05:00
|
|
|
"//testing/require:go_default_library",
|
2021-09-14 17:09:04 -07:00
|
|
|
"//time:go_default_library",
|
2020-09-04 21:07:50 +03:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2020-06-12 13:47:18 -05:00
|
|
|
"@com_github_sirupsen_logrus//hooks/test:go_default_library",
|
2023-05-16 08:50:02 -03:00
|
|
|
"@com_github_stretchr_testify//require:go_default_library",
|
2020-06-12 13:47:18 -05:00
|
|
|
],
|
2018-10-15 00:29:57 +09:00
|
|
|
)
|