[][src]Trait ckb_indexer::IndexerStore

pub trait IndexerStore: Sync + Send {
    fn get_live_cells(
        &self,
        lock_hash: &Byte32,
        skip_num: usize,
        take_num: usize,
        reverse_order: bool
    ) -> Vec<LiveCell>;
fn get_transactions(
        &self,
        lock_hash: &Byte32,
        skip_num: usize,
        take_num: usize,
        reverse_order: bool
    ) -> Vec<CellTransaction>;
fn get_capacity(&self, lock_hash: &Byte32) -> Option<LockHashCapacity>;
fn get_lock_hash_index_states(&self) -> HashMap<Byte32, LockHashIndexState>;
fn insert_lock_hash(
        &self,
        lock_hash: &Byte32,
        index_from: Option<BlockNumber>
    ) -> LockHashIndexState;
fn remove_lock_hash(&self, lock_hash: &Byte32); }

Required methods

fn get_live_cells(
    &self,
    lock_hash: &Byte32,
    skip_num: usize,
    take_num: usize,
    reverse_order: bool
) -> Vec<LiveCell>

fn get_transactions(
    &self,
    lock_hash: &Byte32,
    skip_num: usize,
    take_num: usize,
    reverse_order: bool
) -> Vec<CellTransaction>

fn get_capacity(&self, lock_hash: &Byte32) -> Option<LockHashCapacity>

fn get_lock_hash_index_states(&self) -> HashMap<Byte32, LockHashIndexState>

fn insert_lock_hash(
    &self,
    lock_hash: &Byte32,
    index_from: Option<BlockNumber>
) -> LockHashIndexState

fn remove_lock_hash(&self, lock_hash: &Byte32)

Loading content...

Implementors

impl IndexerStore for DefaultIndexerStore[src]

Loading content...