Skip to content

Conversation

@0xRigel-squads
Copy link
Collaborator

@0xRigel-squads 0xRigel-squads commented Oct 27, 2025

Changes

Policy Rent Collector

  • Introduces the same rent collector mechanism as transactions/proposals/batches for policy accounts. Whoever pays for the opening of a given policy, will also be rebated if that policy ever gets closed
  • Gets enforced on RemovePolicy settings action

Account Data Constraints

  • Function the same way as instruction data constraints, except on the account data & account owner of a given account pre-execution

Program Interaction Hooks

  • Support for pre- & posthooks on the program_interaction_policy. This enforces the execution of a set instruction before and/or after execution of the inner instructions.
  • Supports custom instruction data, accounts (with constraints) as well as passing inner instructions & accounts
  • Signed by hook authority (constant PDA), to enable validation of source program

@0xRigel-squads 0xRigel-squads marked this pull request as ready for review November 17, 2025 13:47
@0xRigel-squads 0xRigel-squads merged commit 6a6c7e2 into policies Nov 17, 2025
2 checks passed
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