Skip to content

Conversation

GabrielePicco
Copy link
Contributor

@GabrielePicco GabrielePicco commented Nov 13, 2024

feat: whitelist validator for program

Status Type ⚠️ Core Change Issue
Ready Feature No #39

Problem

See #39

Greptile Summary

This PR adds validator whitelisting functionality to the delegation program, allowing only approved validators to perform commitment, finalization, and undelegation operations.

  • Added new WhitelistForProgram state struct and PDA to store approved validator pubkeys per program
  • Added WhitelistValidatorForProgram instruction that allows admin/program authority to manage validator whitelist
  • Added resize_pda utility function to handle dynamic whitelist storage resizing
  • Added integration tests verifying whitelist add/remove functionality
  • Updated Rust toolchain to 1.79.0 and pinned Solana dependencies to 1.18.26

Issues

Closes #39

Copy link
Contributor

@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.

17 file(s) reviewed, 16 comment(s)
Edit PR Review Bot Settings | Greptile

@GabrielePicco GabrielePicco force-pushed the feat/add-whitelist-validator-for-program branch from 290ba24 to 57998ea Compare November 18, 2024 08:43
@GabrielePicco GabrielePicco merged commit e92e259 into main Nov 18, 2024
3 checks passed
@GabrielePicco GabrielePicco deleted the feat/add-whitelist-validator-for-program branch November 18, 2024 15:43
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