Trait ckb_traits::CellDataProvider [−][src]
pub trait CellDataProvider {
fn get_cell_data(&self, out_point: &OutPoint) -> Option<Bytes>;
fn get_cell_data_hash(&self, out_point: &OutPoint) -> Option<Byte32>;
fn load_cell_data(&self, cell: &CellMeta) -> Option<Bytes> { ... }
fn load_cell_data_hash(&self, cell: &CellMeta) -> Option<Byte32> { ... }
}
Expand description
TODO(doc): @quake
Required methods
fn get_cell_data(&self, out_point: &OutPoint) -> Option<Bytes>
fn get_cell_data(&self, out_point: &OutPoint) -> Option<Bytes>
fetch cell_data from storage
fn get_cell_data_hash(&self, out_point: &OutPoint) -> Option<Byte32>
fn get_cell_data_hash(&self, out_point: &OutPoint) -> Option<Byte32>
fetch cell_data_hash from storage
Provided methods
fn load_cell_data(&self, cell: &CellMeta) -> Option<Bytes>
fn load_cell_data(&self, cell: &CellMeta) -> Option<Bytes>
load cell_data from memory, fallback to storage access
fn load_cell_data_hash(&self, cell: &CellMeta) -> Option<Byte32>
fn load_cell_data_hash(&self, cell: &CellMeta) -> Option<Byte32>
load cell_data_hash from memory, fallback to storage access