pub struct L1TxCommonData {
pub sender: Address,
pub serial_id: u64,
pub layer_2_tip_fee: U256,
pub full_fee: U256,
pub max_fee_per_gas: U256,
pub gas_limit: U256,
pub gas_per_pubdata_limit: U256,
pub op_processing_type: OpProcessingType,
pub priority_queue_type: PriorityQueueType,
pub canonical_tx_hash: B256,
pub to_mint: U256,
pub refund_recipient: Address,
}Fields§
§sender: AddressSender of the transaction.
serial_id: u64Unique ID of the priority operation.
layer_2_tip_fee: U256Additional payment to the operator as an incentive to perform the operation. The contract uses a value of 192 bits.
full_fee: U256The total cost the sender paid for the transaction.
max_fee_per_gas: U256The maximal fee per gas to be used for L1->L2 transaction
gas_limit: U256The maximum number of gas that a transaction can spend at a price of gas equals 1.
gas_per_pubdata_limit: U256The maximum number of gas per 1 byte of pubdata.
op_processing_type: OpProcessingTypeIndicator that the operation can interact with Rollup and Porter trees, or only with Rollup.
priority_queue_type: PriorityQueueTypePriority operations queue type.
canonical_tx_hash: B256Tx hash of the transaction in the ZKsync network. Calculated as the encoded transaction data hash.
to_mint: U256The amount of ETH that should be minted with this transaction
refund_recipient: AddressThe recipient of the refund of the transaction
Trait Implementations§
Source§impl Clone for L1TxCommonData
impl Clone for L1TxCommonData
Source§fn clone(&self) -> L1TxCommonData
fn clone(&self) -> L1TxCommonData
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 L1TxCommonData
impl Debug for L1TxCommonData
Source§impl<'de> Deserialize<'de> for L1TxCommonData
impl<'de> Deserialize<'de> for L1TxCommonData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for L1TxCommonData
impl PartialEq for L1TxCommonData
Source§impl Serialize for L1TxCommonData
impl Serialize for L1TxCommonData
impl StructuralPartialEq for L1TxCommonData
Auto Trait Implementations§
impl Freeze for L1TxCommonData
impl RefUnwindSafe for L1TxCommonData
impl Send for L1TxCommonData
impl Sync for L1TxCommonData
impl Unpin for L1TxCommonData
impl UnwindSafe for L1TxCommonData
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<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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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