Skip to content

feat: Add close validator vault #71

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

Merged
merged 2 commits into from
Mar 8, 2025

Conversation

GabrielePicco
Copy link
Contributor

@GabrielePicco GabrielePicco commented Mar 8, 2025

Description

  • Add close validator vault
Status Type ⚠️ Core Change Issue
Ready Feature No -

Greptile Summary

Adds functionality to close validator fees vaults in the delegation program, including instruction handlers, discriminators, and comprehensive test coverage.

  • Added CloseValidatorFeesVault discriminator (0xe) in src/discriminator.rs for identifying close vault instructions
  • Added process_close_validator_fees_vault in src/processor/close_validator_fees_vault.rs with proper admin authorization and PDA validation
  • Added instruction builder close_validator_fees_vault in src/instruction_builder/close_validator_fees_vault.rs for constructing close vault instructions
  • Added integration test test_close_validator_fees_vault.rs verifying vault closure functionality

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

8 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile

@GabrielePicco GabrielePicco merged commit 7fc0ae9 into main Mar 8, 2025
3 checks passed
@GabrielePicco GabrielePicco deleted the feat/add-close-vaildator-vault branch March 8, 2025 19:32
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.

1 participant