Skip to main content

scheduled_delay_change

Standalone Functions

new

new(pre, post, block_of_change);

Parameters

NameType
preOption<u32>
postOption<u32>
block_of_changeu32

get_current

get_current(self, current_block_number);

/ historical private reads use get_effective_minimum_delay_at instead.

Parameters

NameType
self
current_block_numberu32

get_scheduled

get_scheduled(self);

/ Additionally, further changes might be later scheduled, potentially canceling the one returned by this function.

Parameters

NameType
self

schedule_change

schedule_change(&mut self, new, current_block_number);

/ days.

Parameters

NameType
&mut self
newu32
current_block_numberu32

get_effective_minimum_delay_at

get_effective_minimum_delay_at(self, historical_block_number);

/ the current one.

Parameters

NameType
self
historical_block_numberu32

serialize

serialize(self);

Parameters

NameType
self

deserialize

deserialize(input);

Parameters

NameType
input[Field; 1]