2023-03-14 16:29:48 +01:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
2022-11-02 00:31:32 +01:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2023-01-27 18:35:25 +01:00
|
|
|
srcs = [
|
2023-09-07 05:19:32 +02:00
|
|
|
"deposit_fetcher.go",
|
|
|
|
"deposit_inserter.go",
|
2023-01-27 18:35:25 +01:00
|
|
|
"deposit_tree.go",
|
|
|
|
"deposit_tree_snapshot.go",
|
|
|
|
"merkle_tree.go",
|
|
|
|
],
|
2024-02-14 21:46:47 -08:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v5/beacon-chain/cache/depositsnapshot",
|
2022-11-02 00:31:32 +01:00
|
|
|
visibility = ["//visibility:public"],
|
2023-01-27 18:35:25 +01:00
|
|
|
deps = [
|
2023-09-07 05:19:32 +02:00
|
|
|
"//beacon-chain/cache:go_default_library",
|
|
|
|
"//config/fieldparams:go_default_library",
|
2023-01-27 18:35:25 +01:00
|
|
|
"//container/slice:go_default_library",
|
2023-09-07 05:19:32 +02:00
|
|
|
"//container/trie:go_default_library",
|
2023-01-27 18:35:25 +01:00
|
|
|
"//crypto/hash:go_default_library",
|
|
|
|
"//encoding/bytesutil:go_default_library",
|
|
|
|
"//math:go_default_library",
|
2023-09-07 05:19:32 +02:00
|
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//common:go_default_library",
|
2023-01-27 18:35:25 +01:00
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2023-09-07 05:19:32 +02:00
|
|
|
"@com_github_prometheus_client_golang//prometheus:go_default_library",
|
|
|
|
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
|
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
"@com_github_wealdtech_go_bytesutil//:go_default_library",
|
|
|
|
"@io_opencensus_go//trace:go_default_library",
|
2023-01-27 18:35:25 +01:00
|
|
|
],
|
2022-11-02 00:31:32 +01:00
|
|
|
)
|
2023-03-14 16:29:48 +01:00
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = [
|
2023-09-07 05:19:32 +02:00
|
|
|
"deposit_cache_test.go",
|
2023-03-14 16:29:48 +01:00
|
|
|
"deposit_tree_snapshot_test.go",
|
|
|
|
"merkle_tree_test.go",
|
|
|
|
"spec_test.go",
|
|
|
|
],
|
|
|
|
data = [
|
|
|
|
"@eip4881_spec_tests//:test_data",
|
|
|
|
],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
2023-09-07 05:19:32 +02:00
|
|
|
"//beacon-chain/cache:go_default_library",
|
|
|
|
"//config/params:go_default_library",
|
|
|
|
"//container/trie:go_default_library",
|
|
|
|
"//crypto/hash:go_default_library",
|
|
|
|
"//encoding/bytesutil:go_default_library",
|
2023-03-14 16:29:48 +01:00
|
|
|
"//io/file:go_default_library",
|
2023-09-07 05:19:32 +02:00
|
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
2023-03-14 16:29:48 +01:00
|
|
|
"//testing/assert:go_default_library",
|
|
|
|
"//testing/require:go_default_library",
|
2023-09-07 05:19:32 +02:00
|
|
|
"//testing/util:go_default_library",
|
2023-03-14 16:29:48 +01:00
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
|
|
"@in_gopkg_yaml_v3//:go_default_library",
|
|
|
|
"@io_bazel_rules_go//go/tools/bazel:go_default_library",
|
|
|
|
],
|
|
|
|
)
|