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 core eth utils to evm #11584

Merged
merged 12 commits into from
Dec 20, 2023
Merged

Move core eth utils to evm #11584

merged 12 commits into from
Dec 20, 2023

Conversation

dimriou
Copy link
Collaborator

@dimriou dimriou commented Dec 15, 2023

Most of the functions included in core/utils are evm-specific. They either import go-ethereum packages or they require chain-specific logic. This PR moves these methods under core/chains/evm and improves dependency tree.

Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

Copy link
Contributor

I see that you haven't updated any CHANGELOG files. Would it make sense to do so?

jmank88
jmank88 previously approved these changes Dec 15, 2023
@@ -35,3 +181,108 @@ func NewRedialBackoff() backoff.Backoff {
}

}

// RetryWithBackoff retries the sleeper and backs off if not Done
func RetryWithBackoff(ctx context.Context, fn func() (retry bool)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This might be useful for common and other chains

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

RetryWithBackoff uses a Backoff with arbitrary values ( Min: 1 * time.Second, Max: 10 * time.Second ) so it's better if we keep it implementation-specific

jmank88
jmank88 previously approved these changes Dec 19, 2023
@cl-sonarqube-production
Copy link

@dimriou dimriou added this pull request to the merge queue Dec 20, 2023
Merged via the queue into develop with commit 8795647 Dec 20, 2023
84 checks passed
@dimriou dimriou deleted the move_eth_utils_to_evm branch December 20, 2023 13:06
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