Struct solana_storage_bigtable::LedgerStorage[][src]

pub struct LedgerStorage { /* fields omitted */ }

Implementations

impl LedgerStorage[src]

pub async fn new(read_only: bool, timeout: Option<Duration>) -> Result<Self>[src]

pub async fn get_first_available_block(&self) -> Result<Option<Slot>>[src]

Return the available slot that contains a block

pub async fn get_confirmed_blocks(
    &self,
    start_slot: Slot,
    limit: usize
) -> Result<Vec<Slot>>
[src]

Fetch the next slots after the provided slot that contains a block

start_slot: slot to start the search from (inclusive) limit: stop after this many slots have been found; if limit==0, all records in the table after start_slot will be read

pub async fn get_confirmed_block(&self, slot: Slot) -> Result<ConfirmedBlock>[src]

Fetch the confirmed block from the desired slot

pub async fn get_confirmed_block_hash(&self, slot: Slot) -> Result<String>[src]

Fetch the confirmed block from the desired slot

pub async fn get_signature_status(
    &self,
    signature: &Signature
) -> Result<TransactionStatus>
[src]

pub async fn get_confirmed_transaction(
    &self,
    signature: &Signature
) -> Result<Option<ConfirmedTransaction>>
[src]

Fetch a confirmed transaction

pub async fn get_confirmed_signatures_for_address(
    &self,
    address: &Pubkey,
    before_signature: Option<&Signature>,
    until_signature: Option<&Signature>,
    limit: usize
) -> Result<Vec<(ConfirmedTransactionStatusWithSignature, u32)>>
[src]

Get confirmed signatures for the provided address, in descending ledger order

address: address to search for before_signature: start with the first signature older than this one until_signature: end with the last signature more recent than this one limit: stop after this many signatures; if limit==0, all records in the table will be read

pub async fn upload_confirmed_block(
    &self,
    slot: Slot,
    confirmed_block: ConfirmedBlock
) -> Result<()>
[src]

pub async fn get_evm_first_available_block(&self) -> Result<Option<BlockNum>>[src]

Return the available slot that contains a block

pub async fn get_evm_confirmed_blocks(
    &self,
    start_block: BlockNum,
    limit: usize
) -> Result<Vec<BlockNum>>
[src]

Fetch the next slots after the provided slot that contains a block

start_slot: slot to start the search from (inclusive) limit: stop after this many slots have been found; if limit==0, all records in the table after start_slot will be read

pub async fn get_evm_block_by_hash(&self, block_hash: H256) -> Result<BlockNum>[src]

pub async fn get_evm_confirmed_block_header(
    &self,
    block_num: BlockNum
) -> Result<BlockHeader>
[src]

Fetch the confirmed block from the desired slot

pub async fn get_evm_confirmed_full_block(
    &self,
    block_num: BlockNum
) -> Result<Block>
[src]

pub async fn get_evm_confirmed_receipt(
    &self,
    hash: &H256
) -> Result<Option<TransactionReceipt>>
[src]

Fetch a confirmed transaction

pub async fn upload_evm_block(
    &self,
    block_num: BlockNum,
    full_block: Block
) -> Result<()>
[src]

Trait Implementations

impl Clone for LedgerStorage[src]

Auto Trait Implementations

impl !RefUnwindSafe for LedgerStorage

impl Send for LedgerStorage

impl Sync for LedgerStorage

impl Unpin for LedgerStorage

impl !UnwindSafe for LedgerStorage

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]