mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 03:01:19 +00:00
c44a30672e
* Add interface and move slashing types to /types package * WIP restructure to match beacon chain DB * Fix build * Fix comment * Fix comments * fix comments for sure * Use wrapper function for evict * Remove unused * Update slasher/db/kv/kv.go * Update slasher/db/testing/BUILD.bazel * Update slasher/db/types/BUILD.bazel * Update slasher/db/types/types.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
54 lines
1.8 KiB
Python
54 lines
1.8 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"attester_slashings.go",
|
|
"block_header.go",
|
|
"indexed_attestations.go",
|
|
"kv.go",
|
|
"min_max_span.go",
|
|
"proposer_slashings.go",
|
|
"schema.go",
|
|
"validator_id_pubkey.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/slasher/db/kv",
|
|
visibility = ["//slasher:__subpackages__"],
|
|
deps = [
|
|
"//proto/slashing:go_default_library",
|
|
"//shared/bytesutil:go_default_library",
|
|
"//shared/hashutil:go_default_library",
|
|
"//shared/params:go_default_library",
|
|
"//slasher/db/types:go_default_library",
|
|
"@com_github_boltdb_bolt//:go_default_library",
|
|
"@com_github_dgraph_io_ristretto//:go_default_library",
|
|
"@com_github_gogo_protobuf//proto:go_default_library",
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"attester_slashings_test.go",
|
|
"block_header_test.go",
|
|
"indexed_attestations_test.go",
|
|
"kv_test.go",
|
|
"min_max_span_test.go",
|
|
"proposer_slashings_test.go",
|
|
"validator_id_pubkey_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//proto/slashing:go_default_library",
|
|
"//shared/testutil:go_default_library",
|
|
"//slasher/db/types:go_default_library",
|
|
"//slasher/flags:go_default_library",
|
|
"@com_github_gogo_protobuf//proto:go_default_library",
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
|
"@com_github_urfave_cli//:go_default_library",
|
|
],
|
|
)
|