aztec-nr - protocol_types::abis::gas_fees

Struct GasFees

pub struct GasFees {
    pub fee_per_da_gas: u128,
    pub fee_per_l2_gas: u128,
}

Fields

fee_per_da_gas: u128
fee_per_l2_gas: u128

Implementations

impl GasFees

pub fn new(fee_per_da_gas: u128, fee_per_l2_gas: u128) -> Self pub fn is_empty(self) -> bool

Trait implementations

impl Deserialize for GasFees

pub fn deserialize(serialized: [Field; 2]) -> Self

impl Empty for GasFees

pub fn empty() -> Self pub fn is_empty(self) -> bool pub fn assert_empty<let S: u32>(self, msg: str<S>)

impl Eq for GasFees

pub fn eq(_self: Self, _other: Self) -> bool

impl Serialize for GasFees

pub fn serialize(self) -> [Field; 2]