QZP Governance

A comprehensive governance protocol for Solana that enables token-weighted voting and decentralized decision-making.

Features

  • Token-weighted voting: Vote power proportional to token holdings
  • Proposal lifecycle: Create, vote, execute, and cancel proposals
  • Timelock execution: Configurable delay between approval and execution
  • Delegation: Delegate voting power to other addresses

Architecture

Built with the Anchor framework, the program uses Program Derived Addresses (PDAs) for secure state management:

β”œβ”€β”€ Governance (config & parameters)
β”œβ”€β”€ Proposal (individual proposals)
β”œβ”€β”€ VoteRecord (per-user votes)
└── TokenOwnerRecord (delegation tracking)

Security

  • Comprehensive unit and integration tests
  • Admin controls with proper validation
  • Timelock prevents flash-loan governance attacks
  • Audited instruction handlers