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

move builders to it's own package #286

Merged
merged 7 commits into from
Jul 3, 2024
Merged

move builders to it's own package #286

merged 7 commits into from
Jul 3, 2024

Conversation

shrimalmadhur
Copy link
Collaborator

Fixes # .

What Changed?

Reviewer Checklist

  • Code is well-documented
  • Code adheres to Go naming conventions
  • Code deprecates any old functionality before removing it

@shrimalmadhur shrimalmadhur marked this pull request as ready for review July 2, 2024 17:08
@shrimalmadhur shrimalmadhur requested a review from samlaf July 2, 2024 17:08
@shrimalmadhur shrimalmadhur force-pushed the madhur/separate-builders branch from 5cc7ba3 to 47bcb7c Compare July 3, 2024 05:04
Copy link
Collaborator

@samlaf samlaf left a comment

Choose a reason for hiding this comment

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

LGTM. Just some small nits wrt being consistent with the FromConfig or not. Think we should use the same convention everywhere?

chainio/clients/avsregistry/builder.go Show resolved Hide resolved
chainio/clients/avsregistry/builder.go Show resolved Hide resolved
Comment on lines +47 to +54
elChainReader, err := elcontracts.NewReaderFromConfig(
elcontracts.Config{
DelegationManagerAddress: avsBindings.DelegationManagerAddr,
AvsDirectoryAddress: avsBindings.AvsDirectoryAddr,
},
client,
logger,
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we really need this to be created outside and passed via dependency injection? Or could we just build it inside the NewChainWriter constructor?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

hmm good ques. idk. need to think more

chainio/clients/builder.go Show resolved Hide resolved
@shrimalmadhur shrimalmadhur requested a review from samlaf July 3, 2024 19:40
@samlaf samlaf merged commit b4dc202 into dev Jul 3, 2024
5 checks passed
@samlaf samlaf deleted the madhur/separate-builders branch July 3, 2024 20:16
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.

2 participants