Trait abstract_client::ClientResolve

source ·
pub trait ClientResolve<Chain>
where Chain: CwEnv,
{ type Output; // Required method fn resolve( &self, ans_host: &AnsHost<Chain> ) -> Result<Self::Output, CwEnvError>; }

Required Associated Types§

source

type Output

Result of resolving an entry.

Required Methods§

source

fn resolve(&self, ans_host: &AnsHost<Chain>) -> Result<Self::Output, CwEnvError>

Resolve an entry into its value.

Implementations on Foreign Types§

source§

impl<Chain> ClientResolve<Chain> for AnsAsset
where Chain: CwEnv,

§

type Output = AssetBase<Addr>

source§

fn resolve( &self, ans_host: &AnsHost<Chain> ) -> Result<<AnsAsset as ClientResolve<Chain>>::Output, CwEnvError>

source§

impl<Chain> ClientResolve<Chain> for AssetEntry
where Chain: CwEnv,

§

type Output = AssetInfoBase<Addr>

source§

fn resolve( &self, ans_host: &AnsHost<Chain> ) -> Result<<AssetEntry as ClientResolve<Chain>>::Output, CwEnvError>

source§

impl<Chain> ClientResolve<Chain> for ChannelEntry
where Chain: CwEnv,

§

type Output = String

source§

fn resolve( &self, ans_host: &AnsHost<Chain> ) -> Result<<ChannelEntry as ClientResolve<Chain>>::Output, CwEnvError>

source§

impl<Chain> ClientResolve<Chain> for ContractEntry
where Chain: CwEnv,

§

type Output = Addr

source§

fn resolve( &self, ans_host: &AnsHost<Chain> ) -> Result<<ContractEntry as ClientResolve<Chain>>::Output, CwEnvError>

source§

impl<Chain> ClientResolve<Chain> for DexAssetPairing
where Chain: CwEnv,

§

type Output = Vec<PoolReference>

source§

fn resolve( &self, ans_host: &AnsHost<Chain> ) -> Result<<DexAssetPairing as ClientResolve<Chain>>::Output, CwEnvError>

source§

impl<Chain> ClientResolve<Chain> for LpToken
where Chain: CwEnv,

§

type Output = AssetInfoBase<Addr>

source§

fn resolve( &self, ans_host: &AnsHost<Chain> ) -> Result<<LpToken as ClientResolve<Chain>>::Output, CwEnvError>

source§

impl<Chain> ClientResolve<Chain> for PoolMetadata
where Chain: CwEnv,

source§

impl<Chain> ClientResolve<Chain> for UniquePoolId
where Chain: CwEnv,

§

type Output = PoolMetadata

source§

fn resolve( &self, ans_host: &AnsHost<Chain> ) -> Result<<UniquePoolId as ClientResolve<Chain>>::Output, CwEnvError>

source§

impl<Chain> ClientResolve<Chain> for AssetBase<String>
where Chain: CwEnv,

§

type Output = AnsAsset

source§

fn resolve( &self, ans_host: &AnsHost<Chain> ) -> Result<<AssetBase<String> as ClientResolve<Chain>>::Output, CwEnvError>

source§

impl<Chain, T> ClientResolve<Chain> for AssetInfoBase<T>
where Chain: CwEnv, T: AddressLike,

§

type Output = AssetEntry

source§

fn resolve( &self, ans_host: &AnsHost<Chain> ) -> Result<<AssetInfoBase<T> as ClientResolve<Chain>>::Output, CwEnvError>

source§

impl<Chain, T> ClientResolve<Chain> for Vec<T>
where Chain: CwEnv, T: ClientResolve<Chain>,

§

type Output = Vec<<T as ClientResolve<Chain>>::Output>

source§

fn resolve( &self, ans_host: &AnsHost<Chain> ) -> Result<<Vec<T> as ClientResolve<Chain>>::Output, CwEnvError>

Implementors§