Skip to content

Conversation

@danielailie
Copy link
Contributor

No description provided.

@danielailie danielailie self-assigned this Sep 18, 2025
popenta
popenta previously approved these changes Sep 18, 2025
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 adds a new ValidatorsController class that provides a high-level interface for creating validator-related transactions. The controller wraps the existing ValidatorsTransactionsFactory and handles common transaction setup operations like setting gas options, guardian configuration, and transaction signing.

Key changes:

  • Introduces ValidatorsController with methods for all validator operations (staking, unstaking, unjailing, etc.)
  • Adds comprehensive test coverage for all validator transaction types
  • Integrates the controller into the entrypoint system for easy instantiation

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/validators/validatorsController.ts New controller class that wraps ValidatorsTransactionsFactory and provides transaction creation methods with automatic signing
src/validators/validatorsController.spec.ts Comprehensive test suite covering all validator transaction creation methods
src/entrypoints/entrypoints.ts Adds factory methods to create ValidatorsController and ValidatorsTransactionsFactory instances

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

@danielailie danielailie merged commit c3d25b0 into feat/next Sep 22, 2025
5 checks passed
@danielailie danielailie deleted the TOOL-678-add-validator-controller branch September 22, 2025 09:13
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