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
Trait Implementations§
Source§impl Clone for TokenFactoryQuery
impl Clone for TokenFactoryQuery
Source§fn clone(&self) -> TokenFactoryQuery
fn clone(&self) -> TokenFactoryQuery
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TokenFactoryQuery> for QueryRequest<CyberQuery>
impl From<TokenFactoryQuery> for QueryRequest<CyberQuery>
Source§fn from(msg: TokenFactoryQuery) -> Self
fn from(msg: TokenFactoryQuery) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for TokenFactoryQuery
impl JsonSchema for TokenFactoryQuery
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for TokenFactoryQuery
impl PartialEq for TokenFactoryQuery
Source§impl QueryResponses for TokenFactoryQuery
impl QueryResponses for TokenFactoryQuery
fn response_schemas_impl() -> BTreeMap<String, RootSchema>
fn response_schemas() -> Result<BTreeMap<String, RootSchema>, IntegrityError>
Source§impl Serialize for TokenFactoryQuery
impl Serialize for TokenFactoryQuery
impl StructuralPartialEq for TokenFactoryQuery
Auto Trait Implementations§
impl Freeze for TokenFactoryQuery
impl RefUnwindSafe for TokenFactoryQuery
impl Send for TokenFactoryQuery
impl Sync for TokenFactoryQuery
impl Unpin for TokenFactoryQuery
impl UnwindSafe for TokenFactoryQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more