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

chore(types): Cleanup unused types/funcs and expose Service Registry #2440

Merged
merged 6 commits into from
Feb 2, 2025

Conversation

rezbera
Copy link
Contributor

@rezbera rezbera commented Jan 30, 2025

This cleans up unused types and funcs, and exposes the Service Registry which allows us to fetch the various services such as Comet or Blockchain Service from the ABCI, which will support the future testing framework

@rezbera rezbera requested a review from a team as a code owner January 30, 2025 16:35
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 32.36%. Comparing base (928024c) to head (7e03572).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
node-core/components/signer.go 0.00% 8 Missing ⚠️
node-core/builder/baseapp_options.go 0.00% 2 Missing ⚠️
node-core/node/node.go 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2440      +/-   ##
==========================================
- Coverage   32.36%   32.36%   -0.01%     
==========================================
  Files         350      350              
  Lines       15592    15594       +2     
  Branches       20       20              
==========================================
  Hits         5047     5047              
- Misses      10182    10184       +2     
  Partials      363      363              
Files with missing lines Coverage Δ
cli/commands/server/start.go 0.00% <ø> (ø)
cli/flags/flags.go 0.00% <ø> (ø)
config/config.go 0.00% <ø> (ø)
node-core/builder/baseapp_options.go 0.00% <0.00%> (ø)
node-core/node/node.go 0.00% <0.00%> (ø)
node-core/components/signer.go 0.00% <0.00%> (ø)

@rezbera rezbera enabled auto-merge (squash) January 30, 2025 16:41

import "github.com/berachain/beacon-kit/errors"

var (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@@ -97,46 +91,15 @@ type (
/* -------------------------------------------------------------------------- */

type (
// BeaconBlock type aliases.
ConsensusBlock = consruntimetypes.ConsensusBlock

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@@ -86,16 +86,6 @@ func (c Config) Template() string {
return template.TomlTemplate
}

// MustReadConfigFromAppOpts reads the configuration options from the given
// application options.
func MustReadConfigFromAppOpts(opts AppOptions) *Config {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@rezbera rezbera disabled auto-merge January 30, 2025 16:46
execution/client/client.go Outdated Show resolved Hide resolved
@calbera calbera self-requested a review January 30, 2025 19:06
@rezbera rezbera enabled auto-merge (squash) January 30, 2025 19:09
Copy link
Collaborator

@abi87 abi87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only have a doubt around StartCmd, other than that LGTM

Copy link
Contributor

@fridrik01 fridrik01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rezbera rezbera force-pushed the cleanup-unused-rez branch from 2f9f6cf to 7e03572 Compare February 2, 2025 23:39
@rezbera rezbera merged commit 2309cc5 into main Feb 2, 2025
19 checks passed
@rezbera rezbera deleted the cleanup-unused-rez branch February 2, 2025 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants