[][src]Trait ckb_indexer::IndexerStore

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

Required methods

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

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

pub fn get_capacity(&self, lock_hash: &Byte32) -> Option<LockHashCapacity>[src]

pub fn get_lock_hash_index_states(&self) -> HashMap<Byte32, LockHashIndexState>[src]

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

pub fn remove_lock_hash(&self, lock_hash: &Byte32)[src]

Loading content...

Implementors

impl IndexerStore for DefaultIndexerStore[src]

Loading content...