aztec-nr - noir_aztec::context::utility_context

Struct UtilityContext

pub struct UtilityContext
{ /* private fields */ }

Implementations

impl UtilityContext

pub unconstrained fn new() -> Self pub unconstrained fn at(contract_address: AztecAddress) -> Self pub unconstrained fn at_historical( contract_address: AztecAddress, block_number: u32, ) -> Self pub fn block_number(self) -> u32 pub fn timestamp(self) -> u64 pub fn this_address(self) -> AztecAddress pub fn version(self) -> Field pub fn chain_id(self) -> Field pub unconstrained fn raw_storage_read<let N: u32>( self, storage_slot: Field, ) -> [Field; N] pub unconstrained fn storage_read<T>(self, storage_slot: Field) -> T
where T: Packable