Struct abstract_boot::VersionControl
source · pub struct VersionControl<Chain: BootEnvironment>(_);Implementations§
source§impl<Chain: BootEnvironment> VersionControl<Chain>where
TxResponse<Chain>: IndexResponse,
impl<Chain: BootEnvironment> VersionControl<Chain>where TxResponse<Chain>: IndexResponse,
pub fn new(name: &str, chain: Chain) -> Self
pub fn load(chain: Chain, address: &Addr) -> Self
sourcepub fn module(&self, info: ModuleInfo) -> Result<Module, AbstractBootError>
pub fn module(&self, info: ModuleInfo) -> Result<Module, AbstractBootError>
Query a single module
pub fn register_core( &self, os: &OS<Chain>, version: &str ) -> Result<(), AbstractBootError>
sourcepub fn register_cores(
&self,
apps: Vec<&Contract<Chain>>,
version: &Version
) -> Result<(), AbstractBootError>
pub fn register_cores( &self, apps: Vec<&Contract<Chain>>, version: &Version ) -> Result<(), AbstractBootError>
Register core modules
sourcepub fn register_natives(
&self,
natives: Vec<&Contract<Chain>>,
version: &Version
) -> Result<(), AbstractBootError>
pub fn register_natives( &self, natives: Vec<&Contract<Chain>>, version: &Version ) -> Result<(), AbstractBootError>
Register native modules
pub fn register_apps( &self, apps: Vec<&Contract<Chain>>, version: &Version ) -> Result<(), AbstractBootError>
pub fn register_apis( &self, apis: Vec<&Contract<Chain>>, version: &Version ) -> Result<(), AbstractBootError>
pub fn register_standalones( &self, standalones: Vec<&Contract<Chain>>, version: &Version ) -> Result<(), AbstractBootError>
pub fn register_deployment( &self, deployment: &Abstract<Chain> ) -> Result<(), AbstractBootError>
pub fn get_os_core(&self, os_id: OsId) -> Result<Core, AbstractBootError>
sourcepub fn get_api_addr(
&self,
id: &str,
version: ModuleVersion
) -> Result<Addr, AbstractBootError>
pub fn get_api_addr( &self, id: &str, version: ModuleVersion ) -> Result<Addr, AbstractBootError>
Retrieves an API’s address from version control given the module id and version.
sourcepub fn get_app_code(
&self,
id: &str,
version: ModuleVersion
) -> Result<u64, AbstractBootError>
pub fn get_app_code( &self, id: &str, version: ModuleVersion ) -> Result<u64, AbstractBootError>
Retrieves an APP’s code id from version control given the module id and version.
Trait Implementations§
source§impl<Chain: Clone + BootEnvironment> Clone for VersionControl<Chain>
impl<Chain: Clone + BootEnvironment> Clone for VersionControl<Chain>
source§fn clone(&self) -> VersionControl<Chain>
fn clone(&self) -> VersionControl<Chain>
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 more