Trait TopLevelAccountCreator

Source
pub trait TopLevelAccountCreator {
    // Required methods
    fn create_tla<'life0, 'async_trait>(
        &'life0 self,
        worker: Worker<dyn Network>,
        id: AccountId,
        sk: SecretKey,
    ) -> Pin<Box<dyn Future<Output = Result<Execution<Account>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_tla_and_deploy<'life0, 'life1, 'async_trait>(
        &'life0 self,
        worker: Worker<dyn Network>,
        id: AccountId,
        sk: SecretKey,
        wasm: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Execution<Contract>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

tla - stands for “top level account”

Required Methods§

Source

fn create_tla<'life0, 'async_trait>( &'life0 self, worker: Worker<dyn Network>, id: AccountId, sk: SecretKey, ) -> Pin<Box<dyn Future<Output = Result<Execution<Account>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_tla_and_deploy<'life0, 'life1, 'async_trait>( &'life0 self, worker: Worker<dyn Network>, id: AccountId, sk: SecretKey, wasm: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<Execution<Contract>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§