pub enum QueryMsg {
Show 15 variants
Admin {},
AdminNomination {},
Config {},
Cw20Balances {
start_at: Option<String>,
limit: Option<u32>,
},
Cw20TokenList {
start_at: Option<String>,
limit: Option<u32>,
},
Cw721TokenList {
start_at: Option<String>,
limit: Option<u32>,
},
DumpState {},
GetItem {
key: String,
},
ListItems {
start_at: Option<String>,
limit: Option<u32>,
},
ProposalModules {
start_at: Option<String>,
limit: Option<u32>,
},
PauseInfo {},
VotingModule {},
VotingPowerAtHeight {
address: String,
height: Option<u64>,
},
TotalPowerAtHeight {
height: Option<u64>,
},
Info {},
}Variants§
Admin
Get’s the DAO’s admin. Returns Addr.
AdminNomination
Get’s the currently nominated admin (if any). Returns
AdminNominationResponse.
Config
Gets the contract’s config. Returns 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. Returns
DumpStateResponse.
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")].
ProposalModules
Gets the proposal modules assocaited with the
contract. Returns Vec
PauseInfo
Returns information about if the contract is currently paused.
VotingModule
Gets the contract’s voting module. Returns Addr.
VotingPowerAtHeight
TotalPowerAtHeight
Info
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