pub struct TypedTx {
pub tx_hash: TxHash,
pub data: PrivateKernelTailPublicInputs,
pub chonk_proof: ChonkProof,
pub contract_class_log_fields: Vec<ContractClassLogFields>,
pub public_function_calldata: Vec<HashedValues>,
}Expand description
A typed transaction with parsed public inputs, for validation and inspection.
This carries the same wire data as Tx but with the kernel public inputs
deserialized into proper types for programmatic access and validation.
Fields§
§tx_hash: TxHashTransaction hash computed from public inputs.
data: PrivateKernelTailPublicInputsTyped private kernel tail circuit public inputs.
chonk_proof: ChonkProofChonk proof.
contract_class_log_fields: Vec<ContractClassLogFields>Contract class log preimage fields.
public_function_calldata: Vec<HashedValues>Calldata preimages for enqueued public calls.
Implementations§
Source§impl TypedTx
impl TypedTx
Sourcepub fn number_of_public_calls(&self) -> usize
pub fn number_of_public_calls(&self) -> usize
Number of enqueued public calls in this transaction.
Sourcepub fn get_total_public_calldata_count(&self) -> usize
pub fn get_total_public_calldata_count(&self) -> usize
Total calldata field count across all public calls.
Sourcepub fn get_public_call_requests_with_calldata(
&self,
) -> Vec<(&PublicCallRequest, &HashedValues)>
pub fn get_public_call_requests_with_calldata( &self, ) -> Vec<(&PublicCallRequest, &HashedValues)>
Get all public call requests paired with their calldata.
Trait Implementations§
impl Eq for TypedTx
impl StructuralPartialEq for TypedTx
Auto Trait Implementations§
impl Freeze for TypedTx
impl RefUnwindSafe for TypedTx
impl Send for TypedTx
impl Sync for TypedTx
impl Unpin for TypedTx
impl UnwindSafe for TypedTx
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more