Skip to main content

VersionedTransactionOps

Trait VersionedTransactionOps 

Source
pub trait VersionedTransactionOps {
    // Required methods
    fn encode_b64_transaction(&self) -> Result<String, KoraError>;
    fn find_signer_position(
        &self,
        signer_pubkey: &Pubkey,
    ) -> Result<usize, KoraError>;
    fn sign_transaction<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        signer: &'life1 Arc<Signer>,
        rpc_client: &'life2 RpcClient,
    ) -> Pin<Box<dyn Future<Output = Result<(VersionedTransaction, String), KoraError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn sign_and_send_transaction<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        signer: &'life1 Arc<Signer>,
        rpc_client: &'life2 RpcClient,
    ) -> Pin<Box<dyn Future<Output = Result<(String, String), KoraError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn encode_b64_transaction(&self) -> Result<String, KoraError>

Source

fn find_signer_position( &self, signer_pubkey: &Pubkey, ) -> Result<usize, KoraError>

Source

fn sign_transaction<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, signer: &'life1 Arc<Signer>, rpc_client: &'life2 RpcClient, ) -> Pin<Box<dyn Future<Output = Result<(VersionedTransaction, String), KoraError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn sign_and_send_transaction<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, signer: &'life1 Arc<Signer>, rpc_client: &'life2 RpcClient, ) -> Pin<Box<dyn Future<Output = Result<(String, String), KoraError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§