pub struct VersionControlContract {
pub address: Addr,
}
Expand description
Store the Version Control contract.
Implements [AbstractRegistryAccess
] (defined in abstract-sdk)
Fields§
§address: Addr
Address of the version control contract
Implementations§
source§impl VersionControlContract
impl VersionControlContract
sourcepub fn new(address: Addr) -> VersionControlContract
pub fn new(address: Addr) -> VersionControlContract
Construct a new version control feature object.
sourcepub fn query_module_reference_raw(
&self,
module_info: &ModuleInfo,
querier: &QuerierWrapper<'_>,
) -> Result<ModuleReference, VersionControlError>
pub fn query_module_reference_raw( &self, module_info: &ModuleInfo, querier: &QuerierWrapper<'_>, ) -> Result<ModuleReference, VersionControlError>
Raw query for a module reference
sourcepub fn query_module(
&self,
module_info: ModuleInfo,
querier: &QuerierWrapper<'_>,
) -> Result<Module, VersionControlError>
pub fn query_module( &self, module_info: ModuleInfo, querier: &QuerierWrapper<'_>, ) -> Result<Module, VersionControlError>
Smart query for a module
sourcepub fn query_config(
&self,
module_info: ModuleInfo,
querier: &QuerierWrapper<'_>,
) -> Result<ModuleConfiguration, VersionControlError>
pub fn query_config( &self, module_info: ModuleInfo, querier: &QuerierWrapper<'_>, ) -> Result<ModuleConfiguration, VersionControlError>
Smart query for a module config
sourcepub fn query_modules_configs(
&self,
infos: Vec<ModuleInfo>,
querier: &QuerierWrapper<'_>,
) -> Result<Vec<ModuleResponse>, VersionControlError>
pub fn query_modules_configs( &self, infos: Vec<ModuleInfo>, querier: &QuerierWrapper<'_>, ) -> Result<Vec<ModuleResponse>, VersionControlError>
Smart query for a modules and its configurations
sourcepub fn query_namespace(
&self,
namespace: Namespace,
querier: &QuerierWrapper<'_>,
) -> Result<NamespaceResponse, VersionControlError>
pub fn query_namespace( &self, namespace: Namespace, querier: &QuerierWrapper<'_>, ) -> Result<NamespaceResponse, VersionControlError>
Queries the account that owns the namespace Is also returns the base modules of that account (AccountBase)
sourcepub fn query_namespaces(
&self,
accounts: Vec<AccountId>,
querier: &QuerierWrapper<'_>,
) -> Result<NamespacesResponse, VersionControlError>
pub fn query_namespaces( &self, accounts: Vec<AccountId>, querier: &QuerierWrapper<'_>, ) -> Result<NamespacesResponse, VersionControlError>
Queries the namespaces owned by accounts
sourcepub fn query_standalone_info_raw(
&self,
code_id: u64,
querier: &QuerierWrapper<'_>,
) -> Result<ModuleInfo, VersionControlError>
pub fn query_standalone_info_raw( &self, code_id: u64, querier: &QuerierWrapper<'_>, ) -> Result<ModuleInfo, VersionControlError>
Queries the module info of the standalone code id
sourcepub fn unchecked_account_id(
&self,
maybe_core_contract_addr: &Addr,
querier: &QuerierWrapper<'_>,
) -> Result<AccountId, VersionControlError>
pub fn unchecked_account_id( &self, maybe_core_contract_addr: &Addr, querier: &QuerierWrapper<'_>, ) -> Result<AccountId, VersionControlError>
Get self reported Account id, for checked use
VersionControlContract::account_id
sourcepub fn account_id(
&self,
maybe_core_contract_addr: &Addr,
querier: &QuerierWrapper<'_>,
) -> Result<AccountId, VersionControlError>
pub fn account_id( &self, maybe_core_contract_addr: &Addr, querier: &QuerierWrapper<'_>, ) -> Result<AccountId, VersionControlError>
Get AccountId for given manager or proxy address. Also verifies that that address is indeed a manager or proxy.
sourcepub fn account_base(
&self,
account_id: &AccountId,
querier: &QuerierWrapper<'_>,
) -> Result<AccountBase, VersionControlError>
pub fn account_base( &self, account_id: &AccountId, querier: &QuerierWrapper<'_>, ) -> Result<AccountBase, VersionControlError>
Get the account base for a given account id.
sourcepub fn namespace_registration_fee(
&self,
querier: &QuerierWrapper<'_>,
) -> Result<Option<Coin>, VersionControlError>
pub fn namespace_registration_fee( &self, querier: &QuerierWrapper<'_>, ) -> Result<Option<Coin>, VersionControlError>
Get namespace registration fee
sourcepub fn assert_manager(
&self,
maybe_manager: &Addr,
querier: &QuerierWrapper<'_>,
) -> Result<AccountBase, VersionControlError>
pub fn assert_manager( &self, maybe_manager: &Addr, querier: &QuerierWrapper<'_>, ) -> Result<AccountBase, VersionControlError>
Verify if the provided manager address is indeed a user.
sourcepub fn assert_proxy(
&self,
maybe_proxy: &Addr,
querier: &QuerierWrapper<'_>,
) -> Result<AccountBase, VersionControlError>
pub fn assert_proxy( &self, maybe_proxy: &Addr, querier: &QuerierWrapper<'_>, ) -> Result<AccountBase, VersionControlError>
Verify if the provided proxy address is indeed a user.
Trait Implementations§
source§impl AbstractRegistryAccess for VersionControlContract
impl AbstractRegistryAccess for VersionControlContract
source§fn abstract_registry(
&self,
_deps: Deps<'_>,
) -> AbstractSdkResult<VersionControlContract>
fn abstract_registry( &self, _deps: Deps<'_>, ) -> AbstractSdkResult<VersionControlContract>
source§impl Clone for VersionControlContract
impl Clone for VersionControlContract
source§fn clone(&self) -> VersionControlContract
fn clone(&self) -> VersionControlContract
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VersionControlContract
impl Debug for VersionControlContract
source§impl<'de> Deserialize<'de> for VersionControlContract
impl<'de> Deserialize<'de> for VersionControlContract
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VersionControlContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VersionControlContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl JsonSchema for VersionControlContract
impl JsonSchema for VersionControlContract
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for VersionControlContract
impl PartialEq for VersionControlContract
source§fn eq(&self, other: &VersionControlContract) -> bool
fn eq(&self, other: &VersionControlContract) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VersionControlContract
impl Serialize for VersionControlContract
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for VersionControlContract
Auto Trait Implementations§
impl Freeze for VersionControlContract
impl RefUnwindSafe for VersionControlContract
impl Send for VersionControlContract
impl Sync for VersionControlContract
impl Unpin for VersionControlContract
impl UnwindSafe for VersionControlContract
Blanket Implementations§
source§impl<T> AbstractResponse for Twhere
T: ModuleIdentification,
impl<T> AbstractResponse for Twhere
T: ModuleIdentification,
source§fn response(&self, action: impl Into<String>) -> Response
fn response(&self, action: impl Into<String>) -> Response
source§fn custom_response(
&self,
action: impl Into<String>,
attributes: impl IntoIterator<Item = impl Into<Attribute>>,
) -> Response
fn custom_response( &self, action: impl Into<String>, attributes: impl IntoIterator<Item = impl Into<Attribute>>, ) -> Response
.response()
with additional attributes.source§impl<T> AccountVerification for Twhere
T: AbstractRegistryAccess + ModuleIdentification,
impl<T> AccountVerification for Twhere
T: AbstractRegistryAccess + ModuleIdentification,
source§fn account_registry<'a>(
&'a self,
deps: Deps<'a>,
) -> AbstractSdkResult<AccountRegistry<'_, Self>>
fn account_registry<'a>( &'a self, deps: Deps<'a>, ) -> AbstractSdkResult<AccountRegistry<'_, Self>>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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