aztec-nr - protocol_types::abis::global_variables

Struct GlobalVariables

pub struct GlobalVariables {
    pub chain_id: Field,
    pub version: Field,
    pub block_number: u32,
    pub slot_number: Field,
    pub timestamp: u64,
    pub coinbase: EthAddress,
    pub fee_recipient: AztecAddress,
    pub gas_fees: GasFees,
}

Fields

chain_id: Field
version: Field
block_number: u32
slot_number: Field
timestamp: u64
coinbase: EthAddress
fee_recipient: AztecAddress
gas_fees: GasFees

Implementations

impl GlobalVariables

pub fn is_empty(self) -> bool

Trait implementations

impl Deserialize for GlobalVariables

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

impl Empty for GlobalVariables

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

impl Eq for GlobalVariables

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

impl Serialize for GlobalVariables

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