Enum levana_perpswap_cosmos::contracts::factory::entry::ExecuteMsg
source · pub enum ExecuteMsg {
Show 15 variants
AddMarket {
new_market: NewMarketParams,
},
SetMarketCodeId {
code_id: String,
},
SetPositionTokenCodeId {
code_id: String,
},
SetLiquidityTokenCodeId {
code_id: String,
},
SetOwner {
owner: RawAddr,
},
SetMigrationAdmin {
migration_admin: RawAddr,
},
SetDao {
dao: RawAddr,
},
SetKillSwitch {
kill_switch: RawAddr,
},
SetWindDown {
wind_down: RawAddr,
},
TransferAllDaoFees {},
Shutdown {
markets: Vec<MarketId>,
impacts: Vec<ShutdownImpact>,
effect: ShutdownEffect,
},
RegisterReferrer {
addr: RawAddr,
},
AddCopyTrading {
new_copy_trading: NewCopyTradingParams,
},
SetCopyTradingCodeId {
code_id: String,
},
RemoveOwner {},
}
Expand description
Execute a message on the factory.
Variants§
AddMarket
Add a new market
Fields
new_market: NewMarketParams
Parameters for the new market
SetMarketCodeId
Set the market code id, i.e. if it’s been migrated
SetPositionTokenCodeId
Set the position token code id, i.e. if it’s been migrated
SetLiquidityTokenCodeId
Set the liquidity token code id, i.e. if it’s been migrated
SetOwner
Change the owner addr
SetMigrationAdmin
Change the migration admin
SetDao
Change the dao addr
SetKillSwitch
Change the kill switch addr
SetWindDown
Change the wind down addr
TransferAllDaoFees
Convenience mechanism to transfer all dao fees from all markets
Shutdown
Perform a shutdown on the given markets with the given impacts
Fields
impacts: Vec<ShutdownImpact>
Which impacts to have? Empty list means shut down all activities
effect: ShutdownEffect
Are we disabling these impacts, or reenabling them?
RegisterReferrer
Register a referrer for the given account.
Can only be performed once.
AddCopyTrading
Add new copy trading contract
Fields
new_copy_trading: NewCopyTradingParams
Parameters for the contract
SetCopyTradingCodeId
Set the copy trading code id, i.e. if it’s been migrated
RemoveOwner
Remove the owner from factory
Implementations§
source§impl ExecuteMsg
impl ExecuteMsg
sourcepub fn requires_owner(&self) -> bool
pub fn requires_owner(&self) -> bool
Does this message require owner permissions?
Trait Implementations§
source§impl Clone for ExecuteMsg
impl Clone for ExecuteMsg
source§fn clone(&self) -> ExecuteMsg
fn clone(&self) -> ExecuteMsg
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for ExecuteMsg
impl PartialEq for ExecuteMsg
source§fn eq(&self, other: &ExecuteMsg) -> bool
fn eq(&self, other: &ExecuteMsg) -> bool
self
and other
values to be equal, and is used
by ==
.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 UnwindSafe for ExecuteMsg
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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