Enum dao_interface::msg::QueryMsg
source · 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
Fields
Get’s the DAO’s admin. Returns Addr.
AdminNomination
Fields
Get’s the currently nominated admin (if any).
Config
Fields
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
Fields
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
Fields
Returns contract version info
ProposalModules
Gets all proposal modules associated with the contract.
ActiveProposalModules
Gets the active proposal modules associated with the contract.
ProposalModuleCount
Fields
Gets the number of active and total proposal modules registered with this module.
PauseInfo
Fields
Returns information about if the contract is currently paused.
VotingModule
Fields
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
Fields
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moresource§impl PartialEq for QueryMsg
impl PartialEq for QueryMsg
source§impl QueryResponses for QueryMsg
impl QueryResponses for QueryMsg
fn response_schemas_impl() -> BTreeMap<String, RootSchema>
fn response_schemas() -> Result<BTreeMap<String, RootSchema>, IntegrityError>
impl StructuralPartialEq for QueryMsg
Auto Trait Implementations§
impl RefUnwindSafe for QueryMsg
impl Send for QueryMsg
impl Sync for QueryMsg
impl Unpin for QueryMsg
impl UnwindSafe for QueryMsg
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more