Skip to content

V4#10

Merged
tsudmi merged 16 commits intomainfrom
v4
Sep 30, 2025
Merged

V4#10
tsudmi merged 16 commits intomainfrom
v4

Conversation

@cyc60
Copy link
Contributor

@cyc60 cyc60 commented Sep 29, 2025

No description provided.

Copilot AI review requested due to automatic review settings September 29, 2025 13:31
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 implements version 4 of the validator management system, adding support for flexible validator funding amounts and multiple validator operation types (funding, withdrawal, consolidation). The key changes include introducing validator types (V1/V2), replacing fixed deposit amounts with configurable amounts per validator, and adding new API endpoints for different validator operations.

  • Added support for V1 and V2 validator types with different withdrawal credential mechanisms
  • Replaced fixed 32 ETH deposits with configurable amounts per validator
  • Added new API endpoints for funding, withdrawal, and consolidation operations alongside the existing register endpoint

Reviewed Changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/validators/validators_manager.py Split signature generation into operation-specific functions and updated encoding logic for validator types
src/validators/validators.py Updated validator generation to accept amounts and validator types instead of fixed parameters
src/validators/typings.py Added ValidatorType enum and updated Validator dataclass with flexible amount field
src/validators/schema.py Added new request/response models for different validator operations
src/validators/endpoints.py Added new endpoints for fund, withdraw, and consolidate operations
src/validators/credentials.py Updated credential generation to support V1/V2 validator types and flexible amounts
src/config/networks.py Simplified network constants by importing from sw_utils
src/common/schema.py Added InfoResponse model for network information
src/common/endpoints.py Added info endpoint for network information
src/common/contracts.py Updated ContractWrapper to support dynamic addresses and added VaultContract
src/common/app_state.py Moved AppState class from validators module to common module
src/common/abi/IEthVault.json Added vault contract ABI for validator operations
src/app.py Updated imports and added info router
pyproject.toml Updated Python version and dependencies
Dockerfile Updated Python base image
.pre-commit-config.yaml Added vulture for dead code detection
.github/workflows/ci.yaml Updated Python version in CI

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@tsudmi tsudmi merged commit f403a71 into main Sep 30, 2025
7 checks passed
@tsudmi tsudmi deleted the v4 branch September 30, 2025 20: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