aztec-nr - noir_aztec::protocol::abis::gas

Struct Gas

pub struct Gas {
    pub da_gas: u32,
    pub l2_gas: u32,
}

Fields

da_gas: u32
l2_gas: u32

Implementations

impl Gas

pub fn new(da_gas: u32, l2_gas: u32) -> Self pub fn tx_overhead() -> Self pub fn compute_fee(self, fees: GasFees) -> Field pub fn is_empty(self) -> bool pub fn within(self, limits: Self) -> bool

Trait implementations

impl Add for Gas

pub fn add(self, other: Self) -> Self

impl Deserialize for Gas

pub fn deserialize(fields: [Field; 2]) -> Self pub fn stream_deserialize<let K: u32>(reader: &mut Reader<K>) -> Self

impl Empty for Gas

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

impl Eq for Gas

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

impl Serialize for Gas

pub fn serialize(self) -> [Field; 2] pub fn stream_serialize<let K: u32>(self, writer: &mut Writer<K>)

impl Sub for Gas

pub fn sub(self, other: Self) -> Self