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")
|
2019-12-04 19:20:33 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
2021-03-24 01:59:23 +00:00
|
|
|
"array_root.go",
|
2021-03-18 23:29:06 +00:00
|
|
|
"block_header_root.go",
|
|
|
|
"eth1_root.go",
|
|
|
|
"pending_attestation_root.go",
|
2021-03-11 02:57:46 +00:00
|
|
|
"reference.go",
|
2020-03-17 19:25:17 +00:00
|
|
|
"trie_helpers.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
|
|
|
],
|
2020-02-21 16:52:21 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/state/stateutil",
|
|
|
|
visibility = [
|
|
|
|
"//beacon-chain:__subpackages__",
|
2020-05-05 07:22:26 +00:00
|
|
|
"//fuzz:__pkg__",
|
2020-10-15 18:00:49 +00:00
|
|
|
"//proto/migration:__subpackages__",
|
2020-11-10 03:01:56 +00:00
|
|
|
"//proto/testing:__subpackages__",
|
2020-05-20 15:23:22 +00:00
|
|
|
"//shared/blockutil:__subpackages__",
|
2020-11-10 03:01:56 +00:00
|
|
|
"//shared/testutil:__subpackages__",
|
2020-05-05 06:42:53 +00:00
|
|
|
"//slasher:__subpackages__",
|
2020-05-05 04:30:24 +00:00
|
|
|
"//tools/blocktree:__pkg__",
|
2020-04-27 16:47:28 +00:00
|
|
|
"//tools/pcli:__pkg__",
|
2020-07-02 17:50:05 +00:00
|
|
|
"//validator/client:__pkg__",
|
2020-02-21 16:52:21 +00:00
|
|
|
],
|
2019-12-04 19:20:33 +00:00
|
|
|
deps = [
|
2021-03-11 02:57:46 +00:00
|
|
|
"//beacon-chain/core/state/stateutils:go_default_library",
|
2021-03-18 23:29:06 +00:00
|
|
|
"//proto/beacon/p2p/v1:go_default_library",
|
2021-06-02 23:49:52 +00:00
|
|
|
"//proto/eth/v1alpha1:go_default_library",
|
2021-03-18 23:29:06 +00:00
|
|
|
"//shared/bytesutil:go_default_library",
|
2019-12-04 19:20:33 +00:00
|
|
|
"//shared/hashutil:go_default_library",
|
2020-06-18 02:15:13 +00:00
|
|
|
"//shared/htrutils:go_default_library",
|
2021-03-18 23:29:06 +00:00
|
|
|
"//shared/params:go_default_library",
|
2020-03-17 19:25:17 +00:00
|
|
|
"//shared/trieutil:go_default_library",
|
2019-12-04 19:20:33 +00:00
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2021-03-11 02:57:46 +00:00
|
|
|
"@com_github_prysmaticlabs_eth2_types//:go_default_library",
|
2019-12-04 19:20:33 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
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-03-11 02:57:46 +00:00
|
|
|
"reference_bench_test.go",
|
2019-12-15 04:32:19 +00:00
|
|
|
"state_root_test.go",
|
2020-05-05 08:39:38 +00:00
|
|
|
"stateutil_test.go",
|
2020-03-17 19:25:17 +00:00
|
|
|
"trie_helpers_test.go",
|
2021-03-24 01:59:23 +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 = [
|
2021-06-30 15:06:19 +00:00
|
|
|
"//beacon-chain/state/v1:go_default_library",
|
2019-12-04 19:20:33 +00:00
|
|
|
"//proto/beacon/p2p/v1:go_default_library",
|
2021-06-02 23:49:52 +00:00
|
|
|
"//proto/eth/v1alpha1:go_default_library",
|
2020-03-17 19:25:17 +00:00
|
|
|
"//shared/bytesutil:go_default_library",
|
2020-01-16 21:40:09 +00:00
|
|
|
"//shared/featureconfig:go_default_library",
|
2020-03-31 18:57:19 +00:00
|
|
|
"//shared/hashutil:go_default_library",
|
2020-06-18 02:15:13 +00:00
|
|
|
"//shared/htrutils:go_default_library",
|
2019-12-04 19:20:33 +00:00
|
|
|
"//shared/interop:go_default_library",
|
2019-12-18 02:57:40 +00:00
|
|
|
"//shared/params:go_default_library",
|
2020-03-17 19:25:17 +00:00
|
|
|
"//shared/testutil:go_default_library",
|
2020-07-18 07:56:48 +00:00
|
|
|
"//shared/testutil/assert:go_default_library",
|
|
|
|
"//shared/testutil/require:go_default_library",
|
2021-02-23 00:14:50 +00:00
|
|
|
"@com_github_prysmaticlabs_eth2_types//: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",
|
|
|
|
"manual",
|
|
|
|
"no-cache",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"//beacon-chain/state/stateutil:go_default_library",
|
2021-06-02 23:49:52 +00:00
|
|
|
"//proto/eth/v1alpha1:go_default_library",
|
2020-03-29 06:13:24 +00:00
|
|
|
"//shared/hashutil:go_default_library",
|
2020-06-18 02:15:13 +00:00
|
|
|
"//shared/htrutils:go_default_library",
|
2020-03-26 18:10:22 +00:00
|
|
|
"//shared/testutil:go_default_library",
|
2020-03-29 06:13:24 +00:00
|
|
|
"@com_github_protolambda_zssz//merkle:go_default_library",
|
2020-03-26 18:10:22 +00:00
|
|
|
],
|
|
|
|
)
|