pub struct MockAnsHost {
pub contracts: Vec<(ContractEntry, Addr)>,
pub assets: Vec<(AssetEntry, AssetInfo)>,
pub channels: Vec<(ChannelEntry, String)>,
pub pools: Vec<(UncheckedPoolAddress, PoolMetadata)>,
pub mock_api: MockApi,
}
Expand description
mirror ANS state
ⓘ
use abstract_std::ans_host::state::{
ASSET_ADDRESSES, ASSET_PAIRINGS, CHANNELS, CONTRACT_ADDRESSES, POOL_METADATA,
REGISTERED_DEXES,
};
Fields§
§contracts: Vec<(ContractEntry, Addr)>
§assets: Vec<(AssetEntry, AssetInfo)>
§channels: Vec<(ChannelEntry, String)>
§pools: Vec<(UncheckedPoolAddress, PoolMetadata)>
§mock_api: MockApi
Implementations§
Source§impl MockAnsHost
impl MockAnsHost
pub fn new(mock_api: MockApi) -> Self
pub fn to_querier(self) -> MockQuerier
pub fn insert_into( self, querier_builder: MockQuerierBuilder, ) -> MockQuerierBuilder
pub fn with_defaults(self) -> Self
Auto Trait Implementations§
impl Freeze for MockAnsHost
impl RefUnwindSafe for MockAnsHost
impl Send for MockAnsHost
impl Sync for MockAnsHost
impl Unpin for MockAnsHost
impl UnwindSafe for MockAnsHost
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