Trait ink_wrapper_types::SignedConnection
source · pub trait SignedConnection<TxInfo, E>: Sync {
// Required methods
fn instantiate_tx<'life0, 'async_trait, T>(
&'life0 self,
call: InstantiateCall<T>
) -> Pin<Box<dyn Future<Output = Result<(T, TxInfo), E>> + Send + 'async_trait>>
where T: 'async_trait + Send + From<AccountId>,
Self: 'async_trait,
'life0: 'async_trait;
fn exec<'life0, 'async_trait>(
&'life0 self,
call: ExecCall
) -> Pin<Box<dyn Future<Output = Result<TxInfo, E>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn instantiate<'life0, 'async_trait, T>(
&'life0 self,
call: InstantiateCall<T>
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait>>
where T: 'async_trait + Send + From<AccountId>,
Self: 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
A connection with the ability to invoke mutating operations - constructor and mutating methods.
Required Methods§
sourcefn instantiate_tx<'life0, 'async_trait, T>(
&'life0 self,
call: InstantiateCall<T>
) -> Pin<Box<dyn Future<Output = Result<(T, TxInfo), E>> + Send + 'async_trait>>
fn instantiate_tx<'life0, 'async_trait, T>( &'life0 self, call: InstantiateCall<T> ) -> Pin<Box<dyn Future<Output = Result<(T, TxInfo), E>> + Send + 'async_trait>>
Instantiate a contract according to the given call
.
Provided Methods§
sourcefn instantiate<'life0, 'async_trait, T>(
&'life0 self,
call: InstantiateCall<T>
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait>>
fn instantiate<'life0, 'async_trait, T>( &'life0 self, call: InstantiateCall<T> ) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait>>
A convenience method that unpacks the result of instantiate_tx
if you’re not interested in the TxInfo
.
Object Safety§
This trait is not object safe.