Trait wasm_deploy::contract::Deploy
source · 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§
sourcefn instantiate_msg(&self) -> Option<Box<dyn Msg>>
fn instantiate_msg(&self) -> Option<Box<dyn Msg>>
This method gets the preprogrammed instantiate msg for the contract.
sourcefn migrate_msg(&self) -> Option<Box<dyn Msg>>
fn migrate_msg(&self) -> Option<Box<dyn Msg>>
This method gets the preprogrammed migrate msg for the contract.
sourcefn set_config_msg(&self) -> Option<Box<dyn Msg>>
fn set_config_msg(&self) -> Option<Box<dyn Msg>>
This method gets the preprogrammed set config msg for the contract.
sourcefn set_up_msgs(&self) -> Vec<Box<dyn Msg>>
fn set_up_msgs(&self) -> Vec<Box<dyn Msg>>
This method gets the preprogrammed set up for the contract.
sourcefn external_instantiate_msgs(&self) -> Vec<ExternalInstantiate<Box<dyn Msg>>>
fn external_instantiate_msgs(&self) -> Vec<ExternalInstantiate<Box<dyn Msg>>>
This method will instantiate an external contract via code_id alongside a local contract.