Trait wasm_deploy::contract::ContractInteractive
source · pub trait ContractInteractive: Send + Sync + Debug + Display + FromStr<Err = ParseError> + IntoEnumIterator + 'static {
// Required method
fn admin(&self) -> String;
// Provided methods
fn name(&self) -> String { ... }
fn bin_name(&self) -> String { ... }
fn path(&self) -> PathBuf { ... }
fn instantiate(&self) -> Result<Box<dyn Msg>> { ... }
fn execute(&self) -> Result<Box<dyn Msg>> { ... }
fn query(&self) -> Result<Box<dyn Msg>> { ... }
fn migrate(&self) -> Result<Box<dyn Msg>> { ... }
fn cw20_send(&self) -> Result<Box<dyn Msg>> { ... }
}Required Methods§
Provided Methods§
sourcefn name(&self) -> String
fn name(&self) -> String
This is the name of the contract and represents how it will appear in the cli.
sourcefn bin_name(&self) -> String
fn bin_name(&self) -> String
This is the name of the generated binary. It defaults to the contract name. If you have multiple contracts that share the same code then you can use this, in conjunction with the path method.
sourcefn path(&self) -> PathBuf
fn path(&self) -> PathBuf
This method allows for customizing the path to the contract. This should be the path relative to the project root.
sourcefn instantiate(&self) -> Result<Box<dyn Msg>>
fn instantiate(&self) -> Result<Box<dyn Msg>>
This method allows instantiating a contract interactively. interactive-parse should be used to generate the msg.
sourcefn execute(&self) -> Result<Box<dyn Msg>>
fn execute(&self) -> Result<Box<dyn Msg>>
This method allows executing a contract interactively. interactive-parse should be used to generate the msg.
sourcefn query(&self) -> Result<Box<dyn Msg>>
fn query(&self) -> Result<Box<dyn Msg>>
This method allows querying a contract interactively. interactive-parse should be used to generate the msg.