aztec-nr - noir_aztec::state_vars::delayed_public_mutable

Struct DelayedPublicMutable

pub struct DelayedPublicMutable<T, let InitialDelay: u64, Context>
{ /* private fields */ }

Implementations

impl<let InitialDelay: u64, T> DelayedPublicMutable<T, InitialDelay, &mut PrivateContext>

pub fn get_current_value(self) -> T
where T: Packable, T: Eq

impl<let InitialDelay: u64, T> DelayedPublicMutable<T, InitialDelay, UtilityContext>

pub unconstrained fn get_current_value(self) -> T
where T: Packable, T: Eq

impl<Context, let InitialDelay: u64, T> DelayedPublicMutable<T, InitialDelay, Context>

pub fn new(context: Context, storage_slot: Field) -> Self

impl<let InitialDelay: u64, T> DelayedPublicMutable<T, InitialDelay, PublicContext>

pub fn schedule_value_change(self, new_value: T)
where T: Packable, T: Eq
pub fn schedule_and_return_value_change(self, new_value: T) -> ScheduledValueChange<T>
where T: Packable, T: Eq
pub fn schedule_delay_change(self, new_delay: u64)
where T: Packable, T: Eq
pub fn get_current_value(self) -> T
where T: Packable, T: Eq
pub fn get_current_delay(self) -> u64
where T: Packable, T: Eq
pub fn get_scheduled_value(self) -> (T, u64)
where T: Packable, T: Eq
pub fn get_scheduled_delay(self) -> (u64, u64)
where T: Packable, T: Eq

Trait implementations

impl<Context, let InitialDelay: u64, let M: u32, T> HasStorageSlot<M + 1> for DelayedPublicMutable<T, InitialDelay, Context>
where DelayedPublicMutableValues<T, InitialDelay>: Packable<N = M>

pub fn get_storage_slot(self) -> Field