Enum sov_bank::CallMessage
source · pub enum CallMessage<C: Context> {
CreateToken {
salt: u64,
token_name: String,
initial_balance: Amount,
minter_address: C::Address,
authorized_minters: Vec<C::Address>,
},
Transfer {
to: C::Address,
coins: Coins<C>,
},
Burn {
coins: Coins<C>,
},
Mint {
coins: Coins<C>,
minter_address: C::Address,
},
Freeze {
token_address: C::Address,
},
}
Expand description
Specifies the call methods using in that module. This enumeration represents the available call messages for interacting with the sov-bank module.
Variants§
CreateToken
Fields
Authorized minter list.
Creates a new token with the specified name and initial balance.
Transfer
Fields
Transfers a specified amount of tokens to the specified address.
Burn
Burns a specified amount of tokens.
Mint
Fields
Mints a specified amount of tokens.
Freeze
Freezes a token so that the supply is frozen
Trait Implementations§
source§impl<C: Context> BorshDeserialize for CallMessage<C>where
u64: BorshDeserialize,
String: BorshDeserialize,
Amount: BorshDeserialize,
C::Address: BorshDeserialize,
Vec<C::Address>: BorshDeserialize,
Coins<C>: BorshDeserialize,
impl<C: Context> BorshDeserialize for CallMessage<C>where u64: BorshDeserialize, String: BorshDeserialize, Amount: BorshDeserialize, C::Address: BorshDeserialize, Vec<C::Address>: BorshDeserialize, Coins<C>: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl<C: Context> BorshSerialize for CallMessage<C>where
u64: BorshSerialize,
String: BorshSerialize,
Amount: BorshSerialize,
C::Address: BorshSerialize,
Vec<C::Address>: BorshSerialize,
Coins<C>: BorshSerialize,
impl<C: Context> BorshSerialize for CallMessage<C>where u64: BorshSerialize, String: BorshSerialize, Amount: BorshSerialize, C::Address: BorshSerialize, Vec<C::Address>: BorshSerialize, Coins<C>: BorshSerialize,
source§impl<C: Clone + Context> Clone for CallMessage<C>where
C::Address: Clone,
impl<C: Clone + Context> Clone for CallMessage<C>where C::Address: Clone,
source§fn clone(&self) -> CallMessage<C>
fn clone(&self) -> CallMessage<C>
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<C: Context> EnumExt for CallMessage<C>where
u64: BorshDeserialize,
String: BorshDeserialize,
Amount: BorshDeserialize,
C::Address: BorshDeserialize,
Vec<C::Address>: BorshDeserialize,
Coins<C>: BorshDeserialize,
impl<C: Context> EnumExt for CallMessage<C>where u64: BorshDeserialize, String: BorshDeserialize, Amount: BorshDeserialize, C::Address: BorshDeserialize, Vec<C::Address>: BorshDeserialize, Coins<C>: BorshDeserialize,
source§impl<C: PartialEq + Context> PartialEq<CallMessage<C>> for CallMessage<C>where
C::Address: PartialEq,
impl<C: PartialEq + Context> PartialEq<CallMessage<C>> for CallMessage<C>where C::Address: PartialEq,
source§fn eq(&self, other: &CallMessage<C>) -> bool
fn eq(&self, other: &CallMessage<C>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<C: Context> StructuralPartialEq for CallMessage<C>
Auto Trait Implementations§
impl<C> RefUnwindSafe for CallMessage<C>where <C as Spec>::Address: RefUnwindSafe,
impl<C> Send for CallMessage<C>
impl<C> Sync for CallMessage<C>
impl<C> Unpin for CallMessage<C>where <C as Spec>::Address: Unpin,
impl<C> UnwindSafe for CallMessage<C>where <C as Spec>::Address: UnwindSafe,
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