pub enum ExecuteMsg {
UpdateOwnership(Action),
RegisterInfrastructure {
chain: TruncatedChainId,
note: String,
host: String,
},
SendFunds {
host_chain: TruncatedChainId,
receiver: Option<String>,
memo: Option<String>,
},
SendFundsWithActions {
host_chain: TruncatedChainId,
actions: Vec<Binary>,
},
Register {
host_chain: TruncatedChainId,
namespace: Option<String>,
install_modules: Vec<ModuleInstallConfig>,
},
ModuleIbcAction {
host_chain: TruncatedChainId,
target_module: ModuleInfo,
msg: Binary,
callback: Option<Callback>,
},
IbcQuery {
host_chain: TruncatedChainId,
queries: Vec<QueryRequest<ModuleQuery>>,
callback: Callback,
},
RemoteAction {
host_chain: TruncatedChainId,
action: HostAction,
},
RemoveHost {
host_chain: TruncatedChainId,
},
Callback(CallbackMessage),
}
Variants§
UpdateOwnership(Action)
Update the ownership.
RegisterInfrastructure
Owner method: Registers the polytone note on the local chain as well as the host on the remote chain to send messages through This allows for monitoring which chain are connected to the contract remotely
Fields
chain: TruncatedChainId
Chain to register the infrastructure for (“juno”, “osmosis”, etc.)
SendFunds
Only callable by Account Will attempt to forward the specified funds to the corresponding address on the remote chain.
Fields
host_chain: TruncatedChainId
host chain to be executed on Example: “osmosis”
SendFundsWithActions
Only callable by Account Will attempt to forward the specified funds to the account on the remote chain.
Fields
host_chain: TruncatedChainId
host chain to be executed on Example: “osmosis”
Register
Only callable by Account Register an Account on a remote chain over IBC This action creates a account for them on the remote chain.
Fields
host_chain: TruncatedChainId
host chain to be executed on Example: “osmosis”
install_modules: Vec<ModuleInstallConfig>
ModuleIbcAction
Only callable by Account Module
Fields
host_chain: TruncatedChainId
host chain to be executed on Example: “osmosis”
target_module: ModuleInfo
Module of this account on host chain
IbcQuery
Only callable by Account Module
Fields
host_chain: TruncatedChainId
host chain to be executed on Example: “osmosis”
queries: Vec<QueryRequest<ModuleQuery>>
Cosmos Query requests
RemoteAction
Only callable by Account Action on remote ibc host Which currently only support account messages
Fields
host_chain: TruncatedChainId
host chain to be executed on Example: “osmosis”
action: HostAction
execute the custom host function
RemoveHost
Owner method: Remove connection for remote chain
Fields
host_chain: TruncatedChainId
Callback(CallbackMessage)
Callback from the Polytone implementation This is triggered regardless of the execution result
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
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