Struct provwasm_std::ProvenanceQuerier[][src]

pub struct ProvenanceQuerier<'a> { /* fields omitted */ }

A type for simplifying provenance custom queries.

Implementations

impl<'a> ProvenanceQuerier<'a>[src]

pub fn new(querier: &'a QuerierWrapper<'_>) -> Self[src]

Creates a new provenance querier

pub fn resolve_name(&self, name: String) -> StdResult<Name>[src]

Resolve the address for a name.

pub fn lookup_names(&self, address: HumanAddr) -> StdResult<Names>[src]

Lookup all names bound to the given address.

pub fn get_attributes(
    &self,
    address: HumanAddr,
    name: Option<String>
) -> StdResult<Attributes>
[src]

Get attributes for an account. If the name parameter is empty, all attributes are returned.

pub fn get_json_attributes<T: DeserializeOwned>(
    &self,
    address: HumanAddr,
    name: String
) -> StdResult<Vec<T>>
[src]

Get named JSON attributes from an account and deserialize the values. Attribute values with the same name must be able to be deserialized to the same type.

pub fn get_marker_by_address(&self, address: HumanAddr) -> StdResult<Marker>[src]

Get a marker by address.

pub fn get_marker_by_denom(&self, denom: String) -> StdResult<Marker>[src]

Get a marker by denomination.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.