Skip to main content

liquid_finance/looping/
handle_msg.rs

1use cosmwasm_std::Uint128;
2use schemars::JsonSchema;
3use serde::{Deserialize, Serialize};
4
5#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
6#[serde(rename_all = "snake_case")]
7pub enum ExecuteMsg {
8    /// Moves native tokens sent along the message to the instant unstaking liquidity pool, and gives back
9    /// loop shares to the sender to represent his liquidity.
10    Deposit {},
11    /// Withdraw ARCH from the instant unstaking liquidity pool by putting the representive
12    /// loop shares amount in the param.
13    Withdraw { amount: Uint128 },
14    /// Gives sender his claimable withdrawn native token, should be called after sender’s
15    /// withdrawing request is processed.
16    Claim {},
17    /// Updates admin’s addresses, only the admin can call this.
18    SetAdmin { admin: Option<String>, pause_admin: Option<String>, },
19    /// Updates contract state, only the pause admin can call this.
20    SetContractState { state: bool },
21}
22
23#[derive(Serialize, Deserialize, JsonSchema)]
24pub struct MigrateMsg {}