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§

source

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,

Instantiate a contract according to the given call.

source

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,

Perform the given mutating call.

Provided Methods§

source

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,

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.

Implementations on Foreign Types§

source§

impl SignedConnection<TxInfo, Error> for SignedConnection

source§

fn instantiate_tx<'life0, 'async_trait, T>( &'life0 self, call: InstantiateCall<T> ) -> Pin<Box<dyn Future<Output = Result<(T, TxInfo)>> + Send + 'async_trait>>
where T: 'async_trait + Send + From<AccountId>, Self: 'async_trait, 'life0: 'async_trait,

source§

fn exec<'life0, 'async_trait>( &'life0 self, call: ExecCall ) -> Pin<Box<dyn Future<Output = Result<TxInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§