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§