Voter Weight Plugin
What is a Voter Weight Plugin?
How to Create a Voter Weight Plugin
1
The Plugin Program
Sample Registrar Account
pub struct Registrar {
/// spl-governance program the Realm belongs to
pub governance_program_id: Pubkey,
/// Realm of the Registrar
pub realm: Pubkey,
/// Governing token mint the Registrar is for
/// It can either be the Community or the Council mint of the Realm
pub governing_token_mint: Pubkey,
/// If the plugin is one in a sequence, this is the previous plugin program ID
/// If set, then update_voter_weight_record will expect a voter_weight_record owned by this program
pub previous_voter_weight_plugin_program_id: Option<Pubkey>,
/// ...add your configuration here
/// Reserved for future upgrades
pub reserved: [u8; 128],
}Voter Weight Record
Instructions
Integrating with Realms
Voter Weight Plugin Chaining
Supporting Chaining in the UI
Input Weights of First Plugin
Last updated