Skip to content

Removed unused old evm client#13380

Merged
dimriou merged 2 commits intodevelopfrom
deprecate_evm_client
Jun 4, 2024
Merged

Removed unused old evm client#13380
dimriou merged 2 commits intodevelopfrom
deprecate_evm_client

Conversation

@dimriou
Copy link
Copy Markdown
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.

@dimriou dimriou requested review from a team as code owners May 31, 2024 12:46
@dimriou dimriou requested a review from dhaidashenko May 31, 2024 12:46
jmank88
jmank88 previously approved these changes May 31, 2024
@cl-sonarqube-production
Copy link
Copy Markdown

amit-momin
amit-momin previously approved these changes May 31, 2024
@dimriou dimriou dismissed stale reviews from amit-momin and jmank88 via de7303f June 3, 2024 07:55
//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
Copy Markdown
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
Copy Markdown
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.

return context.WithTimeout(context.Background(), queryTimeout)
}

type chainClient struct {
Copy link
Copy Markdown
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
Copy Markdown
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
@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