pub struct TokenfactoryMsg {}Expand description
TokenfactoryMsg is the builder to generate Desmos x/tokenfactory messages.
Implementations§
Source§impl TokenfactoryMsg
impl TokenfactoryMsg
Sourcepub fn create_denom(
subspace_id: u64,
sender: Addr,
subdenom: &str,
) -> MsgCreateDenom
pub fn create_denom( subspace_id: u64, sender: Addr, subdenom: &str, ) -> MsgCreateDenom
Creates a new instance of MsgCreateDenom.
subspace_id- Id of the subspace which creates the denom.sender- Address of user having the permission to manage subspace denoms.subdenom- Subdenom name of the creating denom.
Sourcepub fn mint(subspace_id: u64, sender: Addr, amount: Coin) -> MsgMint
pub fn mint(subspace_id: u64, sender: Addr, amount: Coin) -> MsgMint
Creates a new instance of MsgMint.
subspace_id- Id of the subspace which manages the denom.sender- Address of user having the permission to manage subspace denoms.amount- Amount of the minting subspace tokens.
Sourcepub fn burn(subspace_id: u64, sender: Addr, amount: Coin) -> MsgBurn
pub fn burn(subspace_id: u64, sender: Addr, amount: Coin) -> MsgBurn
Creates a new instance of MsgBurn.
subspace_id- Id of the subspace which manages the denom.sender- Address of user having the permission to manage subspace denoms.amount- Amount of the burning subspace tokens.
Sourcepub fn set_denom_metadata(
subspace_id: u64,
sender: Addr,
metadata: Metadata,
) -> MsgSetDenomMetadata
pub fn set_denom_metadata( subspace_id: u64, sender: Addr, metadata: Metadata, ) -> MsgSetDenomMetadata
Creates a new instance of MsgSetDenomMetadata.
subspace_id- Id of the subspace which manages the denom.sender- Address of user having the permission to manage subspace denoms.metadata- Metadata of the denom.
Auto Trait Implementations§
impl Freeze for TokenfactoryMsg
impl RefUnwindSafe for TokenfactoryMsg
impl Send for TokenfactoryMsg
impl Sync for TokenfactoryMsg
impl Unpin for TokenfactoryMsg
impl UnwindSafe for TokenfactoryMsg
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