pub struct AnsHost {
pub address: Addr,
}
Expand description
Struct that stores the ans-host contract address.
Implements AbstractNameService
feature
Fields§
§address: Addr
Address of the ans_host contract
Implementations§
Source§impl AnsHost
impl AnsHost
Sourcepub fn new(deps: Deps<'_>, abstract_code_id: u64) -> AbstractResult<Self>
pub fn new(deps: Deps<'_>, abstract_code_id: u64) -> AbstractResult<Self>
Retrieve address of the ans host
Sourcepub fn query_contracts(
&self,
querier: &QuerierWrapper<'_>,
contracts: &[ContractEntry],
) -> AnsHostResult<Vec<Addr>>
pub fn query_contracts( &self, querier: &QuerierWrapper<'_>, contracts: &[ContractEntry], ) -> AnsHostResult<Vec<Addr>>
Raw Query to AnsHost contract
Sourcepub fn query_contract(
&self,
querier: &QuerierWrapper<'_>,
contract: &ContractEntry,
) -> AnsHostResult<Addr>
pub fn query_contract( &self, querier: &QuerierWrapper<'_>, contract: &ContractEntry, ) -> AnsHostResult<Addr>
Raw query of a single contract Addr
Sourcepub fn query_assets(
&self,
querier: &QuerierWrapper<'_>,
assets: &[AssetEntry],
) -> AnsHostResult<Vec<AssetInfo>>
pub fn query_assets( &self, querier: &QuerierWrapper<'_>, assets: &[AssetEntry], ) -> AnsHostResult<Vec<AssetInfo>>
Raw Query to AnsHost contract
Sourcepub fn query_asset(
&self,
querier: &QuerierWrapper<'_>,
asset: &AssetEntry,
) -> AnsHostResult<AssetInfo>
pub fn query_asset( &self, querier: &QuerierWrapper<'_>, asset: &AssetEntry, ) -> AnsHostResult<AssetInfo>
Raw query of a single AssetInfo
Sourcepub fn query_assets_reverse(
&self,
querier: &QuerierWrapper<'_>,
assets: &[AssetInfo],
) -> AnsHostResult<Vec<AssetEntry>>
pub fn query_assets_reverse( &self, querier: &QuerierWrapper<'_>, assets: &[AssetInfo], ) -> AnsHostResult<Vec<AssetEntry>>
Raw Query to AnsHost contract
Sourcepub fn query_asset_reverse(
&self,
querier: &QuerierWrapper<'_>,
asset: &AssetInfo,
) -> AnsHostResult<AssetEntry>
pub fn query_asset_reverse( &self, querier: &QuerierWrapper<'_>, asset: &AssetInfo, ) -> AnsHostResult<AssetEntry>
Raw query of a single AssetEntry
Sourcepub fn query_channel(
&self,
querier: &QuerierWrapper<'_>,
channel: &ChannelEntry,
) -> AnsHostResult<String>
pub fn query_channel( &self, querier: &QuerierWrapper<'_>, channel: &ChannelEntry, ) -> AnsHostResult<String>
Raw query of a single channel Addr
Sourcepub fn query_asset_pairing(
&self,
querier: &QuerierWrapper<'_>,
dex_asset_pairing: &DexAssetPairing,
) -> AnsHostResult<Vec<PoolReference>>
pub fn query_asset_pairing( &self, querier: &QuerierWrapper<'_>, dex_asset_pairing: &DexAssetPairing, ) -> AnsHostResult<Vec<PoolReference>>
Raw query of a single asset pairing
pub fn query_pool_metadata( &self, querier: &QuerierWrapper<'_>, pool_id: UniquePoolId, ) -> AnsHostResult<PoolMetadata>
pub fn query_registered_dexes( &self, querier: &QuerierWrapper<'_>, ) -> AnsHostResult<RegisteredDexesResponse>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AnsHost
impl<'de> Deserialize<'de> for AnsHost
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for AnsHost
impl JsonSchema for AnsHost
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreimpl StructuralPartialEq for AnsHost
Auto Trait Implementations§
impl Freeze for AnsHost
impl RefUnwindSafe for AnsHost
impl Send for AnsHost
impl Sync for AnsHost
impl Unpin for AnsHost
impl UnwindSafe for AnsHost
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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