Struct cw_multi_test::WasmKeeper [−][src]
pub struct WasmKeeper<C> { /* fields omitted */ }
Implementations
pub fn query_smart(
&self,
address: Addr,
api: &dyn Api,
storage: &dyn Storage,
querier: &dyn Querier,
block: &BlockInfo,
msg: Vec<u8>
) -> Result<Binary, String>
This just creates an address and empty storage instance, returning the new address You must call init after this to set up the contract properly. These are separated into two steps to have cleaner return values.
pub fn call_execute(
&self,
api: &dyn Api,
storage: &mut dyn Storage,
address: Addr,
router: &Router<C>,
block: &BlockInfo,
info: MessageInfo,
msg: Vec<u8>
) -> Result<Response<C>, String>
pub fn call_instantiate(
&self,
address: Addr,
api: &dyn Api,
storage: &mut dyn Storage,
router: &Router<C>,
block: &BlockInfo,
info: MessageInfo,
msg: Vec<u8>
) -> Result<Response<C>, String>
pub fn call_reply(
&self,
address: Addr,
api: &dyn Api,
storage: &mut dyn Storage,
router: &Router<C>,
block: &BlockInfo,
reply: Reply
) -> Result<Response<C>, String>
pub fn call_sudo(
&self,
address: Addr,
api: &dyn Api,
storage: &mut dyn Storage,
router: &Router<C>,
block: &BlockInfo,
msg: Vec<u8>
) -> Result<Response<C>, String>
pub fn call_migrate(
&self,
address: Addr,
api: &dyn Api,
storage: &mut dyn Storage,
router: &Router<C>,
block: &BlockInfo,
msg: Vec<u8>
) -> Result<Response<C>, String>
pub fn load_contract(
&self,
storage: &dyn Storage,
address: &Addr
) -> Result<ContractData, String>
Trait Implementations
Handles all WasmQuery requests
Handles all WasmMsg messages