pub struct InstantiateMsg {
pub admin: Option<String>,
pub name: String,
pub description: String,
pub image_url: Option<String>,
pub automatically_add_cw20s: bool,
pub automatically_add_cw721s: bool,
pub voting_module_instantiate_info: ModuleInstantiateInfo,
pub proposal_modules_instantiate_info: Vec<ModuleInstantiateInfo>,
pub initial_items: Option<Vec<InitialItem>>,
}Fields§
§admin: Option<String>Optional Admin with the ability to execute DAO messages directly. Useful for building SubDAOs controlled by a parent DAO. If no admin is specified the contract is set as its own admin so that the admin may be updated later by governance.
name: StringThe name of the core contract.
description: StringA description of the core contract.
image_url: Option<String>An image URL to describe the core module contract.
automatically_add_cw20s: boolIf true the contract will automatically add received cw20 tokens to its treasury.
automatically_add_cw721s: boolIf true the contract will automatically add received cw721 tokens to its treasury.
voting_module_instantiate_info: ModuleInstantiateInfoInstantiate information for the core contract’s voting power module.
proposal_modules_instantiate_info: Vec<ModuleInstantiateInfo>Instantiate information for the core contract’s proposal modules.
initial_items: Option<Vec<InitialItem>>Initial information for arbitrary contract addresses to be added to the items map. The key is the name of the item in the items map. The value is an enum that either uses an existing address or instantiates a new contract.
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