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>

source

pub fn new(chain: Chain, os_id: Option<OsId>) -> Self

source

pub fn upload(&mut self) -> Result<(), AbstractBootError>

source

pub fn register( &self, version_control: &VersionControl<Chain>, version: &str ) -> Result<(), AbstractBootError>

Register the os core contracts in the version control

source

pub fn install_module<TInitMsg: Serialize>( &mut self, module_id: &str, init_msg: &TInitMsg ) -> Result<(), AbstractBootError>

source

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. Also checks that the proxy’s configuration includes the expected module addresses. Note that the proxy is automatically included in the assertions and should not (but can) be included in the expected list. Returns the Vec<ManagerModuleInfo> from the manager

Auto Trait Implementations§

§

impl<Chain> !RefUnwindSafe for OS<Chain>

§

impl<Chain> !Send for OS<Chain>

§

impl<Chain> !Sync for OS<Chain>

§

impl<Chain> Unpin for OS<Chain>where Chain: Unpin,

§

impl<Chain> !UnwindSafe for OS<Chain>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.