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> Freeze for AccountRegistry<'a, T>
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§
source§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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more