pub trait Deploy: ContractInteractive {
    // Provided methods
    fn instantiate_msg(&self) -> Option<Box<dyn Msg>> { ... }
    fn migrate_msg(&self) -> Option<Box<dyn Msg>> { ... }
    fn set_config_msg(&self) -> Option<Box<dyn Msg>> { ... }
    fn set_up_msgs(&self) -> Vec<Box<dyn Msg>> { ... }
    fn external_instantiate_msgs(
        &self
    ) -> Vec<ExternalInstantiate<Box<dyn Msg>>> { ... }
}
Expand description

This trait represents a contract that can be deployed.

Provided Methods§

source

fn instantiate_msg(&self) -> Option<Box<dyn Msg>>

This method gets the preprogrammed instantiate msg for the contract.

source

fn migrate_msg(&self) -> Option<Box<dyn Msg>>

This method gets the preprogrammed migrate msg for the contract.

source

fn set_config_msg(&self) -> Option<Box<dyn Msg>>

This method gets the preprogrammed set config msg for the contract.

source

fn set_up_msgs(&self) -> Vec<Box<dyn Msg>>

This method gets the preprogrammed set up for the contract.

source

fn external_instantiate_msgs(&self) -> Vec<ExternalInstantiate<Box<dyn Msg>>>

This method will instantiate an external contract via code_id alongside a local contract.

Implementors§