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