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
) -> AbstractSdkResult<CosmosMsg>
pub fn host_action( &self, host_chain: String, action: HostAction ) -> 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> Freeze for IbcClient<'a, T>
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§
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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