Trait 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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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

Source§

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,

Source§

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,

Source§

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,

Source§

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>,

Source§

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§