Struct abstract_client::builder::AbstractClientBuilder
source · pub struct AbstractClientBuilder<Chain: CwEnv> { /* private fields */ }Expand description
A builder for setting up tests for Abstract in a [Mock] environment.
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 build(&self) -> Result<AbstractClient<Chain>, AbstractClientError>
pub fn build(&self) -> Result<AbstractClient<Chain>, AbstractClientError>
Deploy abstract with current configuration
Auto Trait Implementations§
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§
§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