Struct abstract_sdk::feature_objects::AnsHost
source · pub struct AnsHost {
pub address: Addr,
}Expand description
Struct that stores the ans-host contract address.
Implements AbstractNameService feature
Fields§
§address: AddrAddress of the ans_host contract
Implementations§
source§impl AnsHost
impl AnsHost
sourcepub fn query_contracts(
&self,
querier: &QuerierWrapper<'_, Empty>,
contracts: &[ContractEntry]
) -> Result<Vec<Addr, Global>, AbstractError>
pub fn query_contracts( &self, querier: &QuerierWrapper<'_, Empty>, contracts: &[ContractEntry] ) -> Result<Vec<Addr, Global>, AbstractError>
Raw Query to AnsHost contract
sourcepub fn query_contract(
&self,
querier: &QuerierWrapper<'_, Empty>,
contract: &ContractEntry
) -> Result<Addr, AbstractError>
pub fn query_contract( &self, querier: &QuerierWrapper<'_, Empty>, contract: &ContractEntry ) -> Result<Addr, AbstractError>
Raw query of a single contract Addr
sourcepub fn query_assets(
&self,
querier: &QuerierWrapper<'_, Empty>,
assets: &[AssetEntry]
) -> Result<Vec<AssetInfoBase<Addr>, Global>, AbstractError>
pub fn query_assets( &self, querier: &QuerierWrapper<'_, Empty>, assets: &[AssetEntry] ) -> Result<Vec<AssetInfoBase<Addr>, Global>, AbstractError>
Raw Query to AnsHost contract
sourcepub fn query_asset(
&self,
querier: &QuerierWrapper<'_, Empty>,
asset: &AssetEntry
) -> Result<AssetInfoBase<Addr>, AbstractError>
pub fn query_asset( &self, querier: &QuerierWrapper<'_, Empty>, asset: &AssetEntry ) -> Result<AssetInfoBase<Addr>, AbstractError>
Raw query of a single AssetInfo
sourcepub fn query_assets_reverse(
&self,
querier: &QuerierWrapper<'_, Empty>,
assets: &[AssetInfoBase<Addr>]
) -> Result<Vec<AssetEntry, Global>, AbstractError>
pub fn query_assets_reverse( &self, querier: &QuerierWrapper<'_, Empty>, assets: &[AssetInfoBase<Addr>] ) -> Result<Vec<AssetEntry, Global>, AbstractError>
Raw Query to AnsHost contract
sourcepub fn query_asset_reverse(
&self,
querier: &QuerierWrapper<'_, Empty>,
asset: &AssetInfoBase<Addr>
) -> Result<AssetEntry, AbstractError>
pub fn query_asset_reverse( &self, querier: &QuerierWrapper<'_, Empty>, asset: &AssetInfoBase<Addr> ) -> Result<AssetEntry, AbstractError>
Raw query of a single AssetEntry
sourcepub fn query_channel(
&self,
querier: &QuerierWrapper<'_, Empty>,
channel: &ChannelEntry
) -> Result<String, AbstractError>
pub fn query_channel( &self, querier: &QuerierWrapper<'_, Empty>, channel: &ChannelEntry ) -> Result<String, AbstractError>
Raw query of a single channel Addr
sourcepub fn query_asset_pairing(
&self,
querier: &QuerierWrapper<'_, Empty>,
dex_asset_pairing: &DexAssetPairing
) -> Result<Vec<PoolReference, Global>, AbstractError>
pub fn query_asset_pairing( &self, querier: &QuerierWrapper<'_, Empty>, dex_asset_pairing: &DexAssetPairing ) -> Result<Vec<PoolReference, Global>, AbstractError>
Raw query of a single asset pairing
pub fn query_pool_metadata( &self, querier: &QuerierWrapper<'_, Empty>, pool_id: &UniquePoolId ) -> Result<PoolMetadata, AbstractError>
Trait Implementations§
source§impl AbstractNameService for AnsHost
impl AbstractNameService for AnsHost
source§fn name_service<'a>(
&'a self,
deps: Deps<'a>
) -> AbstractNameServiceClient<'_, Self>
fn name_service<'a>( &'a self, deps: Deps<'a> ) -> AbstractNameServiceClient<'_, Self>
Construct the name service client.
source§impl<'de> Deserialize<'de> for AnsHost
impl<'de> Deserialize<'de> for AnsHost
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AnsHost, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<AnsHost, <__D as Deserializer<'de>>::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 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 moresource§impl PartialEq<AnsHost> for AnsHost
impl PartialEq<AnsHost> for AnsHost
source§impl Serialize for AnsHost
impl Serialize for AnsHost
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AnsHost
Auto Trait Implementations§
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