2023-03-14 15:29:48 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
2022-11-01 23:31:32 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2023-01-27 17:35:25 +00:00
|
|
|
srcs = [
|
|
|
|
"deposit_tree.go",
|
|
|
|
"deposit_tree_snapshot.go",
|
|
|
|
"merkle_tree.go",
|
|
|
|
"zerohashes.gen.go",
|
|
|
|
],
|
2023-03-17 18:52:56 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v4/beacon-chain/cache/depositsnapshot",
|
2022-11-01 23:31:32 +00:00
|
|
|
visibility = ["//visibility:public"],
|
2023-01-27 17:35:25 +00:00
|
|
|
deps = [
|
|
|
|
"//container/slice:go_default_library",
|
|
|
|
"//crypto/hash:go_default_library",
|
|
|
|
"//encoding/bytesutil:go_default_library",
|
|
|
|
"//math:go_default_library",
|
|
|
|
"//proto/eth/v1:go_default_library",
|
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
|
|
],
|
2022-11-01 23:31:32 +00:00
|
|
|
)
|
2023-03-14 15:29:48 +00:00
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = [
|
|
|
|
"deposit_tree_snapshot_test.go",
|
|
|
|
"merkle_tree_test.go",
|
|
|
|
"spec_test.go",
|
|
|
|
],
|
|
|
|
data = [
|
|
|
|
"@eip4881_spec_tests//:test_data",
|
|
|
|
],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
|
|
|
"//io/file:go_default_library",
|
|
|
|
"//proto/eth/v1:go_default_library",
|
|
|
|
"//testing/assert:go_default_library",
|
|
|
|
"//testing/require:go_default_library",
|
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
|
|
"@in_gopkg_yaml_v3//:go_default_library",
|
|
|
|
"@io_bazel_rules_go//go/tools/bazel:go_default_library",
|
|
|
|
],
|
|
|
|
)
|