Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update git workflow + bazel files + generate random mnemonic for new staking deposit #96

Merged
merged 3 commits into from
Mar 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish docker images for both AMD64 & ARM64

on:
push:
branches:
- main
release:
types:
- published # Triggers only when a release is published

jobs:
publish-docker:
@@ -28,6 +28,7 @@ jobs:
mkdir -p bin
mv bazelisk-linux-amd64 bin/bazel
chmod +x bin/bazel

- name: Docker Login
run: |
echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
@@ -367,7 +367,7 @@ load("@com_github_atlassian_bazel_tools//gometalinter:deps.bzl", "gometalinter_d

gometalinter_dependencies()

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")

# gazelle:repository_macro deps.bzl%go_dependencies
go_dependencies()
2 changes: 0 additions & 2 deletions api/client/beacon/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -24,11 +24,9 @@ go_library(
"//proto/qrysm/v1alpha1:go_default_library",
"//proto/zond/v1:go_default_library",
"//runtime/version:go_default_library",
"//time/slots:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_theqrl_go_zond//common/hexutil:go_default_library",
"@org_golang_x_mod//semver:go_default_library",
],
)

2 changes: 0 additions & 2 deletions api/client/builder/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -28,7 +28,6 @@ go_library(
"@com_github_pkg_errors//:go_default_library",
"@com_github_prysmaticlabs_fastssz//:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
"@com_github_theqrl_go_zond//common/hexutil:go_default_library",
"@io_opencensus_go//trace:go_default_library",
],
@@ -54,7 +53,6 @@ go_test(
"//proto/qrysm/v1alpha1:go_default_library",
"//testing/assert:go_default_library",
"//testing/require:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_theqrl_go_bitfield//:go_default_library",
"@com_github_theqrl_go_zond//common/hexutil:go_default_library",
],
2 changes: 0 additions & 2 deletions api/client/builder/testing/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -11,8 +11,6 @@ go_library(
"//consensus-types/interfaces:go_default_library",
"//consensus-types/primitives:go_default_library",
"//encoding/bytesutil:go_default_library",
"//proto/engine/v1:go_default_library",
"//proto/qrysm/v1alpha1:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
],
)
3 changes: 0 additions & 3 deletions beacon-chain/blockchain/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -80,14 +80,11 @@ go_library(
"//runtime/version:go_default_library",
"//time:go_default_library",
"//time/slots:go_default_library",
"@com_github_holiman_uint256//:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@com_github_prometheus_client_golang//prometheus:go_default_library",
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
"@com_github_theqrl_go_zond//common:go_default_library",
"@com_github_theqrl_go_zond//common/hexutil:go_default_library",
"@io_opencensus_go//trace:go_default_library",
"@org_golang_x_sync//errgroup:go_default_library",
],
1 change: 0 additions & 1 deletion beacon-chain/blockchain/testing/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -32,6 +32,5 @@ go_library(
"//proto/zond/v1:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
],
)
1 change: 0 additions & 1 deletion beacon-chain/builder/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -20,7 +20,6 @@ go_library(
"//consensus-types/primitives:go_default_library",
"//encoding/bytesutil:go_default_library",
"//monitoring/tracing:go_default_library",
"//proto/engine/v1:go_default_library",
"//proto/qrysm/v1alpha1:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@com_github_prometheus_client_golang//prometheus:go_default_library",
2 changes: 0 additions & 2 deletions beacon-chain/builder/testing/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -11,14 +11,12 @@ go_library(
"//beacon-chain/cache:go_default_library",
"//beacon-chain/db:go_default_library",
"//config/fieldparams:go_default_library",
"//config/params:go_default_library",
"//consensus-types/blocks:go_default_library",
"//consensus-types/interfaces:go_default_library",
"//consensus-types/primitives:go_default_library",
"//proto/engine/v1:go_default_library",
"//proto/qrysm/v1alpha1:go_default_library",
"//runtime/version:go_default_library",
"//time/slots:go_default_library",
"@com_github_pkg_errors//:go_default_library",
],
)
3 changes: 1 addition & 2 deletions beacon-chain/cache/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -44,7 +44,6 @@ go_library(
"//encoding/bytesutil:go_default_library",
"//math:go_default_library",
"//proto/qrysm/v1alpha1:go_default_library",
"//runtime/version:go_default_library",
"@com_github_hashicorp_golang_lru//:go_default_library",
"@com_github_patrickmn_go_cache//:go_default_library",
"@com_github_pkg_errors//:go_default_library",
@@ -80,6 +79,7 @@ go_test(
deps = [
"//beacon-chain/state:go_default_library",
"//beacon-chain/state/state-native:go_default_library",
"//config/fieldparams:go_default_library",
"//config/params:go_default_library",
"//consensus-types/primitives:go_default_library",
"//encoding/bytesutil:go_default_library",
@@ -88,7 +88,6 @@ go_test(
"//testing/require:go_default_library",
"//testing/util:go_default_library",
"@com_github_google_gofuzz//:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
"@com_github_theqrl_go_zond//common/hexutil:go_default_library",
"@org_golang_google_protobuf//proto:go_default_library",
],
2 changes: 1 addition & 1 deletion beacon-chain/cache/depositcache/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@ go_library(
"@com_github_prometheus_client_golang//prometheus:go_default_library",
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
"@com_github_theqrl_go_zond//common:go_default_library",
"@io_opencensus_go//trace:go_default_library",
],
@@ -39,6 +38,7 @@ go_test(
embed = [":go_default_library"],
deps = [
"//beacon-chain/cache:go_default_library",
"//config/fieldparams:go_default_library",
"//config/params:go_default_library",
"//container/trie:go_default_library",
"//encoding/bytesutil:go_default_library",
5 changes: 0 additions & 5 deletions beacon-chain/cache/depositsnapshot/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@ go_library(
"@com_github_prometheus_client_golang//prometheus:go_default_library",
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
"@com_github_theqrl_go_zond//common:go_default_library",
"@com_github_wealdtech_go_bytesutil//:go_default_library",
"@io_opencensus_go//trace:go_default_library",
@@ -49,13 +48,9 @@ go_test(
"//config/params:go_default_library",
"//container/trie:go_default_library",
"//encoding/bytesutil:go_default_library",
"//io/file:go_default_library",
"//proto/qrysm/v1alpha1:go_default_library",
"//testing/assert:go_default_library",
"//testing/require:go_default_library",
"//testing/util:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@in_gopkg_yaml_v3//:go_default_library",
"@io_bazel_rules_go//go/tools/bazel:go_default_library",
],
)
3 changes: 0 additions & 3 deletions beacon-chain/core/altair/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -23,7 +23,6 @@ go_library(
"//beacon-chain/core/time:go_default_library",
"//beacon-chain/p2p/types:go_default_library",
"//beacon-chain/state:go_default_library",
"//beacon-chain/state/state-native:go_default_library",
"//config/fieldparams:go_default_library",
"//config/params:go_default_library",
"//consensus-types/blocks:go_default_library",
@@ -38,7 +37,6 @@ go_library(
"//time/slots:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
"@io_opencensus_go//trace:go_default_library",
"@org_golang_x_sync//errgroup:go_default_library",
],
@@ -85,7 +83,6 @@ go_test(
"//time/slots:go_default_library",
"@com_github_google_gofuzz//:go_default_library",
"@com_github_theqrl_go_bitfield//:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
"@org_golang_google_protobuf//proto:go_default_library",
],
)
2 changes: 0 additions & 2 deletions beacon-chain/core/blocks/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -50,7 +50,6 @@ go_library(
"//time/slots:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
"@io_opencensus_go//trace:go_default_library",
"@org_golang_google_protobuf//proto:go_default_library",
],
@@ -114,7 +113,6 @@ go_test(
"@com_github_google_gofuzz//:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_theqrl_go_bitfield//:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
"@org_golang_google_protobuf//proto:go_default_library",
],
)
8 changes: 2 additions & 6 deletions beacon-chain/core/epoch/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -20,19 +20,16 @@ go_library(
"//math:go_default_library",
"//proto/qrysm/v1alpha1:go_default_library",
"//proto/qrysm/v1alpha1/attestation:go_default_library",
"//runtime/version:go_default_library",
"@com_github_pkg_errors//:go_default_library",
],
)

go_test(
name = "go_default_test",
size = "small",
srcs = [
"epoch_processing_test.go",
],
embed = [":go_default_library"],
srcs = ["epoch_processing_test.go"],
deps = [
":go_default_library",
"//beacon-chain/core/helpers:go_default_library",
"//beacon-chain/core/time:go_default_library",
"//beacon-chain/core/transition:go_default_library",
@@ -46,7 +43,6 @@ go_test(
"//testing/assert:go_default_library",
"//testing/require:go_default_library",
"//testing/util:go_default_library",
"@com_github_google_gofuzz//:go_default_library",
"@com_github_theqrl_go_bitfield//:go_default_library",
"@org_golang_google_protobuf//proto:go_default_library",
],
15 changes: 0 additions & 15 deletions beacon-chain/core/epoch/precompute/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -19,15 +19,10 @@ go_library(
"//beacon-chain/state:go_default_library",
"//config/params:go_default_library",
"//consensus-types/primitives:go_default_library",
"//math:go_default_library",
"//monitoring/tracing:go_default_library",
"//proto/qrysm/v1alpha1:go_default_library",
"//proto/qrysm/v1alpha1/attestation:go_default_library",
"//runtime/version:go_default_library",
"//time/slots:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@com_github_theqrl_go_bitfield//:go_default_library",
"@io_opencensus_go//trace:go_default_library",
],
)

@@ -42,23 +37,13 @@ go_test(
embed = [":go_default_library"],
deps = [
"//beacon-chain/core/altair:go_default_library",
"//beacon-chain/core/epoch:go_default_library",
"//beacon-chain/core/helpers:go_default_library",
"//beacon-chain/core/time:go_default_library",
"//beacon-chain/state:go_default_library",
"//beacon-chain/state/state-native:go_default_library",
"//config/fieldparams:go_default_library",
"//config/params:go_default_library",
"//consensus-types/primitives:go_default_library",
"//math:go_default_library",
"//proto/qrysm/v1alpha1:go_default_library",
"//proto/qrysm/v1alpha1/attestation:go_default_library",
"//runtime/version:go_default_library",
"//testing/assert:go_default_library",
"//testing/require:go_default_library",
"//testing/util:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@com_github_theqrl_go_bitfield//:go_default_library",
"@org_golang_google_protobuf//proto:go_default_library",
],
)
2 changes: 0 additions & 2 deletions beacon-chain/core/signing/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -16,7 +16,6 @@ go_library(
"//crypto/dilithium:go_default_library",
"//encoding/bytesutil:go_default_library",
"//proto/qrysm/v1alpha1:go_default_library",
"//runtime/version:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@com_github_prysmaticlabs_fastssz//:go_default_library",
],
@@ -44,7 +43,6 @@ go_test(
"//testing/require:go_default_library",
"//testing/util:go_default_library",
"@com_github_google_gofuzz//:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
"@com_github_theqrl_go_zond//common/hexutil:go_default_library",
],
)
3 changes: 0 additions & 3 deletions beacon-chain/core/time/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@ go_library(
"//beacon-chain/state:go_default_library",
"//config/params:go_default_library",
"//consensus-types/primitives:go_default_library",
"//runtime/version:go_default_library",
"//time/slots:go_default_library",
],
)
@@ -19,14 +18,12 @@ go_test(
srcs = ["slot_epoch_test.go"],
deps = [
":go_default_library",
"//beacon-chain/state:go_default_library",
"//beacon-chain/state/state-native:go_default_library",
"//config/params:go_default_library",
"//consensus-types/primitives:go_default_library",
"//proto/qrysm/v1alpha1:go_default_library",
"//testing/assert:go_default_library",
"//testing/require:go_default_library",
"//testing/util:go_default_library",
"//time/slots:go_default_library",
],
)
8 changes: 1 addition & 7 deletions beacon-chain/core/transition/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -17,8 +17,6 @@ go_library(
"//beacon-chain/cache:go_default_library",
"//beacon-chain/core/altair:go_default_library",
"//beacon-chain/core/blocks:go_default_library",
"//beacon-chain/core/epoch:go_default_library",
"//beacon-chain/core/epoch/precompute:go_default_library",
"//beacon-chain/core/helpers:go_default_library",
"//beacon-chain/core/time:go_default_library",
"//beacon-chain/core/transition/interop:go_default_library",
@@ -32,7 +30,6 @@ go_library(
"//consensus-types/blocks:go_default_library",
"//consensus-types/interfaces:go_default_library",
"//consensus-types/primitives:go_default_library",
"//container/trie:go_default_library",
"//crypto/dilithium:go_default_library",
"//crypto/hash:go_default_library",
"//encoding/bytesutil:go_default_library",
@@ -45,7 +42,6 @@ go_library(
"@com_github_prometheus_client_golang//prometheus:go_default_library",
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
"@io_opencensus_go//trace:go_default_library",
],
)
@@ -54,8 +50,8 @@ go_test(
name = "go_default_test",
size = "small",
srcs = [
"capella_transition_no_verify_sig_test.go",
"benchmarks_test.go",
"capella_transition_no_verify_sig_test.go",
"skip_slot_cache_test.go",
"state_fuzz_test.go",
"state_test.go",
@@ -82,12 +78,10 @@ go_test(
"//config/params:go_default_library",
"//consensus-types/blocks:go_default_library",
"//consensus-types/primitives:go_default_library",
"//crypto/dilithium:go_default_library",
"//crypto/hash:go_default_library",
"//encoding/bytesutil:go_default_library",
"//proto/engine/v1:go_default_library",
"//proto/qrysm/v1alpha1:go_default_library",
"//proto/qrysm/v1alpha1/attestation:go_default_library",
"//runtime/version:go_default_library",
"//testing/assert:go_default_library",
"//testing/benchmark:go_default_library",
1 change: 0 additions & 1 deletion beacon-chain/core/transition/stateutils/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@ go_library(
"//consensus-types/primitives:go_default_library",
"//encoding/bytesutil:go_default_library",
"//proto/qrysm/v1alpha1:go_default_library",
"@com_github_theqrl_go_qrllib//dilithium:go_default_library",
],
)

Loading