Enum mirror_protocol::factory::ExecuteMsg[][src]

pub enum ExecuteMsg {
    PostInitialize {
        owner: String,
        terraswap_factory: String,
        mirror_token: String,
        staking_contract: String,
        oracle_contract: String,
        mint_contract: String,
        commission_collector: String,
    },
    UpdateConfig {
        owner: Option<String>,
        token_code_id: Option<u64>,
        distribution_schedule: Option<Vec<(u64, u64, Uint128)>>,
    },
    UpdateWeight {
        asset_token: String,
        weight: u32,
    },
    Whitelist {
        name: String,
        symbol: String,
        oracle_feeder: String,
        params: Params,
    },
    PassCommand {
        contract_addr: String,
        msg: Binary,
    },
    RevokeAsset {
        asset_token: String,
        end_price: Option<Decimal>,
    },
    MigrateAsset {
        name: String,
        symbol: String,
        from_token: String,
        end_price: Decimal,
    },
    Distribute {},
}

Variants

PostInitialize

Owner Operations

Fields of PostInitialize

owner: Stringterraswap_factory: Stringmirror_token: Stringstaking_contract: Stringoracle_contract: Stringmint_contract: Stringcommission_collector: String
UpdateConfig

Fields of UpdateConfig

owner: Option<String>token_code_id: Option<u64>distribution_schedule: Option<Vec<(u64, u64, Uint128)>>
UpdateWeight

Fields of UpdateWeight

asset_token: Stringweight: u32
Whitelist

Fields of Whitelist

name: String

asset name used to create token contract

symbol: String

asset symbol used to create token contract

oracle_feeder: String

authorized asset oracle feeder

params: Params

used to create all necessary contract or register asset

PassCommand

Fields of PassCommand

contract_addr: Stringmsg: Binary
RevokeAsset

Feeder Operations ////////////////// Revoke asset from MIR rewards pool and register end_price to mint contract Only feeder can set end_price

Fields of RevokeAsset

asset_token: Stringend_price: Option<Decimal>
MigrateAsset

Migrate asset to new asset by registering end_price to mint contract and add the new asset to MIR rewards pool

Fields of MigrateAsset

name: Stringsymbol: Stringfrom_token: Stringend_price: Decimal
Distribute

User Operations

Fields of Distribute

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The name of the generated JSON Schema. Read more

Generates a JSON Schema for this type. Read more

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.