[][src]Enum cw4_stake::msg::HandleMsg

pub enum HandleMsg {
    Bond {},
    Unbond {
        tokens: Uint128,
    },
    Claim {},
    UpdateAdmin {
        admin: Option<HumanAddr>,
    },
    AddHook {
        addr: HumanAddr,
    },
    RemoveHook {
        addr: HumanAddr,
    },
}

Variants

Bond

Bond will bond all staking tokens sent with the message and update membership weight

Fields of Bond

Unbond

Unbond will start the unbonding process for the given number of tokens. The sender immediately loses weight from these tokens, and can claim them back to his wallet after unbonding_period

Fields of Unbond

tokens: Uint128
Claim

Claim is used to claim your native tokens that you previously "unbonded" after the contract-defined waiting period (eg. 1 week)

Fields of Claim

UpdateAdmin

Change the admin

Fields of UpdateAdmin

admin: Option<HumanAddr>
AddHook

Add a new hook to be informed of all membership changes. Must be called by Admin

Fields of AddHook

addr: HumanAddr
RemoveHook

Remove a hook. Must be called by Admin

Fields of RemoveHook

addr: HumanAddr

Trait Implementations

impl Clone for HandleMsg[src]

impl Debug for HandleMsg[src]

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

impl JsonSchema for HandleMsg[src]

impl PartialEq<HandleMsg> for HandleMsg[src]

impl Serialize for HandleMsg[src]

impl StructuralPartialEq for HandleMsg[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.