scheduled_value_change
Standalone Functions
new
new(pre, post, block_of_change);
Parameters
Name | Type |
---|---|
pre | T |
post | T |
block_of_change | u32 |
get_current_at
get_current_at(self, block_number);
/ equal to the block horizon (see get_block_horizon()
).
Parameters
Name | Type |
---|---|
self | |
block_number | u32 |
get_scheduled
get_scheduled(self);
/ Additionally, further changes might be later scheduled, potentially canceling the one returned by this function.
Parameters
Name | Type |
---|---|
self |
get_block_horizon
get_block_horizon(self, historical_block_number, minimum_delay);
/ using the same historical block number.
Parameters
Name | Type |
---|---|
self | |
historical_block_number | u32 |
minimum_delay | u32 |
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
Name | Type |
---|---|
&mut self | |
new_value | T |
current_block_number | u32 |
minimum_delay | u32 |
block_of_change | u32 |
serialize
serialize(self);
Parameters
Name | Type |
---|---|
self |
deserialize
deserialize(input);
Parameters
Name | Type |
---|---|
input | [Field; 3] |