pub enum ExecuteMsgExt<C> {
Receive(Cw20ReceiveMsg),
ProvideLiquidity {
assets: Vec<Asset>,
slippage_tolerance: Option<Decimal>,
auto_stake: Option<bool>,
receiver: Option<String>,
min_lp_to_receive: Option<Uint128>,
},
WithdrawLiquidity {
assets: Vec<Asset>,
min_assets_to_receive: Option<Vec<Asset>>,
},
Swap {
offer_asset: Asset,
ask_asset_info: Option<AssetInfo>,
belief_price: Option<Decimal>,
max_spread: Option<Decimal>,
to: Option<String>,
},
UpdateConfig {
params: Binary,
},
ProposeNewOwner {
owner: String,
expires_in: u64,
},
DropOwnershipProposal {},
ClaimOwnership {},
Custom(C),
}Expand description
This structure describes the execute messages available in the contract.
Variants§
Receive(Cw20ReceiveMsg)
Receives a message of type Cw20ReceiveMsg
ProvideLiquidity
ProvideLiquidity allows someone to provide liquidity in the pool
Fields
§
slippage_tolerance: Option<Decimal>The slippage tolerance that allows liquidity provision only if the price in the pool doesn’t move too much
WithdrawLiquidity
WithdrawLiquidity allows someone to withdraw liquidity from the pool
Swap
Swap performs a swap in the pool
Fields
UpdateConfig
Update the pair configuration
ProposeNewOwner
ProposeNewOwner creates a proposal to change contract ownership.
The validity period for the proposal is set in the expires_in variable.
Fields
DropOwnershipProposal
DropOwnershipProposal removes the existing offer to change contract ownership.
ClaimOwnership
Used to claim contract ownership.
Custom(C)
Custom execute endpoints for extended pool implementations
Trait Implementations§
Source§impl<C: Clone> Clone for ExecuteMsgExt<C>
impl<C: Clone> Clone for ExecuteMsgExt<C>
Source§fn clone(&self) -> ExecuteMsgExt<C>
fn clone(&self) -> ExecuteMsgExt<C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C: Debug> Debug for ExecuteMsgExt<C>
impl<C: Debug> Debug for ExecuteMsgExt<C>
Source§impl<'de, C> Deserialize<'de> for ExecuteMsgExt<C>where
C: Deserialize<'de>,
impl<'de, C> Deserialize<'de> for ExecuteMsgExt<C>where
C: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<C: JsonSchema> JsonSchema for ExecuteMsgExt<C>
impl<C: JsonSchema> JsonSchema for ExecuteMsgExt<C>
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl<C: PartialEq> PartialEq for ExecuteMsgExt<C>
impl<C: PartialEq> PartialEq for ExecuteMsgExt<C>
Source§fn eq(&self, other: &ExecuteMsgExt<C>) -> bool
fn eq(&self, other: &ExecuteMsgExt<C>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<C> Serialize for ExecuteMsgExt<C>where
C: Serialize,
impl<C> Serialize for ExecuteMsgExt<C>where
C: Serialize,
impl<C: PartialEq> StructuralPartialEq for ExecuteMsgExt<C>
Auto Trait Implementations§
impl<C> Freeze for ExecuteMsgExt<C>where
C: Freeze,
impl<C> RefUnwindSafe for ExecuteMsgExt<C>where
C: RefUnwindSafe,
impl<C> Send for ExecuteMsgExt<C>where
C: Send,
impl<C> Sync for ExecuteMsgExt<C>where
C: Sync,
impl<C> Unpin for ExecuteMsgExt<C>where
C: Unpin,
impl<C> UnsafeUnpin for ExecuteMsgExt<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for ExecuteMsgExt<C>where
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more