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>>,
pub dao_uri: Option<String>,
}
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: String
The name of the core contract.
description: String
A description of the core contract.
image_url: Option<String>
An image URL to describe the core module contract.
automatically_add_cw20s: bool
If true the contract will automatically add received cw20 tokens to its treasury.
automatically_add_cw721s: bool
If true the contract will automatically add received cw721 tokens to its treasury.
voting_module_instantiate_info: ModuleInstantiateInfo
Instantiate information for the core contract’s voting power module.
proposal_modules_instantiate_info: Vec<ModuleInstantiateInfo>
Instantiate information for the core contract’s proposal modules. NOTE: the pre-propose-base package depends on it being the case that the core module instantiates its proposal module.
initial_items: Option<Vec<InitialItem>>
The items to instantiate this DAO with. Items are arbitrary key-value pairs whose contents are controlled by governance.
It is an error to provide two items with the same key.
dao_uri: Option<String>
Implements the DAO Star standard: https://daostar.one/EIP
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