Struct abstract_boot::ModuleDeployer
source · 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>
impl<Chain: BootEnvironment> ModuleDeployer<Chain>
sourcepub fn new(chain: Chain, version: Version) -> Self
pub fn new(chain: Chain, version: Version) -> Self
Create a new instance of the module deployer, loaded from the STATE_FILE.
sourcepub fn load_from_version_control(
chain: Chain,
abstract_version: &Version,
version_control_address: &Addr
) -> Result<Self, AbstractBootError>
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.
sourcepub fn deploy_api<TInitMsg>(
&self,
api: &mut Contract<Chain>,
version: Version,
api_init_msg: TInitMsg
) -> Result<(), AbstractBootError>where
TInitMsg: Serialize + Debug,
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.