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