ckb_mock_tx_types

Trait MockResourceLoader

Source
pub trait MockResourceLoader {
    // Required methods
    fn get_header(&mut self, hash: H256) -> Result<Option<HeaderView>, String>;
    fn get_live_cell(
        &mut self,
        out_point: OutPoint,
    ) -> Result<Option<(CellOutput, Bytes, Option<Byte32>)>, String>;
}
Expand description

The trait defines methods for loading headers and live cells.

Required Methods§

Source

fn get_header(&mut self, hash: H256) -> Result<Option<HeaderView>, String>

Source

fn get_live_cell( &mut self, out_point: OutPoint, ) -> Result<Option<(CellOutput, Bytes, Option<Byte32>)>, String>

Implementors§