pub enum TokenFactoryQuery {
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
Returns configuration params for TokenFactory modules
Trait Implementations§
Source§impl Clone for TokenFactoryQuery
impl Clone for TokenFactoryQuery
Source§fn clone(&self) -> TokenFactoryQuery
fn clone(&self) -> TokenFactoryQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TokenFactoryQuery
impl Debug for TokenFactoryQuery
Source§impl<'de> Deserialize<'de> for TokenFactoryQuery
impl<'de> Deserialize<'de> for TokenFactoryQuery
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 TokenFactoryQuery
impl JsonSchema for TokenFactoryQuery
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