#[non_exhaustive]pub enum ExecuteMsg {
CreateChannel {
channel_open_init_options: Option<ChannelOpenInitOptions>,
},
CloseChannel {},
SendCosmosMsgs {
messages: Vec<CosmosMsg>,
queries: Vec<QueryRequest<Empty>>,
packet_memo: Option<String>,
timeout_seconds: Option<u64>,
},
UpdateCallbackAddress {
callback_address: Option<String>,
},
UpdateOwnership(Action),
}Expand description
The messages to execute the ICA controller contract.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CreateChannel
CreateChannel makes the contract submit a stargate MsgChannelOpenInit to the chain.
This is a wrapper around options::ChannelOpenInitOptions and thus requires the
same fields. If not specified, then the options specified in the contract instantiation
are used.
Fields
channel_open_init_options: Option<ChannelOpenInitOptions>The options to initialize the IBC channel.
If not specified, the options specified in the last channel creation are used.
Must be None if the sender is not the owner.
CloseChannel
CloseChannel closes the IBC channel.
SendCosmosMsgs
SendCosmosMsgs converts the provided array of CosmosMsg to an ICA tx and sends them to the ICA host.
CosmosMsg::Stargate and CosmosMsg::Wasm are only supported if the TxEncoding is TxEncoding::Protobuf.
This is the recommended way to send messages to the ICA host.
Fields
queries: Vec<QueryRequest<Empty>>The stargate queries to convert and send to the ICA host. The queries are executed after the messages.
timeout_seconds: Option<u64>Optional timeout in seconds to include with the ibc packet. If not specified, the default timeout is used.
UpdateCallbackAddress
UpdateCallbackAddress updates the contract callback address.
Fields
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§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(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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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