Struct abstract_sdk::AccountRegistry
source · pub struct AccountRegistry<'a, T: AccountVerification> { /* private fields */ }
Expand description
API for querying and verifying a sender’s identity in the context of Abstract Accounts.
§Example
use abstract_sdk::prelude::*;
let acc_registry: AccountRegistry<MockModule> = module.account_registry(deps.as_ref()).unwrap();
Implementations§
source§impl<'a, T: AccountVerification> AccountRegistry<'a, T>
impl<'a, T: AccountVerification> AccountRegistry<'a, T>
sourcepub fn assert_manager(
&self,
maybe_manager: &Addr
) -> AbstractSdkResult<AccountBase>
pub fn assert_manager( &self, maybe_manager: &Addr ) -> AbstractSdkResult<AccountBase>
Verify if the provided manager address is indeed a user.
sourcepub fn assert_proxy(&self, maybe_proxy: &Addr) -> AbstractSdkResult<AccountBase>
pub fn assert_proxy(&self, maybe_proxy: &Addr) -> AbstractSdkResult<AccountBase>
Verify if the provided proxy address is indeed a user.
sourcepub fn proxy_address(&self, account_id: &AccountId) -> AbstractSdkResult<Addr>
pub fn proxy_address(&self, account_id: &AccountId) -> AbstractSdkResult<Addr>
Get the proxy address for a given account id.
sourcepub fn manager_address(&self, account_id: &AccountId) -> AbstractSdkResult<Addr>
pub fn manager_address(&self, account_id: &AccountId) -> AbstractSdkResult<Addr>
Get the manager address for a given account id.
sourcepub fn account_base(
&self,
account_id: &AccountId
) -> AbstractSdkResult<AccountBase>
pub fn account_base( &self, account_id: &AccountId ) -> AbstractSdkResult<AccountBase>
Get the account base for a given account id.
sourcepub fn account_id(
&self,
maybe_core_contract_addr: &Addr
) -> AbstractSdkResult<AccountId>
pub fn account_id( &self, maybe_core_contract_addr: &Addr ) -> AbstractSdkResult<AccountId>
Get AccountId for given manager or proxy address.
sourcepub fn namespace_registration_fee(&self) -> AbstractSdkResult<Option<Coin>>
pub fn namespace_registration_fee(&self) -> AbstractSdkResult<Option<Coin>>
Get namespace registration fee
Trait Implementations§
source§impl<'a, T: Clone + AccountVerification> Clone for AccountRegistry<'a, T>
impl<'a, T: Clone + AccountVerification> Clone for AccountRegistry<'a, T>
source§fn clone(&self) -> AccountRegistry<'a, T>
fn clone(&self) -> AccountRegistry<'a, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, T> !RefUnwindSafe for AccountRegistry<'a, T>
impl<'a, T> !Send for AccountRegistry<'a, T>
impl<'a, T> !Sync for AccountRegistry<'a, T>
impl<'a, T> Unpin for AccountRegistry<'a, T>
impl<'a, T> !UnwindSafe for AccountRegistry<'a, T>
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more