pub trait UploadConnection<TxInfo, E>: Sync {
    // Provided method
    fn upload<'life0, 'async_trait>(
        &'life0 self,
        _call: UploadCall
    ) -> Pin<Box<dyn Future<Output = Result<TxInfo, E>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

A connection with the ability to upload WASM code to the chain.

Provided Methods§

source

fn upload<'life0, 'async_trait>( &'life0 self, _call: UploadCall ) -> Pin<Box<dyn Future<Output = Result<TxInfo, E>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Upload the given WASM code to the chain.

Implementation is optional, the default calls unimplemented!(). The implementor SHOULD verify that the code hash resulting from the upload is equal to the given code_hash.

Implementations on Foreign Types§

source§

impl UploadConnection<TxInfo, Error> for SignedConnection

source§

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

Implementors§