[][src]Trait ckb_traits::CellDataProvider

pub trait CellDataProvider {
    pub fn get_cell_data(&self, out_point: &OutPoint) -> Option<Bytes>;
pub fn get_cell_data_hash(&self, out_point: &OutPoint) -> Option<Byte32>; pub fn load_cell_data(&self, cell: &CellMeta) -> Option<Bytes> { ... }
pub fn load_cell_data_hash(&self, cell: &CellMeta) -> Option<Byte32> { ... } }

TODO(doc): @quake

Required methods

pub fn get_cell_data(&self, out_point: &OutPoint) -> Option<Bytes>[src]

fetch cell_data from storage

pub fn get_cell_data_hash(&self, out_point: &OutPoint) -> Option<Byte32>[src]

fetch cell_data_hash from storage

Loading content...

Provided methods

pub fn load_cell_data(&self, cell: &CellMeta) -> Option<Bytes>[src]

load cell_data from memory, fallback to storage access

pub fn load_cell_data_hash(&self, cell: &CellMeta) -> Option<Byte32>[src]

load cell_data_hash from memory, fallback to storage access

Loading content...

Implementors

Loading content...