Trait WasmInstantiate

Source
pub trait WasmInstantiate {
    type I: Serialize;

    // Required method
    fn init<'life0, 'life1, 'async_trait>(
        &'life0 self,
        instantiate_msg: Self::I,
        admin: Option<String>,
        coins: Option<&'life1 [Coin]>,
    ) -> Pin<Box<dyn Future<Output = Result<CosmTxResponse, CosmScriptError>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Smart Contract instantiate endpoint

Required Associated Types§

Required Methods§

Source

fn init<'life0, 'life1, 'async_trait>( &'life0 self, instantiate_msg: Self::I, admin: Option<String>, coins: Option<&'life1 [Coin]>, ) -> Pin<Box<dyn Future<Output = Result<CosmTxResponse, CosmScriptError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§