[][src]Struct cw20_staking::msg::InitMsg

pub struct InitMsg {
    pub name: String,
    pub symbol: String,
    pub decimals: u8,
    pub validator: HumanAddr,
    pub exit_tax: Decimal,
    pub min_withdrawal: Uint128,
}

Fields

name: String

name of the derivative token

symbol: String

symbol / ticker of the derivative token

decimals: u8

decimal places of the derivative token (for UI)

validator: HumanAddr

This is the validator that all tokens will be bonded to

exit_tax: Decimal

this is how much the owner takes as a cut when someone unbonds

min_withdrawal: Uint128

This is the minimum amount we will pull out to reinvest, as well as a minumum that can be unbonded (to avoid needless staking tx)

Trait Implementations

impl Clone for InitMsg[src]

impl Debug for InitMsg[src]

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

impl JsonSchema for InitMsg[src]

impl PartialEq<InitMsg> for InitMsg[src]

impl Serialize for InitMsg[src]

impl StructuralPartialEq for InitMsg[src]

Auto Trait Implementations

impl RefUnwindSafe for InitMsg

impl Send for InitMsg

impl Sync for InitMsg

impl Unpin for InitMsg

impl UnwindSafe for InitMsg

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.