Struct cosmos_client::client::wasm::WasmModule
source · pub struct WasmModule { /* private fields */ }Implementations§
source§impl WasmModule
impl WasmModule
pub fn new(rpc: Rc<HttpClient>) -> Self
pub async fn contract_info( &self, address: &str ) -> Result<QueryContractInfoResponse, CosmosClientError>
pub async fn contract_history( &self, address: &str, pagination: Option<PageRequest> ) -> Result<QueryContractHistoryResponse, CosmosClientError>
pub async fn contracts_by_code( &self, code_id: u64, pagination: Option<PageRequest> ) -> Result<QueryContractsByCodeResponse, CosmosClientError>
pub async fn all_contract_state( &self, address: &str, pagination: Option<PageRequest> ) -> Result<QueryAllContractStateResponse, CosmosClientError>
pub async fn raw_contract_state( &self, address: &str, query_data: Vec<u8> ) -> Result<QueryRawContractStateResponse, CosmosClientError>
pub async fn smart_contract_state<T: Serialize + Clone, U: DeserializeOwned>( &self, address: &str, msg: T ) -> Result<U, CosmosClientError>
pub async fn code( &self, code_id: u64 ) -> Result<QueryCodeResponse, CosmosClientError>
pub async fn codes( &self, pagination: Option<PageRequest> ) -> Result<QueryCodesResponse, CosmosClientError>
pub async fn pinned_codes( &self, pagination: Option<PageRequest> ) -> Result<QueryPinnedCodesResponse, CosmosClientError>
Auto Trait Implementations§
impl !RefUnwindSafe for WasmModule
impl !Send for WasmModule
impl !Sync for WasmModule
impl Unpin for WasmModule
impl !UnwindSafe for WasmModule
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request