Trait cw_multi_test::Executor [−][src]
pub trait Executor<C> where
C: Clone + Debug + PartialEq + JsonSchema + 'static, { fn execute(
&mut self,
sender: Addr,
msg: CosmosMsg<C>
) -> Result<AppResponse, String>; fn instantiate_contract<T: Serialize, U: Into<String>>(
&mut self,
code_id: u64,
sender: Addr,
init_msg: &T,
send_funds: &[Coin],
label: U,
admin: Option<String>
) -> Result<Addr, String> { ... } fn execute_contract<T: Serialize>(
&mut self,
sender: Addr,
contract_addr: Addr,
msg: &T,
send_funds: &[Coin]
) -> Result<AppResponse, String> { ... } fn migrate_contract<T: Serialize>(
&mut self,
sender: Addr,
contract_addr: Addr,
msg: &T,
new_code_id: u64
) -> Result<AppResponse, String> { ... } fn send_tokens(
&mut self,
sender: Addr,
recipient: Addr,
amount: &[Coin]
) -> Result<AppResponse, String> { ... } }
Required methods
Provided methods
Create a contract and get the new address. This is just a helper around execute()
Execute a contract and process all returned messages. This is just a helper around execute()
fn migrate_contract<T: Serialize>(
&mut self,
sender: Addr,
contract_addr: Addr,
msg: &T,
new_code_id: u64
) -> Result<AppResponse, String>
fn migrate_contract<T: Serialize>(
&mut self,
sender: Addr,
contract_addr: Addr,
msg: &T,
new_code_id: u64
) -> Result<AppResponse, String>
Migrate a contract. Sender must be registered admin. This is just a helper around execute()