Trait wasm_deploy::contract::Contract
source · pub trait Contract: Send + Sync + Debug + From<String> + IntoEnumIterator + Display + Clone + 'static {
type ExecuteMsg: Execute;
type QueryMsg: Query;
type Cw20HookMsg: Cw20Hook;
// Required methods
fn name(&self) -> String;
fn admin(&self) -> String;
fn instantiate_msg(&self) -> Result<Value, DeployError>;
fn migrate_msg(&self) -> Result<Option<Value>, DeployError>;
fn external_instantiate_msgs(
&self
) -> Result<Vec<ExternalInstantiate>, DeployError>;
fn config_msg(&self) -> Result<Option<Value>, DeployError>;
fn set_up_msgs(&self) -> Result<Vec<Value>, DeployError>;
}