Move ETH2 Types Into Prysm (#10534)

* move eth2 types into Prysm

* bazel

* lint

* use existing math helpers

* rem eth2-types dep

Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Raul Jordan
2022-04-28 13:57:40 +00:00
committed by GitHub
parent 58ad800553
commit 001f719cc3
18 changed files with 1602 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = [
"committee_index.go",
"domain.go",
"epoch.go",
"slot.go",
"sszbytes.go",
"sszuint64.go",
"validator.go",
],
importpath = "github.com/prysmaticlabs/prysm/consensus-types/primitives",
visibility = ["//visibility:public"],
deps = [
"//math:go_default_library",
"@com_github_ferranbt_fastssz//:go_default_library",
],
)
go_test(
name = "go_default_test",
srcs = [
"committee_index_test.go",
"domain_test.go",
"epoch_test.go",
"slot_test.go",
"sszbytes_test.go",
"sszuint64_test.go",
"validator_test.go",
],
embed = [":go_default_library"],
deps = [
"//math:go_default_library",
"@com_github_prysmaticlabs_eth2_types//:go_default_library",
],
)