pub struct ProtocolUpgradeTxCommonData {
pub sender: Address,
pub upgrade_id: String,
pub max_fee_per_gas: U256,
pub gas_limit: U256,
pub gas_per_pubdata_limit: U256,
pub eth_block: u64,
pub canonical_tx_hash: B256,
pub to_mint: U256,
pub refund_recipient: Address,
}Fields§
§sender: AddressSender of the transaction.
upgrade_id: StringID of the upgrade.
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.
eth_block: u64Block in which Ethereum transaction was included.
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 ProtocolUpgradeTxCommonData
impl Clone for ProtocolUpgradeTxCommonData
Source§fn clone(&self) -> ProtocolUpgradeTxCommonData
fn clone(&self) -> ProtocolUpgradeTxCommonData
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 ProtocolUpgradeTxCommonData
impl Debug for ProtocolUpgradeTxCommonData
Source§impl<'de> Deserialize<'de> for ProtocolUpgradeTxCommonData
impl<'de> Deserialize<'de> for ProtocolUpgradeTxCommonData
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
impl StructuralPartialEq for ProtocolUpgradeTxCommonData
Auto Trait Implementations§
impl Freeze for ProtocolUpgradeTxCommonData
impl RefUnwindSafe for ProtocolUpgradeTxCommonData
impl Send for ProtocolUpgradeTxCommonData
impl Sync for ProtocolUpgradeTxCommonData
impl Unpin for ProtocolUpgradeTxCommonData
impl UnwindSafe for ProtocolUpgradeTxCommonData
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