[][src]Enum mirror_protocol::mint::HandleMsg

pub enum HandleMsg {
    Receive(Cw20ReceiveMsg),
    UpdateConfig {
        owner: Option<HumanAddr>,
        oracle: Option<HumanAddr>,
        collector: Option<HumanAddr>,
        token_code_id: Option<u64>,
        protocol_fee_rate: Option<Decimal>,
    },
    UpdateAsset {
        asset_token: HumanAddr,
        auction_discount: Option<Decimal>,
        min_collateral_ratio: Option<Decimal>,
    },
    RegisterAsset {
        asset_token: HumanAddr,
        auction_discount: Decimal,
        min_collateral_ratio: Decimal,
    },
    RegisterMigration {
        asset_token: HumanAddr,
        end_price: Decimal,
    },
    OpenPosition {
        collateral: Asset,
        asset_info: AssetInfo,
        collateral_ratio: Decimal,
    },
    Deposit {
        position_idx: Uint128,
        collateral: Asset,
    },
    Withdraw {
        position_idx: Uint128,
        collateral: Asset,
    },
    Mint {
        position_idx: Uint128,
        asset: Asset,
    },
}

Variants

UpdateConfig

Owner Operations Update config; only owner is allowed to execute it

Fields of UpdateConfig

owner: Option<HumanAddr>oracle: Option<HumanAddr>collector: Option<HumanAddr>token_code_id: Option<u64>protocol_fee_rate: Option<Decimal>
UpdateAsset

Update asset related parameters

Fields of UpdateAsset

asset_token: HumanAddrauction_discount: Option<Decimal>min_collateral_ratio: Option<Decimal>
RegisterAsset

Generate asset token initialize msg and register required infos except token address

Fields of RegisterAsset

asset_token: HumanAddrauction_discount: Decimalmin_collateral_ratio: Decimal
RegisterMigration

Fields of RegisterMigration

asset_token: HumanAddrend_price: Decimal
OpenPosition

User Operations

Fields of OpenPosition

collateral: Assetasset_info: AssetInfocollateral_ratio: Decimal
Deposit

Deposit more collateral

Fields of Deposit

position_idx: Uint128collateral: Asset
Withdraw

Withdraw collateral

Fields of Withdraw

position_idx: Uint128collateral: Asset
Mint

Convert all deposit collateral to asset

Fields of Mint

position_idx: Uint128asset: Asset

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.