pub struct ExecutableTransaction { /* private fields */ }
Expand description
This is an executable form of the transaction, post stateless validation.
An &ExecutableTransaction
is used to execute in the engine.
Implementations§
Source§impl ExecutableTransaction
impl ExecutableTransaction
pub fn new_v1( encoded_instructions_v1: Vec<u8>, auth_zone_init: AuthZoneInit, references: IndexSet<Reference>, blobs: IndexMap<Hash, Vec<u8>>, context: ExecutionContext, ) -> Self
pub fn new_v2( transaction_intent: ExecutableIntent, subintents: Vec<ExecutableIntent>, context: ExecutionContext, ) -> Self
pub fn skip_epoch_range_check(self) -> Self
pub fn skip_intent_hash_nullification(self) -> Self
pub fn apply_free_credit(self, free_credit_in_xrd: Decimal) -> Self
pub fn unique_hash(&self) -> &Hash
pub fn overall_epoch_range(&self) -> Option<&EpochRange>
pub fn overall_proposer_timestamp_range( &self, ) -> Option<&ProposerTimestampRange>
pub fn costing_parameters(&self) -> &TransactionCostingParameters
pub fn pre_allocated_addresses(&self) -> &[PreAllocatedAddress]
pub fn payload_size(&self) -> usize
pub fn num_of_signature_validations(&self) -> usize
pub fn disable_limits_and_costing_modules(&self) -> bool
pub fn transaction_intent(&self) -> &ExecutableIntent
pub fn subintents(&self) -> &[ExecutableIntent]
pub fn all_intents(&self) -> impl Iterator<Item = &ExecutableIntent>
pub fn intent_hash_nullifications(&self) -> &[IntentHashNullification]
pub fn all_blob_hashes(&self) -> IndexSet<Hash>
pub fn all_references(&self) -> IndexSet<Reference>
Trait Implementations§
Source§impl AsRef<ExecutableTransaction> for ExecutableTransaction
impl AsRef<ExecutableTransaction> for ExecutableTransaction
Source§fn as_ref(&self) -> &ExecutableTransaction
fn as_ref(&self) -> &ExecutableTransaction
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ExecutableTransaction
impl Clone for ExecutableTransaction
Source§fn clone(&self) -> ExecutableTransaction
fn clone(&self) -> ExecutableTransaction
Returns a duplicate 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 ExecutableTransaction
impl Debug for ExecutableTransaction
Source§impl IntoExecutable for ExecutableTransaction
impl IntoExecutable for ExecutableTransaction
type Error = Infallible
fn into_executable( self, _validator: &TransactionValidator, ) -> Result<ExecutableTransaction, Self::Error>
Source§fn into_executable_unwrap(self) -> ExecutableTransactionwhere
Self: Sized,
fn into_executable_unwrap(self) -> ExecutableTransactionwhere
Self: Sized,
For use in tests as a quick mechanism to get an executable.
Validates with a network-independent validator, using the latest settings.
Source§impl PartialEq for ExecutableTransaction
impl PartialEq for ExecutableTransaction
impl Eq for ExecutableTransaction
impl StructuralPartialEq for ExecutableTransaction
Auto Trait Implementations§
impl Freeze for ExecutableTransaction
impl RefUnwindSafe for ExecutableTransaction
impl Send for ExecutableTransaction
impl Sync for ExecutableTransaction
impl Unpin for ExecutableTransaction
impl UnwindSafe for ExecutableTransaction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.