pub trait ServiceDeployer<Chain: CwEnv>:
Sized
+ Uploadable
+ ContractInstance<Chain>
+ CwOrchInstantiate<Chain> {
// Provided method
fn deploy(
&self,
version: Version,
custom_init_msg: &<Self as InstantiableContract>::InstantiateMsg,
strategy: DeployStrategy,
) -> Result<(), AbstractInterfaceError> { ... }
}
Expand description
Trait for deploying Services
Provided Methods§
Sourcefn deploy(
&self,
version: Version,
custom_init_msg: &<Self as InstantiableContract>::InstantiateMsg,
strategy: DeployStrategy,
) -> Result<(), AbstractInterfaceError>
fn deploy( &self, version: Version, custom_init_msg: &<Self as InstantiableContract>::InstantiateMsg, strategy: DeployStrategy, ) -> Result<(), AbstractInterfaceError>
Deploys the module. If the module is already deployed, it will return an error.
Use DeployStrategy::Try
if you want to deploy the module only if it is not already deployed.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.