QZP Governance
Token-based governance system for Solana built with Anchor. Enables on-chain voting, proposal management, and decentralized decision-making.
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