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 #510

Merged
merged 3 commits into from
Sep 4, 2023

Conversation

jtraglia
Copy link
Collaborator

📝 Summary

Rename imports for github.com/attestantio/* to be more consistent.

See the mev-boost PR (in the references section) for more details. This PR follows the same conventions.

⛱ 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.

📚 References


✅ I have run these commands

  • make lint (see other PR)
  • make test-race (see other PR)
  • go mod tidy
  • I have seen and agree to CONTRIBUTING.md

Copy link
Collaborator

@michaelneuder michaelneuder left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (deneb@0d8385e). Click here to learn what that means.
The diff coverage is n/a.

❗ 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            @@
##             deneb     #510   +/-   ##
========================================
  Coverage         ?   34.07%           
========================================
  Files            ?       24           
  Lines            ?     4989           
  Branches         ?        0           
========================================
  Hits             ?     1700           
  Misses           ?     3066           
  Partials         ?      223           
Flag Coverage Δ
unittests 34.07% <0.00%> (?)

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

@avalonche avalonche mentioned this pull request Aug 24, 2023
17 tasks
@metachris
Copy link
Collaborator

this is great, thanks!

@metachris metachris merged commit f61973d into flashbots:deneb Sep 4, 2023
2 checks passed
@jtraglia jtraglia deleted the consistent-import-names branch September 4, 2023 18:34
@@ -123,7 +123,7 @@ func NewRedisCache(prefix, redisURI, readonlyURI string) (*RedisCache, error) {

prefixGetHeaderResponse: fmt.Sprintf("%s/%s:cache-gethead-response", redisPrefix, prefix),
prefixExecPayloadCapella: fmt.Sprintf("%s/%s:cache-execpayload-capella", redisPrefix, prefix),
prefixPayloadContentsDeneb: fmt.Sprintf("%s/%s:cache-payloadcontenst-deneb", redisPrefix, prefix),
prefixPayloadContentsDeneb: fmt.Sprintf("%s/%s:cache-payloadcontenst-builderApiDeneb", redisPrefix, prefix),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@metachris I was re-reviewing and noticed this. This shouldn't have been changed. Will fix in a new PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

whoops, thanks!

@jtraglia jtraglia mentioned this pull request Sep 4, 2023
4 tasks
avalonche pushed a commit that referenced this pull request Sep 29, 2023
* Make attestantio import names consistent

* Fix linter errors & two comments
avalonche pushed a commit that referenced this pull request Oct 31, 2023
* Make attestantio import names consistent

* Fix linter errors & two comments
avalonche pushed a commit that referenced this pull request Jan 4, 2024
* Make attestantio import names consistent

* Fix linter errors & two comments
avalonche pushed a commit that referenced this pull request Jan 19, 2024
* Make attestantio import names consistent

* Fix linter errors & two comments
austonst pushed a commit to aestus-relay/mev-boost-relay that referenced this pull request Jan 25, 2024
* Make attestantio import names consistent

* Fix linter errors & two comments
avalonche added a commit that referenced this pull request Jan 30, 2024
* Remove bellatrix from wrapper types (#475)

* Remove bellatrix from wrapper types

* remove test logs

* Remove get header wrapper types (#477)

* Remove signed blinded beacon block wrapper (#482)

* remove signed blinded beacon block wrapper type

* linting

* remove signed beacon block wrapper types (#483)

* Remove submit block request wrapper (#485)

* remove submit block request wrapper types

* fix tests

* fix lint

* Upgrade go-boost-utils (#488)

* Upgrade go-boost-utils

* pr comments

* remove commented out code

* Add custom json marshalling for versioned structs (#493)

* Add deneb signature checking for block contents

* Add deneb support for type conversions

* Add redis and database tests to store deneb payloads

* Block submission to v3 validation endpoint

* Update signed block conversions

* Replace some expectCont with expectOk (#509)

* Allow fork epochs to be 0

* Make attestantio import names consistent (#510)

* Make attestantio import names consistent

* Fix linter errors & two comments

* Fix mistake in redis prefix name (#517)

* Fix mistake in redis prefix for deneb

* Fix typo in prefix

* rebase conflicts from main

* update submit block request

* bug fixes

* fix blob sidecar signature

* ssz encode request to publish block

* use v2 publish endpoint by default

* go mod tidy

* update relay to latest builder-specs

* update go mod

* fix lint and tests

* switch to json encoding instead of ssz for block publishing v2

* add blob logging

* address pr comments

* Handle no deneb fork schedule from beacon client (#572)

* backwards compatibility if no deneb schedule

* Update services/api/service.go

Co-authored-by: Chris Hager <[email protected]>

---------

Co-authored-by: Chris Hager <[email protected]>

* change specific error log to info because it's expected nowadays (#574)

* Add json and ssz marshalling tests (#573)

* add test vectors

* linting

---------

Co-authored-by: Justin Traglia <[email protected]>
Co-authored-by: Chris Hager <[email protected]>
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.

4 participants