pub struct Eip712Meta {
pub gas_per_pubdata: U256,
pub factory_deps: Vec<Bytes>,
pub custom_signature: Option<Bytes>,
pub paymaster_params: Option<PaymasterParams>,
}Expand description
Represents the EIP-712 metadata for ZKsync transactions.
Fields§
§gas_per_pubdata: U256Gas per pubdata for the transaction.
factory_deps: Vec<Bytes>Factory dependencies for the transaction. Used during the contract deployment, should contain the bytecode of the contract itself, as well as bytecodes for any contracts that can be deployed by the contract (e.g. via CREATE).
custom_signature: Option<Bytes>Custom signature for the transaction.
Should only be set in case of using a custom account implementation.
paymaster_params: Option<PaymasterParams>Paymaster parameters for the transaction.
Implementations§
Source§impl Eip712Meta
impl Eip712Meta
Sourcepub fn factory_deps_hashes(
&self,
) -> Result<Vec<FixedBytes<32>>, BytecodeHashError>
pub fn factory_deps_hashes( &self, ) -> Result<Vec<FixedBytes<32>>, BytecodeHashError>
Computes the hashes of the factory dependencies.
Returns an error if any of the dependencies cannot be hashed.
Trait Implementations§
Source§impl Clone for Eip712Meta
impl Clone for Eip712Meta
Source§fn clone(&self) -> Eip712Meta
fn clone(&self) -> Eip712Meta
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 Eip712Meta
impl Debug for Eip712Meta
Source§impl Decodable for Eip712Meta
impl Decodable for Eip712Meta
Source§impl Default for Eip712Meta
impl Default for Eip712Meta
Source§fn default() -> Eip712Meta
fn default() -> Eip712Meta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Eip712Meta
impl<'de> Deserialize<'de> for Eip712Meta
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 Encodable for Eip712Meta
impl Encodable for Eip712Meta
Source§impl Hash for Eip712Meta
impl Hash for Eip712Meta
Source§impl PartialEq for Eip712Meta
impl PartialEq for Eip712Meta
Source§impl Serialize for Eip712Meta
impl Serialize for Eip712Meta
impl Eq for Eip712Meta
impl StructuralPartialEq for Eip712Meta
Auto Trait Implementations§
impl !Freeze for Eip712Meta
impl RefUnwindSafe for Eip712Meta
impl Send for Eip712Meta
impl Sync for Eip712Meta
impl Unpin for Eip712Meta
impl UnwindSafe for Eip712Meta
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
Compare self to
key and return true if they are equal.§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<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