mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 11:41:21 +00:00
0266609bf6
* adding in custom header * adding in parsing for middleware * fixing casing * add handling on error as well * changing how error is handled for header * changing how error is handled * fixing casing * Update beacon-chain/rpc/eth/beacon/blocks.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update beacon-chain/rpc/eth/beacon/blinded_blocks.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update beacon-chain/rpc/eth/beacon/blinded_blocks.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update beacon-chain/rpc/eth/beacon/blocks.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * fixing unit tests and review comment * making some constants consistent in 1 file * fixing missed blinded blocks * fixing constants in custom handler tests --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
52 lines
1.7 KiB
Python
52 lines
1.7 KiB
Python
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"custom_handlers.go",
|
|
"custom_hooks.go",
|
|
"endpoint_factory.go",
|
|
"structs.go",
|
|
"structs_marshalling.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/apimiddleware",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//api:go_default_library",
|
|
"//api/gateway/apimiddleware:go_default_library",
|
|
"//api/grpc:go_default_library",
|
|
"//beacon-chain/rpc/eth/events:go_default_library",
|
|
"//beacon-chain/rpc/eth/helpers:go_default_library",
|
|
"//config/params:go_default_library",
|
|
"//consensus-types/primitives:go_default_library",
|
|
"//proto/eth/v2:go_default_library",
|
|
"//runtime/version:go_default_library",
|
|
"//time/slots:go_default_library",
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
"@com_github_r3labs_sse//:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"custom_handlers_test.go",
|
|
"custom_hooks_test.go",
|
|
"structs_marshalling_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//api:go_default_library",
|
|
"//api/gateway/apimiddleware:go_default_library",
|
|
"//api/grpc:go_default_library",
|
|
"//beacon-chain/rpc/eth/events:go_default_library",
|
|
"//config/params:go_default_library",
|
|
"//proto/eth/v2:go_default_library",
|
|
"//testing/assert:go_default_library",
|
|
"//testing/require:go_default_library",
|
|
"//time/slots:go_default_library",
|
|
"@com_github_gogo_protobuf//types:go_default_library",
|
|
"@com_github_r3labs_sse//:go_default_library",
|
|
],
|
|
)
|