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§
Sourcefn 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 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
Sourcefn 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_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
Sourcefn 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_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