Trait AdapterDeployer

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

Trait for deploying Adapters

Provided Methods§

Source

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

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