Struct cosmwasm_std::QuerierWrapper [−][src]
pub struct QuerierWrapper<'a, C: CustomQuery = Empty> { /* fields omitted */ }
Implementations
Makes the query and parses the response.
Any error (System Error, Error or called contract, or Parse Error) are flattened into one level. Only use this if you don’t need to check the SystemError eg. If you don’t differentiate between contract missing and contract returned error
pub fn query_balance(
&self,
address: impl Into<String>,
denom: impl Into<String>
) -> StdResult<Coin>
pub fn query_wasm_smart<T: DeserializeOwned>(
&self,
contract_addr: impl Into<String>,
msg: &impl Serialize
) -> StdResult<T>
pub fn query_wasm_raw(
&self,
contract_addr: impl Into<String>,
key: impl Into<Binary>
) -> StdResult<Option<Vec<u8>>>
pub fn query_all_delegations(
&self,
delegator: impl Into<String>
) -> StdResult<Vec<Delegation>>
pub fn query_delegation(
&self,
delegator: impl Into<String>,
validator: impl Into<String>
) -> StdResult<Option<FullDelegation>>
Trait Implementations
This allows us to use self.raw_query to access the querier. It also allows external callers to access the querier easily.
Auto Trait Implementations
impl<'a, C = Empty> !RefUnwindSafe for QuerierWrapper<'a, C>
impl<'a, C = Empty> !Send for QuerierWrapper<'a, C>
impl<'a, C = Empty> !Sync for QuerierWrapper<'a, C>
impl<'a, C> Unpin for QuerierWrapper<'a, C> where
C: Unpin,
impl<'a, C = Empty> !UnwindSafe for QuerierWrapper<'a, C>
Blanket Implementations
Mutably borrows from an owned value. Read more