Skip to main content

scheduled_value_change

Standalone Functions

new

new(pre, post, block_of_change);

Parameters

NameType
preT
postT
block_of_changeu32

get_current_at

get_current_at(self, block_number);

/ equal to the block horizon (see get_block_horizon()).

Parameters

NameType
self
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

get_block_horizon

get_block_horizon(self, historical_block_number, minimum_delay);

/ using the same historical block number.

Parameters

NameType
self
historical_block_numberu32
minimum_delayu32

schedule_change

schedule_change(&mut self, new_value, current_block_number, minimum_delay, block_of_change);

/ called in public with the current block number.

Parameters

NameType
&mut self
new_valueT
current_block_numberu32
minimum_delayu32
block_of_changeu32

serialize

serialize(self);

Parameters

NameType
self

deserialize

deserialize(input);

Parameters

NameType
input[Field; 3]