Struct Gas
pub struct Gas {
pub da_gas: u32,
pub l2_gas: u32,
}
Fields
da_gas: u32l2_gas: u32Implementations
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(serialized: [Field; 2]) -> 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]
impl Sub for Gas
pub fn sub(self, other: Self) -> Self