pub struct ModuleDeployer<Chain: BootEnvironment> {
    pub chain: Chain,
    pub version: Version,
    pub ans_host: AnsHost<Chain>,
    pub version_control: VersionControl<Chain>,
}
Expand description

An Abstract module deployer that can deploy modules to a chain.

Fields§

§chain: Chain§version: Version§ans_host: AnsHost<Chain>§version_control: VersionControl<Chain>

Implementations§

source§

impl<Chain: BootEnvironment> ModuleDeployer<Chain>

source

pub fn new(chain: Chain, version: Version) -> Self

Create a new instance of the module deployer, loaded from the STATE_FILE.

source

pub fn load_from_version_control( chain: Chain, abstract_version: &Version, version_control_address: &Addr ) -> Result<Self, AbstractBootError>

Loads a deployment instance from a live chain given the version_control_address.

source

pub fn deploy_api<TInitMsg>( &self, api: &mut Contract<Chain>, version: Version, api_init_msg: TInitMsg ) -> Result<(), AbstractBootError>where TInitMsg: Serialize + Debug,

Uploads, instantiates, and registers a new API module.

Auto Trait Implementations§

§

impl<Chain> !RefUnwindSafe for ModuleDeployer<Chain>

§

impl<Chain> !Send for ModuleDeployer<Chain>

§

impl<Chain> !Sync for ModuleDeployer<Chain>

§

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

§

impl<Chain> !UnwindSafe for ModuleDeployer<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.