Struct ckb_types::core::cell::ResolvedTransaction
source · pub struct ResolvedTransaction {
pub transaction: TransactionView,
pub resolved_cell_deps: Vec<CellMeta>,
pub resolved_inputs: Vec<CellMeta>,
pub resolved_dep_groups: Vec<CellMeta>,
}
Expand description
Transaction with resolved input cells.
Fields§
§transaction: TransactionView
TODO(doc): @quake
resolved_cell_deps: Vec<CellMeta>
TODO(doc): @quake
resolved_inputs: Vec<CellMeta>
TODO(doc): @quake
resolved_dep_groups: Vec<CellMeta>
TODO(doc): @quake
Implementations§
source§impl ResolvedTransaction
impl ResolvedTransaction
sourcepub fn dummy_resolve(tx: TransactionView) -> Self
pub fn dummy_resolve(tx: TransactionView) -> Self
Construct ResolvedTransaction
from TransactionView
without actually performing resolve
sourcepub fn is_cellbase(&self) -> bool
pub fn is_cellbase(&self) -> bool
TODO(doc): @quake
sourcepub fn inputs_capacity(&self) -> CapacityResult<Capacity>
pub fn inputs_capacity(&self) -> CapacityResult<Capacity>
TODO(doc): @quake
sourcepub fn outputs_capacity(&self) -> CapacityResult<Capacity>
pub fn outputs_capacity(&self) -> CapacityResult<Capacity>
TODO(doc): @quake
TODO(doc): @quake
sourcepub fn check<CC: CellChecker, HC: HeaderChecker, S: BuildHasher>(
&self,
seen_inputs: &mut HashSet<OutPoint, S>,
cell_checker: &CC,
header_checker: &HC
) -> Result<(), OutPointError>
pub fn check<CC: CellChecker, HC: HeaderChecker, S: BuildHasher>( &self, seen_inputs: &mut HashSet<OutPoint, S>, cell_checker: &CC, header_checker: &HC ) -> Result<(), OutPointError>
Check if all inputs and deps are still valid
Trait Implementations§
source§impl Clone for ResolvedTransaction
impl Clone for ResolvedTransaction
source§fn clone(&self) -> ResolvedTransaction
fn clone(&self) -> ResolvedTransaction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResolvedTransaction
impl Debug for ResolvedTransaction
source§impl Hash for ResolvedTransaction
impl Hash for ResolvedTransaction
source§impl PartialEq for ResolvedTransaction
impl PartialEq for ResolvedTransaction
source§fn eq(&self, other: &ResolvedTransaction) -> bool
fn eq(&self, other: &ResolvedTransaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ResolvedTransaction
Auto Trait Implementations§
impl RefUnwindSafe for ResolvedTransaction
impl Send for ResolvedTransaction
impl Sync for ResolvedTransaction
impl Unpin for ResolvedTransaction
impl UnwindSafe for ResolvedTransaction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more