Skip to content

Conversation

@cyc60
Copy link
Contributor

@cyc60 cyc60 commented Dec 10, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 10, 2025 15:44
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the codebase to use a newer version of web3py, requiring API changes and adding proper client cleanup. The sw-utils dependency is rolled back to v0.10.6 to maintain compatibility.

  • Updated web3py API calls to use snake_case method names instead of camelCase
  • Added proper resource cleanup with client disconnection in finally blocks
  • Refactored main keeper loop to ensure clients are closed on shutdown

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/main.py Refactored keeper startup to wrap the main loop in try-finally block ensuring client cleanup
src/common/startup_check.py Added finally blocks to disconnect consensus and execution clients after startup checks
src/common/contracts.py Updated web3py method calls from camelCase to snake_case (encode_abi, from_block, to_block)
src/common/clients.py Updated middleware construction to use SignAndSendRawMiddlewareBuilder and added close_clients function
pyproject.toml Rolled back sw-utils version from v0.11.0 to v0.10.6

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cyc60 cyc60 merged commit 7073fa6 into master Dec 10, 2025
5 checks passed
@cyc60 cyc60 deleted the web3-7 branch December 10, 2025 18:27
@stakewise-sentry
Copy link

Issues attributed to commits in this pull request

This pull request was merged and Sentry observed the following issues:

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.

3 participants