2021-12-13 09:16:23 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = select({
|
|
|
|
"//config:mainnet": ["mainnet.go"],
|
|
|
|
"//config:minimal": ["minimal.go"],
|
|
|
|
}),
|
|
|
|
importpath = "github.com/prysmaticlabs/prysm/config/fieldparams",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2022-01-16 18:44:42 +00:00
|
|
|
srcs = [
|
|
|
|
"common_test.go",
|
|
|
|
"mainnet_test.go",
|
|
|
|
],
|
2021-12-13 09:16:23 +00:00
|
|
|
deps = [
|
|
|
|
":go_default_library",
|
|
|
|
"//config/params:go_default_library",
|
|
|
|
"//testing/assert:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_minimal_test",
|
2022-01-16 18:44:42 +00:00
|
|
|
srcs = [
|
|
|
|
"common_test.go",
|
|
|
|
"minimal_test.go",
|
|
|
|
],
|
2021-12-13 09:16:23 +00:00
|
|
|
eth_network = "minimal",
|
|
|
|
deps = [
|
|
|
|
":go_default_library",
|
|
|
|
"//config/params:go_default_library",
|
|
|
|
"//testing/assert:go_default_library",
|
|
|
|
],
|
|
|
|
)
|