Struct abstract_client::builder::AbstractClientBuilder
source · pub struct AbstractClientBuilder<Chain: CwEnv> { /* private fields */ }
Expand description
Implementations§
source§impl<Chain: CwEnv> AbstractClientBuilder<Chain>
impl<Chain: CwEnv> AbstractClientBuilder<Chain>
sourcepub fn contract(
&mut self,
contract_entry: UncheckedContractEntry,
address: impl Into<String>
) -> &mut Self
pub fn contract( &mut self, contract_entry: UncheckedContractEntry, address: impl Into<String> ) -> &mut Self
Register contract on Abstract Name Service
sourcepub fn contracts(
&mut self,
contracts: Vec<(UncheckedContractEntry, String)>
) -> &mut Self
pub fn contracts( &mut self, contracts: Vec<(UncheckedContractEntry, String)> ) -> &mut Self
Register contracts on Abstract Name Service
sourcepub fn asset(
&mut self,
name: impl Into<String>,
asset_info: AssetInfoUnchecked
) -> &mut Self
pub fn asset( &mut self, name: impl Into<String>, asset_info: AssetInfoUnchecked ) -> &mut Self
Register asset on Abstract Name Service
sourcepub fn assets(&mut self, assets: Vec<(String, AssetInfoUnchecked)>) -> &mut Self
pub fn assets(&mut self, assets: Vec<(String, AssetInfoUnchecked)>) -> &mut Self
Register assets on Abstract Name Service
sourcepub fn channel(
&mut self,
channel_entry: UncheckedChannelEntry,
channel_value: impl Into<String>
) -> &mut Self
pub fn channel( &mut self, channel_entry: UncheckedChannelEntry, channel_value: impl Into<String> ) -> &mut Self
Register ibc channel on Abstract Name Service
sourcepub fn channels(
&mut self,
channels: Vec<(UncheckedChannelEntry, String)>
) -> &mut Self
pub fn channels( &mut self, channels: Vec<(UncheckedChannelEntry, String)> ) -> &mut Self
Register ibc channels on Abstract Name Service
sourcepub fn pool(
&mut self,
pool_address: UncheckedPoolAddress,
pool_metadata: PoolMetadata
) -> &mut Self
pub fn pool( &mut self, pool_address: UncheckedPoolAddress, pool_metadata: PoolMetadata ) -> &mut Self
Register liquidity pool on Abstract Name Service
sourcepub fn pools(
&mut self,
pools: Vec<(UncheckedPoolAddress, PoolMetadata)>
) -> &mut Self
pub fn pools( &mut self, pools: Vec<(UncheckedPoolAddress, PoolMetadata)> ) -> &mut Self
Register liquidity pools on Abstract Name Service
sourcepub fn dexes(&mut self, dexes: Vec<String>) -> &mut Self
pub fn dexes(&mut self, dexes: Vec<String>) -> &mut Self
Register dexes on Abstract Name Service
sourcepub fn build(&self) -> Result<AbstractClient<Chain>, AbstractClientError>
pub fn build(&self) -> Result<AbstractClient<Chain>, AbstractClientError>
Deploy abstract with current configuration
Auto Trait Implementations§
impl<Chain> Freeze for AbstractClientBuilder<Chain>where
Chain: Freeze,
impl<Chain> RefUnwindSafe for AbstractClientBuilder<Chain>where
Chain: RefUnwindSafe,
impl<Chain> Send for AbstractClientBuilder<Chain>where
Chain: Send,
impl<Chain> Sync for AbstractClientBuilder<Chain>where
Chain: Sync,
impl<Chain> Unpin for AbstractClientBuilder<Chain>where
Chain: Unpin,
impl<Chain> UnwindSafe for AbstractClientBuilder<Chain>where
Chain: UnwindSafe,
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