pub enum TokenFactoryMsg {
CreateDenom {
subdenom: String,
metadata: Option<Metadata>,
},
ChangeAdmin {
denom: String,
new_admin_address: String,
},
MintTokens {
denom: String,
amount: Uint128,
mint_to_address: String,
},
BurnTokens {
denom: String,
amount: Uint128,
burn_from_address: String,
},
ForceTransfer {
denom: String,
amount: Uint128,
from_address: String,
to_address: String,
},
SetMetadata {
denom: String,
metadata: Metadata,
},
}
Expand description
Special messages to be supported by any chain that supports token_factory
Variants§
CreateDenom
CreateDenom creates a new factory denom, of denomination: factory/{creating contract bech32 address}/{Subdenom} Subdenom can be of length at most 44 characters, in [0-9a-zA-Z./] Empty subdenoms are valid. The (creating contract address, subdenom) pair must be unique. The created denom’s admin is the creating contract address, but this admin can be changed using the UpdateAdmin binding.
If you set an initial metadata here, this is equivalent to calling SetMetadata directly on the returned denom.
ChangeAdmin
ChangeAdmin changes the admin for a factory denom. Can only be called by the current contract admin. If the NewAdminAddress is empty, the denom will have no admin.
MintTokens
Contracts can mint native tokens for an existing factory denom that they are the admin of.
BurnTokens
Contracts can burn native tokens for an existing factory denom tshat they are the admin of.
ForceTransfer
Contracts can force transfer tokens for an existing factory denom that they are the admin of.
SetMetadata
Trait Implementations§
Source§impl Clone for TokenFactoryMsg
impl Clone for TokenFactoryMsg
Source§fn clone(&self) -> TokenFactoryMsg
fn clone(&self) -> TokenFactoryMsg
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TokenFactoryMsg
impl Debug for TokenFactoryMsg
Source§impl<'de> Deserialize<'de> for TokenFactoryMsg
impl<'de> Deserialize<'de> for TokenFactoryMsg
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 TokenFactoryMsg
impl JsonSchema for TokenFactoryMsg
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