[−][src]Struct cw_multi_test::WasmRouter
Implementations
impl WasmRouter[src]
pub fn new(
api: Box<dyn Api>,
block: BlockInfo,
storage_factory: fn() -> Box<dyn Storage>
) -> Self[src]
api: Box<dyn Api>,
block: BlockInfo,
storage_factory: fn() -> Box<dyn Storage>
) -> Self
pub fn set_block(&mut self, block: BlockInfo)[src]
pub fn update_block<F: Fn(&mut BlockInfo)>(&mut self, action: F)[src]
pub fn block_info(&self) -> BlockInfo[src]
Returns a copy of the current block_info
pub fn store_code(&mut self, code: Box<dyn Contract>) -> usize[src]
pub fn cache(&self) -> WasmCache<'_>[src]
pub fn query(
&self,
querier: &dyn Querier,
request: WasmQuery
) -> Result<Binary, String>[src]
&self,
querier: &dyn Querier,
request: WasmQuery
) -> Result<Binary, String>
pub fn query_smart(
&self,
address: HumanAddr,
querier: &dyn Querier,
msg: Vec<u8>
) -> Result<Binary, String>[src]
&self,
address: HumanAddr,
querier: &dyn Querier,
msg: Vec<u8>
) -> Result<Binary, String>
pub fn query_raw(
&self,
address: HumanAddr,
key: &[u8]
) -> Result<Binary, String>[src]
&self,
address: HumanAddr,
key: &[u8]
) -> Result<Binary, String>
Auto Trait Implementations
impl !RefUnwindSafe for WasmRouter[src]
impl !Send for WasmRouter[src]
impl !Sync for WasmRouter[src]
impl Unpin for WasmRouter[src]
impl !UnwindSafe for WasmRouter[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,