Struct ckb_sdk::MockTransaction [−][src]
pub struct MockTransaction {
pub mock_info: MockInfo,
pub tx: Transaction,
}
Expand description
A wrapper transaction with mock inputs and deps
Fields
mock_info: MockInfo
tx: Transaction
Implementations
pub fn get_input_cell<F>(
&self,
input: &CellInput,
live_cell_getter: F
) -> Result<Option<(CellOutput, Bytes, H256)>, String> where
F: FnMut(OutPoint) -> Result<Option<(CellOutput, Bytes, H256)>, String>,
pub fn get_dep_cell<F>(
&self,
out_point: &OutPoint,
live_cell_getter: F
) -> Result<Option<(CellOutput, Bytes, H256)>, String> where
F: FnMut(OutPoint) -> Result<Option<(CellOutput, Bytes, H256)>, String>,
pub fn get_header<F>(
&self,
block_hash: &H256,
header_getter: F
) -> Result<Option<HeaderView>, String> where
F: FnMut(H256) -> Result<Option<HeaderView>, String>,
Generate the core transaction
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for MockTransaction
impl Send for MockTransaction
impl Sync for MockTransaction
impl Unpin for MockTransaction
impl UnwindSafe for MockTransaction
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more