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

Make attestantio import names consistent #560

Merged
merged 2 commits into from
Aug 18, 2023

Conversation

jtraglia
Copy link
Collaborator

📝 Summary

Rename imports for github.com/attestantio/* to be more consistent. Decided to go with camelCase instead of all lowercase just for improved readability; if there were fewer words I would have loved to make it all lowercase.

  1. All of the go-eth2-client/spec imports will be unnamed.
  1. All of the go-eth2-client/api/v*/<spec> imports will match this style:
  1. All of the go-eth2-client/util/<spec> imports will match this style:
  1. All of the go-builder-client imports will match their path names sequentially:

⛱ Motivation and Context

This has been a small pet-peeve of mine for a while. Due to a lot of overlapping package names, we were required to rename some imports. This wasn't very consistent. This PR aims to make things consistent.


✅ I have run these commands

  • make lint
  • make test-race
  • go mod tidy

@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2023

Codecov Report

Merging #560 (a3a4dc2) into develop-deneb (b46d453) will increase coverage by 0.23%.
The diff coverage is 94.73%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@                Coverage Diff                @@
##           develop-deneb     #560      +/-   ##
=================================================
+ Coverage          68.01%   68.25%   +0.23%     
=================================================
  Files                  7        7              
  Lines               1282     1282              
=================================================
+ Hits                 872      875       +3     
+ Misses               346      345       -1     
+ Partials              64       62       -2     
Flag Coverage Δ
unittests 68.25% <94.73%> (+0.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
server/utils.go 72.55% <83.33%> (ø)
server/mock_relay.go 90.25% <94.44%> (ø)
server/service.go 75.73% <100.00%> (+0.46%) ⬆️

@jtraglia jtraglia merged commit 49b6f07 into flashbots:develop-deneb Aug 18, 2023
2 checks passed
@jtraglia jtraglia deleted the consistent-import-names branch August 18, 2023 13:07
@avalonche avalonche mentioned this pull request Aug 24, 2023
3 tasks
metachris added a commit that referenced this pull request Jan 19, 2024
* add deneb path

* remove redirectives

* Check deneb blobs

* Make attestantio import names consistent (#560)

* update payload fields

* Compute block root to calculate block hash

* remove computing deneb hash

* clean up and add tests

* updated builder specs

* update mev-boost to updated builder-specs

* fix tests

* Apply suggestions from code review

Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>

* rebase

* update go-boost-utils

* address pr comments

---------

Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
Co-authored-by: Chris Hager <chris@linuxuser.at>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants