2021-06-30 19:22:09 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
2019-12-04 19:20:33 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
2021-03-18 23:29:06 +00:00
|
|
|
"block_header_root.go",
|
|
|
|
"eth1_root.go",
|
2021-11-29 16:30:17 +00:00
|
|
|
"field_root_attestation.go",
|
|
|
|
"field_root_eth1.go",
|
|
|
|
"field_root_validator.go",
|
|
|
|
"field_root_vector.go",
|
2023-01-16 12:44:40 +00:00
|
|
|
"historical_summaries_root.go",
|
2021-09-29 17:46:51 +00:00
|
|
|
"participation_bit_root.go",
|
2021-03-18 23:29:06 +00:00
|
|
|
"pending_attestation_root.go",
|
2021-03-11 02:57:46 +00:00
|
|
|
"reference.go",
|
2021-09-29 17:46:51 +00:00
|
|
|
"sync_committee.root.go",
|
2020-03-17 19:25:17 +00:00
|
|
|
"trie_helpers.go",
|
2022-05-27 16:38:00 +00:00
|
|
|
"unrealized_justification.go",
|
2021-03-11 02:57:46 +00:00
|
|
|
"validator_map_handler.go",
|
2021-03-18 23:29:06 +00:00
|
|
|
"validator_root.go",
|
2019-12-04 19:20:33 +00:00
|
|
|
],
|
2023-03-17 18:52:56 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v4/beacon-chain/state/stateutil",
|
2023-04-13 17:19:06 +00:00
|
|
|
visibility = ["//visibility:public"],
|
2019-12-04 19:20:33 +00:00
|
|
|
deps = [
|
2021-09-08 10:41:47 +00:00
|
|
|
"//beacon-chain/core/transition/stateutils:go_default_library",
|
2021-12-13 09:16:23 +00:00
|
|
|
"//config/fieldparams:go_default_library",
|
2021-09-21 19:59:25 +00:00
|
|
|
"//config/params:go_default_library",
|
2022-04-29 14:32:11 +00:00
|
|
|
"//consensus-types/primitives:go_default_library",
|
2021-09-16 17:05:58 +00:00
|
|
|
"//container/trie:go_default_library",
|
2021-09-15 22:55:11 +00:00
|
|
|
"//crypto/hash:go_default_library",
|
2022-02-28 13:56:12 +00:00
|
|
|
"//crypto/hash/htr:go_default_library",
|
2021-09-23 15:23:37 +00:00
|
|
|
"//encoding/bytesutil:go_default_library",
|
2021-09-21 15:02:48 +00:00
|
|
|
"//encoding/ssz:go_default_library",
|
2021-10-12 10:36:57 +00:00
|
|
|
"//math:go_default_library",
|
2021-07-21 21:34:07 +00:00
|
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
2019-12-04 19:20:33 +00:00
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2019-12-15 04:32:19 +00:00
|
|
|
srcs = [
|
2020-05-31 06:44:34 +00:00
|
|
|
"benchmark_test.go",
|
2021-11-29 16:30:17 +00:00
|
|
|
"field_root_test.go",
|
2022-02-28 13:56:12 +00:00
|
|
|
"field_root_validator_test.go",
|
2021-03-11 02:57:46 +00:00
|
|
|
"reference_bench_test.go",
|
2019-12-15 04:32:19 +00:00
|
|
|
"state_root_test.go",
|
2020-03-17 19:25:17 +00:00
|
|
|
"trie_helpers_test.go",
|
2022-05-27 16:38:00 +00:00
|
|
|
"unrealized_justification_test.go",
|
2021-12-03 09:06:05 +00:00
|
|
|
"validator_root_test.go",
|
2019-12-15 04:32:19 +00:00
|
|
|
],
|
2019-12-04 19:20:33 +00:00
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
2022-02-28 13:56:12 +00:00
|
|
|
"//beacon-chain/state:go_default_library",
|
2022-01-06 17:33:08 +00:00
|
|
|
"//config/fieldparams:go_default_library",
|
2021-09-21 19:59:25 +00:00
|
|
|
"//config/params:go_default_library",
|
2022-04-29 14:32:11 +00:00
|
|
|
"//consensus-types/primitives:go_default_library",
|
2021-09-15 22:55:11 +00:00
|
|
|
"//crypto/hash:go_default_library",
|
2021-09-23 15:23:37 +00:00
|
|
|
"//encoding/bytesutil:go_default_library",
|
2021-09-21 15:02:48 +00:00
|
|
|
"//encoding/ssz:go_default_library",
|
2022-02-28 13:56:12 +00:00
|
|
|
"//math:go_default_library",
|
2021-07-21 21:34:07 +00:00
|
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
2021-09-21 18:11:16 +00:00
|
|
|
"//runtime/interop:go_default_library",
|
2021-09-23 18:53:46 +00:00
|
|
|
"//testing/assert:go_default_library",
|
|
|
|
"//testing/require:go_default_library",
|
|
|
|
"//testing/util:go_default_library",
|
2019-12-04 19:20:33 +00:00
|
|
|
],
|
|
|
|
)
|
2020-03-26 18:10:22 +00:00
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_benchmark_test",
|
2020-03-29 06:13:24 +00:00
|
|
|
size = "medium",
|
2020-03-26 18:10:22 +00:00
|
|
|
srcs = ["benchmark_test.go"],
|
|
|
|
args = [
|
|
|
|
"-test.bench=.",
|
|
|
|
"-test.benchmem",
|
|
|
|
"-test.v",
|
|
|
|
],
|
|
|
|
local = True,
|
|
|
|
tags = [
|
|
|
|
"benchmark",
|
|
|
|
"no-cache",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"//beacon-chain/state/stateutil:go_default_library",
|
2021-09-15 22:55:11 +00:00
|
|
|
"//crypto/hash:go_default_library",
|
2021-09-21 15:02:48 +00:00
|
|
|
"//encoding/ssz:go_default_library",
|
2021-07-21 21:34:07 +00:00
|
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
2021-09-23 18:53:46 +00:00
|
|
|
"//testing/require:go_default_library",
|
|
|
|
"//testing/util:go_default_library",
|
2020-03-26 18:10:22 +00:00
|
|
|
],
|
|
|
|
)
|