Trait AppDeployer

Source
pub trait AppDeployer<Chain: CwEnv>:
    Sized
    + Uploadable
    + ContractInstance<Chain>
    + RegisteredModule {
    // Provided method
    fn deploy(
        &self,
        version: Version,
        strategy: DeployStrategy,
    ) -> Result<(), AbstractInterfaceError> { ... }
}
Expand description

Trait for deploying APPs

Provided Methods§

Source

fn deploy( &self, version: Version, strategy: DeployStrategy, ) -> Result<(), AbstractInterfaceError>

Deploys the app. If the app is already deployed, it will return an error. Use DeployStrategy::Try if you want to deploy the app 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.

Implementors§