pub enum QueryMsg {
Show 19 variants
Admin {},
AdminNomination {},
Config {},
Cw20Balances {
start_after: Option<String>,
limit: Option<u32>,
},
Cw20TokenList {
start_after: Option<String>,
limit: Option<u32>,
},
Cw721TokenList {
start_after: Option<String>,
limit: Option<u32>,
},
DumpState {},
GetItem {
key: String,
},
ListItems {
start_after: Option<String>,
limit: Option<u32>,
},
Info {},
ProposalModules {
start_after: Option<String>,
limit: Option<u32>,
},
ActiveProposalModules {
start_after: Option<String>,
limit: Option<u32>,
},
ProposalModuleCount {},
PauseInfo {},
VotingModule {},
ListSubDaos {
start_after: Option<String>,
limit: Option<u32>,
},
DaoURI {},
VotingPowerAtHeight {
address: String,
height: Option<u64>,
},
TotalPowerAtHeight {
height: Option<u64>,
},
}
Variants§
Admin
Get’s the DAO’s admin. Returns Addr
.
AdminNomination
Get’s the currently nominated admin (if any).
Config
Gets the contract’s config.
Cw20Balances
Gets the token balance for each cw20 registered with the contract.
Cw20TokenList
Lists the addresses of the cw20 tokens in this contract’s treasury.
Cw721TokenList
Lists the addresses of the cw721 tokens in this contract’s treasury.
DumpState
Dumps all of the core contract’s state in a single query. Useful for frontends as performance for queries is more limited by network times than compute times.
GetItem
Gets the address associated with an item key.
ListItems
Lists all of the items associted with the contract. For
example, given the items { "group": "foo", "subdao": "bar"}
this query would return [("group", "foo"), ("subdao", "bar")]
.
Info
Returns contract version info
ProposalModules
Gets all proposal modules associated with the contract.
ActiveProposalModules
Gets the active proposal modules associated with the contract.
ProposalModuleCount
Gets the number of active and total proposal modules registered with this module.
PauseInfo
Returns information about if the contract is currently paused.
VotingModule
Gets the contract’s voting module.
ListSubDaos
Returns all SubDAOs with their charters in a vec. start_after is bound exclusive and asks for a string address.
DaoURI
Implements the DAO Star standard: https://daostar.one/EIP
VotingPowerAtHeight
Returns the voting power for an address at a given height.
TotalPowerAtHeight
Returns the total voting power at a given block height.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryMsg
impl<'de> Deserialize<'de> for QueryMsg
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 QueryMsg
impl JsonSchema for QueryMsg
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