Struct abstract_boot::Manager
source · pub struct Manager<Chain: BootEnvironment>(_);Implementations§
source§impl<Chain: BootEnvironment> Manager<Chain>
impl<Chain: BootEnvironment> Manager<Chain>
pub fn new(name: &str, chain: Chain) -> Self
pub fn upgrade_module<M: Serialize>( &self, module_id: &str, migrate_msg: &M ) -> Result<(), AbstractBootError>
pub fn replace_api(&self, module_id: &str) -> Result<(), AbstractBootError>
pub fn install_module<TInitMsg: Serialize>( &self, module_id: &str, init_msg: &TInitMsg ) -> Result<(), AbstractBootError>
pub fn install_module_version<M: Serialize>( &self, module_id: &str, version: ModuleVersion, init_msg: &M ) -> Result<(), AbstractBootError>
pub fn uninstall_module( &self, module_id: impl Into<String> ) -> Result<(), AbstractBootError>
pub fn execute_on_module( &self, module: &str, msg: impl Serialize ) -> Result<(), AbstractBootError>
pub fn update_api_traders( &self, module_id: &str, to_add: Vec<String>, to_remove: Vec<String> ) -> Result<(), AbstractBootError>
sourcepub fn module_info(
&self,
module_id: &str
) -> Result<Option<ManagerModuleInfo>, AbstractBootError>
pub fn module_info( &self, module_id: &str ) -> Result<Option<ManagerModuleInfo>, AbstractBootError>
Return the module info installed on the manager