Trait SubstrateService

Source
pub trait SubstrateService {
    // Required methods
    fn get_account<'async_trait>(
        self: Arc<Self>,
        account_type: AccountType,
    ) -> Pin<Box<dyn Future<Output = Result<GetAccountResponse>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn sign_transaction<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        self: Arc<Self>,
        account_type: AccountType,
        account_path: &'life0 str,
        extrinsic_data: &'life1 [u8],
        extrinsic_metadata: &'life2 [u8],
        extrinsic_types: &'life3 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}

Required Methods§

Source

fn get_account<'async_trait>( self: Arc<Self>, account_type: AccountType, ) -> Pin<Box<dyn Future<Output = Result<GetAccountResponse>> + Send + 'async_trait>>
where Self: 'async_trait,

Source

fn sign_transaction<'life0, 'life1, 'life2, 'life3, 'async_trait>( self: Arc<Self>, account_type: AccountType, account_path: &'life0 str, extrinsic_data: &'life1 [u8], extrinsic_metadata: &'life2 [u8], extrinsic_types: &'life3 [u8], ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§