pub struct InstantiateMsg {
pub voting_strategy: VotingStrategy,
pub min_voting_period: Option<Duration>,
pub max_voting_period: Duration,
pub only_members_execute: bool,
pub allow_revoting: bool,
pub pre_propose_info: PreProposeInfo,
pub close_proposal_on_execution_failure: bool,
pub veto: Option<VetoConfig>,
}Fields§
§voting_strategy: VotingStrategyVoting params configuration
min_voting_period: Option<Duration>The minimum amount of time a proposal must be open before passing. A proposal may fail before this amount of time has elapsed, but it will not pass. This can be useful for preventing governance attacks wherein an attacker aquires a large number of tokens and forces a proposal through.
max_voting_period: DurationThe amount of time a proposal can be voted on before expiring
only_members_execute: boolIf set to true only members may execute passed proposals. Otherwise, any address may execute a passed proposal.
allow_revoting: boolAllows changing votes before the proposal expires. If this is enabled proposals will not be able to complete early as final vote information is not known until the time of proposal expiration.
pre_propose_info: PreProposeInfoInformation about what addresses may create proposals.
close_proposal_on_execution_failure: boolIf set to true proposals will be closed if their execution fails. Otherwise, proposals will remain open after execution failure. For example, with this enabled a proposal to send 5 tokens out of a DAO’s treasury with 4 tokens would be closed when it is executed. With this disabled, that same proposal would remain open until the DAO’s treasury was large enough for it to be executed.
veto: Option<VetoConfig>Optional veto configuration for proposal execution.
If set, proposals can only be executed after the timelock
delay expiration.
During this period an oversight account (veto.vetoer) can
veto the proposal.
Trait Implementations§
Source§impl Clone for InstantiateMsg
impl Clone for InstantiateMsg
Source§fn clone(&self) -> InstantiateMsg
fn clone(&self) -> InstantiateMsg
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InstantiateMsg
impl Debug for InstantiateMsg
Source§impl<'de> Deserialize<'de> for InstantiateMsg
impl<'de> Deserialize<'de> for InstantiateMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for InstantiateMsg
impl JsonSchema for InstantiateMsg
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more