mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 05:38:55 +00:00
ea31f096b5
* Native beacon state: `fieldtrie` package * reuse ProofFromMerkleLayers * more reuse + fixes * more reuse + fixes * move validateIndices to helpers * remove TestAppendBeyondIndicesLimit * do not duplicate package * correct errors * handle32ByteArrays function * type switch Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: Nishant Das <nishdas93@gmail.com>
42 lines
1.4 KiB
Python
42 lines
1.4 KiB
Python
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"field_trie.go",
|
|
"field_trie_helpers.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/state/fieldtrie",
|
|
visibility = ["//beacon-chain:__subpackages__"],
|
|
deps = [
|
|
"//beacon-chain/state/state-native/custom-types:go_default_library",
|
|
"//beacon-chain/state/stateutil:go_default_library",
|
|
"//beacon-chain/state/types:go_default_library",
|
|
"//crypto/hash:go_default_library",
|
|
"//encoding/bytesutil:go_default_library",
|
|
"//encoding/ssz:go_default_library",
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
|
"//runtime/version:go_default_library",
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"field_trie_test.go",
|
|
"helpers_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//beacon-chain/state/stateutil:go_default_library",
|
|
"//beacon-chain/state/types:go_default_library",
|
|
"//config/params:go_default_library",
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
|
"//testing/assert:go_default_library",
|
|
"//testing/require:go_default_library",
|
|
"//testing/util:go_default_library",
|
|
"@com_github_prysmaticlabs_eth2_types//:go_default_library",
|
|
],
|
|
)
|