Struct abstract_boot::OS
source · pub struct OS<Chain: BootEnvironment> {
pub manager: Manager<Chain>,
pub proxy: Proxy<Chain>,
}Fields§
§manager: Manager<Chain>§proxy: Proxy<Chain>Implementations§
source§impl<Chain: BootEnvironment> OS<Chain>
impl<Chain: BootEnvironment> OS<Chain>
pub fn new(chain: Chain, os_id: Option<OsId>) -> Self
pub fn upload(&mut self) -> Result<(), AbstractBootError>
sourcepub fn register(
&self,
version_control: &VersionControl<Chain>,
version: &str
) -> Result<(), AbstractBootError>
pub fn register( &self, version_control: &VersionControl<Chain>, version: &str ) -> Result<(), AbstractBootError>
Register the os core contracts in the version control
pub fn install_module<TInitMsg: Serialize>( &mut self, module_id: &str, init_msg: &TInitMsg ) -> Result<(), AbstractBootError>
sourcepub fn expect_modules(
&self,
module_addrs: Vec<String>
) -> Result<Vec<ManagerModuleInfo>, AbstractBootError>
pub fn expect_modules( &self, module_addrs: Vec<String> ) -> Result<Vec<ManagerModuleInfo>, AbstractBootError>
Assert that the OS has the expected modules with the provided expected_module_addrs installed.
Note that the proxy is automatically included in the assertions.
Returns the Vec<ManagerModuleInfo> from the manager
sourcepub fn expect_whitelist(
&self,
whitelisted_addrs: Vec<String>
) -> Result<Vec<String>, AbstractBootError>
pub fn expect_whitelist( &self, whitelisted_addrs: Vec<String> ) -> Result<Vec<String>, AbstractBootError>
Checks that the proxy’s whitelist includes the expected module addresses. Automatically includes the manager in the expected whitelist.