pub enum ExecuteMsg {
CreatePool {
asset_denoms: Vec<String>,
asset_decimals: Vec<u8>,
pool_fees: PoolFee,
pool_identifier: Option<String>,
},
ProvideLiquidity {
slippage_tolerance: Option<Decimal>,
receiver: Option<String>,
pool_identifier: String,
},
Swap {
ask_asset_denom: String,
minimum_receive: Option<Uint128>,
receiver: Option<String>,
pool_identifier: String,
},
WithdrawLiquidity {
pool_identifier: String,
},
ExecuteSwapOperations {
operations: Vec<SwapOperation>,
minimum_receive: Option<Uint128>,
receiver: Option<String>,
},
UpdateConfig {
fee_collector_addr: Option<String>,
pool_creation_fee: Option<Coin>,
feature_toggle: Option<FeatureToggle>,
},
UpdateOwnership(Action),
}Variants§
CreatePool
Creates a new pool.
Fields
ProvideLiquidity
Provides liquidity to the pool
Fields
Swap
Swap an offer asset to the other
Fields
minimum_receive: Option<Uint128>The minimum amount of the output (i.e., final swap operation token) required for the message to succeed.
WithdrawLiquidity
Withdraws liquidity from the pool.
ExecuteSwapOperations
Execute multiple SwapOperations to allow for multi-hop swaps.
Fields
operations: Vec<SwapOperation>The operations that should be performed in sequence.
The amount in each swap will be the output from the previous swap.
The first swap will use whatever funds are sent in the MessageInfo.
UpdateConfig
Updates the configuration of the contract.
If a field is not specified (i.e., set to None), it will not be modified.
Fields
feature_toggle: Option<FeatureToggle>Toggles features for a given pool, allowing fine-tuned control over which operations are allowed, i.e. swap, deposits, withdrawals
UpdateOwnership(Action)
Update the contract’s ownership. The action to be provided
can be either to propose transferring ownership to an account,
accept a pending ownership transfer, or renounce the ownership
permanently.
Trait Implementations§
Source§impl Clone for ExecuteMsg
impl Clone for ExecuteMsg
Source§impl Debug for ExecuteMsg
impl Debug for ExecuteMsg
Source§impl<'de> Deserialize<'de> for ExecuteMsg
impl<'de> Deserialize<'de> for ExecuteMsg
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>,
Source§impl JsonSchema for ExecuteMsg
impl JsonSchema for ExecuteMsg
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for ExecuteMsg
impl PartialEq for ExecuteMsg
Source§impl Serialize for ExecuteMsg
impl Serialize for ExecuteMsg
impl StructuralPartialEq for ExecuteMsg
Auto Trait Implementations§
impl Freeze for ExecuteMsg
impl RefUnwindSafe for ExecuteMsg
impl Send for ExecuteMsg
impl Sync for ExecuteMsg
impl Unpin for ExecuteMsg
impl UnsafeUnpin for ExecuteMsg
impl UnwindSafe for ExecuteMsg
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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