2021-06-30 19:22:09 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
2021-06-15 15:28:49 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"custom_handlers.go",
|
|
|
|
"custom_hooks.go",
|
|
|
|
"endpoint_factory.go",
|
|
|
|
"structs.go",
|
2021-09-16 02:51:51 +00:00
|
|
|
"structs_marshalling.go",
|
2021-06-15 15:28:49 +00:00
|
|
|
],
|
|
|
|
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/rpc/apimiddleware",
|
|
|
|
visibility = ["//beacon-chain:__subpackages__"],
|
|
|
|
deps = [
|
2021-09-23 20:41:04 +00:00
|
|
|
"//api/gateway/apimiddleware:go_default_library",
|
2021-09-16 19:55:51 +00:00
|
|
|
"//api/grpc:go_default_library",
|
2021-09-30 19:00:14 +00:00
|
|
|
"//beacon-chain/core/time:go_default_library",
|
2021-08-16 11:11:25 +00:00
|
|
|
"//beacon-chain/rpc/eth/events:go_default_library",
|
2021-09-28 19:07:32 +00:00
|
|
|
"//config/params:go_default_library",
|
2021-09-23 15:23:37 +00:00
|
|
|
"//encoding/bytesutil:go_default_library",
|
2021-09-10 15:20:52 +00:00
|
|
|
"//proto/eth/v2:go_default_library",
|
2021-06-15 15:28:49 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//common/hexutil:go_default_library",
|
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2021-09-28 19:07:32 +00:00
|
|
|
"@com_github_prysmaticlabs_eth2_types//:go_default_library",
|
2021-06-24 16:18:28 +00:00
|
|
|
"@com_github_r3labs_sse//:go_default_library",
|
2021-06-15 15:28:49 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = [
|
|
|
|
"custom_handlers_test.go",
|
|
|
|
"custom_hooks_test.go",
|
2021-09-16 02:51:51 +00:00
|
|
|
"structs_marshalling_test.go",
|
2021-06-15 15:28:49 +00:00
|
|
|
],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
2021-09-23 20:41:04 +00:00
|
|
|
"//api/gateway/apimiddleware:go_default_library",
|
2021-09-16 19:55:51 +00:00
|
|
|
"//api/grpc:go_default_library",
|
2021-09-30 19:00:14 +00:00
|
|
|
"//beacon-chain/core/time:go_default_library",
|
2021-08-16 11:11:25 +00:00
|
|
|
"//beacon-chain/rpc/eth/events:go_default_library",
|
2021-09-28 19:07:32 +00:00
|
|
|
"//config/params:go_default_library",
|
2021-09-23 15:23:37 +00:00
|
|
|
"//encoding/bytesutil:go_default_library",
|
2021-09-10 15:20:52 +00:00
|
|
|
"//proto/eth/v2:go_default_library",
|
2021-09-23 18:53:46 +00:00
|
|
|
"//testing/assert:go_default_library",
|
|
|
|
"//testing/require:go_default_library",
|
2021-09-10 15:20:52 +00:00
|
|
|
"@com_github_gogo_protobuf//types:go_default_library",
|
2021-06-24 16:18:28 +00:00
|
|
|
"@com_github_r3labs_sse//:go_default_library",
|
2021-06-15 15:28:49 +00:00
|
|
|
],
|
|
|
|
)
|