Enum token_bindings::TokenQuery
source · pub enum TokenQuery {
FullDenom {
creator_addr: String,
subdenom: String,
},
Metadata {
denom: String,
},
Admin {
denom: String,
},
DenomsByCreator {
creator: String,
},
Params {},
}Variants§
FullDenom
Given a subdenom created by the address creator_addr via OsmosisMsg::CreateDenom,
returns the full denom as used by BankMsg::Send.
You may call FullDenom { creator_addr: env.contract.address, subdenom } to find the denom issued
by the current contract.
Metadata
Returns the metadata set for this denom, if present. May return None. This will also return metadata for native tokens created outside of the token factory (like staking tokens)
Admin
Returns info on admin of the denom, only if created/managed via token factory. Errors if denom doesn’t exist or was created by another module.
DenomsByCreator
List all denoms that were created by the given creator. This does not imply all tokens currently managed by the creator. (Admin may have changed)
Params
Fields
Returns configuration params for TokenFactory modules
Trait Implementations§
source§impl Clone for TokenQuery
impl Clone for TokenQuery
source§fn clone(&self) -> TokenQuery
fn clone(&self) -> TokenQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TokenQuery
impl Debug for TokenQuery
source§impl<'de> Deserialize<'de> for TokenQuery
impl<'de> Deserialize<'de> for TokenQuery
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 From<TokenQuery> for QueryRequest<TokenFactoryQuery>
impl From<TokenQuery> for QueryRequest<TokenFactoryQuery>
source§fn from(query: TokenQuery) -> Self
fn from(query: TokenQuery) -> Self
source§impl JsonSchema for TokenQuery
impl JsonSchema for TokenQuery
source§fn schema_name() -> String
fn schema_name() -> String
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moresource§impl PartialEq<TokenQuery> for TokenQuery
impl PartialEq<TokenQuery> for TokenQuery
source§fn eq(&self, other: &TokenQuery) -> bool
fn eq(&self, other: &TokenQuery) -> bool
self and other values to be equal, and is used
by ==.source§impl QueryResponses for TokenQuery
impl QueryResponses for TokenQuery
fn response_schemas_impl() -> BTreeMap<String, RootSchema>
fn response_schemas( ) -> Result<BTreeMap<String, RootSchema, Global>, IntegrityError>
source§impl Serialize for TokenQuery
impl Serialize for TokenQuery
impl StructuralPartialEq for TokenQuery
Auto Trait Implementations§
impl RefUnwindSafe for TokenQuery
impl Send for TokenQuery
impl Sync for TokenQuery
impl Unpin for TokenQuery
impl UnwindSafe for TokenQuery
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