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

Removed unused old evm client #13380

Merged
merged 2 commits into from
Jun 4, 2024
Merged

Removed unused old evm client #13380

merged 2 commits into from
Jun 4, 2024

Conversation

dimriou
Copy link
Collaborator

@dimriou dimriou commented May 31, 2024

Old evm client wasn't used and MultiNode was used in its place. The code has been deprecated for a long time. We are removing all the unnecessary files and deprecating the old evm client.

jmank88
jmank88 previously approved these changes May 31, 2024
amit-momin
amit-momin previously approved these changes May 31, 2024
//go:generate mockery --quiet --name Client --output ./mocks/ --case=underscore

// Client is the interface used to interact with an ethereum node.
type Client interface {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we keep it in client.go file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'd rather keep one file for interface and implementation instead of splitting them. Interfaces should live either where they are needed or if they are of general purpose inside their implementation.

func ContextWithDefaultTimeout() (ctx context.Context, cancel context.CancelFunc) {
return context.WithTimeout(context.Background(), queryTimeout)
}

type chainClient struct {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we rename it to client?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thought of the same thing and I actually made the change locally, but then chainClient as a name kinda grew on me and decided not to make the switch. I'm happy with both to be honest.

@dhaidashenko dhaidashenko self-requested a review June 3, 2024 18:32
@dimriou dimriou added this pull request to the merge queue Jun 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 4, 2024
@jmank88 jmank88 added this pull request to the merge queue Jun 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 4, 2024
@dimriou dimriou added this pull request to the merge queue Jun 4, 2024
Merged via the queue into develop with commit 21c4cde Jun 4, 2024
108 checks passed
@dimriou dimriou deleted the deprecate_evm_client branch June 4, 2024 15:30
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