Trait gemachain_banks_interface::Banks[][src]

pub trait Banks: Sized {
    type SendTransactionWithContextFut: Future<Output = ()>;
    type GetFeesWithCommitmentAndContextFut: Future<Output = (FeeCalculator, Hash, Slot)>;
    type GetTransactionStatusWithContextFut: Future<Output = Option<TransactionStatus>>;
    type GetSlotWithContextFut: Future<Output = Slot>;
    type GetBlockHeightWithContextFut: Future<Output = u64>;
    type ProcessTransactionWithCommitmentAndContextFut: Future<Output = Option<Result<()>>>;
    type GetAccountWithCommitmentAndContextFut: Future<Output = Option<Account>>;
    fn send_transaction_with_context(
        self,
        context: Context,
        transaction: Transaction
    ) -> Self::SendTransactionWithContextFut;
fn get_fees_with_commitment_and_context(
        self,
        context: Context,
        commitment: CommitmentLevel
    ) -> Self::GetFeesWithCommitmentAndContextFut;
fn get_transaction_status_with_context(
        self,
        context: Context,
        signature: Signature
    ) -> Self::GetTransactionStatusWithContextFut;
fn get_slot_with_context(
        self,
        context: Context,
        commitment: CommitmentLevel
    ) -> Self::GetSlotWithContextFut;
fn get_block_height_with_context(
        self,
        context: Context,
        commitment: CommitmentLevel
    ) -> Self::GetBlockHeightWithContextFut;
fn process_transaction_with_commitment_and_context(
        self,
        context: Context,
        transaction: Transaction,
        commitment: CommitmentLevel
    ) -> Self::ProcessTransactionWithCommitmentAndContextFut;
fn get_account_with_commitment_and_context(
        self,
        context: Context,
        address: Pubkey,
        commitment: CommitmentLevel
    ) -> Self::GetAccountWithCommitmentAndContextFut; fn serve(self) -> ServeBanks<Self> { ... } }

Associated Types

The response future returned by send_transaction_with_context.

The response future returned by get_fees_with_commitment_and_context.

The response future returned by get_transaction_status_with_context.

The response future returned by get_slot_with_context.

The response future returned by get_block_height_with_context.

The response future returned by process_transaction_with_commitment_and_context.

The response future returned by get_account_with_commitment_and_context.

Required methods

Provided methods

Returns a serving function to use with InFlightRequest::execute.

Implementors