Struct osmosis_test_tube::Wasm
source · pub struct Wasm<'a, R>where
R: Runner<'a>,{ /* private fields */ }
Implementations§
source§impl<'a, R> Wasm<'a, R>where
R: Runner<'a>,
impl<'a, R> Wasm<'a, R>where
R: Runner<'a>,
pub fn store_code( &self, wasm_byte_code: &[u8], instantiate_permission: Option<AccessConfig>, signer: &SigningAccount ) -> Result<ExecuteResponse<MsgStoreCodeResponse>, RunnerError>
pub fn instantiate<M>( &self, code_id: u64, msg: &M, admin: Option<&str>, label: Option<&str>, funds: &[Coin], signer: &SigningAccount ) -> Result<ExecuteResponse<MsgInstantiateContractResponse>, RunnerError>
pub fn execute<M>( &self, contract: &str, msg: &M, funds: &[Coin], signer: &SigningAccount ) -> Result<ExecuteResponse<MsgExecuteContractResponse>, RunnerError>
pub fn query<M, Res>(&self, contract: &str, msg: &M) -> Result<Res, RunnerError>
Trait Implementations§
Auto Trait Implementations§
impl<'a, R> RefUnwindSafe for Wasm<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for Wasm<'a, R>where
R: Sync,
impl<'a, R> Sync for Wasm<'a, R>where
R: Sync,
impl<'a, R> Unpin for Wasm<'a, R>
impl<'a, R> UnwindSafe for Wasm<'a, R>where
R: RefUnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more