Trait CdpServiceTrait

Source
pub trait CdpServiceTrait: Send + Sync {
    // Required methods
    fn account_address<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Address, CdpError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sign_evm_message<'life0, 'async_trait>(
        &'life0 self,
        message: String,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CdpError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sign_evm_transaction<'life0, 'life1, 'async_trait>(
        &'life0 self,
        message: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CdpError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn sign_solana_message<'life0, 'life1, 'async_trait>(
        &'life0 self,
        message: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CdpError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn sign_solana_transaction<'life0, 'async_trait>(
        &'life0 self,
        message: String,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CdpError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn account_address<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Address, CdpError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the EVM or Solana address for the configured account

Source

fn sign_evm_message<'life0, 'async_trait>( &'life0 self, message: String, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CdpError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Signs a message using the EVM signing scheme

Source

fn sign_evm_transaction<'life0, 'life1, 'async_trait>( &'life0 self, message: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CdpError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Signs an EVM transaction using the CDP API

Source

fn sign_solana_message<'life0, 'life1, 'async_trait>( &'life0 self, message: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CdpError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Signs a message using Solana signing scheme

Source

fn sign_solana_transaction<'life0, 'async_trait>( &'life0 self, message: String, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CdpError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Signs a transaction using Solana signing scheme

Implementors§