mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 08:37:37 +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>
44 lines
1.4 KiB
Python
44 lines
1.4 KiB
Python
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"api_middleware.go",
|
|
"log.go",
|
|
"param_handling.go",
|
|
"process_field.go",
|
|
"process_request.go",
|
|
"structs.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/v4/api/gateway/apimiddleware",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//api:go_default_library",
|
|
"//api/grpc:go_default_library",
|
|
"//encoding/bytesutil:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//common:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//common/hexutil:go_default_library",
|
|
"@com_github_gorilla_mux//:go_default_library",
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
"@com_github_wealdtech_go_bytesutil//:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"param_handling_test.go",
|
|
"process_request_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//api:go_default_library",
|
|
"//api/grpc:go_default_library",
|
|
"//testing/assert:go_default_library",
|
|
"//testing/require:go_default_library",
|
|
"@com_github_gorilla_mux//:go_default_library",
|
|
"@com_github_sirupsen_logrus//hooks/test:go_default_library",
|
|
],
|
|
)
|