abstract_interface

Trait ClientResolve

source
pub trait ClientResolve<Chain: CwEnv> {
    type Output;

    // Required method
    fn resolve(
        &self,
        ans_host: &AnsHost<Chain>,
    ) -> Result<Self::Output, CwOrchError>;
}

Required Associated Types§

source

type Output

Result of resolving an entry.

Required Methods§

source

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

Resolve an entry into its value.

Implementations on Foreign Types§

source§

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

source§

type Output = AssetBase<Addr>

source§

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

source§

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

source§

type Output = AssetInfoBase<Addr>

source§

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

source§

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

source§

type Output = String

source§

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

source§

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

source§

type Output = Addr

source§

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

source§

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

source§

type Output = Vec<PoolReference>

source§

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

source§

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

source§

type Output = AssetInfoBase<Addr>

source§

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

source§

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

source§

type Output = ResolvedPoolMetadata

source§

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

source§

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

source§

type Output = PoolMetadata

source§

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

source§

impl<Chain: CwEnv> ClientResolve<Chain> for AssetUnchecked

source§

type Output = AnsAsset

source§

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

source§

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

source§

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

source§

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

source§

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

source§

type Output = AssetEntry

source§

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

Implementors§