Trait abstract_app::traits::AccountIdentification

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

    // Provided methods
    fn manager_address(&self, deps: Deps<'_>) -> Result<Addr, AbstractSdkError> { ... }
    fn account_base(
        &self,
        deps: Deps<'_>
    ) -> Result<AccountBase, AbstractSdkError> { ... }
    fn account_id(&self, deps: Deps<'_>) -> Result<AccountId, AbstractSdkError> { ... }
}
Expand description

Retrieve identifying information about an Account. This includes the manager, proxy, core and account_id.

Required Methods§

source

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

Get the proxy address for the current account.

Provided Methods§

source

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

Get the manager address for the current account.

source

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

Get the AccountBase for the current account.

source

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

Get the Account id for the current account.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AccountIdentification for AccountBase

Implementors§

source§

impl AccountIdentification for ProxyContract

source§

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