Struct abstract_sdk::IbcClient
source · pub struct IbcClient<'a, T: IbcInterface> { /* private fields */ }
Expand description
API for interacting with the Abstract IBC client.
§Example
use abstract_sdk::prelude::*;
let ibc_client: IbcClient<MockModule> = module.ibc_client(deps.as_ref());
Implementations§
source§impl<'a, T: IbcInterface> IbcClient<'a, T>
impl<'a, T: IbcInterface> IbcClient<'a, T>
sourcepub fn register_ibc_client(&self) -> AbstractSdkResult<CosmosMsg>
pub fn register_ibc_client(&self) -> AbstractSdkResult<CosmosMsg>
Registers the ibc client to be able to use IBC capabilities
sourcepub fn create_remote_account(
&self,
host_chain: String
) -> AbstractSdkResult<CosmosMsg>
pub fn create_remote_account( &self, host_chain: String ) -> AbstractSdkResult<CosmosMsg>
A simple helper to create and register a remote account
sourcepub fn install_remote_app<M: Serialize>(
&self,
host_chain: String,
module: ModuleInfo,
init_msg: &M
) -> AbstractSdkResult<CosmosMsg>
pub fn install_remote_app<M: Serialize>( &self, host_chain: String, module: ModuleInfo, init_msg: &M ) -> AbstractSdkResult<CosmosMsg>
A simple helper to install an app on an account
sourcepub fn install_remote_api<M: Serialize>(
&self,
host_chain: String,
module: ModuleInfo
) -> AbstractSdkResult<CosmosMsg>
pub fn install_remote_api<M: Serialize>( &self, host_chain: String, module: ModuleInfo ) -> AbstractSdkResult<CosmosMsg>
A simple helper install a remote api Module providing only the chain name
sourcepub fn execute_on_module<M: Serialize>(
&self,
host_chain: String,
module_id: String,
exec_msg: &M
) -> AbstractSdkResult<CosmosMsg>
pub fn execute_on_module<M: Serialize>( &self, host_chain: String, module_id: String, exec_msg: &M ) -> AbstractSdkResult<CosmosMsg>
A simple helper to execute on a module
sourcepub fn host_action(
&self,
host_chain: String,
action: HostAction,
callback: Option<CallbackInfo>
) -> AbstractSdkResult<CosmosMsg>
pub fn host_action( &self, host_chain: String, action: HostAction, callback: Option<CallbackInfo> ) -> AbstractSdkResult<CosmosMsg>
Call a HostAction
on the host of the provided host_chain
.
sourcepub fn ics20_transfer(
&self,
receiving_chain: String,
funds: Vec<Coin>
) -> AbstractSdkResult<CosmosMsg>
pub fn ics20_transfer( &self, receiving_chain: String, funds: Vec<Coin> ) -> AbstractSdkResult<CosmosMsg>
IbcClient the provided coins from the Account to its proxy on the receiving_chain
.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for IbcClient<'a, T>
impl<'a, T> !Send for IbcClient<'a, T>
impl<'a, T> !Sync for IbcClient<'a, T>
impl<'a, T> Unpin for IbcClient<'a, T>
impl<'a, T> !UnwindSafe for IbcClient<'a, T>
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>,
Casts
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
Mutably borrows from an owned value. Read more