Trait abstract_app::traits::AbstractNameService

source ·
pub trait AbstractNameService: Sized {
    // Required method
    fn ans_host(&self, deps: Deps<'_>) -> Result<AnsHost, AbstractSdkError>;

    // Provided method
    fn name_service<'a>(
        &'a self,
        deps: Deps<'a>
    ) -> AbstractNameServiceClient<'a, Self> { ... }
}
Expand description

ANCHOR: ans Accessor to the Abstract Name Service.

Required Methods§

source

fn ans_host(&self, deps: Deps<'_>) -> Result<AnsHost, AbstractSdkError>

Get the ANS host address.

Provided Methods§

source

fn name_service<'a>( &'a self, deps: Deps<'a> ) -> AbstractNameServiceClient<'a, Self>

Construct the name service client.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl AbstractNameService for AnsHost

source§

impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, CustomMigrateMsg, ReceiveMsg, SudoMsg> AbstractNameService for AppContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, CustomMigrateMsg, ReceiveMsg, SudoMsg>