pub struct Wasm<'a, 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, ) -> RunnerExecuteResult<MsgStoreCodeResponse>
pub fn instantiate<M>( &self, code_id: u64, msg: &M, admin: Option<&str>, label: Option<&str>, funds: &[Coin], signer: &SigningAccount, ) -> RunnerExecuteResult<MsgInstantiateContractResponse>
pub fn execute<M>( &self, contract: &str, msg: &M, funds: &[Coin], signer: &SigningAccount, ) -> RunnerExecuteResult<MsgExecuteContractResponse>
pub fn query<M, Res>(&self, contract: &str, msg: &M) -> RunnerResult<Res>
Trait Implementations§
Auto Trait Implementations§
impl<'a, R> Freeze for Wasm<'a, R>
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§
Source§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