[][src]Enum cw20::Cw20HandleMsg

pub enum Cw20HandleMsg {
    Transfer {
        recipient: HumanAddr,
        amount: Uint128,
    },
    Burn {
        amount: Uint128,
    },
    Send {
        contract: HumanAddr,
        amount: Uint128,
        msg: Option<Binary>,
    },
    IncreaseAllowance {
        spender: HumanAddr,
        amount: Uint128,
        expires: Option<Expiration>,
    },
    DecreaseAllowance {
        spender: HumanAddr,
        amount: Uint128,
        expires: Option<Expiration>,
    },
    TransferFrom {
        owner: HumanAddr,
        recipient: HumanAddr,
        amount: Uint128,
    },
    SendFrom {
        owner: HumanAddr,
        contract: HumanAddr,
        amount: Uint128,
        msg: Option<Binary>,
    },
    BurnFrom {
        owner: HumanAddr,
        amount: Uint128,
    },
    Mint {
        recipient: HumanAddr,
        amount: Uint128,
    },
}

Variants

Transfer

Transfer is a base message to move tokens to another account without triggering actions

Fields of Transfer

recipient: HumanAddramount: Uint128
Burn

Burn is a base message to destroy tokens forever

Fields of Burn

amount: Uint128
Send

Send is a base message to transfer tokens to a contract and trigger an action on the receiving contract.

Fields of Send

contract: HumanAddramount: Uint128msg: Option<Binary>
IncreaseAllowance

Only with "approval" extension. Allows spender to access an additional amount tokens from the owner's (env.sender) account. If expires is Some(), overwrites current allowance expiration with this one.

Fields of IncreaseAllowance

spender: HumanAddramount: Uint128expires: Option<Expiration>
DecreaseAllowance

Only with "approval" extension. Lowers the spender's access of tokens from the owner's (env.sender) account by amount. If expires is Some(), overwrites current allowance expiration with this one.

Fields of DecreaseAllowance

spender: HumanAddramount: Uint128expires: Option<Expiration>
TransferFrom

Only with "approval" extension. Transfers amount tokens from owner -> recipient if env.sender has sufficient pre-approval.

Fields of TransferFrom

owner: HumanAddrrecipient: HumanAddramount: Uint128
SendFrom

Only with "approval" extension. Sends amount tokens from owner -> contract if env.sender has sufficient pre-approval.

Fields of SendFrom

owner: HumanAddrcontract: HumanAddramount: Uint128msg: Option<Binary>
BurnFrom

Only with "approval" extension. Destroys tokens forever

Fields of BurnFrom

owner: HumanAddramount: Uint128
Mint

Only with the "mintable" extension. If authorized, creates amount new tokens and adds to the recipient balance.

Fields of Mint

recipient: HumanAddramount: Uint128

Trait Implementations

impl Clone for Cw20HandleMsg[src]

impl Debug for Cw20HandleMsg[src]

impl<'de> Deserialize<'de> for Cw20HandleMsg[src]

impl JsonSchema for Cw20HandleMsg[src]

impl PartialEq<Cw20HandleMsg> for Cw20HandleMsg[src]

impl Serialize for Cw20HandleMsg[src]

impl StructuralPartialEq for Cw20HandleMsg[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.