Struct spl_governance::state::governance::GovernanceConfig
source · pub struct GovernanceConfig {
pub community_vote_threshold: VoteThreshold,
pub min_community_weight_to_create_proposal: u64,
pub min_transaction_hold_up_time: u32,
pub voting_base_time: u32,
pub community_vote_tipping: VoteTipping,
pub council_vote_threshold: VoteThreshold,
pub council_veto_vote_threshold: VoteThreshold,
pub min_council_weight_to_create_proposal: u64,
pub council_vote_tipping: VoteTipping,
pub community_veto_vote_threshold: VoteThreshold,
pub voting_cool_off_time: u32,
pub deposit_exempt_proposal_count: u8,
}
Expand description
Governance config
Fields§
§community_vote_threshold: VoteThreshold
The type of the vote threshold used for community vote Note: In the current version only YesVotePercentage and Disabled thresholds are supported
min_community_weight_to_create_proposal: u64
Minimum community weight a governance token owner must possess to be able to create a proposal
min_transaction_hold_up_time: u32
Minimum waiting time in seconds for a transaction to be executed after proposal is voted on
voting_base_time: u32
The base voting time in seconds for proposal to be open for voting Voting is unrestricted during the base voting time and any vote types can be cast The base voting time can be extend by optional cool off time when only negative votes (Veto and Deny) are allowed
community_vote_tipping: VoteTipping
Conditions under which a Community vote will complete early
council_vote_threshold: VoteThreshold
The type of the vote threshold used for council vote Note: In the current version only YesVotePercentage and Disabled thresholds are supported
council_veto_vote_threshold: VoteThreshold
The threshold for Council Veto votes
min_council_weight_to_create_proposal: u64
Minimum council weight a governance token owner must possess to be able to create a proposal
council_vote_tipping: VoteTipping
Conditions under which a Council vote will complete early
community_veto_vote_threshold: VoteThreshold
The threshold for Community Veto votes
voting_cool_off_time: u32
Voting cool of time
deposit_exempt_proposal_count: u8
The number of active proposals exempt from the Proposal security deposit
Trait Implementations§
source§impl BorshDeserialize for GovernanceConfig
impl BorshDeserialize for GovernanceConfig
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSchema for GovernanceConfigwhere
VoteThreshold: BorshSchema,
u64: BorshSchema,
u32: BorshSchema,
VoteTipping: BorshSchema,
u8: BorshSchema,
impl BorshSchema for GovernanceConfigwhere
VoteThreshold: BorshSchema,
u64: BorshSchema,
u32: BorshSchema,
VoteTipping: BorshSchema,
u8: BorshSchema,
source§fn declaration() -> Declaration
fn declaration() -> Declaration
source§fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
fn add_definitions_recursively( definitions: &mut HashMap<Declaration, Definition> )
source§fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition>
)
fn add_definition( declaration: String, definition: Definition, definitions: &mut HashMap<String, Definition> )
fn schema_container() -> BorshSchemaContainer
source§impl BorshSerialize for GovernanceConfig
impl BorshSerialize for GovernanceConfig
source§impl Clone for GovernanceConfig
impl Clone for GovernanceConfig
source§fn clone(&self) -> GovernanceConfig
fn clone(&self) -> GovernanceConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GovernanceConfig
impl Debug for GovernanceConfig
source§impl PartialEq for GovernanceConfig
impl PartialEq for GovernanceConfig
source§fn eq(&self, other: &GovernanceConfig) -> bool
fn eq(&self, other: &GovernanceConfig) -> bool
self
and other
values to be equal, and is used
by ==
.